Commit 92279fb5 authored by 宋柯's avatar 宋柯

path

parent 0f868392
...@@ -35,8 +35,8 @@ aux_source_directory(. SRCS) ...@@ -35,8 +35,8 @@ aux_source_directory(. SRCS)
include_directories(/usr/local/include) include_directories(/usr/local/include)
link_directories(/usr/local/lib) link_directories(/usr/local/lib)
#tenginekit sdk #tenginekit sdk
include_directories(/Users/edz/Downloads/TengineKit-master/Linux/include) include_directories(/srv/apps/TengineKit-master/Linux/include)
link_directories(/Users/edz/Downloads/TengineKit-master/Linux/libs) link_directories(/srv/apps/TengineKit-master/Linux/libs)
#add_executable(main f_BeautyCamera.cpp ${SRCS}) #add_executable(main f_BeautyCamera.cpp ${SRCS})
#target_link_libraries(main ${OpenCV_LIBS} ${Poco_LIBRARIES}) #target_link_libraries(main ${OpenCV_LIBS} ${Poco_LIBRARIES})
#add_executable(gender gender.cpp ${SRCS}) #add_executable(gender gender.cpp ${SRCS})
......
...@@ -236,7 +236,7 @@ void handle_rgb(std::string path) ...@@ -236,7 +236,7 @@ void handle_rgb(std::string path)
char data[w * h * 3]; char data[w * h * 3];
memcpy(data, (char *)frame.data, w * h * 3); memcpy(data, (char *)frame.data, w * h * 3);
facesdk_readModelFromFile(ModelType::Detect, "models/face_detect.bin", ImageFormat::RGB); facesdk_readModelFromFile(ModelType::Detect, "/srv/apps/TengineKit-master/Linux/models/face_detect.bin", ImageFormat::RGB);
sdkFaces faces = facesdk_detect(data); sdkFaces faces = facesdk_detect(data);
std::cout << "faces:" << faces.face_count << std::endl; std::cout << "faces:" << faces.face_count << std::endl;
for (int i = 0; i < faces.face_count; i++) for (int i = 0; i < faces.face_count; i++)
...@@ -246,7 +246,7 @@ void handle_rgb(std::string path) ...@@ -246,7 +246,7 @@ void handle_rgb(std::string path)
cv::rectangle(frame, pt1, pt2, cv::Scalar(255, 0, 0), 2); cv::rectangle(frame, pt1, pt2, cv::Scalar(255, 0, 0), 2);
} }
facesdk_readModelFromFile(ModelType::Landmark, "models/face_landmark2d.bin", ImageFormat::RGB); facesdk_readModelFromFile(ModelType::Landmark, "/srv/apps/TengineKit-master/Linux/models/face_landmark2d.bin", ImageFormat::RGB);
sdkFaces faces2 = facesdk_landmark(); sdkFaces faces2 = facesdk_landmark();
int index = 0; int index = 0;
for (int j = 0; j < faces2.face_count; j++) for (int j = 0; j < faces2.face_count; j++)
...@@ -286,7 +286,7 @@ void handle_rgb(std::string path) ...@@ -286,7 +286,7 @@ void handle_rgb(std::string path)
} }
std::cout << std::endl; std::cout << std::endl;
} }
facesdk_readModelFromFile(ModelType::Attribution, "models/face_attr.bin", ImageFormat::RGB); facesdk_readModelFromFile(ModelType::Attribution, "/srv/apps/TengineKit-master/Linux/models/face_attr.bin", ImageFormat::RGB);
sdkFaces faces3 = facesdk_attribute(); sdkFaces faces3 = facesdk_attribute();
std::cout << faces3.face_count << std::endl; std::cout << faces3.face_count << std::endl;
for (int i = 0; i < faces3.face_count; i++) for (int i = 0; i < faces3.face_count; i++)
...@@ -306,11 +306,11 @@ void handle_rgb(std::string path) ...@@ -306,11 +306,11 @@ void handle_rgb(std::string path)
int main(int argc, char* argv[]){ int main(int argc, char* argv[]){
handle_rgb("/Users/edz/Downloads/tongshi.png"); handle_rgb("/home/gmuser/images/tongshi.png");
Mat face = imread("/Users/edz/Downloads/tongshi.png"); // Mat face = imread("/Users/edz/Downloads/tongshi.png");
imshow("face",face); // imshow("face",face);
waitKey(0); // waitKey(0);
cout << "aaa" << endl; cout << "aaa" << endl;
} }
//int f_BeautyIris(unsigned char* srcData, int width, int height, int stride, int srcPoints[], unsigned char* maskData, int mWidth, int mHeight, int mStride, int maskPoints[], int ratio) //int f_BeautyIris(unsigned char* srcData, int width, int height, int stride, int srcPoints[], unsigned char* maskData, int mWidth, int mHeight, int mStride, int maskPoints[], int ratio)
......
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