tensorflow-face-detection icon indicating copy to clipboard operation
tensorflow-face-detection copied to clipboard

NoneType' object has no attribute 'release'

Open aaronhan92 opened this issue 6 years ago • 2 comments

File "inference_video_face.py", line 101, in out.release() AttributeError: 'NoneType' object has no attribute 'release'

aaronhan92 avatar Sep 25 '18 07:09 aaronhan92

Is test.mp4 present in the media folder?

xiangyann avatar Sep 28 '18 02:09 xiangyann

You need to provide a path to the an actual video in your system since "test.mp4" used by the author to test the model in not provided. Lines to be changed are: #35: cap = cv2.VideoCapture("./media/test.mp4") and #59: out = cv2.VideoWriter("./media/test_out.avi", 0, 25.0, (w, h))

eypros avatar Dec 14 '18 07:12 eypros