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!