-
Notifications
You must be signed in to change notification settings - Fork 1
/
detcetModel.h
57 lines (52 loc) · 1.27 KB
/
detcetModel.h
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// Created by norse on 17-4-14.
//
#ifndef CAR_EYE_DETCETMODEL_H
#define CAR_EYE_DETCETMODEL_H
#include <opencv2/core/mat.hpp>
#include "stdio.h"
#include "vector"
#include "opencv2/highgui.hpp"
#include "applog.h"
using namespace cv;
using namespace std;
class Detcet {
public:
/**
* load the face xml too detcet the face of human
*
* @param frame frame stream from capture
* @return print detcet output image
*/
Mat detcetFace(Mat frame);
/**
* load the face xml too detcet the body of human
*
* @param frame frame stream from capture
* @return print detcet output image
*/
void detcetBody(Mat frame);
/**
* load the face xml too detcet the sign from the roade
*
* @param frame frame stream from capture
* @return print detcet output image
*/
Mat detcetSingal(Mat frame);
/**
* detcet line inthe road
*
* @param src
* @param width
* @param height
* @return
*/
Mat detcetLines(Mat src,int width,int height);
private:
vector<struct line> detectLine(Mat &img, int threshold);
void drawDetectLines(Mat& image,const vector<Vec4i>& lines,Scalar & color);
const double pi = 3.1415926f;
const double RADIAN = 180.0 / pi;
applog loger;
};
#endif //CAR_EYE_DETCETMODEL_H