我在Raspberry Pi中运行一个Python程序,我把它放在了.bashrc中,但是在启动时,OpenCV代码片段包含的文件没有加载,但是正常的Python程序正在运行,我在这个算法上使用KNN(K最近邻),我得到了以下错误。在
Traceback (most recent call last):
File "Desktop/carPlate/main.py", line 15, in <module>
import DetectChars
File "/home/pi/Desktop/carPlate/DetectChars.py", line 11, in <module>
kNearest = cv2.ml.KNearest_create()
AttributeError: 'module' object has no attribute 'ml'
目前没有回答
相关问题 更多 >
编程相关推荐