This repository is implemented to convert opencv c++ code to python. An example of pybind11 for cv::Mat <-> np.array
/project folder
├── build
├── example
│ ├── exemple.so # generate with make
│ └── example.cpython-36m-x86_64-linux-gnu.so # generate with setup.py
├── CMakeLists.txt
├── setup.py
└── ...
clone pybind11 repository
git clone https://github.com/pybind/pybind11.git
mkdir build
cd build
# configure make with vcpkg toolchain
cmake ..
# generate the example.so library
make
python3 test.py