@@ -72,8 +72,8 @@ void bind_stereodepth(pybind11::module& m, void* pCallstack) {
7272 &StereoDepthProperties::depthAlignmentUseSpecTranslation,
7373 DOC (dai, StereoDepthProperties, depthAlignmentUseSpecTranslation))
7474 .def_readwrite (" alphaScaling" , &StereoDepthProperties::alphaScaling, DOC (dai, StereoDepthProperties, alphaScaling));
75- DEPTHAI_BEGIN_SUPPRESS_DEPRECATION_WARNING
76- stereoDepthPresetMode
75+ DEPTHAI_BEGIN_SUPPRESS_DEPRECATION_WARNING
76+ stereoDepthPresetMode
7777 .value (" HIGH_ACCURACY" , StereoDepth::PresetMode::HIGH_ACCURACY, " **Deprecated:** Will be removed in future releases and replaced with DEFAULT" )
7878 .value (" HIGH_DENSITY" , StereoDepth::PresetMode::HIGH_DENSITY, " **Deprecated:** Will be removed in future releases and replaced with DEFAULT" )
7979 .value (" DEFAULT" , StereoDepth::PresetMode::DEFAULT)
@@ -88,14 +88,11 @@ void bind_stereodepth(pybind11::module& m, void* pCallstack) {
8888 return StereoDepth::PresetMode::HIGH_ACCURACY;
8989 })
9090
91- .def_property_readonly_static (
92- " HIGH_DENSITY" ,
93- [](py::object) {
94- PyErr_WarnEx (PyExc_DeprecationWarning, " HIGH_DENSITY is deprecated, will be removed in future releases and replaced with DEFAULT." , 1 );
95- return StereoDepth::PresetMode::HIGH_DENSITY;
96- })
97- ;
98- DEPTHAI_END_SUPPRESS_DEPRECATION_WARNING
91+ .def_property_readonly_static (" HIGH_DENSITY" , [](py::object) {
92+ PyErr_WarnEx (PyExc_DeprecationWarning, " HIGH_DENSITY is deprecated, will be removed in future releases and replaced with DEFAULT." , 1 );
93+ return StereoDepth::PresetMode::HIGH_DENSITY;
94+ });
95+ DEPTHAI_END_SUPPRESS_DEPRECATION_WARNING
9996
10097 // Node
10198 stereoDepth
0 commit comments