title: Extract cow number from image
body: <p>every now and then my mom has to shift through these type of photos to extract the number from the image and rename it to the number.
  <img src="https://i.stack.imgur.com/COFxM.jpg" alt="enter image description here">
  <img src="https://i.stack.imgur.com/1mXMG.jpg" alt="enter image description here">
  <img src="https://i.stack.imgur.com/ALczE.jpg" alt="enter image description here"></p>
  
  <p>I'm trying to use OpenCV, Python, Tesseract to get the process done. I'm really lost trying to extract the portion of the image with the numbers. How could I do this? Any suggestions i'm really new at OpenCV.</p>
  
  <p>I tried to extract the white rectangular board using thresholds and contours, but no avail because the RGB I choose for thresh doesn't always work and I don't know how to choose the contour.</p>
  
  <p>EDIT:</p>
  
  <p>Looking at this paper <a href="http://yoni.wexlers.org/papers/2010TextDetection.pdf" rel="noreferrer">http://yoni.wexlers.org/papers/2010TextDetection.pdf</a> . Looks prominisn</p>