We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
chroma key with processing? (Read 1773 times)
chroma key with processing?
May 11th, 2006, 8:47am
 
hi all

is it possible to create a chroma key from a live input video in processing? if so how difficult would it be and would the quality of the image be alright?

thanks!
Re: chroma key with processing?
Reply #1 - May 11th, 2006, 9:44am
 
hi altern,

yes. but make sure you read about "live video input" in the faq first.

video input is treated as a sequence of PImages. so once a new frame is available (see Capture & Movie) you can manipulate that before drawing it on screen.

look into the references for blend() and mask().

michael did something similar with the ALPHA version of processing. to get this to work you have to change the code to be compatible with BETA. if you need help with that post here again.

hope this gets you started.
F

Re: chroma key with processing?
Reply #2 - May 11th, 2006, 10:04am
 
ok, thanks, I will try this.
Re: chroma key with processing?
Reply #3 - May 12th, 2006, 1:11pm
 
A while ago I did a realtime color key for videos + webcams in Flash: http://www.quasimondo.com/archives/000615.php - the sourcecode is available on the page. So theoretically it should be possible to rebuild this in Processing - though you will have to program some of the built in flash filters yourself.
Page Index Toggle Pages: 1