Skip to content

Commit b9c4c64

Browse files
Merge pull request #726 from luxonis/stereo_baseline_focal_length_override
Add option to override baseline and/or focal length for disparity to depth conversion
2 parents 0804b7c + b7556a9 commit b9c4c64

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/pipeline/node/StereoDepthBindings.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ void bind_stereodepth(pybind11::module& m, void* pCallstack){
166166
}, DOC(dai, node, StereoDepth, setFocalLengthFromCalibration))
167167
.def("useHomographyRectification", &StereoDepth::useHomographyRectification, DOC(dai, node, StereoDepth, useHomographyRectification))
168168
.def("enableDistortionCorrection", &StereoDepth::enableDistortionCorrection, DOC(dai, node, StereoDepth, enableDistortionCorrection))
169+
.def("setBaseline", &StereoDepth::setBaseline, DOC(dai, node, StereoDepth, setBaseline))
170+
.def("setFocalLength", &StereoDepth::setFocalLength, DOC(dai, node, StereoDepth, setFocalLength))
169171
;
170172
// ALIAS
171173
daiNodeModule.attr("StereoDepth").attr("Properties") = stereoDepthProperties;

0 commit comments

Comments
 (0)