can anyone help me with codes for finding red, green and orange individually using a webcamera for sorting,

1 view (last 30 days)
plz someone help me with the program code for sorting tomato if red the camera should detect else should not mark,and similarly yellow for lime,and orange for orange...that is i need three codes for finding each separately,i will run each separately ,and how to create GUI??

Answers (1)

Image Analyst
Image Analyst on 8 Mar 2013
See my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 for several different color segmentation methods.
Also see this for a nice GUI framework to get you started: http://www.mathworks.com/matlabcentral/fileexchange/24224
  2 Comments
vishnu andavar
vishnu andavar on 9 Mar 2013
can u give me direct code for sorting green ,sorting orange, sorting red color ,three should be different program to run ,so that i can just copy and run the program,,,if possible.thank you
Image Analyst
Image Analyst on 10 Mar 2013
Why do I have to give you "direct code"? Why can't you just adapt the thresholds in the demos I already referred you to? That's what I'd do, but I thin you can do that as well as I can. It's probably better for you to do it because by reviewing it you'll learn something.

Sign in to comment.

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!