Count and measure objects in a photo

17 次查看(过去 30 天)
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!

采纳的回答

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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by