-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDetectPlates.h
More file actions
29 lines (19 loc) · 873 Bytes
/
DetectPlates.h
File metadata and controls
29 lines (19 loc) · 873 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
// DetectPlates.h
#ifndef DETECT_PLATES_H
#define DETECT_PLATES_H
#include<opencv2/core/core.hpp>
#include<opencv2/highgui/highgui.hpp>
#include<opencv2/imgproc/imgproc.hpp>
#include "Main.h"
#include "PossiblePlate.h"
#include "PossibleChar.h"
#include "Preprocess.h"
#include "DetectChars.h"
// global constants ///////////////////////////////////////////////////////////////////////////////
const double PLATE_WIDTH_PADDING_FACTOR = 1.3;
const double PLATE_HEIGHT_PADDING_FACTOR = 1.5;
// function prototypes ////////////////////////////////////////////////////////////////////////////
std::vector<PossiblePlate> detectPlatesInScene(cv::Mat &imgOriginalScene);
std::vector<PossibleChar> findPossibleCharsInScene(cv::Mat &imgThresh);
PossiblePlate extractPlate(cv::Mat &imgOriginal, std::vector<PossibleChar> &vectorOfMatchingChars);
# endif // DETECT_PLATES_H