1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

fix: submodules creation and registration

- Add special case handling when submodule has the same name as parent
- `PyDict_SetItemString` doesn't steal reference, so reference count
  should be explicitly decremented to transfer object life-time
  ownership
- Add sanity checks for module registration input
This commit is contained in:
Vadim Levin
2022-01-19 00:07:50 +03:00
parent 25f25275cd
commit eca2d92791
3 changed files with 184 additions and 36 deletions
@@ -213,6 +213,12 @@ AsyncArray testAsyncException()
return p.getArrayResult();
}
namespace nested {
CV_WRAP static inline bool testEchoBooleanFunction(bool flag) {
return flag;
}
} // namespace nested
//! @} // core_utils
} // namespace cv::utils