Assertion error: cannot capture camera
Hi,
I am trying to run the demo on a video file on windows setup.
python ./flow --model cfg/yolo-new.cfg --load bin/yolo-new.weights --demo videofile.avi
I get an assertion error: cannot capture camera.
However, the demo on images work well.

put full path of video within double quotes
Still get the same error even after providing full path within quotes :(
did u replace backward slash with forward slash also try providing other(.mp4) videos formats..
I tired with the forward, backward slash and also on a avi file. it does not work. When looked into the code, it looks like it requires a webcam input and the code is not modified to take a video input.
def camera(self, file):
camera = cv2.VideoCapture(0)
self.say('Press [ESC] to quit demo')
assert camera.isOpened(),
'Cannot capture source'
I think this has been fixed in the latest commits. Hence closing the issue.
how does one fix this issue