Code sharing for identifying license plates

interface

The interface is for automatic positioning and recognition of license plates, returning the region number and license plate number and license plate color:

# 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:\

Guess you like

Origin blog.csdn.net/weixin_43097956/article/details/133359846