Mark, managed to see yours working, yep its pretty raw but it's a start which is what I needed.
hey if you get it optimized can you send me the result? my time is really limited lately but i would love to give a demo to my class this semester with your results. i still have not tried it on our own green screen yet for lack of time...
glad i was a little useful!
thanks mark
--- On Mon, 2/9/09, Garrett Lynch lists@asquare.org wrote:
From: Garrett Lynch lists@asquare.org Subject: Re: [PD] video bluescreen To: pd-list@iem.at Date: Monday, February 9, 2009, 2:02 PM Hi
Apologies for the slowness of my reply. Thanks both for the examples. I couldn't get pix_background working Ben but it seems to be not what I'm looking for on this occasion anyway. Mark, managed to see yours working, yep its pretty raw but it's a start which is what I needed. Many thanks.
a+ gar
You don't actually load a base image into
pix_background, you send a [reset( message to the [pix_background] object and it takes a snapshot of whatever's in front of the connected camera (or incoming video stream). Then it compares all incoming frames with that snapshot and outputs anything that's different between the two. The right inlet sets the threshold and takes an RGB value, so you will have to adjust this to reduce inevitable noise and artifacting. I have attached a very basic version of this patch I've described. I don't have a cam attached to this computer and don't have the time to test it, but it should work.
-Ben
http://megrimm.net/software/green-screen-pd-0.01/green-screen-pd.zip
this sort of works although its still pretty sloppy.
didn't try with screen yet but with the help of iohannes and jacks color picker examples one should be able to key out any solid color from a video just by selecting it in a gem window.
works on my side on osx.
mark
Garrett@asquare.org http://www.asquare.org/ http://www.asquare.org/networkresearch/
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list