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

Update PiVideoStream to let its method 'read' always return newly updated frame #231

Open kcoms555 opened 4 years ago

kcoms555 commented 4 years ago

Make PiVideoStream 'read' always return newly updated frame.

angadsingh commented 3 years ago

this just adds a busy-wait loop. a lousy solution to an already problematic piece of code.

kcoms555 commented 3 years ago

this just adds a busy-wait loop. a lousy solution to an already problematic piece of code. You are right. Is there any idea to update this pieces? A rough solution is maybe to apply an interruptible sleep functions. Any ideas?