问题描述
尝试在 OpenCV 的 dnn_DetectionModel 中加载配置和权重文件,
但它显示了这个错误。
使用 pip install --upgrade opencv-python
将 OpenCV 升级到最新版本,但仍然显示错误。
文件都在同一个文件夹中
import cv2 as cv
config_file= 'ssd_mobilenet_v3_large_coco_2020_01_14.pbtxt'
frozen_model= 'frozen_inference_graph.pb'
model= cv.dnn_DetectionModel(frozen_model,config_file)
class 'cv2.dnn_DetectionModel'> returned a result with an error set
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)