textdetection sample producing errors

asked 2016-09-08 03:46:00 -0600

scholar gravatar image

i am trying o run the file textdetection.cpp file present here .. i tried it with different images but every time an exception is thrown of some memory location like Microsoft C++ exception: cv::Exception at memory location 0x00CEC6BC. why is dis happening ?? any solutions ?? I m stuck wid this text detection from several days... :(

edit retag flag offensive close merge delete


Start by running in debug mode and tell us at what line the code is actually crashing. I cannot read memory locations myself, but I am guessing it cannot read in your image!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-09-08 05:38:27 -0600 )edit

that exception was generated by createfilter .. I am getting this error : OpenCV Error: Bad argument (Default classifier file not found!) in cv::text::ERClassifierNM1::ERClassifierNM1, file C:\opencv_ex\opencv_contrib-master\modules\text\src\erfilter.cpp,

scholar gravatar imagescholar ( 2016-09-12 01:34:22 -0600 )edit

It is simply, somewhere you are reading in a model, probably by a relative path. The error states clearly that it is not able to read the file. So please try absolute paths.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-09-12 03:51:39 -0600 )edit

yea.. i have tried... but it comes up with same error... Where should these classifiers actually be???

scholar gravatar imagescholar ( 2016-09-12 04:21:47 -0600 )edit

in the samples folder, i guess ...

StevenPuttemans gravatar imageStevenPuttemans ( 2016-09-12 04:57:01 -0600 )edit

dey r there in samples of opencv_contrib .. Any other solution?? wt shd i try ??

scholar gravatar imagescholar ( 2016-09-12 04:59:26 -0600 )edit

If they are there then download them and link them to your sample!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-09-12 06:00:48 -0600 )edit

i have already downloaded them . wat do u mean by link them to ur sample?? Are u talking about adding extra modules to opencv ??? I am new to dis all.. kindly co-operate

scholar gravatar imagescholar ( 2016-09-12 06:06:33 -0600 )edit

Make sure that the path to load the model is the exact location where you saved it!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-09-12 06:18:07 -0600 )edit

sorry but m unable to get u..

scholar gravatar imagescholar ( 2016-09-12 06:27:54 -0600 )edit