transparency

How to keep transparency when scale webm file with ffmpeg

Deadly 提交于 2021-02-20 00:26:10
问题 I'm using ffmpeg to scale my WEBM file, by using below command: ffmpeg -i in.webm -c:v libvpx -vf scale=100:100 out.webm The output has correct resolution as I expected but the problem is transparency become black background. Could someone give me a solution for this. Thank you so much. Below is the log of the operation: ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 7.2.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib -

How to keep transparency when scale webm file with ffmpeg

笑着哭i 提交于 2021-02-20 00:22:41
问题 I'm using ffmpeg to scale my WEBM file, by using below command: ffmpeg -i in.webm -c:v libvpx -vf scale=100:100 out.webm The output has correct resolution as I expected but the problem is transparency become black background. Could someone give me a solution for this. Thank you so much. Below is the log of the operation: ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 7.2.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib -

How to keep transparency when scale webm file with ffmpeg

微笑、不失礼 提交于 2021-02-20 00:21:19
问题 I'm using ffmpeg to scale my WEBM file, by using below command: ffmpeg -i in.webm -c:v libvpx -vf scale=100:100 out.webm The output has correct resolution as I expected but the problem is transparency become black background. Could someone give me a solution for this. Thank you so much. Below is the log of the operation: ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 7.2.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib -

How to keep transparency when scale webm file with ffmpeg

六眼飞鱼酱① 提交于 2021-02-20 00:19:59
问题 I'm using ffmpeg to scale my WEBM file, by using below command: ffmpeg -i in.webm -c:v libvpx -vf scale=100:100 out.webm The output has correct resolution as I expected but the problem is transparency become black background. Could someone give me a solution for this. Thank you so much. Below is the log of the operation: ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 7.2.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib -

create transparent image from png, winapi

*爱你&永不变心* 提交于 2021-02-19 05:45:12
问题 I created a simple form to test in winapi: I uploaded here: http://pastebin.com/7dNjE1Tb I would like to put a simple png file to my hwnd, for example this picture: http://www.ledavi-network.com/includes/images/bg_shadow_png.png I know I should use this: http://msdn.microsoft.com/en-us/library/windows/desktop/dd145141(v=vs.85).aspx but I am very new in winapi and I dont find any example how to use this TransparentBlt function. Someone could help me to create a very simple example? EDIT: But

How to create a transparent mask in opencv-python

时光毁灭记忆、已成空白 提交于 2021-02-18 13:53:35
问题 I have sign (signs with arbitrary shape) images with white background and I want to get an image of the sign with transparent background. I have managed to create a mask and apply it to the image and thought making the mask transparent would be doable. I searched a lot here and elsewhere, but nothing really helped me. import cv2 import numpy as np file_name = "/path/to/input/img/Unbenannt.jpg" # can be also .png img = cv2.imread(file_name) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) th,

How to create a transparent mask in opencv-python

南楼画角 提交于 2021-02-18 13:52:37
问题 I have sign (signs with arbitrary shape) images with white background and I want to get an image of the sign with transparent background. I have managed to create a mask and apply it to the image and thought making the mask transparent would be doable. I searched a lot here and elsewhere, but nothing really helped me. import cv2 import numpy as np file_name = "/path/to/input/img/Unbenannt.jpg" # can be also .png img = cv2.imread(file_name) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) th,

cv2 imread transparency gone

江枫思渺然 提交于 2021-02-10 12:19:51
问题 I have an image (a captcha) that I download from the web. When I loaded to opencv it seems to loose its properties or simply mixes the transparent background with the dark/black colors: Currently the code does nothing but loading a writing again: captchaImg = cv2.imread('captcha1.png') cv2.imwrite("captcha2.png", captchaImg) I have tried loading also with options 0, 1, 2, 3 but the result is the same. 回答1: Well this is a problem with opencv and it has a solution with opencv but it is kind of

cv2 imread transparency gone

牧云@^-^@ 提交于 2021-02-10 12:18:06
问题 I have an image (a captcha) that I download from the web. When I loaded to opencv it seems to loose its properties or simply mixes the transparent background with the dark/black colors: Currently the code does nothing but loading a writing again: captchaImg = cv2.imread('captcha1.png') cv2.imwrite("captcha2.png", captchaImg) I have tried loading also with options 0, 1, 2, 3 but the result is the same. 回答1: Well this is a problem with opencv and it has a solution with opencv but it is kind of

Output a Java window as a webcam stream

故事扮演 提交于 2021-02-10 03:59:57
问题 I would like to write a program perferably in Java that can display animated overlays on a screen. The screen will then be broadcast streamed over the internet using a separate program called x-split. A good way to do this would be to create a transparent window in java which will display animated files (with transparancy) and the output of this window (Its display) should ideally appear in the webcam device list so it can be easily picked up by x-split which will allow it to be arranged