フィルターのクリア

Count and measure objects in a photo

7 ビュー (過去 30 日間)
Diego Fonseca
Diego Fonseca 2023 年 8 月 21 日
コメント済み: Diego Fonseca 2023 年 8 月 22 日
Hello everybody.
Sorry for the question, but I am new to image processing. I am collecting trash at a beach and I was wondering if it would be possible to automatically count and measure some of the itens we collect, such as styrofoam pieces, which are too abundant for mannualy counting and measuruing.
I have a chroma key and I thought about placing the collected itens on it, take a picture and automatically count and measure the items.
I put an example picture attached (the ideia was to test the concept in order to improve the photo acquisiton). There are several colors, shapes and sizes of styrofoam pieces and they are usually dirty (collected from beaches).
I tried several demos and functions, but they overestimate (a lot) the number of items (they recongnize several dots instead of unique pieces). Which steps do you suggest me to use? Are there any modifications I could do to the photo (less items, smaller region, agroup items according to their size or color ....)?
Thanks in advance, best regards!
  1 件のコメント
Diego Fonseca
Diego Fonseca 2023 年 8 月 21 日
example photo

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2023 年 8 月 22 日
It's a generic, general purpose demo of how to threshold an image to find blobs, and then measure things about the blobs, and extract certain blobs based on their areas or diameters.
Please check out the Color Thresholder app on the Apps tab of the tool ribbon. You can use that to generate code to find a mask for the objects - just have it find everything except green. Let me know if you have trouble.
  1 件のコメント
Diego Fonseca
Diego Fonseca 2023 年 8 月 22 日
Thanks for the Color Thresholder app suggestion; it worked very well!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Object Programming についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by