Metadata-Version: 2.1
Name: opencv-tools
Version: 0.1
Summary: Simple tools to help with opencv experimenting.
Home-page: https://github.com/wojtke/opencv-tools
Author: Wojciech Jasiński
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

### 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.

