Record OAK-D PoE probe results
This commit is contained in:
parent
1a949885a2
commit
3e49714296
4 changed files with 100 additions and 0 deletions
39
problems/2026-05-25-depthai-poe-pipeline-switch-crash.md
Normal file
39
problems/2026-05-25-depthai-poe-pipeline-switch-crash.md
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# DepthAI PoE Pipeline Switch Crash
|
||||
|
||||
## Context
|
||||
|
||||
On 2026-05-25, an OAK-D PoE at `192.168.1.100` was probed from Windows using Python `depthai` version `3.6.1`.
|
||||
|
||||
The device was reachable on TCP port `11490`, reported as `OAK-D-POE`, and could capture RGB, mono, rectified stereo, and depth frames.
|
||||
|
||||
## Symptom
|
||||
|
||||
Capturing RGB/mono and then switching to a stereo-depth pipeline in the same Python process caused a native DepthAI/device crash:
|
||||
|
||||
```text
|
||||
Device crashed, but no crash dump could be extracted.
|
||||
Device likely crashed but did not reboot in time to get the crash dump
|
||||
RuntimeError: Device already closed or disconnected: io error
|
||||
```
|
||||
|
||||
An earlier attempt to read device features/calibration and then build camera pipelines in the same process also crashed inside the native DepthAI API.
|
||||
|
||||
## Working Recovery
|
||||
|
||||
Split RGB/mono and stereo-depth capture into separate Python processes, with a short reconnect delay:
|
||||
|
||||
```powershell
|
||||
py tools\oakd_poe_probe.py --ip 192.168.1.100 --output out\oakd_poe_probe --skip-depth --reconnect-delay 4
|
||||
py tools\oakd_poe_probe.py --ip 192.168.1.100 --output out\oakd_poe_probe_depth --only-depth --skip-eeprom --reconnect-delay 4
|
||||
```
|
||||
|
||||
This successfully saved:
|
||||
|
||||
- device report and EEPROM calibration;
|
||||
- RGB and mono frames;
|
||||
- rectified stereo frames;
|
||||
- raw 16-bit depth and depth preview.
|
||||
|
||||
## Guidance
|
||||
|
||||
For OAK-D PoE diagnostics, prefer short-lived DepthAI processes until the C++ integration is designed and tested. If the device crashes, wait for it to return on `192.168.1.100:11490` before reconnecting.
|
||||
|
|
@ -18,3 +18,4 @@ Current entries:
|
|||
- `2026-05-24-windows-openssh-admin-authorized-keys.md`
|
||||
- `2026-05-24-kamaz-cleaner-telemetry-commit-mass-deletions.md`
|
||||
- `2026-05-24-local-git-server-bare-repo-group-permissions.md`
|
||||
- `2026-05-25-depthai-poe-pipeline-switch-crash.md`
|
||||
|
|
|
|||
|
|
@ -1343,3 +1343,44 @@ Comparison:
|
|||
Note:
|
||||
|
||||
- The live preview still showed an older color pattern on the other projector. For final marker-grid capture, blank the inactive projector or add a synchronized dual-projector marker-grid command so both projectors show unique id ranges simultaneously.
|
||||
|
||||
## 2026-05-25 - OAK-D PoE And Added USB Cameras
|
||||
|
||||
User added two more USB cameras and an OAK-D PoE camera, then provided OAK-D IP `192.168.1.100`.
|
||||
|
||||
Implemented and documented:
|
||||
|
||||
- Added `tools/oakd_poe_probe.py` as a repeatable Python DepthAI diagnostic tool.
|
||||
- Added `docs/step_32_oakd_poe_probe.md`.
|
||||
- Updated `AGENTS.md` and `README.md` with the OAK-D probe commands.
|
||||
- Updated the marker-grid implementation so marker scale `1.0` fills the tile while preserving the requested ArUco quiet zone inside the tile. This supports the user's no-gap marker-grid boundary workflow.
|
||||
|
||||
Verification:
|
||||
|
||||
```powershell
|
||||
Test-NetConnection 192.168.1.100 -Port 11490
|
||||
py -c "import depthai as dai; print(dai.__version__)"
|
||||
py tools\oakd_poe_probe.py --ip 192.168.1.100 --output out\oakd_poe_probe --skip-depth --reconnect-delay 4
|
||||
py tools\oakd_poe_probe.py --ip 192.168.1.100 --output out\oakd_poe_probe_depth --only-depth --skip-eeprom --reconnect-delay 4
|
||||
.\build\Release\calibrator_cli.exe --probe-hardware out\hardware_probe_after_oakd 12
|
||||
.\build\Release\calibrator_cli.exe --generate-marker-grid 2 out\marker_grid_left_mono_tight_verify 24 13 1.0 0.04 mono
|
||||
.\build\Release\calibrator_cli.exe --detect-marker-grid out\marker_grid_left_mono_tight_verify\marker_grid.png out\marker_grid_left_mono_tight_verify_detect
|
||||
```
|
||||
|
||||
Results:
|
||||
|
||||
- OAK-D PoE reachable on `192.168.1.100:11490`.
|
||||
- Python `depthai` version `3.6.1`.
|
||||
- Device: `OAK-D-POE`, mxid/device id `184430102127401300`.
|
||||
- Cameras: `CAM_A` IMX378 color `4056x3040`, `CAM_B` OV9282 `1280x800`, `CAM_C` OV9282 `1280x800`.
|
||||
- EEPROM calibration was saved to `out\oakd_poe_probe\oakd_calibration_eeprom.json`.
|
||||
- RGB/mono frames were saved in `out\oakd_poe_probe`.
|
||||
- Depth was saved in a separate stable pass at `out\oakd_poe_probe_depth`; valid depth pixels `33,078`, min `940 mm`, max `12,973 mm`, mean `3004.42 mm`.
|
||||
- Current OAK-D images show the room/desk rather than the curved screen. OAK-D must be physically aimed at the screen before it can help mapping calibration.
|
||||
- `--probe-hardware` now sees 10 OpenCV camera indices. Useful screen cameras are `4`, `5`, `6`, and `7`; `8` and `9` look like duplicate virtual/test streams.
|
||||
- Kinect color and network camera still capture successfully during hardware probe.
|
||||
- Tight marker-grid offline verification detected `312/312` markers.
|
||||
|
||||
Important nuance:
|
||||
|
||||
- Running RGB/mono and stereo depth in the same DepthAI process caused the PoE device/runtime to crash once. The stable workflow is to split RGB/mono and depth into separate commands, as documented in Step 32.
|
||||
|
|
|
|||
|
|
@ -243,6 +243,24 @@ Create a new open-source automatic projection calibration module for Unreal Engi
|
|||
- Offline mono dense PNG detection: left/right `312/312`.
|
||||
- Live mono dense left-projector detection on current cameras: network `180`, USB `camera4` `91`, USB `camera5` `249`. This is a major improvement over color dense (`5/13/32`) and should be the recommended dense boundary mode.
|
||||
- Note: during the live test, the other projector still showed an older/color pattern in the network view. For final capture, blank the other projector or project unique marker grids on both projectors in a synchronized command.
|
||||
- Step 32 OAK-D PoE diagnostics were added after the user connected an OAK-D PoE at `192.168.1.100`.
|
||||
- Python `depthai` is installed and verified as version `3.6.1`.
|
||||
- Network check to `192.168.1.100:11490` succeeds.
|
||||
- Device reports as `OAK-D-POE`, mxid/device id `184430102127401300`.
|
||||
- Connected cameras: `CAM_A` IMX378 color `4056x3040`; `CAM_B` and `CAM_C` OV9282 mono/color `1280x800`.
|
||||
- `tools/oakd_poe_probe.py` was added as a repeatable Python diagnostic until the C++ `depthai-core` dependency is selected.
|
||||
- Stable split commands:
|
||||
- `py tools\oakd_poe_probe.py --ip 192.168.1.100 --output out\oakd_poe_probe --skip-depth --reconnect-delay 4`
|
||||
- `py tools\oakd_poe_probe.py --ip 192.168.1.100 --output out\oakd_poe_probe_depth --only-depth --skip-eeprom --reconnect-delay 4`
|
||||
- Outputs include OAK-D EEPROM calibration JSON, RGB/mono frames, rectified stereo frames, raw depth, depth preview, and JSON frame reports.
|
||||
- Current OAK-D view is not aimed at the projection screen: RGB/mono see the room/desk area, while depth works with about `33,078` valid depth pixels and mean depth about `3004 mm`. Reposition OAK-D toward the curved screen before using it for marker/GrayCode calibration.
|
||||
- Hardware probe after adding two USB cameras and OAK-D was verified in `out\hardware_probe_after_oakd`.
|
||||
- Displays remain active as primary index `0`, right projector index `1`/`DISPLAY2`, left projector index `2`/`DISPLAY3`.
|
||||
- USB `camera4` and `camera5` remain useful screen views.
|
||||
- New USB `camera6` and `camera7` are useful additional screen views.
|
||||
- `camera8` and `camera9` appear to be duplicate virtual/test streams and should not be used for calibration until proven otherwise.
|
||||
- Kinect color and the network camera are still captured by `--probe-hardware`.
|
||||
- Tight no-gap marker-grid defaults were updated but should still preserve the ArUco white quiet zone internally. Offline verification with `24x13 1.0 0.04 mono` detected `312/312` generated markers.
|
||||
|
||||
## Next Actions
|
||||
|
||||
|
|
@ -250,6 +268,7 @@ Create a new open-source automatic projection calibration module for Unreal Engi
|
|||
- Continue from the PFM lookup prototype toward a real screen-geometry warp: integrate Kinect/depth or fitted screen surface, verify Unreal nDisplay PFM coordinate convention, and then export final warp geometry.
|
||||
- Prioritize warp correctness before further blend work: refine projector-to-surface mapping so horizontal check lines follow the physical screen bend and overlap features align in camera views.
|
||||
- Implement a camera-observed local warp correction step using dense marker grids: match detected marker ids to `marker_grid_manifest.csv`, estimate visible screen boundary/coverage from readable ids, compare marker centers to predicted screen-local coordinates, then fit a correction field for each projector.
|
||||
- Reposition OAK-D PoE so its RGB/mono/depth views see the curved projection screen, then rerun the split OAK-D probe before adding it to marker-grid or GrayCode workflows.
|
||||
- Continue blend work only after geometry is acceptable: seam-local geometry correction, coverage-aware refinement, and later brightness/black-level compensation.
|
||||
- Verify Unreal nDisplay PFM semantics against documentation or an Unreal test project. If nDisplay expects a different coordinate basis or normalized warp fields, add an explicit converter from the current metric `x_m,y_m,z_m` PFM.
|
||||
- Treat `network` as a normal additional calibration camera whenever local `.env.local` or `MAPPING_NETWORK_CAMERA_URL` is available; decode it with camera name `network`.
|
||||
|
|
|
|||
Reference in a new issue