Ask Your Question
0

Error: identifier "erstat" is undefined

asked 2016-09-05 05:46:32 -0500

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??

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2016-09-05 05:50:29 -0500

berak gravatar image

updated 2016-09-05 12:11:38 -0500

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

edit flag offensive delete link more

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 ( 2016-09-06 02:11:57 -0500 )edit

you must be blind ;)

berak gravatar imageberak ( 2016-09-06 02:17:30 -0500 )edit

:( :( :( :(

scholar gravatar imagescholar ( 2016-09-06 02:46:34 -0500 )edit

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

scholar gravatar imagescholar ( 2016-09-06 02:54:06 -0500 )edit

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

berak gravatar imageberak ( 2016-09-06 02:58:49 -0500 )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 ( 2016-09-06 04:11:39 -0500 )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 ( 2016-09-06 05:37:23 -0500 )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 ( 2016-09-06 05:46:18 -0500 )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 ( 2016-09-06 05:51:14 -0500 )edit

opencv3.1 , vs2015, windows10 cmake 3.6.1

scholar gravatar imagescholar ( 2016-09-06 05:53:04 -0500 )edit
0

answered 2016-09-05 14:09:52 -0500

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);

edit flag offensive delete link more

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 ( 2016-09-05 14:15:12 -0500 )edit

from where to get this header file??

scholar gravatar imagescholar ( 2016-09-06 02:12:34 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-09-05 05:46:32 -0500

Seen: 283 times

Last updated: Sep 05 '16