In order to solve this error, I downloaded yolov4.weights and put under "YOLOv4" file but I get different error (error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
). How can I solve this error?
Traceback (most recent call last):
File "C:\Users\Ahmet\anaconda3\envs\yolou4\lib\threading.py", line 926, in _bootstrap_inner
self.run()
File "C:\Users\Ahmet\anaconda3\envs\yolou4\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Ahmet\Desktop\Object Detection Projeler\Object-Detection-and-Distance-Measurement\YOLOv4\object_detection.py", line 84, in frame_render
frame = cv2.resize(frame,(self.width, self.height))
cv2.error: OpenCV(4.5.2) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-dn5w5exm\opencv\modules\imgproc\src\resize.cpp:4051: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'