Ask Your Question

forthewolf's profile - activity

2017-06-03 18:31:38 -0600 received badge  Famous Question (source)
2015-03-03 04:41:37 -0600 received badge  Notable Question (source)
2014-07-23 08:31:42 -0600 received badge  Popular Question (source)
2012-08-09 02:00:55 -0600 received badge  Student (source)
2012-08-08 05:35:35 -0600 asked a question Chroma Key

I've never used OpenCV before... Would it be possible to code a "perfect" chroma key (green screen) application with it?

  1. At the basic level I need to set the alpha channel on all the pixels that match a particular RGB value (i.e. 51-255-0 aka green) to be transparent.
  2. Set a range for other colors that are close to green (but not EXACTLY 51-255-0) to also be transparent.
  3. Set pixels to be "semi-transparent" - So, remove the green out of them, but not the brown (for example). This is needed for the edge of the subject, mainly hair. Or semi-transparent objects such as glass.

Here is what I'm trying to achieve:

Thanks!