Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Chili maturity

1 view
Skip to first unread message

Reff

unread,
Jan 1, 2010, 10:45:27 PM1/1/10
to
I want to develop a vision system by using Matlab.single camera is used to determine the chili and their maturity..How to develop a Matlab Program..?

ImageAnalyst

unread,
Jan 2, 2010, 1:38:10 AM1/2/10
to
On Jan 1, 10:45 pm, "Reff " <rafi...@yahoo.com> wrote:
> I want to develop a vision system by using Matlab.single camera is used to determine the chili and their maturity..How to develop a Matlab Program..?

------------------------------------------------
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.

Reff

unread,
Jan 3, 2010, 3:49:03 AM1/3/10
to
ImageAnalyst <imagea...@mailinator.com> wrote in message <e7800cef-3dd7-4e9a...@r10g2000vbn.googlegroups.com>...


Ok.but how to determine the shape of the chili?what command i must use?i have try but nothing happen.Thanks

Jan Simon

unread,
Jan 3, 2010, 7:42:03 AM1/3/10
to
Dear Reff!

> > 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

ImageAnalyst

unread,
Jan 3, 2010, 10:03:42 AM1/3/10
to
Reff:
Before I share my magical "Chili Ripeness Analysis Program" (CRAP)
you'll need to post your images to http://drop.io/

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

Dave Robinson

unread,
Jan 3, 2010, 11:54:03 AM1/3/10
to
ImageAnalyst <imagea...@mailinator.com> wrote in message <f8e5ee70-6205-4da2...@k23g2000yqa.googlegroups.com>...

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

Reff

unread,
Jan 4, 2010, 10:02:04 PM1/4/10
to
"Dave Robinson" <dave.r...@somewhere.biz> wrote in message <hhqi3b$k9v$1...@fred.mathworks.com>...

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

ImageAnalyst

unread,
Jan 4, 2010, 10:31:34 PM1/4/10
to
Is the camera a video camera, or a still-photo camera that is moving
with respect to its subject (so the images will be blurred)?

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.

Reff

unread,
Jan 4, 2010, 11:23:03 PM1/4/10
to
I use a webcam as a vision system. This is camera will be on the robot. so it will search the chili for harvesting. Now im doing on 3 sample chili for determine their maturity. First chili with green colour, second with green + red, and third red colour.

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


ImageAnalyst

unread,
Jan 6, 2010, 7:55:46 AM1/6/10
to
Reff:
Your images are not images of chilis at potential to be harvested.
You showed chilis that already were harvested and nicely laid out on a
"uniform" background. If your robot is running around the fields or
greenhouse scanning chilis hanging on chili plants, then it's a
different problem. Because the plants are mostly green, I suggest you
just look for red blobs of a certain minimum size. Once one is found,
another implement on the robot arm would snip the chili off and put it
in the harvest basket. I still don't think you need to look at the
shape of the stem, which would be difficult anyway if it were still
attached to the green plant.

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

0 new messages