Fixed misc_utilities

This commit is contained in:
Matt Hill
2014-10-23 23:41:12 -04:00
parent 1de0617a8e
commit c9558190cd
2 changed files with 6 additions and 6 deletions

View File

@@ -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;

View File

@@ -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());
}