How to replace fix colored object from webcame
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Image Analyst
2013-4-30
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!