1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-21 14:41:58 +08:00

Fix w64 warnings

This commit is contained in:
Lluis Gomez-Bigorda
2015-08-03 21:45:45 +02:00
parent 2315f9ca22
commit 1481194b54
3 changed files with 7 additions and 7 deletions

View File

@@ -98,18 +98,18 @@ int main(int argc, char* argv[]) {
voc, transitionProbabilities, emissionProbabilities);
std::string output;
double t_r = getTickCount();
double t_r = (double)getTickCount();
ocrTes->run(mask, output);
output.erase(remove(output.begin(), output.end(), '\n'), output.end());
cout << " OCR_Tesseract output \"" << output << "\". Done in "
<< ((double)getTickCount() - t_r)*1000/getTickFrequency() << " ms." << endl;
t_r = getTickCount();
t_r = (double)getTickCount();
ocrNM->run(mask, output);
cout << " OCR_NM output \"" << output << "\". Done in "
<< ((double)getTickCount() - t_r)*1000/getTickFrequency() << " ms." << endl;
t_r = getTickCount();
t_r = (double)getTickCount();
ocrCNN->run(image, mask, output);
cout << " OCR_CNN output \"" << output << "\". Done in "
<< ((double)getTickCount() - t_r)*1000/getTickFrequency() << " ms." << endl;