How to count objects in an image?

Technical Source
1 min readFeb 11, 2023

--

Hello,

I want to count the number of flowers in an image classified by its color and shape,
the flowers are sometimes overlapped, and there are only 3 (or 4 types but color would be specified):
1- Jasmin: white
2- Rose: red
3- Tulip: Violet
I need help to code this in matlab please

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

The approprite approach based on the type of input images, though you can follow the following (General Case)

Steps:

  • Do the segmentation
  • Separate all Flowers using Morphological Operation
  • Mask the original Image (Only ROIs are there)
  • Use color detection to counts the number of flowers (Approx Area can be use for confirmation)

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.