Py学习  »  Python

如何用python提取和识别车牌号?

Sid • 5 年前 • 2377 次点击  

我曾尝试使用pytesseract与pil协作,从车牌图像中识别车辆注册号。但无法从这些图像中获取文本。

代码:

 from PIL import Image
 from pytesseract import image_to_string

 img= Image.open('D://carimage1')
 text = image_to_string(img)
 print(text)

虽然这对正常扫描的文档有效,但对车辆牌照无效。

示例图像1

enter image description here

示例图像2

enter image description here

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/44191
 
2377 次点击  
文章 [ 3 ]  |  最新文章 5 年前