update

Co-Authored-By: Chris Kong <609027949@qq.com>
This commit is contained in:
2020-06-14 01:44:48 +08:00
parent efcfcff635
commit bb686e4c20
3 changed files with 8 additions and 3 deletions

2
.gitignore vendored
View File

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

View File

@@ -6,6 +6,8 @@ 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})

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/tom1.jpeg");
Mat image1 = imread("../test_img/tom0.jpeg");
Mat image0 = imread("../test_img/jason0.jpeg");
Mat image1 = imread("../test_img/jason1.jpeg");
image0 = RS(image0);
image1 = RS(image1);
@@ -270,7 +270,8 @@ void test() {
start = clock() - start;
// cout<<"time is "<<start/10e3<<endl;
cout << "time is " << (double) start / CLOCKS_PER_SEC * 1000 << "ms" << endl;
waitKey(5000);
waitKey(0);
// waitKey(5000);
image0.release();
image1.release();
}