forked from MasteringOpenCV/code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DetectRegions.h
executable file
·41 lines (34 loc) · 1.14 KB
/
DetectRegions.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
/*****************************************************************************
* Number Plate Recognition using SVM and Neural Networks
******************************************************************************
* by David Millán Escrivá, 5th Dec 2012
* http://blog.damiles.com
******************************************************************************
* Ch5 of the book "Mastering OpenCV with Practical Computer Vision Projects"
* Copyright Packt Publishing 2012.
* http://www.packtpub.com/cool-projects-with-opencv/book
*****************************************************************************/
#ifndef DetectRegions_h
#define DetectRegions_h
#include <string.h>
#include <vector>
#include "Plate.h"
#include <cv.h>
#include <highgui.h>
#include <cvaux.h>
using namespace std;
using namespace cv;
class DetectRegions{
public:
DetectRegions();
string filename;
void setFilename(string f);
bool saveRegions;
bool showSteps;
vector<Plate> run(Mat input);
private:
vector<Plate> segment(Mat input);
bool verifySizes(RotatedRect mr);
Mat histeq(Mat in);
};
#endif