Shims for the PiCamera library for the CounterFit virtual IoT device app
Project description
CounterFit Shims - Picamera
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_picamerapackage instead of thepicamerapackage, as well as importing theTeleGenConnectionfrom thecounterfit_connectionmodule: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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file telegen_shims_picamera-0.1.0.dev6.tar.gz.
File metadata
- Download URL: telegen_shims_picamera-0.1.0.dev6.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcc5da3b1bfdc9900401b098d969e0df6f909fe41283f60acbe33265df9a67ea
|
|
| MD5 |
428a1d0be2cc0850bcb2607001cfe240
|
|
| BLAKE2b-256 |
758ecc92ab7ef90cb8891e5df7aec96e85fd16d6c6da4c5c676c6299c2a06c40
|
File details
Details for the file telegen_shims_picamera-0.1.0.dev6-py3-none-any.whl.
File metadata
- Download URL: telegen_shims_picamera-0.1.0.dev6-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bd32786143c7312a5e05a78847fdf9ceda3eff7f21289369e90a3d626eac2ac
|
|
| MD5 |
cb490f9bf39a8c618b21918bbdbcb114
|
|
| BLAKE2b-256 |
ff2b49e1a333fb71a171deaa48cc8c115a894a0b67739e096edba9930f87a77b
|