chromakey

c# .NET green screen background remove

限于喜欢 提交于 2020-12-29 07:22:06
问题 I am working on a photo software for desktop PC that works on Windows 8. I would like to be able to remove the green background from the photo by means of chroma keying. I'm a beginner in image manipulation, i found some cool links ( like http://www.quasimondo.com/archives/000615.php ), but I can't transale it in c# code. I'm using a webcam (with aforge.net) to see a preview and take a picture. I tried color filters but the green background isn't really uniform, so this doesn't work. How to

How to feather the chroma mask from edges

徘徊边缘 提交于 2020-08-10 19:07:36
问题 This is the shader i am using to do chroma key , the shader works well but i need to feather the edges of the chroma mask. How can i do that ? #version 430 core uniform sampler2D u_tex; vec4 keyRGBA = vec4(86.0 / 255.0 , 194.0 / 255.0, 46.0 / 255.0 , 1.0); // key color as rgba vec2 keyCC; // the CC part of YCC color model of key color uniform vec2 rangeSpill = vec2(0.1, .52); // the smoothstep range for spill detection uniform vec2 range = vec2(0.05, 0.21); // the smoothstep range for chroma

How to not cause dark gray color to be transparent removing background from image

好久不见. 提交于 2020-04-13 17:10:11
问题 I'm having an issue where when I try to remove the green from an image (in this case the image background) but all the dark grays (within the part of the image I want to keep) become semi-transparent. I am unsure why, would like some advice on how to: func chromaKeyFilter(fromHue: CGFloat, toHue: CGFloat) -> CIFilter? { let size = 64 var cubeRGB = [Float]() for z in 0 ..< size { let blue = CGFloat(z) / CGFloat(size-1) for y in 0 ..< size { let green = CGFloat(y) / CGFloat(size-1) for x in 0 .

Android video remove chroma key background

99封情书 提交于 2020-01-02 08:56:17
问题 I have checked this question. It is very similar: I want to record a video with android camera. After that with a library remove the background, which is with chroma key. First I think I should use android NDK in order to escape from SDK memory limitation and use the whole memory. The length of the video is short, a few seconds so maybe is able to handle it. I would prefer to use an SDK implementation and set the android:largeHeap="true" , because of mismatching the .so files architecture.

avassetwriter with greenscreen or chromakey

不羁的心 提交于 2019-12-19 11:38:05
问题 Is it possible to composite green screen images -- an animated actor against a green background, with a backdrop photo and make a video of that using avassetwriter on the iPhone. I have an application that creates a sequence of screenshots of an animated character against a green background. I'd like to composite those with a photograph from their library. Is there some way to composite the two into a video on the iPhone? Thanks, 回答1: Yes, there is. I just added a chroma key filter to my

How to accurately filter RGB value for chroma-key effect

假装没事ソ 提交于 2019-12-18 13:20:07
问题 I just read this tutorial and tried this example. So I downloaded a video from web for my own testing. All I have to do is tweak rgb values in if conditions HERE is the sample code from example computeFrame: function() { this.ctx1.drawImage(this.video, 0, 0, this.width, this.height); let frame = this.ctx1.getImageData(0, 0, this.width, this.height); let l = frame.data.length / 4; for (let i = 0; i < l; i++) { let r = frame.data[i * 4 + 0]; let g = frame.data[i * 4 + 1]; let b = frame.data[i *

How to remove green background of a video and paste that video on the background of html5 website using only html5 and javascript?

一个人想着一个人 提交于 2019-12-13 02:13:52
问题 So I'm making a website and I have a amazing star wars video with a green background. And I want to remove the green background (chroma key) and paste the video over the html5 website background. I've searched for hours (not jokking) and I can only find complex code that uses images... So I would like to replace the green video background with nothing and then paste it over the background of the website. Can someone help me? I know this is an old toppic, but I'm just starting to code and help

Looking for Chromakey library in Java [closed]

眉间皱痕 提交于 2019-12-12 13:24:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I was wondering if anyone knows of a library for chromakey that is written in Java? I am looking to edit the contents of a green screen image using Java to compliment an existing Java development. I know that there is a C library known as open-CV that provides this ability and much more, and was hoping someone

GPUImage terminates due to [AVAssetWriter startWriting] Cannot call method when status is 3'

柔情痞子 提交于 2019-12-10 19:19:28
问题 I am having an issue running GPUImage. I have modified SimpleVideoFileFilter program(replaced the filter with a chromakeyfilter) and am using my own video. My program is terminating due to the following error: [AVAssetWriter startWriting] Cannot call method when status is 3' I have gone through the forums but not sure why the moviewriter is closing and then someone is writing to it. I am using iPhone4 running iOS 7.0 Any clues are greatly appreciated. Thanks much! 回答1: Check whether your

Android video remove chroma key background

白昼怎懂夜的黑 提交于 2019-12-06 05:57:06
I have checked this question. It is very similar: I want to record a video with android camera. After that with a library remove the background, which is with chroma key. First I think I should use android NDK in order to escape from SDK memory limitation and use the whole memory. The length of the video is short, a few seconds so maybe is able to handle it. I would prefer to use an SDK implementation and set the android:largeHeap="true" , because of mismatching the .so files architecture. Any library suggestion for SDK or NDK please. IMO you should prefer NDK based solution, since video