diff --git a/depthai-core b/depthai-core index 60d84e720..02f004daa 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 60d84e7206e765477d09e0bb8d0b0f7d003581dd +Subproject commit 02f004daa70d6b0c5f7a00469b81897f3bb6ccea diff --git a/src/pipeline/node/StereoDepthBindings.cpp b/src/pipeline/node/StereoDepthBindings.cpp index 674a591a7..138c214cf 100644 --- a/src/pipeline/node/StereoDepthBindings.cpp +++ b/src/pipeline/node/StereoDepthBindings.cpp @@ -64,8 +64,27 @@ void bind_stereodepth(pybind11::module& m, void* pCallstack){ ; stereoDepthPresetMode - .value("HIGH_ACCURACY", StereoDepth::PresetMode::HIGH_ACCURACY, DOC(dai, node, StereoDepth, PresetMode, HIGH_ACCURACY)) - .value("HIGH_DENSITY", StereoDepth::PresetMode::HIGH_DENSITY, DOC(dai, node, StereoDepth, PresetMode, HIGH_DENSITY)) + .value("HIGH_ACCURACY", StereoDepth::PresetMode::HIGH_ACCURACY, "**Deprecated:** Will be removed in future releases and replaced with DEFAULT") + .value("HIGH_DENSITY", StereoDepth::PresetMode::HIGH_DENSITY, "**Deprecated:** Will be removed in future releases and replaced with DEFAULT") + + .value("DEFAULT", StereoDepth::PresetMode::DEFAULT) + .value("FACE", StereoDepth::PresetMode::FACE) + .value("HIGH_DETAIL", StereoDepth::PresetMode::HIGH_DETAIL) + .value("HIGH_FPS", StereoDepth::PresetMode::HIGH_FPS) + .value("HIGH_ACCURACY2", StereoDepth::PresetMode::HIGH_ACCURACY2) + .value("ROBOTICS", StereoDepth::PresetMode::ROBOTICS) + + // Deprecated overriden + .def_property_readonly_static("HIGH_ACCURACY", [](py::object){ + PyErr_WarnEx(PyExc_DeprecationWarning, "HIGH_ACCURACY is deprecated, will be removed in future releases and replaced with DEFAULT.", 1); + return StereoDepth::PresetMode::HIGH_ACCURACY; + }) + + .def_property_readonly_static("HIGH_DENSITY", [](py::object){ + PyErr_WarnEx(PyExc_DeprecationWarning, "HIGH_DENSITY is deprecated, will be removed in future releases and replaced with DEFAULT.", 1); + return StereoDepth::PresetMode::HIGH_DENSITY; + }) + ; // Node