Skip to content

Commit 5d3aa6d

Browse files
committed
Updated tof_component.py to the latest tof_decoding pipeline
1 parent 3767968 commit 5d3aa6d

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

depthai_sdk/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ opencv-contrib-python>4
44
blobconverter>=1.4.1
55
pytube>=12.1.0
66
--extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/
7-
depthai==2.22.0
7+
depthai
88
PyTurboJPEG==1.6.4
99
marshmallow==3.17.0
1010
xmltodict

depthai_sdk/src/depthai_sdk/components/tof_component.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
import depthai as dai
44

55
from depthai_sdk.components.component import Component, ComponentOutput
6+
from depthai_sdk.components.parser import parse_camera_socket
67
from depthai_sdk.oak_outputs.xout.xout_base import StreamXout, XoutBase
7-
from depthai_sdk.oak_outputs.xout.xout_frames import XoutFrames
88
from depthai_sdk.oak_outputs.xout.xout_depth import XoutDisparityDepth
9-
from depthai_sdk.components.parser import parse_camera_socket
9+
from depthai_sdk.oak_outputs.xout.xout_frames import XoutFrames
10+
1011

1112
class ToFComponent(Component):
1213
def __init__(self,
@@ -34,13 +35,6 @@ def __init__(self,
3435
self.node = pipeline.create(dai.node.ToF)
3536
self.camera_node.raw.link(self.node.input)
3637

37-
tofConfig = self.node.initialConfig.get()
38-
# tofConfig.depthParams.freqModUsed = dai.RawToFConfig.DepthParams.TypeFMod.MIN
39-
tofConfig.depthParams.freqModUsed = dai.RawToFConfig.DepthParams.TypeFMod.MAX
40-
tofConfig.depthParams.avgPhaseShuffle = False
41-
tofConfig.depthParams.minimumAmplitude = 3.0
42-
self.node.initialConfig.set(tofConfig)
43-
4438
def _find_tof(self, device: dai.Device) -> dai.CameraBoardSocket:
4539
# Use the first ToF sensor, usually, there will only be one
4640
features = device.getConnectedCameraFeatures()

0 commit comments

Comments
 (0)