diff --git a/oakapp.toml b/oakapp.toml index 46fa212..77e2021 100644 --- a/oakapp.toml +++ b/oakapp.toml @@ -10,7 +10,13 @@ prepare_build_container = [] build_steps = ["pip3 install -r /app/requirements.txt --break-system-packages"] -entrypoint = ["bash", "-c", "python3 /app/main.py"] +entrypoint = ["/entrypoint.sh", "python3", "-u", "/app/main.py"] + +[env] +WEBRTC__DC_MESSAGE__ORDERED = "false" +WEBRTC__DC_MESSAGE__MAX_RETRANSMITS = "0" +WEBRTC__DC_MESSAGE__QUEUE_POLICY = "lossy_drop_new" +WEBRTC__DC_MESSAGE__LOSSY_MEDIA_MAX_BUFFERED_AMOUNT = "8388608" [base_image] api_url = "https://registry-1.docker.io" @@ -19,4 +25,4 @@ oauth_url = "https://auth.docker.io/token" auth_type = "repository" auth_name = "luxonis/oakapp-base" image_name = "luxonis/oakapp-base" -image_tag = "1.2.6" \ No newline at end of file +image_tag = "1.3.0" \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 98c3e53..5112a3c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -depthai==3.3.0 -depthai-nodes==0.4.0 +depthai==3.8.0 +depthai-nodes==0.6.0 python-dotenv \ No newline at end of file diff --git a/utils/snaps_producer.py b/utils/snaps_producer.py index 00329d4..36e17f2 100644 --- a/utils/snaps_producer.py +++ b/utils/snaps_producer.py @@ -42,11 +42,11 @@ def process( return if time.time() - self._last_sent >= self._time_interval: + file_group = dai.FileGroup() + file_group.addImageDetectionsPair(None, frame, detections) snap = SnapData( snap_name="test_snap", - file_name=None, - frame=frame, - detections=detections, + file_group=file_group, tags=["test_tag"], extras={"extra_key": "extra_value"}, )