ChromaKey(greenscreen)

Hi,

What is the best way to apply ChromaKey with greenscreen in openframeworks to a video grabber or a movie. Does exist an function on opencv that can be apply to get all the difference(pixels) between the original image and the green screen background image. Thanks in advance for any help.

Regards

I’m not an expert but I guess you could try with openCV’s absDiff command:

realImage.absDiff(chromaImage, realImage);

:?

I realize this post is old, but here are these addons:

ofxChromaKey
https://github.com/underdoeg/ofxChromaKey

ofxGreenscreen
https://github.com/underdoeg/ofxGreenscreen