Clone Repo

# clone the pybind11 library as well or you have to add pybind11 manually afterward
$ git clone --recurse-submodules [email protected]:dboyliao/pybind11_example.git

Requirements

  • OpenCV
  • cmake

Installation

Using virtualenv

$ virtualenv --python=$(which python) .venv
$ source .venv/bin/activate
$ python3 -m pip install -e .

The importable python library should be build and the package should be importable via:

import pybind11_example

# do stuff

see scripts/example.py as an example

GitHub

View Github