update
This commit is contained in:
0
.gitattributes
vendored
Executable file → Normal file
0
.gitattributes
vendored
Executable file → Normal file
2
.gitignore
vendored
Executable file → Normal file
2
.gitignore
vendored
Executable file → Normal file
@@ -1,9 +1,7 @@
|
|||||||
.idea/
|
.idea/
|
||||||
cmake-build-debug/
|
cmake-build-debug/
|
||||||
cmake-build-debug-mingw/
|
|
||||||
cmake-build-default/
|
cmake-build-default/
|
||||||
cmake-build-release/
|
cmake-build-release/
|
||||||
cmake-build-release-mingw/
|
|
||||||
images/
|
images/
|
||||||
model/
|
model/
|
||||||
model_128/
|
model_128/
|
||||||
|
|||||||
2
CMakeLists.txt
Executable file → Normal file
2
CMakeLists.txt
Executable file → Normal file
@@ -6,8 +6,6 @@ set(QMAKE_CXXFLAGS "-std=c++11")
|
|||||||
find_package(OpenCV REQUIRED)
|
find_package(OpenCV REQUIRED)
|
||||||
|
|
||||||
#set(CMAKE_BUILD_TYPE Debug)
|
#set(CMAKE_BUILD_TYPE Debug)
|
||||||
|
|
||||||
AUX_SOURCE_DIRECTORY(./src DIR_SRCS)
|
AUX_SOURCE_DIRECTORY(./src DIR_SRCS)
|
||||||
add_executable(main ${DIR_SRCS})
|
add_executable(main ${DIR_SRCS})
|
||||||
#windows下为了自动找到opencv 需要添加环境变量OpenCV_DIR D:/opencv/build/
|
|
||||||
target_link_libraries(main ${OpenCV_LIBS})
|
target_link_libraries(main ${OpenCV_LIBS})
|
||||||
|
|||||||
0
src/facenet.cpp
Executable file → Normal file
0
src/facenet.cpp
Executable file → Normal file
0
src/facenet.h
Executable file → Normal file
0
src/facenet.h
Executable file → Normal file
0
src/mtcnn.cpp
Executable file → Normal file
0
src/mtcnn.cpp
Executable file → Normal file
0
src/mtcnn.h
Executable file → Normal file
0
src/mtcnn.h
Executable file → Normal file
0
src/network.cpp
Executable file → Normal file
0
src/network.cpp
Executable file → Normal file
0
src/network.h
Executable file → Normal file
0
src/network.h
Executable file → Normal file
0
src/pBox.cpp
Executable file → Normal file
0
src/pBox.cpp
Executable file → Normal file
0
src/pBox.h
Executable file → Normal file
0
src/pBox.h
Executable file → Normal file
7
src/pikaqiu.cpp
Executable file → Normal file
7
src/pikaqiu.cpp
Executable file → Normal file
@@ -226,8 +226,8 @@ void test_facenet(Mat &image, vector<Rect> &vecRect, vector<mydataFmt> &n) {
|
|||||||
* 对比两张图两个人的emb
|
* 对比两张图两个人的emb
|
||||||
*/
|
*/
|
||||||
void test() {
|
void test() {
|
||||||
Mat image0 = imread("../test_img/jason0.jpeg");
|
Mat image0 = imread("../test_img/tom1.jpeg");
|
||||||
Mat image1 = imread("../test_img/jason1.jpeg");
|
Mat image1 = imread("../test_img/tom0.jpeg");
|
||||||
image0 = RS(image0);
|
image0 = RS(image0);
|
||||||
image1 = RS(image1);
|
image1 = RS(image1);
|
||||||
|
|
||||||
@@ -270,8 +270,7 @@ void test() {
|
|||||||
start = clock() - start;
|
start = clock() - start;
|
||||||
// cout<<"time is "<<start/10e3<<endl;
|
// cout<<"time is "<<start/10e3<<endl;
|
||||||
cout << "time is " << (double) start / CLOCKS_PER_SEC * 1000 << "ms" << endl;
|
cout << "time is " << (double) start / CLOCKS_PER_SEC * 1000 << "ms" << endl;
|
||||||
waitKey(0);
|
waitKey(5000);
|
||||||
// waitKey(5000);
|
|
||||||
image0.release();
|
image0.release();
|
||||||
image1.release();
|
image1.release();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user