Camera toolkit for Lucid GigE Vision cameras. The primary target is the Lucid Phoenix PHD016S dual-head stereo camera, with monocular Lucid cameras (e.g. Triton TRT016S) supported for the non-stereo subcommands (list, connect, stream, single-shot capture). It covers camera discovery, capture, live preview, focus alignment, calibration workflows, and classical or neural depth preview.
Sensor topology (stereo vs mono) is auto-detected at camera open by probing the device’s available pixel formats — DualBayerRG8 advertises stereo, anything else falls back to mono. Subcommands that intrinsically need two eyes (depth-preview-*, depth-capture, focus, calibration-capture, --burst) reject mono cameras with a clear error.
Documentation now lives in the dedicated docs site:
ag-cam-tools currently includes:
list for GigE camera discoveryconnect for device inspectioncapture for stereo frame exportstream for live preview, rectification, and AprilTag detectionfocus for manual lens alignment with live focus scoringcalibration-capture for stereo dataset collectiondepth-preview-classical for rectified disparity with SGBM controlsdepth-preview-neural for ONNX-based stereo inferencecalibration-stash for storing calibration sessions on-cameraCore dependencies:
pkg-configOptional dependencies:
apriltag for AprilTag detection in stream or the vendored fallback in vendor/apriltagsgbm stereo backendonnx stereo backendgit submodule update --init --recursive
make
sudo make install
More detailed setup is in docs/getting-started/installation.md.
ag-cam-tools list
ag-cam-tools connect -a 192.168.0.201
ag-cam-tools capture -a 192.168.0.201 -e png -o ./frames
ag-cam-tools stream -a 192.168.0.201 -A
For command-specific examples and options, use the CLI docs:
Offline calibration notebooks live under calibration/. ONNX export notebooks live under backends/.
The repo has unit tests and hardware integration tests.
make test
make test-hw
make test-all
Detailed testing guidance is in docs/workflows/testing.md.
Bash and zsh completions are installed by make install.
source completions/ag-cam-tools.bash
source completions/ag-cam-tools.zsh
Primary platform: Lucid Phoenix PHD 1.6 MP Dual Extended-Head (IMX273)
| Parameter | Value |
|---|---|
| Baseline | 40 mm |
| Lens focal length | 3 mm |
| Sensor resolution | 1440 x 1080 px per head |
| Pixel size | 3.45 um |
| Interface | 1000BASE-T (GigE Vision) |
| Power | PoE or 12-24 VDC |
Also supported (non-stereo subcommands only): monocular Lucid GigE cameras such as the Triton TRT016S (1440 x 1080 single-sensor, BayerRG8). Detection is automatic via the camera’s advertised pixel formats; if the model whitelist needs to take over for unusual firmware, see the implementation in src/common.c:detect_sensor_mode.
Additional hardware notes live in docs/hardware/circuits.md.
This project is licensed under Apache-2.0. Preserve NOTICE in redistributions and derivative works. Citation metadata is available in CITATION.cff.