No project description provided
Project description
zbl
zbl is a Rust and Python library which aims to make it easy to integrate CV libraries (such as OpenCV) with
Windows Desktop apps for real-time processing. It does so by providing a simplified interface to
Windows.Graphics.Capture.
This library is not well-tested against corner cases, and was only verified to work for a 'happy path' scenarios, so beware of bugs!
Python
Installation
pip install zbl
Alternatively, you can install suitable wheel from releases page.
Usage
from zbl import Capture
with Capture('visual studio code') as cap:
frame = next(cap.frames())
print(frame.shape)
The snippet above will capture a window which title contains the string visual studio code, take one frame (which is represented as a numpy array) and print its shape.
To run an example using OpenCV's highgui:
- Install
opencv-python - Run
python -m zbl '<full or partial window name, case insensitive>'
Rust
See examples. Note: if you are getting OpenCV build errors when building the example, check out how to build OpenCV rust bindings.
Credits
zbl is heavily inspired by screenshot-rs.
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zbl-0.0.3-cp311-none-win_amd64.whl.
File metadata
- Download URL: zbl-0.0.3-cp311-none-win_amd64.whl
- Upload date:
- Size: 187.5 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
176e913b4749eaa4bb84ac56d7748d513a82934e701920ab3d263134b51a2470
|
|
| MD5 |
9ecff86f5b01a7be63655756e2b57894
|
|
| BLAKE2b-256 |
7203f7b526ce4ccd10d56119e983f48fc08df2b885accd9a0344028ccd4309d6
|
File details
Details for the file zbl-0.0.3-cp310-none-win_amd64.whl.
File metadata
- Download URL: zbl-0.0.3-cp310-none-win_amd64.whl
- Upload date:
- Size: 187.5 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9466c32c142381cc9f980b8703476cbdf3e91f81b8e9aa015e09756221709684
|
|
| MD5 |
35065aac11349e81adc09c8bd1ed4e96
|
|
| BLAKE2b-256 |
9e5cd2fc8e2e1eda510e0ea81547c4c6fd6622916e71dc09185174d4a09e3144
|
File details
Details for the file zbl-0.0.3-cp39-none-win_amd64.whl.
File metadata
- Download URL: zbl-0.0.3-cp39-none-win_amd64.whl
- Upload date:
- Size: 187.8 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5fad564706d17b3d66393550960dcd365f726eb8181f0f488b85240dd4f65b2
|
|
| MD5 |
f86d938fc638c038db92622de65d1505
|
|
| BLAKE2b-256 |
8d3e5623e9377a21e19aa793ee46cf177f1b2f9949960cc5635abf8f129c4cf5
|
File details
Details for the file zbl-0.0.3-cp38-none-win_amd64.whl.
File metadata
- Download URL: zbl-0.0.3-cp38-none-win_amd64.whl
- Upload date:
- Size: 187.9 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b194ce4b725da2f0d8d7a6209747d6d98da936229c7eead989abd1756bc6d51d
|
|
| MD5 |
6ce38db66f035a6893662523b55741b0
|
|
| BLAKE2b-256 |
82208e86336c7d024c32394284487425e2ed2b65f1689f38fe89501865adcc5f
|
File details
Details for the file zbl-0.0.3-cp37-none-win_amd64.whl.
File metadata
- Download URL: zbl-0.0.3-cp37-none-win_amd64.whl
- Upload date:
- Size: 187.9 kB
- Tags: CPython 3.7, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b536a57b202486d2790c6900d5eecc51f7aaad9409c231d74ef8ff5cf729b82
|
|
| MD5 |
33902ee275d950948cb11a5d1ccac858
|
|
| BLAKE2b-256 |
007dd94f2fe3fc60d8a67c9fccff665f19cf2dd75bf5655c0b5e4e5e0d60a610
|