Skip to main content

MeerK40t Camera

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meerk40t-camera-0.1.9.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

meerk40t_camera-0.1.9-py2.py3-none-any.whl (9.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file meerk40t-camera-0.1.9.tar.gz.

File metadata

  • Download URL: meerk40t-camera-0.1.9.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for meerk40t-camera-0.1.9.tar.gz
Algorithm Hash digest
SHA256 b860811dd816a28ad55f65ea302834601c1e6f4d2c43d6526c97bcae519ea2fb
MD5 47d8d8cb4a0f559fc8d27e99e85b93cf
BLAKE2b-256 10ee40e838d2acc7b420fb665c4dad57009477e97a4c79364feeab72189f69de

See more details on using hashes here.

File details

Details for the file meerk40t_camera-0.1.9-py2.py3-none-any.whl.

File metadata

  • Download URL: meerk40t_camera-0.1.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for meerk40t_camera-0.1.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0acc41562964a0d5dbdc18b1b3ceb5e1557abf52681eb6e6c3682f4270858a19
MD5 fa20f7f7ceb462efeeb0cfaae1f7dd88
BLAKE2b-256 b818ec349268e570085cc2b546b5966082ced05faa769050dca0338d0320d9ee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page