chromakey

Green screen chroma-key using ImageMagick

喜欢而已 提交于 2019-12-05 01:23:15
问题 I had been searching for good algorithm for green screen chroma key using ImageMagick, but no satisfactory answer so far. I would like to explore a simple method of using range selection along the HSV/HSB color space (similar to -fuzz) to select the green color I want and make them transparent. The -fuzz seems to apply only in RGB space, which is not desired. Can anyone teach me how to select color with seperate range for H, S, V component, for example, 115-125 degree Hue, 40%-60% Saturation

Green screen chroma-key using ImageMagick

纵饮孤独 提交于 2019-12-03 15:55:26
I had been searching for good algorithm for green screen chroma key using ImageMagick, but no satisfactory answer so far. I would like to explore a simple method of using range selection along the HSV/HSB color space (similar to -fuzz) to select the green color I want and make them transparent. The -fuzz seems to apply only in RGB space, which is not desired. Can anyone teach me how to select color with seperate range for H, S, V component, for example, 115-125 degree Hue, 40%-60% Saturation and 30-80% Value. If there is other better chroma-key algorithm, your advice is highly appreciated too.

How to real time preview change of Video recorder on camera like Vigo Video Hypstar

大兔子大兔子 提交于 2019-12-03 11:33:50
问题 I want to change the Surface preview bottom overlay with gif or image Like Vigo Like this Please tell me any sdk or what I am using for this Filter I am able to change the overlay on the top view using this Help of this PictureCallback cameraPictureCallbackJpeg = new PictureCallback() { @Override public void onPictureTaken(byte[] data, Camera camera) { // TODO Auto-generated method stub Bitmap cameraBitmap = BitmapFactory.decodeByteArray (data, 0, data.length); int wid = cameraBitmap.getWidth

How to remove a “green screen” portrait background

空扰寡人 提交于 2019-12-03 09:30:43
问题 I'm looking for a way to automatically remove (=make transparent) a "green screen" portrait background from a lot of pictures. My own attempts this far have been... ehum... less successful. I'm looking around for any hints or solutions or papers on the subject. Commercial solutions are just fine, too. And before you comment and say that it is impossible to do this automatically: no it isn't. There actually exists a company which offers exactly this service, and if I fail to come up with a

How to real time preview change of Video recorder on camera like Vigo Video Hypstar

我的未来我决定 提交于 2019-12-03 02:02:21
I want to change the Surface preview bottom overlay with gif or image Like Vigo Like this Please tell me any sdk or what I am using for this Filter I am able to change the overlay on the top view using this Help of this PictureCallback cameraPictureCallbackJpeg = new PictureCallback() { @Override public void onPictureTaken(byte[] data, Camera camera) { // TODO Auto-generated method stub Bitmap cameraBitmap = BitmapFactory.decodeByteArray (data, 0, data.length); int wid = cameraBitmap.getWidth(); int hgt = cameraBitmap.getHeight(); // Toast.makeText(getApplicationContext(), wid+""+hgt, Toast

Faster method for adjusting PIL pixel values

。_饼干妹妹 提交于 2019-12-01 12:51:03
I'm writing a script to chroma key (green screen) and composite some videos using Python and PIL (pillow). I can key the 720p images, but there's some left over green spill. Understandable but I'm writing a routine to remove that spill...however I'm struggling with how long it's taking. I can probably get better speeds using numpy tricks, but I'm not that familiar with it. Any ideas? Here's my despill routine. It takes a PIL image and a sensitivity number but I've been leaving that at 1 so far...it's been working well. I'm coming in at just over 4 seconds for a 720p frame to remove this spill.

avassetwriter with greenscreen or chromakey

不想你离开。 提交于 2019-12-01 12:08:35
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, Yes, there is. I just added a chroma key filter to my GPUImage framework, which should let you do realtime green screen effects from camera, image, or movie sources.

Faster method for adjusting PIL pixel values

与世无争的帅哥 提交于 2019-12-01 10:43:22
问题 I'm writing a script to chroma key (green screen) and composite some videos using Python and PIL (pillow). I can key the 720p images, but there's some left over green spill. Understandable but I'm writing a routine to remove that spill...however I'm struggling with how long it's taking. I can probably get better speeds using numpy tricks, but I'm not that familiar with it. Any ideas? Here's my despill routine. It takes a PIL image and a sensitivity number but I've been leaving that at 1 so

Remove background from Image & take only Image part for save in iOS

二次信任 提交于 2019-11-30 11:40:05
问题 This is what i need to achieve: Take image from camera or Gallery Remove background from image & save it Background should be anything black or white Also need to remove shadow along with the background Result Example: Original Image Result Image This is what i have tried: CGFloat colorMasking[6]={222,255,222,255,222,255}; CGImageRef imageRef = CGImageCreateWithMaskingColors([IMG CGImage], colorMasking); UIImage *resultThumbImage = [UIImage imageWithCGImage:imageRef scale:ThumbImage.scale

Remove background from Image & take only Image part for save in iOS

六眼飞鱼酱① 提交于 2019-11-30 00:52:47
This is what i need to achieve: Take image from camera or Gallery Remove background from image & save it Background should be anything black or white Also need to remove shadow along with the background Result Example: Original Image Result Image This is what i have tried: CGFloat colorMasking[6]={222,255,222,255,222,255}; CGImageRef imageRef = CGImageCreateWithMaskingColors([IMG CGImage], colorMasking); UIImage *resultThumbImage = [UIImage imageWithCGImage:imageRef scale:ThumbImage.scale orientation:IMG.imageOrientation]; Its only work on white background. Its not more effective. I need to