A warp of cpython api in which two interfaces are implemented. One is for base type (int, float, array) interact with python, another (cvinterface) for cv usage. demo.cpp
is an example to show how to call a python script which converts color images to grey from c++.
├── CMakeLists.txt
├── demo.cpp
├── include
│ ├── cpythonCVInterface.h
│ └── cpythonInterface.h
├── PY # python script work space
│ ├── pscript.py
└── src
├── cpythonCVInterface.cpp # cv interface
└── cpythonInterface.cpp # basic type interface
- python3
- numpy
- opencv (optional)
notice: more details can find in .vscode configuration folder
change work_space variable in demo.py to you own python script root
mkdir build
cd build
cmake ..
make
./demo