How to replace fix colored object from webcame
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Image Analyst
il 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 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!