Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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')
    

Metadata

Release files for telegen-shims-picamera 0.1.0.dev6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for telegen-shims-picamera 0.1.0.dev6
File Size Uploaded
telegen_shims_picamera-0.1.0.dev6.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for telegen-shims-picamera 0.1.0.dev6
File Interpreter ABI Platform
telegen_shims_picamera-0.1.0.dev6-py3-none-any.whl Python 3 none any Details

Total release size: 7.3 kB

Release files / telegen_shims_picamera-0.1.0.dev6.tar.gz

Download URL telegen_shims_picamera-0.1.0.dev6.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fcc5da3b1bfdc9900401b098d969e0df6f909fe41283f60acbe33265df9a67ea
BLAKE2b-256 checksum
How to use checksums
758ecc92ab7ef90cb8891e5df7aec96e85fd16d6c6da4c5c676c6299c2a06c40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / telegen_shims_picamera-0.1.0.dev6-py3-none-any.whl

Download URL telegen_shims_picamera-0.1.0.dev6-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1bd32786143c7312a5e05a78847fdf9ceda3eff7f21289369e90a3d626eac2ac
BLAKE2b-256 checksum
How to use checksums
ff2b49e1a333fb71a171deaa48cc8c115a894a0b67739e096edba9930f87a77b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.0.dev6 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page