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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for opencv_tools-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03a44fb203961c0948ba83c99ff631e18ea12a4f4ef93a32f552e0d141fb425e |
|
MD5 | fec666e6c286011585ca375680b8c44d |
|
BLAKE2b-256 | 1f388c5dea18cfc52333c9f0140a0525adce46032220a082961ee463c9f5b106 |