我正试图用Python3编译一个Plate数据集生成器,但它编译得不好,我想这可能是所需库的版本之间的语法问题
我在下面留下链接https://github.com/tomcastro/licensePlateDatasetGenerator
程序会留下以下错误:
command: py -3 randomPlateGenerator.py
Traceback (most recent call last):
File "randomPlateGenerator.py", line 76, in <module>
randomPlateGenerator(style=style, reps=reps)
File "randomPlateGenerator.py", line 59, in randomPlateGenerator
numberToImage(licensePlate, style)
File "C:\Users\X\Desktop\licensePlateDatasetGenerator-master\licensePlateDatasetGenerator-master\numberToImage.py", line 48, in numberToImage
text += getBoundingBoxes(canvas_cp, lp, xoffset=20, yoffset=20)
File "C:\Users\X\Desktop\licensePlateDatasetGenerator-master\licensePlateDatasetGenerator-master\numberToImage.py", line 88, in getBoundingBoxes
im2, cnts, h = cv2.findContours(thresh, 1, 2)
ValueError: not enough values to unpack (expected 3, got 2)
最后,第1行名为randomPlateGenerator.py的文件必须将# coding: utf8
更改为#coding: utf-8
欢迎任何帮助
目前没有回答
相关问题 更多 >
编程相关推荐