OpenCV System Error<class 'cv2.dnn_DetectionModel'> returned a result with an error set

1.4k views Asked by At

Tried to load the config and weights file in OpenCV's dnn_DetectionModel, But it shows this error. Upgraded OpenCV to its latest version using pip install --upgrade opencv-python but it's still showing the error. The files are all in the same folder

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)

Shows this error

class 'cv2.dnn_DetectionModel'> returned a result with an error set
0

There are 0 answers