robomei 2 hours ago
Essentially you just have to add magicbind Python package, call "magicbind add mylib.h" and you can directly import and use mylib in your Python code.
It supports most of the STL type conversions out of the box and also supports conversion from OpenCV types (cv::Mat, cv::Rect, ..). You can also use it directly from a Jupyter notebook. You can try it out in Colab: https://colab.research.google.com/github/robomei/magicbind/b...