This repository contains Python tools for working with the Raspi IMX500 sensor. The tools provided here will help you interface with the sensor and process data.
To install the required dependencies, run:
sudo chmod +x install.sh
./install.shActivate the environment:
source IMX500-Python-Tools/bin/activateA simple script that caches a selected model on the IMX500 by starting and stopping the camera.
This script pipes the detections to a Unix socket in JSON format. Includes debug options to enable easier development and testing outside of raspi, such as mock detections generator and UDP mode.
python socket_stream.py [start|stop] [mock|camera] [--verbose] [--udp]See config.py for various configuration options.
Example client scripts that connect to the relevant socket and process streamed detection data.
- Allow parsing of bounding box coordinates and camera resolution
- Allow custom arguments for camera resolution