Skip to main content

Shims for the PiCamera library for the CounterFit virtual IoT device app

Project description

CounterFit Shims - Picamera

Picamera Shim PyPI

Shims for the Picamera to read from a virtual camera

See the Picamera Docs for the API documentation.

Getting started

To use these shims, you will need to install CounterFit and have it running, with the appropriate camera hardware created. Create the camera with a name of Picamera.

  • Install this package from pip:

    pip install telegen-shims-picamera
    
  • Import Picamera using the counterfit_shims_picamera package instead of the picamera package, as well as importing the TeleGenConnection from the counterfit_connection module:

    from counterfit_connection import TeleGenConnection
    import counterfit_shims_picamera
    
  • Configure the connection to the CounterFit app. Change the hostname and port to where you are running it:

    TeleGenConnection.init('127.0.0.1', 5000)
    
  • Write your Picamera code as usual.

    For example, to capture an image as a JPEG:

    camera = PiCamera()
    image = io.BytesIO()
    camera.capture(image, 'jpeg')
    

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

telegen_shims_picamera-0.1.0.dev6.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

telegen_shims_picamera-0.1.0.dev6-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file telegen_shims_picamera-0.1.0.dev6.tar.gz.

File metadata

File hashes

Hashes for telegen_shims_picamera-0.1.0.dev6.tar.gz
Algorithm Hash digest
SHA256 fcc5da3b1bfdc9900401b098d969e0df6f909fe41283f60acbe33265df9a67ea
MD5 428a1d0be2cc0850bcb2607001cfe240
BLAKE2b-256 758ecc92ab7ef90cb8891e5df7aec96e85fd16d6c6da4c5c676c6299c2a06c40

See more details on using hashes here.

File details

Details for the file telegen_shims_picamera-0.1.0.dev6-py3-none-any.whl.

File metadata

File hashes

Hashes for telegen_shims_picamera-0.1.0.dev6-py3-none-any.whl
Algorithm Hash digest
SHA256 1bd32786143c7312a5e05a78847fdf9ceda3eff7f21289369e90a3d626eac2ac
MD5 cb490f9bf39a8c618b21918bbdbcb114
BLAKE2b-256 ff2b49e1a333fb71a171deaa48cc8c115a894a0b67739e096edba9930f87a77b

See more details on using hashes here.

Supported by

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