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

Add support for skipping frames #272

Open DarwinsBuddy opened 2 years ago

DarwinsBuddy commented 2 years ago

Add support for skipping frames (in case videofile has malformed frames)

Add delegate call to get stream dimensions Replace long polling put queue with built-in blocking wait for put (with configurable timeout on instantiation)

DarwinsBuddy commented 2 years ago

@timgates42 Hi, I wanted to use FileVideoStream to read some go pro footage and process frames with it (as it has a built-in frame buffer). Unfortunately FileVideoStream dropped my video after some frames, as there where unreadable or malformed frames in my file. Skipping over them resolved it. I thought, maybe someone else got the same issues and prefers skipping those frames if they appear. See also added a function returning stream dimensions. cheers ;)