3.4 KiB
3.4 KiB
ProjectionMapping Manual Kinect Calibration Workflow
Use this workflow when continuing the garage ProjectionMapping calibration pass on wuu with Kinect 2.0 and manual RGB alignment.
Preconditions
- Use
C:\git\ProjectionMapping-webcam. - Launch with:
.\run.bat
- Kinect 2.0 should be the active camera.
- In the wizard, the camera step should show approximately:
- Color:
1920x1080 - Depth:
512x424
- Color:
- Use LAN/local projector control only unless the user asks otherwise.
- For first calibration, avoid projector stereo
top/bottom; use full-frame output where possible.
Projector Setup
- Start the local server in
Projection Mapping. - Prefer
Localhostenabled, IP127.0.0.1, UDP port27015. - In
Projection Mapping > Local projectors, mark only projector displays asIs projector. - On
wuu, the observed layout was:- BenQ primary monitor: do not mark as projector.
- Two Optoma
Generic PnP Monitor (1920x1080)displays: mark as projectors.
- For troubleshooting, calibrate one Optoma at a time.
Object Setup
- Load
assets\models\screenMerc3.fbxor the correct screen mesh. - Select it in the Scene panel.
- Click
Make this object trackable. - In
Tracker, enableShow RGB overlay. - Press
View through Kinect RGBif available. - Set
RGB overlay opacityaround0.45so both the camera image and 3D model are visible. - Manually align the mesh so the red outline matches the physical screen in the Kinect RGB image.
- In the wizard, use
Use current manual alignment/Manual RGB alignment.
Observed approximate screenMerc3 transform from one close alignment:
Position: -0.400, -0.690, -3.400
Rotation: 359.300, 276.000, 0.300
Scale: 0.970, 0.970, 0.970
Treat this as a starting point only; real camera/projector placement changes it.
Pattern Capture
- Go to
Calibration Wizard > Patterns. - Click
Clear pattern captures. - Click
Project calibration patterns. - Do not touch the camera, projector, or screen during capture.
- Confirm physical projector images change with black/white or gray-code stripes.
- Inspect
calibration_temp; a successful capture for 1920x1080 projectors should create one directory per marked projector with 46image*.pngfiles.
Before Running Solver
If calibration fails with:
Could not choose a unique projector pose seed. Scores: 0, 0, 0, 0
check whether pattern frames actually differ. If they do, inspect geometry/correspondence validity, not only projector output.
The local diagnostic build in C:\git\ProjectionMapping-webcam logs:
Projector '<id>' seed correspondences: decoded=<n>, on model=<n>
- High
decoded, lowon model: manual mesh alignment, model orientation/scale, rendered point-cloud mask, or camera intrinsics/view are likely wrong. - Low
decoded: projector pattern capture, camera exposure, projector selection, or stereo layout is likely wrong. - High both but scores still zero: inspect coordinate handedness/orientation and projector/camera intrinsics.
Known Local Fix
After a crash on 2026-05-24, C:\git\ProjectionMapping-webcam\src\calibration\calibration.cpp was patched locally to:
- log decoded vs on-model seed correspondences;
- skip seed/solver when fewer than 8 valid correspondences remain;
- log when calibration produces no valid results.
C:\git\ProjectionMapping-webcam is not a Git checkout, so copy this fix into the source-of-truth repository if it should persist.