python-中国车牌模拟生成器(仅用于车场测试使用)(转)
Git地址:https://gitee.com/leijd/chinese_license_plate_generator
报错的话需要修改代码:
font_img = cv2.imread(font_filename, cv2.IMREAD_GRAYSCALE)
OpenCV cv2.imread()函数无法读取以中文命名的图像文件,解决方案:
font_img = cv2.imdecode(np.fromfile(font_filename, dtype=np.uint8), 0)
参考:https://gitee.com/leijd/chinese_license_plate_generator/issues/I1NOC7