GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ZQPei/pybind11_cpp_python: cpp call python, or python call cpp, hybrid programming using pybind11, with and without numpy

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
cpp_call_python
cpp_call_python
 
 
cpp_call_python_numpy
cpp_call_python_numpy
 
 
cpp_call_python_opencv_numpy
cpp_call_python_opencv_numpy
 
 
cpp_call_python_so
cpp_call_python_so
 
 
python_call_cpp
python_call_cpp
 
 
python_call_cpp_opencv_numpy
python_call_cpp_opencv_numpy
 
 
README.md
README.md
 
 

Repository files navigation

Pybind11 cpp python hybrid programming

Introduction

This repository shows how to hybrid programming with cpp and python using pybind11.

It includes two main topic,

  • extend python with c++ (python_call_cpp)
  • extend c++ with python (cpp_call_python)

This repository contains several folders.

Each folder cooresponds to an specific topic with all source code privided and shows how to compile them.

The hardest part is how to convert opencv Mat type in cpp to numpy ndarray and vice versa.

Dependencies

  • GCC 4.x
  • python 3.x
  • opencv 2.x+
  • eigen3
  • numpy

1 extend python with c++

  • python_call_cpp
  • python_call_cpp_opencv_numpy

2 embed python in c++

  • cpp_call_python
  • cpp_call_python_numpy (eigen)
  • cpp_call_python_opencv_numpy
  • cpp_call_python_so

References

  • pybind11
  • edmBernard/pybind11_opencv_numpy

About

cpp call python, or python call cpp, hybrid programming using pybind11, with and without numpy

Topics

cppcpp-call-pythonmat-numpynumpyopencv-numpypybind11pythonpython-call-cpp

Resources

Readme
Activity

Stars

4 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.