Skip to content

Implemented stereo depth node with RGB cam alignment#3

Merged
hari495 merged 3 commits into
mainfrom
feature/stereo-depth-node
Feb 4, 2026
Merged

Implemented stereo depth node with RGB cam alignment#3
hari495 merged 3 commits into
mainfrom
feature/stereo-depth-node

Conversation

@hari495
Copy link
Copy Markdown
Contributor

@hari495 hari495 commented Feb 4, 2026

Added stereo_node.py which creates the stereo depth node(can create a depth map using this node) and aligns it to the RGB camera for the Spatial Detection pipeline.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements a stereo depth node for creating depth maps and aligning them to the RGB camera for spatial detection in the target tracking pipeline. The implementation creates and configures a DepthAI StereoDepth node with mono cameras.

Changes:

  • Added stereo_node.py module with stereo depth node creation functionality
  • Configured mono cameras (left and right) with 400p resolution
  • Set up depth alignment to RGB camera and enabled quality improvements (subpixel, left-right check)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

# Improve quality
stereo.setSubpixel(True)
stereo.setLeftRightCheck(True) # Removes ghost pixels at edges
# Change to True if <50cm need tracking needed
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment has a grammatical error with redundant wording. The phrase "need tracking needed" should be revised to either "tracking is needed" or "tracking needed" for clarity.

Suggested change
# Change to True if <50cm need tracking needed
# Change to True if tracking is needed for distances <50cm

Copilot uses AI. Check for mistakes.
@hari495 hari495 merged commit 45d5406 into main Feb 4, 2026
1 check passed
@hari495 hari495 deleted the feature/stereo-depth-node branch February 4, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants