textdetection sample producing errors

asked Sep 8 '16

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... :(

Preview: (hide)

Comments

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 (Sep 8 '16)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 (Sep 12 '16)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 (Sep 12 '16)edit

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

scholar gravatar imagescholar (Sep 12 '16)edit

in the samples folder, i guess ...

StevenPuttemans gravatar imageStevenPuttemans (Sep 12 '16)edit
1

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

scholar gravatar imagescholar (Sep 12 '16)edit

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

StevenPuttemans gravatar imageStevenPuttemans (Sep 12 '16)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 (Sep 12 '16)edit

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

StevenPuttemans gravatar imageStevenPuttemans (Sep 12 '16)edit

sorry but m unable to get u..

scholar gravatar imagescholar (Sep 12 '16)edit