How to count objects in an image?

1 回表示 (過去 30 日間)
H_109
H_109 2021 年 5 月 20 日
編集済み: KALYAN ACHARJYA 2021 年 5 月 23 日

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

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2021 年 5 月 23 日
編集済み: KALYAN ACHARJYA 2021 年 5 月 23 日
The approprite approach based on the type of input images, though you can follow the following (General Case)
Steps:
  1. Do the segmentation
  2. Separate all Flowers using Morphological Operation
  3. Mask the original Image (Only ROIs are there)
  4. Use color detection to counts the number of flowers (Approx Area can be use for confirmation)

その他の回答 (0 件)

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by