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:
| Class | What it does | You write one when |
|---|---|---|
CamBackend | The source of data: opens a camera and pushes frames or detections | You add a new kind of camera |
CamProcessor | Takes one image, returns data | You want to detect or measure something in the image |
| Page | What it covers |
|---|---|
| Client API | What your program calls: set_backend, load_processor, set_processor, start_camera, reading detections, errors |
| Concept | How the pieces fit together and why processing runs in a service |
| Backends | CamBackend, selecting a backend, options, adding your own backend |
| Processors | Writing a CamProcessor, loading it, choosing and swapping the active one, and how the host runs it |
| Built-in Backends and Processors | The USB and replay backends and their options |
| The Service | Running the service (project or systemd service), settings, channels, commands and status |
| Status | What is verified, what is missing, what is still undecided |
| Logs and errors | The journal, the log of each run, and the errors your program and the UI get |