title: Tesseract: read from rectangle
body: <p>I'm using OpenCV to find the coordinates of number plate on the photo. Next I'm trying to send these coordinates to tesseract with the help of function <code>SetRectangle</code>.</p>
  
  <pre><code>...
  CvRect rect;
  rect=cvBoundingRect(contourLow, NULL); // finding rects among contours
  Pix *image = pixRead("auto.jpg");
  api-&gt;SetImage(image);
  api-&gt;SetRectangle(rect.x,rect.y,rect.width, rect.height);
  outText = api-&gt;GetUTF8Text();
  printf("OCR output:\n%s", outText);    
  ...
  </code></pre>
  
  <p>The problem is that output is empty.</p>
  
  <p>I'm sure that coordinates are right (checked it). Also if I set in tesseract the image of cutted number plate, it works properly.</p>
  
  <p>So, how to set rectangle in a right form?</p>