diff --git a/src/misc_utilities/benchmarks/benchmark.cpp b/src/misc_utilities/benchmarks/benchmark.cpp index 25bbaab..ccc24c3 100644 --- a/src/misc_utilities/benchmarks/benchmark.cpp +++ b/src/misc_utilities/benchmarks/benchmark.cpp @@ -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; diff --git a/src/misc_utilities/classifychars.cpp b/src/misc_utilities/classifychars.cpp index cacc406..27448aa 100644 --- a/src/misc_utilities/classifychars.cpp +++ b/src/misc_utilities/classifychars.cpp @@ -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 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()); }