You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromdepthai_sdkimportOakCameraimportdepthaiasdaiwithOakCamera(replay='/tmp/oak_recording/24-04-30-15_08_17/1-1844301011A3860E00/1-1844301011A3860E00') asoak:
oak.replay.set_loop(True) # <--- Enable looping of the video, so it will never endcolor=oak.create_camera('color')
oak.visualize([color], fps=True)
oak.start(blocking=True)
Expected behavior
CAM_A_video is used for color camera.
Screenshots
Here a screenshot of the replay script and the visualization:
# raise Exception("Please specify replay stream CameraBoardSocket via replay.specify_socket()")
⚠️
NOTE that this issue is strictly dependent on the order of streams returned by self._replay.streams.items(). I tried with two different PCs and one has the correct behaviour, because CAM_A_video is read first.
The text was updated successfully, but these errors were encountered:
Hi @RiccardoGrieco ,
As we're working on depthai v3 (which will supersede depthai-sdk), we, unfortunately, won't be focusing on SDK anymore.
Kind regards, Erik
Describe the bug
When replaying recorded data, occasionally
6_depth
is used forcolor
camera.Minimal Reproducible Example
Recording script:
Replay script:
Expected behavior
CAM_A_video
is used forcolor
camera.Screenshots
Here a screenshot of the replay script and the visualization:
Additional context
Library versions:
I dig a bit into the issue and looks like the problem lies in this piece of code, where
6_depth
is selected as stream name:depthai/depthai_sdk/src/depthai_sdk/components/camera_component.py
Lines 78 to 86 in f4a0d3d
Reason behind this is that when streams are initialized,
6_depth
is assigned aNone
socket:depthai/depthai_sdk/src/depthai_sdk/readers/videocap_reader.py
Lines 39 to 67 in f4a0d3d
And if socket is
None
inReplayStream
, methodget_socket
returns by default CAM_A socket:depthai/depthai_sdk/src/depthai_sdk/replay.py
Lines 50 to 59 in f4a0d3d
The text was updated successfully, but these errors were encountered: