|
před 2 roky | |
---|---|---|
.. | ||
README.md | před 2 roky | |
center_of_multipe_blob.cpp | před 6 roky | |
center_of_multiple_blob.py | před 6 roky | |
circle.png | před 6 roky | |
multiple-blob.png | před 6 roky | |
single_blob.cpp | před 6 roky | |
single_blob.py | před 6 roky |
This repository contains code for the blog post Find the Center of a Blob using OpenCV (C++/Python).
To run the code to find center of a single blob, run the following commands.
Python
python3 single_blob.py --ipimage image_name
C++
g++ single_blob.cpp `pkg-config opencv --cflags --libs` -o output
./output image_name
To run the code to find center of multiple blobs, run the following commands:-
Python
python3 center_of_multiple_blob.py --ipimage image_name
C++
g++ center_of_multiple_blob.cpp `pkg-config opencv --cflags --libs` -o output
./output image_name
Want to become an expert in AI? AI Courses by OpenCV is a great place to start.