How to replace fix colored object from webcame
1 view (last 30 days)
Show older comments
Dear All,
I want to read frames from webcame, and then there is one object of fix color, lets say dark pink color, I want to change the color of that object whenever that appears infront of camera.
We must have seen this in news bloopers that anchor wear Yellow or green color dress and then he/she is then transformed to some fancy output. Can any body tell what this technique is called and how to do in matlab.
Sorry for very naive question.
0 Comments
Accepted Answer
Image Analyst
on 30 Apr 2013
It's called chroma keying: http://en.wikipedia.org/wiki/Chromakey. In MATLAB you'd call getsnapshot(), do color detection like in my demos ( http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862) and then set the red, green, and blue detected region to the red, green, and blue values of the desired color, then recombine into a color image and display it.
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!