53 lines
1.8 KiB
Markdown
53 lines
1.8 KiB
Markdown
# Examples
|
|
|
|
Top-level demo scripts under `examples/`. Run them from the repository root.
|
|
|
|
## Top-Level Files
|
|
|
|
- `README.md` — this overview of the root-level example entry points
|
|
- `app_paths.py` — path helpers used by the packaged / frozen dashboard entry point
|
|
- `basic_pipeline.py` — basic single-sensor OpenCV demo for the compound-eye pipeline
|
|
- `plot_data.py` — single-sensor demo with OpenCV views plus PyQtGraph force charts
|
|
- `two_sensor_pipeline.py` — two-sensor multiprocessing demo for parallel acquisition / display
|
|
- `finger_pipeline.py` — minimal finger UV-unroll pipeline with optional profiling
|
|
- `finger_pipeline_3dview.py` — main finger dashboard entry point with the unified Qt UI
|
|
|
|
## Typical Usage
|
|
|
|
For the Qt dashboard:
|
|
|
|
```bash
|
|
pip install -e ".[gui]"
|
|
python examples/finger_pipeline_3dview.py -v 0 -c ./config/dd02-ov.json
|
|
```
|
|
|
|
For the minimal finger pipeline:
|
|
|
|
```bash
|
|
python examples/finger_pipeline.py --camera_id 0 --config ./config/dd02-ov.json
|
|
```
|
|
|
|
For the basic compound-eye pipeline:
|
|
|
|
```bash
|
|
python examples/basic_pipeline.py -v 0 -c ./config/ddjx01.json
|
|
```
|
|
|
|
## Requirements
|
|
|
|
- SDK installed from the repository root, for example `pip install -e .`
|
|
- camera index or test video path
|
|
- matching config files under `./config/`
|
|
|
|
Qt / PyQtGraph examples additionally require:
|
|
|
|
```bash
|
|
pip install -e ".[gui]"
|
|
```
|
|
|
|
## Notes
|
|
|
|
- `finger_pipeline_3dview.py` is the main interactive demo. It uses `app_paths.py` so the same entry point works in editable and packaged runs.
|
|
- Dashboard controls: click **启动** to start acquisition; `Q` quits, `R` resets, `S` starts recording, `E` stops recording, and `Esc` toggles fullscreen.
|
|
- `finger_pipeline.py` is the leanest finger example if you want to validate UV unroll + force/contact processing without the full dashboard.
|