raccoon-cam

raccoon-cam is the camera part of RaccoonOS, split out of individual robot projects. A service owns the camera and runs your image processing, and your program reads the results through a small client.

Work in progress. The package, the service and the client are written and tested against an in-memory bus and a fake camera. They have not run on a robot with a real camera yet, and the service has not run as a system service on a robot. Status lists what is verified and what is not.

You work with two kinds of classes, and both are things you can inherit from:

ClassWhat it doesYou write one when
CamBackendThe source of data: opens a camera and pushes frames or detectionsYou add a new kind of camera
CamProcessorTakes one image, returns dataYou want to detect or measure something in the image
PageWhat it covers
Client APIWhat your program calls: set_backend, load_processor, set_processor, start_camera, reading detections, errors
ConceptHow the pieces fit together and why processing runs in a service
BackendsCamBackend, selecting a backend, options, adding your own backend
ProcessorsWriting a CamProcessor, loading it, choosing and swapping the active one, and how the host runs it
Built-in Backends and ProcessorsThe USB and replay backends and their options
The ServiceRunning the service (project or systemd service), settings, channels, commands and status
StatusWhat is verified, what is missing, what is still undecided
Logs and errorsThe journal, the log of each run, and the errors your program and the UI get
Written by Mario Scholze