File tree 2 files changed +4
-10
lines changed
src/depthai_sdk/components
2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ opencv-contrib-python>4
4
4
blobconverter >= 1.4.1
5
5
pytube >= 12.1.0
6
6
--extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/
7
- depthai == 2.22.0
7
+ depthai
8
8
PyTurboJPEG == 1.6.4
9
9
marshmallow == 3.17.0
10
10
xmltodict
Original file line number Diff line number Diff line change 3
3
import depthai as dai
4
4
5
5
from depthai_sdk .components .component import Component , ComponentOutput
6
+ from depthai_sdk .components .parser import parse_camera_socket
6
7
from depthai_sdk .oak_outputs .xout .xout_base import StreamXout , XoutBase
7
- from depthai_sdk .oak_outputs .xout .xout_frames import XoutFrames
8
8
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
+
10
11
11
12
class ToFComponent (Component ):
12
13
def __init__ (self ,
@@ -34,13 +35,6 @@ def __init__(self,
34
35
self .node = pipeline .create (dai .node .ToF )
35
36
self .camera_node .raw .link (self .node .input )
36
37
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
-
44
38
def _find_tof (self , device : dai .Device ) -> dai .CameraBoardSocket :
45
39
# Use the first ToF sensor, usually, there will only be one
46
40
features = device .getConnectedCameraFeatures ()
You can’t perform that action at this time.
0 commit comments