a simple wrapper for cv2 common stuff
pip install simple-cv2-wrapperthe 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 + cor pressing theexitbutton on the window or just pressing the letterqalone. - frames can be accessed by iterating over the context manager
- 0.1.0
- initial release and uploaded to pypi