Commit de3db0ad authored by root's avatar root

update

parent 28562aac
/**
* @file common.h
*
* @brief
*
* 定义接口错误码
*
* @copyright
*
* 无锡优波生命科技有限公司
* All Rights Reserved.
*/
#pragma once
#include <string>
#include <vector>
#include <iostream>
#include <fstream>
#include <sstream>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
typedef enum {
///< 正确
FACE_OK=0,
///< 参数错误
FACE_ERR_INVALID_PARAM,
///< 内存不足
FACE_ERR_NO_FREE_MEMORY,
///< 输入图像错误
FACE_ERR_INVALID_IMAGE
}FACE_ERROR_E;
/**
* @file face_beauty.h.
*
* @brief
*
* 定义脸部美颜接口
*
* @copyright
*
* 无锡优波生命科技有限公司
* All Rights Reserved.
*/
#pragma once
#include "common.h"
extern "C"
{
/**
* @brief 加载检测模型
*
* @param cascadeName 人脸检测模型路径
* @param transparency 输入要设置美艳后的透明度,默认50
*
* @return instance 返回窗口句柄指针
*/
__declspec(dllexport) void* face_beauty_init(const char* cascadeName, int transparency=50);
/**
* @brief 执行脸部美颜功能
*
* @param instance 输入窗口句柄指针
* @param rows 输入、输出图像行
* @param cols 输入、输出图像列
* @param imgdata 输入、输出图像数据
*
* @return FACE_ERROR_E 返回错误码
*/
__declspec(dllexport) FACE_ERROR_E face_beauty_estimate(
void* instance,
int rows,
int cols,
unsigned char* imgdata
);
/**
* @brief 销毁句柄
*
* @param instance 需要销毁的句柄
*
* @return bool 返回True表示成功
*/
__declspec(dllexport) FACE_ERROR_E face_beauty_destory(
void* instance
);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment