I am also getting this error:
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
my code is:
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)
op=draw_bbox(frame, bbox, label, conf)
cv2.imshow("Object Detection", op)
if cv2.waitKey(0) & 0xFF == ord('q'):
break
Can anyone help me