opencv-proto
https://github.com/idlesign/opencv-proto
Work in progress. Stay tuned.
Description
Allows fast prototyping in Python for OpenCV
Offers primitives and simplified interfaces to streamline prototypes construction in Python.
Facilitates:
Windows construction and management
Trackbar construction
Configuration save/load (including trackbar values)
Key binding (e.g. for trackbar control, configuration save/load)
Video capturing and modification
Work with images
Work with text
Frames transformation
Samples
Color Palette
Let’s replace 37 lines of source code from Trackbar as the Color Palette tutorial with ocvproto-based implementation:
from ocvproto.toolbox import WindowManager, Canvas
with WindowManager() as wm:
rgb = wm.window.add_trackbar_group(['R', 'G', 'B'], max=255)
for _ in wm.app.loop():
wm.set_frame(Canvas(512, 300, color=rgb))
Camera capture
Now let’s capture video camera stream into ocvproto.avi file, being able to adjust blur.
Let’s also setup config filepath (ocvproto.json) - this allows us to store current trackbar values (s key) and load them (r key). It is useful to restore settings between sessions.
We bind z key to take camera shots.
from ocvproto.toolbox import WindowManager, Camera
with WindowManager() as wm:
wm.app.set_config('ocvproto.json')
blur = wm.window.add_trackbar_group(['x', 'y'], 'Blur', default=1)
with Camera() as cam:
wm.app.bind_key('z', cam.dump_image)
for _ in wm.app.loop():
cam.read()
cam.blur(blur)
cam.dump()
wm.set_frame(cam)
Read the documentation.
Requirements
Python 3.6+
opencv-python (or variants)
Quick install with third-parties: $ pip install opencv-proto[all]
Documentation
Metadata
Release files for opencv-proto 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| opencv-proto-0.3.0.tar.gz | 19.2 kB | Without provenance | Details for opencv-proto-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| opencv_proto-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for opencv_proto-0.3.0-py2.py3-none-any.whl |
Total release size: 38.2 kB
Release files / opencv-proto-0.3.0.tar.gz
| Download URL | opencv-proto-0.3.0.tar.gz |
|---|---|
| Size | 19.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29a40f62aab66b3810a8c25489c3f03d06517dd6438248df0d7a902fc40cf5af
|
|
BLAKE2b-256 checksum How to use checksums |
ac5565b9871eaf5771a1ee3b9da61754e19f538515ff4286299e2f3e82b66cec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Release files / opencv_proto-0.3.0-py2.py3-none-any.whl
| Download URL | opencv_proto-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f16d7861d396c271f32ea5f382795a32407e4f5e3925521b587d65b60e8b9a66
|
|
BLAKE2b-256 checksum How to use checksums |
20975e9a5f4de52901708d1ad8668bb3ab1e5254252663302a36456639577ad3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for opencv-proto 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.