How can I classify a fruit based on its color into white(unripe), turning, ripe using color image processing in matlab. Is there any code for it or some ideas on how to do it.
2 ビュー (過去 30 日間)
古いコメントを表示
I was looking for help in classifying a fruit image based on its color.
say for example if the picture shows red color in the image of the fruit(for eg strawberry) how can it be classified as ripe fruit, if its white in color it needs to be classified as unripe and if its mix of white and orange should be classified as turning. How can this be done using matlab. I was looking for an immediate help. Thank you
0 件のコメント
回答 (1 件)
Dhruv G
2021 年 7 月 27 日
If the fruit occupies most of the image you can get the RGB values of a cluster of pixels near the center of the image and average over the cluster. You could then classify based on color, eg - (255,255,255) is white, (255,0,0) is red etc.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!