YOLOv3-Object-Detection-with-OpenCV icon indicating copy to clipboard operation
YOLOv3-Object-Detection-with-OpenCV copied to clipboard

AttributeError: 'NoneType' object has no attribute 'release'

Open Donostia opened this issue 6 years ago • 2 comments

I was trying to run "python3 yolo.py --video-path='/media/lamp-moving.mpg". (I am using 4.1.0 version of cv2)

And then the following error comes up:

Traceback (most recent call last): File "yolo.py", line 146, in writer.release() AttributeError: 'NoneType' object has no attribute 'release'

Thank you

Donostia avatar Jul 19 '19 07:07 Donostia

I met the same error! I want to know whether you have solved the error or not. Thank you.

GreatBruceYoung avatar May 15 '20 15:05 GreatBruceYoung

Don't know whether it is needed or not, but faced the same issue and it seems that the issue is faced when the video is not at that path. Check if the video path is correct or there is a video file on that path.

abhinavkaul95 avatar May 10 '21 18:05 abhinavkaul95