sudo apt install cmake gcc g++ libopencv-dev pybind11-dev
# install pybind11
git clone https://github.com/pybind/pybind11.git
mkdir build
cd build
cmake ..
make -j8
make install
# compile cannyline
python3 setup.py build
# Then move the *.so to your project, you can import the module directly.
from cannyline import MetaLine