cv2.error: OpenCV(4.9.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\darknet\darknet_io.cpp:705: error: (-215:Assertion failed) separator_index < line.size() in function ‘cv::dnn::darknet::ReadDarknetFromCfgStream’
here is the code :
import cv2
import cvlib as cv
from cvlib.object_detection import draw_bbox
from gtts import gTTS
from playsound import playsound
video = cv2.VideoCapture(0)
while True:
ret, frame=video.read()
bbox,label,conf=cv.detect_common_objects(frame,enable_gpu=True)
cv2.imshow("Object Detection", output_image)
if cv2.waitkey(1) & 0xFF == ord(" "):
break
i am getting error in this “bbox,label,conf=cv.detect_common_objects(frame,enable_gpu=True)”