title: How to extract and recognize the vehicle plate number with Python?
body: <p>I have tried using pytesseract in collaboration with PIL to identify the vehicle registration number from the number plate image. But am not able to get the text from these images.</p>
  
  <p>the code:</p>
  
  <pre><code> from PIL import Image
   from pytesseract import image_to_string
  
   img= Image.open('D://carimage1')
   text = image_to_string(img)
   print(text)
  </code></pre>
  
  <p>While this is working for normal scanned documents, it is not working for vehicle number plates.</p>
  
  <p>Sample Image 1</p>
  
  <p><a href="https://i.stack.imgur.com/3r9OQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3r9OQ.jpg" alt="enter image description here"></a></p>
  
  <p>Sample image 2</p>
  
  <p><a href="https://i.stack.imgur.com/TcjXJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TcjXJ.jpg" alt="enter image description here"></a></p>