subokita / Robust-Text-Detection

Robust Text Detection implementation based on http://www.stanford.edu/~hchen2/papers/ICIP2011_RobustTextDetection.pdf
MIT License
157 stars 80 forks source link

errors when compiling. error: ‘istream_iterator’ was not declared in this scope #11

Closed saikrishna-1996 closed 8 years ago

saikrishna-1996 commented 8 years ago

I use opencv2.4 on my ubuntu 14.04. I just installed tesseract using "sudo apt-get install libtesseract-dev". I compiled main.cpp and I am getting the error as shown in the screenshot kindly help!

screenshot from 2015-12-15 19 56 50

screenshot from 2015-12-15 19 59 13

subokita commented 8 years ago

It seems like you're using C++98. I'm using C++11, which allows things like for each loop. You should try to use C++11 compiler. Not sure how to enable that on your side though