title: error compiling opencv example
body: <p>I am trying to compile an example that is provided for one of the opencv_contrib modules (text detection module). The link is below:
  <a href="https://github.com/Balaje/opencv-1/blob/master/samples/cpp/textdetection.cpp" rel="nofollow">https://github.com/Balaje/opencv-1/blob/master/samples/cpp/textdetection.cpp</a></p>
  
  <p>I keep getting errors like:  error: ‘ERStat’ was not declared in this scope</p>
  
  <p>I have already compiled and installed opencv_contrib modules and I see text.hpp in /usr/local/include/opencv2. I included text.hpp as well, but I got the same errors. Does anybody know how I can fix the problem? </p>
  
  <p>I compile the file with the following command:<br>
  g++ <code>pkg-config --cflags opencv</code> -o textdetection textdetecti
  on.cpp <code>pkg-config --libs opencv</code></p>