识别车牌的代码分享

接口

接口为车牌的自动定位和识别,返回地域编号和车牌号车牌颜色:

# pip install poocr

import poocr

# 可以填写本地图片的地址:img_path,也可以填写在线图片的地址:img_url

# 如果2个都填,则只用在线图片img_url

# configPath是配置文件的信息,可以不填

Number = poocr.ocr.LicensePlateOCR(

    img_path=r'C:\Users\惠惠软件\temp\math_img.jpg',

    img_url=r'https://python-office-1300615378.cos.ap-chongqing.myqcloud.com/2-free-group.jpg',

    configPath=r'D:\

猜你喜欢

转载自blog.csdn.net/weixin_43097956/article/details/133359846