Commit 9532ab24 authored by 宋柯's avatar 宋柯

眉毛

parent 2a0f9fcd
......@@ -45,8 +45,8 @@ link_directories(/usr/local/lib)
#target_link_libraries(main ${OpenCV_LIBS} ${Poco_LIBRARIES})
#add_executable(gender gender.cpp ${SRCS})
#target_link_libraries(gender ${OpenCV_LIBS} ${Poco_LIBRARIES})
add_executable(eyeBrow f_EyeBrow.cpp ${SRCS})
target_link_libraries(eyeBrow ${OpenCV_LIBS} ${Poco_LIBRARIES} PocoFoundation PocoNet PocoUtil ${dlib_LIBRARIES} ${OPENSSL_CRYPTO_LIBRARY})
add_executable(lips f_LipsRecolor.cpp ${SRCS})
target_link_libraries(lips ${OpenCV_LIBS} ${Poco_LIBRARIES} PocoFoundation PocoNet PocoUtil ${dlib_LIBRARIES} ${OPENSSL_CRYPTO_LIBRARY})
#target_link_libraries(beautyIris ${OpenCV_LIBS} ${Poco_LIBRARIES} libdlib.a X11 pthread)
#target_link_libraries(helloworld
......
......@@ -84,7 +84,7 @@ void hMirrorTrans(const Mat &src, Mat &dst)
}
int main(int argc, char* argv[]){
int main123321(int argc, char* argv[]){
int ratio=100;
string modelName = string(argv[2]);
......@@ -415,7 +415,7 @@ int main2(int argc, char* argv[]){
//图片base64编码
//读取图片,获得字节数组和Mat
vector<unsigned char> data;
string imgPath = "/Users/edz/Downloads/合集/模特/1.JPG";
string imgPath = "/Users/edz/Downloads/合集/模特/自然唇.png";
ifstream ifs(imgPath,ios::binary);
if(ifs.is_open()){
char buf[1024];
......
This diff is collapsed.
/*************************************************************************
Copyright: HZ.
Author: Hu Yaowu
Date: 2019-6-23
Mail: dongtingyueh@163.com
Description: FACE LIPS RECOLOR .
*************************************************************************/
#ifndef __T_MAKEUP_FACE_LIPS_RECOLOR__
#define __T_MAKEUP_FACE_LIPS_RECOLOR__
#ifdef _MSC_VER
#ifdef __cplusplus
#define EXPORT extern "C" _declspec(dllexport)
#else
#define EXPORT __declspec(dllexport)
#endif
/*************************************************************************
*Function: Lips recolor
*Params:
*srcData:32BGRA image buffer
*width: width of image
*height: height of image
*stride: Stride of image
*srcFacePoints: 101 face points.
*mskData: Lips image mask buffer with format bgra32
*mWidth: width of mask image
*mHeight: height of mask image
*mStride: Stride of mask image
*maskKeyPoints: 28 key points of lips mask.
*isLeft: left or right face.
*ratio: intensity of effect, [0, 100]
*Return: 0-OK,other failed
**************************************************************************/
EXPORT int f_LipsRecolor(unsigned char* srcData, int width, int height, int stride, int srcFacePoints[202], unsigned char* mskData, int mWidth, int mHeight, int mStride, int maskKeyPoints[2 * 28], unsigned char* lipsColorMap, int ratio);
#else
#ifdef __cplusplus
extern "C" {
#endif
/////////////////
int f_LipsRecolor(unsigned char* srcData, int width, int height, int stride, int srcFacePoints[202], unsigned char* mskData, int mWidth, int mHeight, int mStride, int maskKeyPoints[2 * 28], unsigned char* lipsColorMap, int ratio);
#ifdef __cplusplus
}
#endif
#endif
#endif
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