a simple wrapper for cv2 common stuff
pip install simple-cv2-wrapper
the most basic usage
with CV2Capture(0) as video:
for frame in video:
video.show(frame) # video.show() also works if there is no modification on the frame
- access cv2.VideoCapture within context manager. which handles exits when invoking
ctrl + c
or pressing theexit
button on the window or just pressing the letterq
alone. - frames can be accessed by iterating over the context manager
- 0.1.0
- initial release and uploaded to pypi