forked from liushuan/MNN-MTCNN-CPU-OPENCL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
30 lines (18 loc) · 624 Bytes
/
Copy pathmain.cpp
File metadata and controls
30 lines (18 loc) · 624 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <opencv2/opencv.hpp>
#include<string>
#include <thread>
#include "face_detect.h"
using namespace cv;
void face_detect1(){
cv::Mat img1 = cv::imread("./img/001.jpg");
//检测 人脸的对象。
std::string model_path = "./models/";
TIEVD::FaceDetect face_detect(model_path, 0.7f, 0.8f, 0.9f);
std::vector<TIEVD::FaceInfo> face_info1 = face_detect.Detect_MaxFace(img1, 32, 3);
std::vector<TIEVD::FaceInfo> face_info2 = face_detect.Detect(img1, 32, 3);
std::cout<<"face_info1:"<<face_info1.size()<<":"<<face_info2.size()<<std::endl;
}
int main(){
face_detect1();
return 0;
}