Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
face_detect
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiajunjie
face_detect
Commits
de3db0ad
Commit
de3db0ad
authored
Nov 25, 2019
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
28562aac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
97 deletions
+0
-97
beauty-win.dll
library/windowsx64/beauty-win.dll
+0
-0
beauty-win.lib
library/windowsx64/beauty-win.lib
+0
-0
common.h
library/windowsx64/common.h
+0
-35
face_beauty.h
library/windowsx64/face_beauty.h
+0
-62
No files found.
library/windowsx64/beauty-win.dll
deleted
100644 → 0
View file @
28562aac
File deleted
library/windowsx64/beauty-win.lib
deleted
100644 → 0
View file @
28562aac
File deleted
library/windowsx64/common.h
deleted
100644 → 0
View file @
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
;
library/windowsx64/face_beauty.h
deleted
100644 → 0
View file @
28562aac
/**
* @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
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment