mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-08 15:00:07 +08:00
Wrapped OpenALPR library in "alpr" namespace. Resolves issue #60.
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
|
||||
using namespace std;
|
||||
using namespace cv;
|
||||
using namespace alpr;
|
||||
|
||||
// Given a directory full of lp images (named [statecode]#.png) crop out the alphanumeric characters.
|
||||
// These will be used to train the OCR
|
||||
|
@@ -3,6 +3,7 @@
|
||||
#include "benchmark_utils.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace alpr;
|
||||
|
||||
vector<string> filterByExtension(vector<string> fileList, string extension)
|
||||
{
|
||||
|
@@ -2,6 +2,7 @@
|
||||
|
||||
using namespace std;
|
||||
using namespace cv;
|
||||
using namespace alpr;
|
||||
|
||||
|
||||
EndToEndTest::EndToEndTest(string inputDir, string outputDir)
|
||||
|
@@ -15,8 +15,8 @@ class EndToEndTest
|
||||
|
||||
private:
|
||||
|
||||
bool rectMatches(cv::Rect actualPlate, PlateRegion candidate);
|
||||
int totalRectCount(PlateRegion rootCandidate);
|
||||
bool rectMatches(cv::Rect actualPlate, alpr::PlateRegion candidate);
|
||||
int totalRectCount(alpr::PlateRegion rootCandidate);
|
||||
|
||||
std::string inputDir;
|
||||
std::string outputDir;
|
||||
|
@@ -32,6 +32,7 @@
|
||||
|
||||
using namespace std;
|
||||
using namespace cv;
|
||||
using namespace alpr;
|
||||
|
||||
// Given a directory full of lp images (named [statecode]#.png) crop out the alphanumeric characters.
|
||||
// These will be used to train the OCR
|
||||
|
@@ -28,6 +28,7 @@
|
||||
|
||||
using namespace std;
|
||||
using namespace cv;
|
||||
using namespace alpr;
|
||||
|
||||
// Takes a directory full of single char images, and plops them on a big tif files
|
||||
// Also creates a box file so Tesseract can recognize it
|
||||
|
@@ -31,6 +31,7 @@
|
||||
|
||||
using namespace std;
|
||||
using namespace cv;
|
||||
using namespace alpr;
|
||||
|
||||
// Given a directory full of pre-cropped images, identify the state that each image belongs to.
|
||||
// This is used to sort our own positive image database as a first step before grabbing characters to use to train the OCR.
|
||||
|
@@ -58,6 +58,7 @@ const int UP_ARROW_KEY= 82;
|
||||
|
||||
using namespace std;
|
||||
using namespace cv;
|
||||
using namespace alpr;
|
||||
|
||||
static bool ldragging = false;
|
||||
static int xPos1 = 0;
|
||||
|
Reference in New Issue
Block a user