Tim M 57b5cefde5 Updated all `.md` files to contain newest image hace 2 años
..
README.md 57b5cefde5 Updated all `.md` files to contain newest image hace 2 años
center_of_multipe_blob.cpp 7b311b62a4 Center of Blob hace 6 años
center_of_multiple_blob.py 7b311b62a4 Center of Blob hace 6 años
circle.png 8fc07d9a2d updated code hace 6 años
multiple-blob.png 8fc07d9a2d updated code hace 6 años
single_blob.cpp 8fc07d9a2d updated code hace 6 años
single_blob.py 8fc07d9a2d updated code hace 6 años

README.md

Center of Blob using Python and CPP

This repository contains code for the blog post Find the Center of a Blob using OpenCV (C++/Python).

Centre of Blob

download

To run the code to find center of a single blob, run the following commands.

Python

python3 single_blob.py --ipimage image_name

C++

  1. g++ single_blob.cpp `pkg-config opencv --cflags --libs` -o output

  2. ./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++

  1. g++ center_of_multiple_blob.cpp `pkg-config opencv --cflags --libs` -o output

  2. ./output image_name

AI Courses by OpenCV

Want to become an expert in AI? AI Courses by OpenCV is a great place to start.