Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1000 Bytes

README.md

File metadata and controls

42 lines (31 loc) · 1000 Bytes

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