text recognition using opencv contrib text module [closed]
Hi
I would like to be able to recognize character in a image. For that I try to use the sample code give here but I have this error. Any ideas ? thanks !
Ptr<OCRHMMDecoder::ClassifierCallback> ocr = loadOCRHMMClassifierCNN("OCRBeamSearch_CNN_model_data.xml.gz");
I have this error
OpenCV Error: Bad argument (Default classifier data file not found!) in OCRHMMClassifierCNN, file /home/benng/bin/opencv_working_dir/opencv_contrib/modules/text/src/ocr_hmm_decoder.cpp, line 973
terminate called after throwing an instance of 'cv::Exception'
what(): /home/benng/bin/opencv_working_dir/opencv_contrib/modules/text/src/ocr_hmm_decoder.cpp:973: error: (-5) Default classifier data file not found! in function OCRHMMClassifierCNN
[1] 12754 abort (core dumped) ./DisplayImage
this file has to be in the folder, where you run the program.
ahhhh my bad... I build in a build directory :( Thank you