mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 06:46:53 +08:00
Fixed misc_utilities
This commit is contained in:
@@ -133,9 +133,9 @@ int main( int argc, const char** argv )
|
||||
|
||||
CharacterSegmenter charSegmenter(&pipeline_data);
|
||||
ocr->performOCR(&pipeline_data);
|
||||
ocr->postProcessor->analyze(statecode, 25);
|
||||
ocr->postProcessor.analyze(statecode, 25);
|
||||
|
||||
cout << files[i] << "," << statecode << "," << ocr->postProcessor->bestChars << endl;
|
||||
cout << files[i] << "," << statecode << "," << ocr->postProcessor.bestChars << endl;
|
||||
|
||||
imshow("Current LP", frame);
|
||||
waitKey(5);
|
||||
@@ -250,7 +250,7 @@ int main( int argc, const char** argv )
|
||||
ocrTimes.push_back(ocrTime);
|
||||
|
||||
getTime(&startTime);
|
||||
ocr.postProcessor->analyze("", 25);
|
||||
ocr.postProcessor.analyze("", 25);
|
||||
getTime(&endTime);
|
||||
double postProcessTime = diffclock(startTime, endTime);
|
||||
cout << "\tRegion " << z << ": PostProcess time: " << postProcessTime << "ms." << endl;
|
||||
|
@@ -153,8 +153,8 @@ int main( int argc, const char** argv )
|
||||
//ocr.cleanCharRegions(charSegmenter.thresholds, charSegmenter.characters);
|
||||
|
||||
ocr.performOCR(&pipeline_data);
|
||||
ocr.postProcessor->analyze(statecodestr, 25);
|
||||
cout << "OCR results: " << ocr.postProcessor->bestChars << endl;
|
||||
ocr.postProcessor.analyze(statecodestr, 25);
|
||||
cout << "OCR results: " << ocr.postProcessor.bestChars << endl;
|
||||
|
||||
vector<bool> selectedBoxes(pipeline_data.thresholds.size());
|
||||
for (int z = 0; z < pipeline_data.thresholds.size(); z++)
|
||||
@@ -221,7 +221,7 @@ int main( int argc, const char** argv )
|
||||
{
|
||||
selectedBoxes[curDashboardSelection] = true;
|
||||
showDashboard(pipeline_data.thresholds, selectedBoxes, curDashboardSelection);
|
||||
const std::string& ocr_str = ocr.postProcessor->bestChars;
|
||||
const std::string& ocr_str = ocr.postProcessor.bestChars;
|
||||
humanInputs.assign(ocr_str.begin(), ocr_str.end());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user