Questions tagged [chromakey]

The technique has been used in many fields to remove a background from the subject of a photo or video – particularly the newscasting, motion picture, and video game industries. A color range in the foreground footage is made transparent, allowing separately filmed background footage or a static image to be inserted into the scene. The chroma keying technique is commonly used in video production and post-production. This technique is also referred to as color keying, colour-separation overlay (CSO; primarily by the BBC), or by various terms for specific color-related variants such as green screen, and blue screen – chroma keying can be done with backgrounds of any color that are uniform and distinct, but green and blue backgrounds are more commonly used because they differ most distinctly in hue from most human skin colors. No part of the subject being filmed or photographed may duplicate the color used as the backing.

It is commonly used for weather forecast broadcasts, wherein a news presenter is usually seen standing in front of a large CGI map during live television newscasts, though in actuality it is a large blue or green background. When using a blue screen, different weather maps are added on the parts of the image where the color is blue. If the news presenter wears blue clothes, his or her clothes will also be replaced with the background video. Chroma keying is also common in the entertainment industry for visual effects in movies and video games.

87 questions
1
vote
0 answers

The homemade Chroma Key filter I developed in OBS-Studio can't use the usual green or blue background, but it can be used in red

I refer to the OBS Studio 20.1.0 documentation and chroma_key_filter.effect on github. I have had a problem with the recent homemade obs-studio filter. I can't think of how to solve it. I want to ask everyone here, I hope I can get some suggestions…
Jared C
  • 11
  • 3
1
vote
0 answers

Convert Black to Transparency in FFMPEG

I have a sequence of BMP images, which I'm concatenating to an MPNG video file, with this FFMPEG code: ffmpeg -f image2 -framerate 12 -i "Frame_%d.bmp" -c:v png "Video.avi" I want to replace all black pixels with a transparency in the alpha layer,…
Kapitano
  • 163
  • 13
1
vote
1 answer

How to crop WebcamTexture with shader?

I have a chromakey shader works perfectly in Unity 2018.3. I need to add top,bottom,left,right properties to the shader and use these parameters to make unwanted portions of the texture transparent. Here is the image coming from texture; All…
Serkan
  • 13
  • 4
1
vote
0 answers

Android WebView change color with transparent (chroma key)

I need to change (better also color in area) any color on WebView with transparent. It must work like AvoidXfermode (I can't use it because of deprecated) Example: I have red background and some dive with black color, I need to change this black…
AgnitumuS
  • 11
  • 1
1
vote
0 answers

Javascript chroma key threshold and how to code it?

I am currently trying to make a chroma key effect with a video. It's partially work, meaning: only a few pixels are made transparant. But I need make the other pixels that are in the same color range, or color neighborhood, transparent. The code…
1
vote
1 answer

Understanding Chromakey

Given this sample code that replaces all the blue with a new background: public void chromakeyBlue(Picture newBg) { Pixel [] pixelArray = this.getPixels(); Pixel currPixel = null; Pixel newPixel = null; for (int i = 0; i <…
emily
  • 11
  • 3
1
vote
0 answers

how to play a video with cordova plugin vuforia

I have a mobile app made with cordova. I want to add augmented reality and I installed the plugin vuforia. I have configured my own image and it works me correctly, but I do not know how to launch a video. Also, I have a video with green background,…
1
vote
1 answer

ffmpeg chromakey filter: blend parameter does not what it should

I want to remove greenscreen background and am not completely satisfied with what I have achieved because I still have green borders (especially on semi-transparent areas like hair, when I move my head). The documentation for the blend-parameter of…
Mat
  • 140
  • 1
  • 4
  • 12
1
vote
1 answer

Is it possible to use a video instead of a image for background in kurento chroma filter module?

I am using kurento media server for video broadcasting, my use case is to input two video streams and apply chroma key on the top video and then display the chroma-keyed video on the other video stream. I am planning to use the kurento chroma key…
piyush
  • 868
  • 13
  • 29
1
vote
0 answers

ChromaKey Javascript slow performance

Hi guys below is the code for a chroma key program I am trying to work on in JavaScript. It's really lagging and the quality isn't good. I was wondering how I would go about making this more efficient. I posted the entire code below but I am sure…
vdgoran
  • 11
  • 1
1
vote
0 answers

Use Pillow (PIL fork) for chroma key

I am new in coding and I want to create a chroma key automation for images using python and Pillow (https://pillow.readthedocs.org/en/3.0.x/handbook/tutorial.html). How can I proceed? Do you know other libraries to do this thing in a better way?…
Leonardo
  • 43
  • 7
1
vote
1 answer

How to essentially "Chroma Key" in WebGL?

I am trying to figure out how to set the alpha of a textured square that I draw depending on the color. I am using a picture of a red Alabama A with a white background. I want to be able to toggle it to take out the red and show through the A and…
EthanSchatz
  • 25
  • 1
  • 8
1
vote
1 answer

Remove image background

I am trying to remove the green background of this image using Magick.Net but I'm kind of stuck. I have tried the following: var image = new MagickImage("test.jpg"); image.ColorFuzz = new Percentage(20); image.TransparentChroma(new…
Klaus Byskov Pedersen
  • 117,245
  • 29
  • 183
  • 222
1
vote
1 answer

AS3 - Chroma Keying in pure AS

Let's say I have a bitmap with 3 circles (red , purple , yellow), I would like (in pure AS, no PixelBender) to post process the image and set the alpha of the yellow pixels to 0. Can I use the ColorMatrixFilter class, or should I iterate over the…
Shlomi Schwartz
  • 8,693
  • 29
  • 109
  • 186
1
vote
2 answers

how to develop background removal using chroma keying in opencv

I need to develop an algorithm to remove a background from the foreground image. I would like to use chroma keying. This will be done on a live camera stream and I need to do it using OpenCV in C++. The algorithm I thought would be something…
Seif Sharif
  • 103
  • 1
  • 2
  • 10