PyImageSearch / imutils

A series of convenience functions to make basic image processing operations such as translation, rotation, resizing, skeletonization, and displaying Matplotlib images easier with OpenCV and Python.
MIT License
4.54k stars 1.03k forks source link

FileVideoStream AttributeError: 'function' object has no attribute 'more' #173

Open phatberstromgg opened 4 years ago

phatberstromgg commented 4 years ago

I am following your instructions at https://www.pyimagesearch.com/2017/02/06/faster-video-file-fps-with-cv2-videocapture-and-opencv/, it's great for me. But I have problems when I try to edit my code according to your instructions. It's:

vs = FileVideoStream(args["input"]).start() time.sleep(1.0) while vs.more(): .....

the error is: AttributeError: 'function' object has no attribute 'more' I get filevideostream.py from this https://github.com/jrosebr1/imutils/blob/master/imutils/video/filevideostream.py Please help me, thank you