This commit is contained in:
2020-07-14 17:03:11 +08:00
parent bb686e4c20
commit 24b4bc79b9
16 changed files with 3 additions and 8 deletions

0
.gitattributes vendored Executable file → Normal file
View File

2
.gitignore vendored Executable file → Normal file
View File

@@ -1,9 +1,7 @@
.idea/
cmake-build-debug/
cmake-build-debug-mingw/
cmake-build-default/
cmake-build-release/
cmake-build-release-mingw/
images/
model/
model_128/

2
CMakeLists.txt Executable file → Normal file
View File

@@ -6,8 +6,6 @@ set(QMAKE_CXXFLAGS "-std=c++11")
find_package(OpenCV REQUIRED)
#set(CMAKE_BUILD_TYPE Debug)
AUX_SOURCE_DIRECTORY(./src DIR_SRCS)
add_executable(main ${DIR_SRCS})
#windows下为了自动找到opencv 需要添加环境变量OpenCV_DIR D:/opencv/build/
target_link_libraries(main ${OpenCV_LIBS})

0
Onet.txt Executable file → Normal file
View File

0
Pnet.txt Executable file → Normal file
View File

0
README.md Executable file → Normal file
View File

0
Rnet.txt Executable file → Normal file
View File

0
src/facenet.cpp Executable file → Normal file
View File

0
src/facenet.h Executable file → Normal file
View File

0
src/mtcnn.cpp Executable file → Normal file
View File

0
src/mtcnn.h Executable file → Normal file
View File

0
src/network.cpp Executable file → Normal file
View File

0
src/network.h Executable file → Normal file
View File

0
src/pBox.cpp Executable file → Normal file
View File

0
src/pBox.h Executable file → Normal file
View File

7
src/pikaqiu.cpp Executable file → Normal file
View File

@@ -226,8 +226,8 @@ void test_facenet(Mat &image, vector<Rect> &vecRect, vector<mydataFmt> &n) {
* 对比两张图两个人的emb
*/
void test() {
Mat image0 = imread("../test_img/jason0.jpeg");
Mat image1 = imread("../test_img/jason1.jpeg");
Mat image0 = imread("../test_img/tom1.jpeg");
Mat image1 = imread("../test_img/tom0.jpeg");
image0 = RS(image0);
image1 = RS(image1);
@@ -270,8 +270,7 @@ void test() {
start = clock() - start;
// cout<<"time is "<<start/10e3<<endl;
cout << "time is " << (double) start / CLOCKS_PER_SEC * 1000 << "ms" << endl;
waitKey(0);
// waitKey(5000);
waitKey(5000);
image0.release();
image1.release();
}