/cvblob_opencv3.4_pybind

This is a cvblob(blob detection) project inheried from cvblob

Primary LanguageC++GNU Lesser General Public License v3.0LGPL-3.0

cvblob_opencv3.4

This is a cvblob(blob detection) project inheried from cvblob, which could detect mutiple shapes from images and return properties (minarearect, centroids, long edge, etc). Adding pybind11 binding so it could be used in python scripts.
1

requirements

ubuntu16.04
pybind11
opencv 3.4
cmake 3.18

train .pth file and convert .wts

install opencv

install opencv3.4 in your computer and add path to LD_LIBRARY_PATH.

create env

pip install -r cvblob_requirements.txt

make file, generate test file

cmake .
make

run test script and show result

cd bin

then a test exec file will generated, it will inter test.png in test folder and show blobs

./test

pybind11 binding and ctypes binding

dependency is shown in root dir CMakeLists.txt
run function in testpybind1.py to test pybind function