Ask Your Question

Feddav's profile - activity

2017-08-01 19:16:07 -0600 received badge  Student (source)
2017-02-03 08:59:02 -0600 commented question OCRHMM with limitated vocabulary

i'm working on this now

2017-02-03 02:47:45 -0600 received badge  Editor (source)
2017-02-02 15:33:47 -0600 asked a question OCRHMM with limitated vocabulary

Hi to everyone i'm trying to use the OCRHMMDecoder on a video in order to recognize a char. I've take this code from the examples in the installation folder of opencv

string vocabulary = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
Ptr<OCRHMMDecoder::ClassifierCallback> ocr = loadOCRHMMClassifierCNN("/home/fed27/opencv_contrib/modules/text/samples/OCRBeamSearch_CNN_model_data.xml.gz");
 ocr->eval(mask, out_classes, out_confidences);
 output=vocabulary[out_classes[i]];
 string s = QString::fromStdString(output) ;
 qWarning() << " OCR_Tesseract  output "<< s ;

it works well but i need the vocabulary limited to few char in order to have more possibilities to guess the right one. If i try to reduce the vocabulary string it gives an error.

thanks you.

2017-01-26 11:09:12 -0600 received badge  Enthusiast
2017-01-25 02:57:03 -0600 received badge  Self-Learner (source)
2017-01-25 02:10:05 -0600 commented question Trying to compile character_recognition.cpp

i solved it using g++ -ggdb character_recognition.cpp -o character_recognition pkg-config --cflags --libs opencv Instead of g++ -ggdb pkg-config --cflags --libs opencv character_recognition.cpp -o character_recognition

2017-01-24 02:19:31 -0600 commented question Opencv with tesseract installation error on ubuntu

it works, thank you

2017-01-23 17:12:39 -0600 asked a question Trying to compile character_recognition.cpp

Hi, i've just installed opencv 3.2 and tesseract module. Now i'm tryng to compile the character_recognition.cpp sample in the opencv_contrib folder. If I use the command "pkg-config --cflags --libs opencv " it displays me

-I/usr/local/include/opencv -I/usr/local/include -L/usr/local/lib -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dpm -lopencv_freetype -lopencv_fuzzy -lopencv_line_descriptor -lopencv_optflow -lopencv_reg -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_rgbd -lopencv_surface_matching -lopencv_tracking -lopencv_datasets -lopencv_text -lopencv_face -lopencv_plot -lopencv_dnn -lopencv_xfeatures2d -lopencv_shape -lopencv_video -lopencv_ximgproc -lopencv_calib3d -lopencv_features2d -lopencv_flann -lopencv_xobjdetect -lopencv_objdetect -lopencv_ml -lopencv_xphoto -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_photo -lopencv_imgproc -lopencv_core

But if i try to compile che cpp file

g++ -ggdb `pkg-config --cflags --libs opencv` character_recognition.cpp -o  character_recognition

it says me that "cv::imread(cv::String const&, int)" it's not defined and this kind of error for every function of the opencv libraries that is used in the code.

Seems thats i can't link the libraries. Can you help me? thanks

2017-01-21 12:12:31 -0600 asked a question Opencv with tesseract installation error on ubuntu

Hi everyone, I'm trying to compile opencv with tesseract

I built libraries using this:

 cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \ -D  WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=OFF -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=OFF  -D INSTALL_PYTHON_EXAMPLES=OFF -D BUILD_EXAMPLES=OFF -D WITH_QT=OFF -D WITH_OPENGL=ON  ..

but it reaches the 83% and than it shows this:

    /home/fed27/opencv/build/modules/text/test_precomp.hpp:5:0:
/home/fed27/opencv_contrib/modules/text/test/test_main.cpp: In function ‘int main(int, char**)’:
/home/fed27/opencv_contrib/modules/text/test/test_main.cpp:6:5: error: ‘addDataSearchSubDirectory’ is not a member of ‘cvtest’
     cvtest::addDataSearchSubDirectory("contrib"),

does anyone know how to solve it? thanks