Skip to content

Conversation

@FSAFTik
Copy link
Contributor

@FSAFTik FSAFTik commented Jan 14, 2026

Purpose

Update codebase to new snaps update

Specification

Changed the existing examples who use SnapsUploder/SnapsData to use new version of SnapsUploder/SnapsData

Dependencies & Potential Impact

Depends on snapsUpdate PR and new depthai_nodes release

Deployment Plan

Has to be merged after new depthai_nodes release (0.3.8)

Testing & Validation

Manually tested

Copy link
Contributor

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 pull request updates the codebase to use the new version of SnapData and SnapsUploader APIs from depthai-nodes. The changes refactor how snap data is created by introducing the FileGroup pattern, which encapsulates image-detection pairs before passing them to SnapData.

Changes:

  • Updated SnapData instantiation to use FileGroup instead of passing frame and detections directly as separate parameters
  • Updated requirements.txt files to point to the development branch of depthai-nodes that contains the new API
  • Refactored two SnapsProducer implementations to adopt the new FileGroup-based API

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
integrations/hub-snaps-events/utils/snaps_producer.py Updated to create FileGroup and use new SnapData API with file_group parameter
integrations/hub-snaps-events/requirements.txt Updated depthai-nodes dependency to git branch feat/dai_dev_req
apps/data-collection/backend/src/core/snapping/snaps_producer.py Updated to create FileGroup with named file and use new SnapData API
apps/data-collection/backend/src/requirements.txt Updated depthai-nodes dependency to git branch feat/dai_dev_req

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

Comment on lines +2 to +3
#depthai-nodes==0.3.7
depthai-nodes @ git+https://github.com/luxonis/depthai-nodes.git@feat/dai_dev_req
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The PR description states this should be merged after the new depthai_nodes release (0.3.8), but the requirements are pointing to a git branch instead of the version number. This should be updated to use the released version once depthai-nodes 0.3.8 is published to ensure reproducible builds and proper dependency management.

Copilot uses AI. Check for mistakes.
@@ -1,5 +1,5 @@
depthai==3.2.1
depthai-nodes==0.3.7
depthai-nodes @ git+https://github.com/luxonis/depthai-nodes.git@feat/dai_dev_req
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The PR description states this should be merged after the new depthai_nodes release (0.3.8), but the requirements are pointing to a git branch instead of the version number. This should be updated to use the released version once depthai-nodes 0.3.8 is published to ensure reproducible builds and proper dependency management.

Copilot uses AI. Check for mistakes.
@FSAFTik FSAFTik added the testable PR is ready to be tested label Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testable PR is ready to be tested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants