upgraded-engineer
upgraded-engineer is a Python library for interacting with rusty-engine.
Installation
pip install upgraded-engineer
Dependencies
- GStreamer (base and bad plugins required for
upgraded-engineer, more required byrusty-engine) - Open CV (known working with >= 4.0.0, must be compiled with GStreamer support)
Usage
Importing is simple:
import engine
To simply start a new rusty-engine process, create an instance of the engine.Engine class. You will have to figure out how to write frames into the shared memory yourself. (Note that rusty-engine is expecting I420 color, and cannot determine what is being written for itself.)
Alternatively, using engine.EngineWriters provide the write_frame method to write "normal" Open CV BGR color frames into shared memory for streaming.
import engine
# see also: engine.GStreamerEngineWriter for a GStreamer-only impl
ew = engine.OpenCVEngineWriter()
# alternately, if we wanted smaller video
ew = engine.OpenCVEngineWriter(video_size=(426, 240, 30)) # width, height, framerate
Now, writing frames into shared memory is simple.
def on_new_frame_whenever_that_is_for_you(frame):
ew.write_frame(frame) # ew.write_frame handles the BGR to I420 conversion automagically
Metadata
Release files for upgraded-engineer 0.2.1
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 |
|---|---|---|---|---|
| upgraded-engineer-0.2.1.tar.gz | 4.1 kB | Without provenance | Details for upgraded-engineer-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| upgraded_engineer-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for upgraded_engineer-0.2.1-py3-none-any.whl |
Total release size: 9.9 kB
Release files / upgraded-engineer-0.2.1.tar.gz
| Download URL | upgraded-engineer-0.2.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6696c52951a076c28a13d280e950be3f128ee4901ac8bf11d5280aa6134f5ac7
|
|
BLAKE2b-256 checksum How to use checksums |
fbd521ba5645a83e8f1333066c49d841f04b28ff46be0b524e80e562246cbeda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7
|
Release files / upgraded_engineer-0.2.1-py3-none-any.whl
| Download URL | upgraded_engineer-0.2.1-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e98fcf314aabb49e01f7296845d59460e1beffc224ce35c0663f620cd727d4ac
|
|
BLAKE2b-256 checksum How to use checksums |
498ccaf0d73f5ce66d08c6dedc2627c004d55c5d22ded4bbc96af87125e61b9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7
|
Security for upgraded-engineer 0.2.1
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.