meerk40t-camera
MeerK40t camera plugin. If you have meerk40t installed you can install the camera plugin. This gives the user access to cameras through the opencv module in Python. This plugin's job is to mediate the interactions between MeerK40t and OpenCV.
Installing
Pip
Since the plugin's value depends on interactions through the plugin api for MeerK40t it must be installed through pip.
$ pip install meerk40t-camera[cv]
This installs the meerk40t-camera and opencv-python-headless. The headless version of opencv provides all the functionality Meerk40t needs, so unless you are using opencv with other software that requires X11 this is the package recommended to you to install.
If you have a non-Meerk40t requirement for the additional functionality in one of the following opencv packages, then you can install the opencv-python package of your choice separately and install meerk40t camera using the following:
$ pip install meerk40t-camera
If you are installing opencv-python yourself then you can do so using one of the following commands:
$ pip install opencv-python$ pip install opencv-python-headless$ pip install opencv-contrib-python$ pip install opencv-contrib-python-headless
Note: Only one opencv-python package should be installed at any one time. If you have installed multiple versions, then you need to uninstall all of them and reinstall the one you want.
Directly
- Download into a directory:
$ pip install .
Development
To do development of meerk40t-camera you would need to load the plugin in edit mode for pip. This is because the running of Meerk40t depends on the plugin and utilizing the edits without reinstalling the plugin is extremely useful in that workflow.
- Download into a directory:
$ pip install -e .
Changing something that directly changes the the registered parts of the plugins (like the meerk40t.plugin values). Cases where you need to force the update by pip.
$ pip install -U -e .
Plugin
Once installed access is done through the CameraInterface window in meerk40t which is part of MeerK40t rather than meerk40t-camera. This is so that the meerk40t-camera plugin can interact with pure console interactions and does not require a gui.
--- image-array Commands ---
image image <operation>*
--- Base Commands ----
camera\d* camera commands and modifiers.
--- camera Commands ---
background set background image
export export camera image
fisheye fisheye subcommand
list list camera settings
perspective perspective (set <#> <value>|reset)
set set a particular setting in the camera
start Start Camera.
stop Stop Camera
Are the relevant camera commands. The image of type image-array is because the export camera command has an image-array type which is a non-PIL image format (since pil is not a requirement) but a simple numpy array (which is part of opencv).
export
(camera) -> export -> (image-array)
This sends the image to the scene, but if you wish to modify it or save it to disk you need the image command to convert the output here to a PIL image.
The base command takes an index for the camera. This can be any index and it will make any number of non-overlapping camera settings within that profile. Omitting the number uses the default that was used last time. camera start stop for example would turn on the camera and turn it back off. You can also set the perspective and fisheye values for the camera.
The set command passes particular settings to the opencv instance which permits setting a number of different values. This passes the setting to the camera but does little beyond trying to figure out the meaning and it's highly camera dependent as to whether that setting is used or does anything.
Metadata
Release files for meerk40t-camera 0.1.9
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 |
|---|---|---|---|---|
| meerk40t-camera-0.1.9.tar.gz | 11.1 kB | Without provenance | Details for meerk40t-camera-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| meerk40t_camera-0.1.9-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for meerk40t_camera-0.1.9-py2.py3-none-any.whl |
Total release size: 20.8 kB
Release files / meerk40t-camera-0.1.9.tar.gz
| Download URL | meerk40t-camera-0.1.9.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b860811dd816a28ad55f65ea302834601c1e6f4d2c43d6526c97bcae519ea2fb
|
|
BLAKE2b-256 checksum How to use checksums |
10ee40e838d2acc7b420fb665c4dad57009477e97a4c79364feeab72189f69de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|
Release files / meerk40t_camera-0.1.9-py2.py3-none-any.whl
| Download URL | meerk40t_camera-0.1.9-py2.py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0acc41562964a0d5dbdc18b1b3ceb5e1557abf52681eb6e6c3682f4270858a19
|
|
BLAKE2b-256 checksum How to use checksums |
b818ec349268e570085cc2b546b5966082ced05faa769050dca0338d0320d9ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|
Security for meerk40t-camera 0.1.9
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.