Skip to content

About

A stereo camera based on the Lucid PDH and associated tooling

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

96 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agrippa-stereocam

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:

What this repo provides

ag-cam-tools currently includes:

  • list for GigE camera discovery
  • connect for device inspection
  • capture for stereo frame export
  • stream for live preview, rectification, and AprilTag detection
  • focus for manual lens alignment with live focus scoring
  • calibration-capture for stereo dataset collection
  • depth-preview-classical for rectified disparity with SGBM controls
  • depth-preview-neural for ONNX-based stereo inference
  • calibration-stash for storing calibration sessions on-camera

Build

Core dependencies:

Optional dependencies:

  • apriltag for AprilTag detection in stream or the vendored fallback in vendor/apriltag
  • OpenCV 4 for the sgbm stereo backend
  • ONNX Runtime for the onnx stereo backend
git submodule update --init --recursive
make
sudo make install

More detailed setup is in docs/getting-started/installation.md.

Quick start

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:

Calibration and backends

Offline calibration notebooks live under calibration/. ONNX export notebooks live under backends/.

Testing

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.

Shell completions

Bash and zsh completions are installed by make install.

source completions/ag-cam-tools.bash
source completions/ag-cam-tools.zsh

Hardware snapshot

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.

Attribution

This project is licensed under Apache-2.0. Preserve NOTICE in redistributions and derivative works. Citation metadata is available in CITATION.cff.

About

A stereo camera based on the Lucid PDH and associated tooling

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages