Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion apps/conference-demos/rgb-depth-connections/oakapp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ build_steps = [

depthai_models = { yaml_path = "./depthai_models" }

[env]
WEBRTC__DC_MESSAGE__ORDERED = "false"
WEBRTC__DC_MESSAGE__MAX_RETRANSMITS = "0"
WEBRTC__DC_MESSAGE__QUEUE_POLICY = "lossy_drop_new"

Comment on lines +19 to +23

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

So this is now always required for every example using oakapp-base 1.3 image? Should we maybe have default values that are already set to this in that case so one doesn't have to always set it in the oakapp tomls manually?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I was thinking about this as well. I will recommend these settings as "default" but for the period of time to consider the new protocol "stable" we've decided to make lossy type "opt in" and preserve the previous non-lossy as one that is established.

[base_image]
api_url = "https://registry-1.docker.io"
service = "registry.docker.io"
oauth_url = "https://auth.docker.io/token"
auth_type = "repository"
auth_name = "luxonis/oakapp-base"
image_name = "luxonis/oakapp-base"
image_tag = "1.2.8"
image_tag = "1.3.0"
15,422 changes: 4,037 additions & 11,385 deletions apps/data-collection/frontend/package-lock.json

Large diffs are not rendered by default.

21 changes: 15 additions & 6 deletions apps/data-collection/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,29 @@
"preview": "vite preview"
},
"dependencies": {
"@luxonis/depthai-viewer-common": "1.5.53",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@floating-ui/dom": "1.8.0",
"@luxonis/common-fe-components": "1.26.3",
"@luxonis/depthai-pipeline-lib": "3.7.6",
"@luxonis/depthai-viewer-common": "3.7.6",
"@sentry/browser": "8.55.2",
"date-fns": "2.30.0",
"react": "19.2.5",
"react-dom": "19.2.5",
"react-router": "^7.5.0",
"react-router-dom": "^7.5.0"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@pandacss/dev": "0.53.0",
"@types/react": "^18.3.20",
"@types/react-dom": "^18.3.6",
"@vitejs/plugin-react": "^4.3.4",
"@types/react": "^19.2.0",
"@types/react-dom": "^19.2.0",
"@vitejs/plugin-react": "^5.0.0",
"globals": "^16.0.0",
"typescript": "~5.7.2",
"vite": "^6.3.1"
},
"overrides": {
"react": "$react",
"react-dom": "$react-dom"
}
}
2 changes: 2 additions & 0 deletions apps/data-collection/frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export default defineConfig({
},
build: {
rollupOptions: {
// OAK's build container has a low file-descriptor limit.
maxParallelFileOps: 8,
output: {
format: "esm",
},
Expand Down
7 changes: 6 additions & 1 deletion apps/data-collection/oakapp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,16 @@ dist_path = "./frontend/dist"
source_path = "./frontend"
steps = ["bash -c 'cd /app/frontend/src && export NODE_OPTIONS=--max-old-space-size=4096 && . $HOME/.nvm/nvm.sh && npm install && npm run build'"]

[env]
WEBRTC__DC_MESSAGE__ORDERED = "false"
WEBRTC__DC_MESSAGE__MAX_RETRANSMITS = "0"
WEBRTC__DC_MESSAGE__QUEUE_POLICY = "lossy_drop_new"

[base_image]
api_url = "https://registry-1.docker.io"
service = "registry.docker.io"
oauth_url = "https://auth.docker.io/token"
auth_type = "repository"
auth_name = "luxonis/oakapp-base"
image_name = "luxonis/oakapp-base"
image_tag = "1.2.8"
image_tag = "1.3.0"
7 changes: 6 additions & 1 deletion apps/default-app/oakapp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ build_steps = [

depthai_models = { yaml_path = "./depthai_models" }

[env]
WEBRTC__DC_MESSAGE__ORDERED = "false"
WEBRTC__DC_MESSAGE__MAX_RETRANSMITS = "0"
WEBRTC__DC_MESSAGE__QUEUE_POLICY = "lossy_drop_new"

[base_image]
api_url = "https://registry-1.docker.io"
service = "registry.docker.io"
oauth_url = "https://auth.docker.io/token"
auth_type = "repository"
auth_name = "luxonis/oakapp-base"
image_name = "luxonis/oakapp-base"
image_tag = "1.2.8"
image_tag = "1.3.0"
7 changes: 4 additions & 3 deletions apps/dino-tracking/backend/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from pathlib import Path

import depthai as dai
from depthai_nodes.node import ParsingNeuralNetwork
from depthai_nodes.node import ParsingNeuralNetwork, FastSAMParser
from dotenv import load_dotenv

from annotations.detections_annotation_overlay_node import DetectionsAnnotationOverlay
Expand Down Expand Up @@ -100,8 +100,9 @@ def main():
),
)

segmentation_masks = segmentation_nn.getParser(FastSAMParser).out
mask_selection = pipeline.create(MaskSelection).build(
segmentations=segmentation_nn.out,
segmentations=segmentation_masks,
)

object_selection_prompt_service = ObjectSelectionPrompt(mask_selection)
Expand Down Expand Up @@ -149,7 +150,7 @@ def main():

outlines_overlay = pipeline.create(OutlinesOverlay).build(
frame=rgb_sensor,
segmentation=segmentation_nn.out,
segmentation=segmentation_masks,
)
outlines_service = OutlinesTrigger(outlines_overlay)
visualizer.registerService(outlines_service.NAME, outlines_service)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ def clear_selection(self) -> None:
self._pending_click = None
self._selected_mask = None

def process(self, segmentation: dai.SegmentationMask):
def process(self, segmentation: dai.Buffer):
# FastSAM's parser is typed as Buffer at pipeline-build time, while its
# runtime payload is a native SegmentationMask.
assert isinstance(segmentation, dai.SegmentationMask)
segmentation_mask = segmentation.getCvMask().astype(np.int32)

if self._pending_click:
Expand Down
Loading
Loading