Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/pipeline/NodeBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,13 @@ void NodeBindings::bind(pybind11::module& m, void* pCallstack){
}, DOC(dai, node, StereoDepth, getMaxDisparity))
.def("setPostProcessingHardwareResources", &StereoDepth::setPostProcessingHardwareResources, DOC(dai, node, StereoDepth, setPostProcessingHardwareResources))
.def("setDefaultProfilePreset", &StereoDepth::setDefaultProfilePreset, DOC(dai, node, StereoDepth, setDefaultProfilePreset))
.def("setFocalLengthFromCalibration", &StereoDepth::setFocalLengthFromCalibration, DOC(dai, node, StereoDepth, setFocalLengthFromCalibration))
.def("setFocalLengthFromCalibration", [](StereoDepth& s, bool focalLengthFromCalibration){
PyErr_WarnEx(PyExc_DeprecationWarning, "setFocalLengthFromCalibration is deprecated. Default value is true.", 1);
HEDLEY_DIAGNOSTIC_PUSH
HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
return s.setFocalLengthFromCalibration(focalLengthFromCalibration);
HEDLEY_DIAGNOSTIC_POP
}, DOC(dai, node, StereoDepth, setFocalLengthFromCalibration))
.def("useHomographyRectification", &StereoDepth::useHomographyRectification, DOC(dai, node, StereoDepth, useHomographyRectification))
;
// ALIAS
Expand Down