Skip to content

onvungocminh/Python_binding_of_opencv_C

Repository files navigation

pybind11_opencv_numpy

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
└── ...

Generation with make

clone pybind11 repository

git clone https://github.com/pybind/pybind11.git

Compile

mkdir build
cd build
# configure make with vcpkg toolchain
cmake .. 
# generate the example.so library
make

Run

python3 test.py

About

Convert C++ code to Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published