Shims for the PiCamera library for the CounterFit virtual IoT device app
CounterFit Shims - Picamera
Shims for the Picamera to read from a virtual camera
See the Picamera Docs for the API documentation.
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
Install this package from pip:
pip install counterfit-shims-picamera
Import Picamera using the
counterfit_shims_picamerapackage instead of the
picamerapackage, as well as importing the
from counterfit_connection import CounterFitConnection import counterfit_shims_picamera
Configure the connection to the CounterFit app. Change the hostname and port to where you are running it:
Write your Picamers code as usual.
For example, to capture an image as a JPEG:
camera = PiCamera() image = io.BytesIO() camera.capture(image, 'jpeg')
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for counterfit_shims_picamera-0.1.0.dev5-py3-none-any.whl