textdetection sample producing errors
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... :(
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!
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,
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.
yea.. i have tried... but it comes up with same error... Where should these classifiers actually be???
in the samples folder, i guess ...
dey r there in samples of opencv_contrib .. Any other solution?? wt shd i try ??
If they are there then download them and link them to your sample!
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
Make sure that the path to load the model is the exact location where you saved it!
sorry but m unable to get u..