First time here? Check out the FAQ!

Ask Your Question
0

Error: identifier "erstat" is undefined

asked Sep 5 '16

scholar gravatar image

I have downloaded the text detection code from github (https://gist.github.com/agasiev/10021533). but it is producing many similar errors like: identifier erstat is undefined identifier computerNMchannels is undefined identifier erfilter is undefined... and many more..

What it is so???? Can any one help me out??

Preview: (hide)

2 answers

Sort by » oldest newest most voted
1

answered Sep 5 '16

berak gravatar image

updated Sep 5 '16

please rather try with the examples here ,than with an outdated, incomplete gist. (you'd need the xml files from the samples anyway)

Preview: (hide)

Comments

How to try them, only samples are there.. Sorry but m not getting u..Actually i want to do text extraction from a scene image.. can u guide me..?

scholar gravatar imagescholar (Sep 6 '16)edit

you must be blind ;)

berak gravatar imageberak (Sep 6 '16)edit

:( :( :( :(

scholar gravatar imagescholar (Sep 6 '16)edit

can u please tell me how shoul i add 'opencv2/text.hpp' header file ???

scholar gravatar imagescholar (Sep 6 '16)edit

please forget about the gist, and just use textdetection.cpp from the samples, dammit !

berak gravatar imageberak (Sep 6 '16)edit

Yea i have already done that.. m talking abt the same code textdetectiob.cpp from samples.. i m getting the same errors about erstat,cv::text , opencv2/text.hpp

scholar gravatar imagescholar (Sep 6 '16)edit

ahh, apologies for the arrogance, then, you probably don't have the text module installed

  • you need to download the opencv_contrib repo and rebuild the opencv libs with that (see readme there). ' make install' will copy the 'text' header to the correct location.

  • finally, you need to ling opencv_text310.lib to your prog

berak gravatar imageberak (Sep 6 '16)edit

its ok.. i have tried that too. now i m stuck with 'make -j5' they say unknown command make... so whts next??

scholar gravatar imagescholar (Sep 6 '16)edit

how did you install opencv, then ? which os, verion, etc ? cmake could not have completed successfully without, so, something seriously wrong.

berak gravatar imageberak (Sep 6 '16)edit

opencv3.1 , vs2015, windows10 cmake 3.6.1

scholar gravatar imagescholar (Sep 6 '16)edit
0

answered Sep 5 '16

j0h gravatar image

The first instance of ErStat is on line 25 in that code, prior to that ErStat has not been defined. if i had to assume, the vector, of a vector, would be a Point, and the declaration might go something like: Point* ErStat = tringle[x],[y]; or something link that. (thats a guess, i haven't read all the code)

void er_show(vector<mat> &channels, vector<vector<erstat> > &regions);

Preview: (hide)

Comments

the original code is missing the "opencv2/text.hpp" header, declaring all of the missing items, but again, please see answer below. (let's not try to repair, what should be just abandoned)

berak gravatar imageberak (Sep 5 '16)edit

from where to get this header file??

scholar gravatar imagescholar (Sep 6 '16)edit

Question Tools

1 follower

Stats

Asked: Sep 5 '16

Seen: 758 times

Last updated: Sep 05 '16