Simple tools to help with opencv experimenting.
Project description
Simple OpenCV tools
Simple tools I use to make my life easier when working with OpenCV.
Not very pythonic:
cap = cv.VideoCapture(0)
if not cap.isOpened():
exit()
while True:
ret, frame = cap.read()
if not ret:
break
cv.imshow('frame', gray)
if cv.waitKey(1) == ord('q'):
break
cap.release()
cv.destroyAllWindows()
I like this better:
with VideoPreview() as vid:
for frame in Capture(0):
vid.show(frame)
Maybe not everything is explicit, however it's a lot easier to read.
Likely I'm gonna add more stuff in the future.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
opencv-tools-0.1.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for opencv_tools-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afe1fa98b39ee84244474c42fd5c64df9ef728bcce679a1c8f081f4dec66adc0 |
|
MD5 | 1436a2416bae1731c0e6282dc2d54543 |
|
BLAKE2b-256 | 2a28ad69187336e4a023afc1af73d35680d956eda90879a7930750b453ba445f |