From anyone’s experience, what is the best way to handle chroma keying in OFx, using either anything built in or with an addon? We need to chroma key a football field during a game, leaving players to layer objects below them. What works best? Additionally, is there a system that allows you to pick colors to specifically NOT be keyed? Thanks.
1 Like
Hennio
November 28, 2016, 8:55am
#2
If you are experienced with shaders, you can use them to filter out the color (ranges) you want to use as chroma.
Using shaders, use conditionals (ifs) to keep the colors you want, and discard the colors not whitelisted.
Would OpenCV’s libraries or an addon work better? Or does this offer the best result?
Hennio
November 30, 2016, 12:12pm
#4
If you are able to find a solution using OpenCV then go for it, it is a well known library and there is plenty of support. For efficiency try to use GPU functionalities such as CUDA or OpenCL, available in OpenCV.
You can also search in the forums (before posting a new thread) for previous experiences with chroma keying:
Hi I’m new to oF and I wanted to know if anybody know a simple method to make a Chroma key replacing for simple video.
I tried to make ofxGreenScreen works but I had a lot of problems with Xcode. I use 10.9 and Of 0.8 and I don’t know if maybe this add-on is outdated.
I also tried ofxChromaKey but I can’t get a good result, I could make it works, but there are a lot of pixels dancing in my screen and It`s not cool.
Maybe this is a quite simple work in Of but I don’t know how to…
I’ve been adding a green-screen/chroma-key feature to video and live-cam content in my little projection mapping tool (see http://www.hv-a.com/lpmt )
The greenscreen color can be adjusted be user while program is running, and it has a threshold that can be adjusted as well.
I’ve implemented like this:
this code is run in update() function for each
// video greenscreen stuff
if (videoGreenscreen) {
// gets video frame pixels array
videoPixels = vide…
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
Hi all,
Hopefully someone can help me out. I’m trying to create some “simple” color replacement code (for just a single image, not a video-style stream of images!) as part of a larger project. The problem is that I’m pretty unexperienced with both oF and C++, so the going is slow and I seem to constantly be running into problems.
The basic flow of what I have so far is like this (torn down into pieces so that it’s easier to see what I’m doing, this is not the full code)
// in setup() --…
I’ve also posted a thread in the “beginner” forum, but as it is related to OpenCv, I’d like to stick a mention in here as well. The other thread is here http://forum.openframeworks.cc/t/chromakeycolor-replacementgreen-screeningetc./2308/0
I’m trying to accomplish some simple green screen removal using OpenCV to process a single image (not a video feed). I’m sure this is very easy, but as I’m kind of a newbie to this stuff, I am likely overlooking something simple and stupid.
The problem I’m ha…
1 Like