Ask Your Question
0

how to check if detected color is in yellow range?

asked 2014-11-30 14:03:40 -0600

Hi, I Want to do something if detected color was in yellow range. but i have no idea . pls give me some advices. Best Regards

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-12-01 06:55:13 -0600

The following steps will do this exactly for you

  1. Transform your image to a space where color is more easily seperable. I would suggest HSV color space or the YUV color space since you need the yellow range regions.
  2. Apply some thresholding on the color channels of the new color space.
  3. On the retrieved binary mask you can see which regions are in the desired color band!
edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-11-30 14:03:40 -0600

Seen: 1,134 times

Last updated: Dec 01 '14