问题标签 [chromakey]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
147 浏览

python - Why I can't get the red color of tomatoes out of image?

I tried a code from stackoverflow but it shows black color for me. what I want to do is:

Get Tomatoes white and other things black of this image

Salad with red tomatoes

To get red colors out of this image I used this code:

result is this

Black.

thank you for reading

0 投票
0 回答
77 浏览

chromakey - Openshot 色度键功能无法可靠工作

我曾经能够使用 Chroma 键功能并且它有效。但无法再次使用相同的视频剪辑执行此操作。模糊因子低时,看不到背景,高时前景变得模糊。

由于某种原因,我需要在视频或背景图像上设置一些其他属性吗?

任何手都表示赞赏。我要编辑的视频已经在 youtube 上。

https://www.youtube.com/watch?v=e9aLVLIiReQ

0 投票
0 回答
63 浏览

javascript - 8thWall - 使用 Chromakey Shader 时缩略图图像变黑

我是使用 8thWall 的新手,并且一直在调整 8thWall 库中的Image Targets Flyer作为我自己项目的起点。

我注意到,当我向a-entity标签添加 Chromakey 着色器时,初始缩略图总是呈现黑色并且不显示预期的图像。不使用 Chromakey 时,我可以正确看到缩略图。

到目前为止,这是我的代码:

我确保我的项目引用了 head.html 中的 aframe-chromakey-material.min.js JavaScript 插件

任何帮助表示赞赏!

0 投票
0 回答
25 浏览

javascript - 如何在three.module.js中添加色度键

我正在尝试使用 THREEJS 模块在链接中制作场景。但我做不到。如何将js文件转换为模块并导入?我不想像在演示中那样通过将 js 文件添加到 html 页面来使用它。

https://github.com/BOXNYC/Three.js-Extras/tree/main/Hologram

演示:https ://threee.box.biz/hologram/

网页:

shrm.js 文件:

0 投票
0 回答
37 浏览

video-streaming - obs中白色背景的色度键

我在 OBS 中有一个视频源,在该视频源上应用了色度键过滤器。基本上,该视频显示了一个带有白色背景幻灯片和一些黑色文本的幻灯片。当我尝试删除白色背景(使其透明)以便只有黑色文本可见时 - 所有视频都被删除 - 包括黑色文本。

关于如何实现这一目标的任何想法?提前致谢

0 投票
0 回答
23 浏览

video - ffmpeg - 改变透明像素的颜色

背景:

当您将像素变为透明时,实际上您只是将像素的 alpha 值设置为 00。所述像素仍然可以具有任意颜色,无论它是绿色、蓝色、黑色还是完全不同的颜色。

我的问题:

我得到了一个视频,它有很多“透明绿色”像素,它们都具有 RGBA 颜色 00D70000。我需要一种将所有这些透明绿色像素转换为透明黑色的方法,RGBA 值为 00000000。

我将如何使用 ffmpeg 完成此任务?其他命令行工具也可以,只要设置起来不麻烦……