StructuredLight source adapter — OpenNI2 (Xtion/Kinect) and librealsense (RealSense) #11
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/raven#11
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implement
StructuredLightSourceadapter for the DepthFusion layer.Backends:
openni2Python bindings)pyrealsense2Probe logic: try
openni2.initialize()first, thenpyrealsense2.pipeline(). If neither imports or no device found,is_available()returns False.Output: aligned RGB + depth frames at 30fps. Depth map in mm.
get_3d_landmarks()uses the depth map to lift MediaPipe 2D landmarks to 3D using the camera intrinsics.Optional dependency group in pyproject.toml:
merlin[depth-structured]→openni2>=0.2,pyrealsense2>=2.50.Sub-centimeter accuracy at hand distances. Best source when hardware present.