can i get some help in hsv colour detection in real time video??

2 views (last 30 days)
hello, i have a problem. i have to run real time video through a camera and read the hsv color (red,green, and blue set) rgb cannot be used as each color is not on its purest form. someone please help me to code the hsv part and be able to run it real time plot from the real life video while running.

Accepted Answer

Jan
Jan on 8 Aug 2013
The camera provides RGB images, but the command rgb2hsv should solve the conversion easily.
  1 Comment
task_m
task_m on 8 Aug 2013
the problem is - my rgb is effected by light and other factors therefore i am not getting accurate or reliable result...eg: when detecting red, the value will be nearly 200 for red, blue will be also 150 or so instead it being 0. therefore i need to use hsv value...ie: initalise red between this and this then detect as red else don't detect. and same with other blue and green color. please help with a demo code. thank you

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!