Python 3.x 树莓皮中CV2.dnn_的检测
我的简历版本是4.1.0,因此我得到了这类错误:Python 3.x 树莓皮中CV2.dnn_的检测,python-3.x,raspberry-pi,Python 3.x,Raspberry Pi,我的简历版本是4.1.0,因此我得到了这类错误: Traceback (most recent call last): File "/home/pi/Desktop/Obj_Detection/ObjectDetectorModule.py", line 12, in <module> net = cv2.dnn_DetectionModel(weightsPath,configPath) AttributeError: module 'cv2.cv2' has
Traceback (most recent call last):
File "/home/pi/Desktop/Obj_Detection/ObjectDetectorModule.py", line 12, in <module>
net = cv2.dnn_DetectionModel(weightsPath,configPath)
AttributeError: module 'cv2.cv2' has no attribute 'dnn_DetectionModel'
回溯(最近一次呼叫最后一次):
文件“/home/pi/Desktop/Obj_Detection/ObjectDetectorModule.py”,第12行,在
net=cv2.dnn\u检测模型(权重、配置路径)
AttributeError:模块“cv2.cv2”没有属性“dnn\u DetectionModel”