Skip to content

fanguohao/cpython-interface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

description

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++.

project tree

├── 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

requirment

  • python3
  • numpy
  • opencv (optional)

notice: more details can find in .vscode configuration folder

how to use

change work_space variable in demo.py to you own python script root

mkdir build
cd build
cmake ..
make
./demo

About

a warp of cpyton interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published