-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfacedetect.h
More file actions
37 lines (29 loc) · 791 Bytes
/
facedetect.h
File metadata and controls
37 lines (29 loc) · 791 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
31
32
33
34
35
36
37
#ifndef FACEDETECT_H
#define FACEDETECT_H
#include <QCoreApplication>
#include"opencv2/highgui.hpp"
#include"opencv2/imgproc.hpp"
#include "opencv2/objdetect.hpp"
#include "opencv2/core.hpp"
#include"opencv2/face/facerec.hpp"
#include<iostream>
#include<QFileDialog>
#include <QDialog>
#include<QMessageBox>
using namespace cv;
using namespace std;
class faceDetect
{
private:
bool foundface = false;
public:
QString file;
QString imageurl;
QString trainer = "C:/Users/user/Desktop/testfile.ext";
void runDetector();
static Rect regionOI(vector<Rect>& faceroi);//region of interest to crop
// Function for Face Detection
void detectAndDraw( Mat& img, CascadeClassifier& cascade,double scale,Rect& roi);
faceDetect();
};
#endif // FACEDETECT_H