------------------------------------------------
First learn how to program in MATLAB. There are lots of resources for
this.
Use the Image Processing Toolbox.
Take picture of chili(s).
Analyze photo for things like color, size, shape, etc.
If you have any specific questions about the above list, write back.
Ok.but how to determine the shape of the chili?what command i must use?i have try but nothing happen.Thanks
> > If you have any specific questions about the above list, write back.
> Ok.but how to determine the shape of the chili?what command i must use?i have try but nothing happen.Thanks
A "specific question" means, that you write, what you have tried already. Neither "I have tried" nor "nothing happened" does tell us any details we yould react to.
Kind regards, Jan
Then you'll need to explain what it is visually that makes them
"ripe." Is it the color, the size, some combination of factors?
In the meantime, you might enjoy looking over some code I posted
recently to do very simple color classification to find the red
peppers in the standard MATLAB demo image onions.png (a cropped
version of peppers.png) in this posting:
http://www.mathworks.com/matlabcentral/newsreader/view_thread/269459#705634
And finally, please stop duplicate posting. You now have three
separate threads going on this. And not a single one has any code
that you have attempted. Do you want to monitor three (or more)
threads, or would you rather monitor just one?
Regards,
ImageAnalyst
In addition to checking out IA's demo, you might like to review my contribution to another thread, which is directly applicable to the colour processing that you will need to undertake.
http://www.mathworks.com/matlabcentral/newsreader/view_thread/268801#703866
Regards
Dave Robinson
Firstly i want to apologize for duplicate threads.
I can't access http://drop.io. So i publish the picture to http://img407.imageshack.us/img407/8763/dscn1897.jpg . From this sample picture, i need to determine that the picture is chili maybe can be determine based on their stem shape. After that, the maturity of the chili must be consider. So the robot will pick up the matured chili. I have try the Matlab program that have given. Its work successfully. Thanks. How can i focus on the stem shape of the chili ? I tried segmentation, but it only works for stationary object. This camera can be moving. Thanks
If it's a video camera, just take out a frame and analyze it. If it's
a moving digital still camera, you may need to deblur the image first
(but maybe not).
Then segment just the green stem, which you've done already, and look
at some of the shape parameters that regionprops gives you. Try to
find some values that ripe and unripe peppers have and set a threshold
to distinguish between the two. For example look at the ratio of the
major to minor axis length ratio. A straight stem would have a high
ratio while a curved stem would have a lower ratio.
Strange that could couldn't bring up the http://drop.io site. I just
tried it and it came up with no problem. Your picture came up, but
only one. And you didn't say whether it was ripe or unripe. So
something went wrong. Try again to post image(s) of both ripe and
unripe. If I have those then I can try to give you CRAP (Chili
Ripeness Analysis Program) - if I have time. You can also post your
CRAP so we can see what you've tried.
Green colour chili : http://img710.imageshack.us/img710/6366/dscn1890f.jpg
Green + Red chili : http://img46.imageshack.us/img46/1504/dscn1923s.jpg
Red colour chili : http://img407.imageshack.us/img407/8763/dscn1897.jpg
This vision only work on [ Green + red ] and [ Red ] chili for harvesting.
I search at Matlab help and for moving camera it's have x,y,z axis. How to do that? have i must do that for my chili harvesting or just use segmentation to determine the shape of the chili based on the stem?
Thanks ImageAnalyst
I am not familiar with control of robots with MATLAB but I would think
that your robot vendor could help you with the MATLAB interface to
their robot. I assume the robot is some kind of wheeled thing that
rolls from plant to plant with an arm that aims the camera and another
arm, or scissors implement on the same arm, that can clip off any
chilis it finds that are ready for harvesting. It's a whole extra
level of complexity to have the robot look at a chili plant in 3D
"hunting" for ripe chilis (and then snip them off), than it is to
simply analyze an image of an already picked chili lying on a white
background. It would be like the "Ultra 3D CRAP Pro" version.
Good luck,
ImageAnalyst