Yolov4-Detector-and-Distance-Estimator icon indicating copy to clipboard operation
Yolov4-Detector-and-Distance-Estimator copied to clipboard

IndexError: invalid index to scalar variable. (CaptureReferenceImage.py)

Open renish97 opened this issue 3 years ago • 7 comments

[ WARN:0] global D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\dnn.cpp (1447) cv::dnn::dnn4_v20211004::Net::Impl::setUpNet DNN module was not built with CUDA backend; switching to CPU Traceback (most recent call last): File "CaptureReferenceImage.py", line 49, in ObjectDetector(frame) File "CaptureReferenceImage.py", line 36, in ObjectDetector label = "%s : %f" % (class_names[classid[0]], score) IndexError: invalid index to scalar variable. [ WARN:0] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (438) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback

renish97 avatar Dec 07 '21 13:12 renish97