1.2.1 • Published 1 year ago

video-green-screen-processing v1.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

video-green-screen-processing

将视频扣绿成透明背景 基于 three@0.118.3 实现,高于 0.118.3 版本视频扣绿无感知切换视频源会失效

const videoProcessing = new ProcessingVideo();
/**
 * 开始扣绿
 * @param {string} inputVideoId 输入视频video标签 id
 * @param {string} outputVideoId 输出视频dom id
 * @param {number | string} color 要过滤的颜色 如0x00ff05, #0000ff
 * @param {number} pixelRatio 扣绿画板和视频的分辨率比例,默认1
 */
videoProcessing.initVideoScene(inputVideoId, outputVideoId, color);

//更改扣绿视频源
videoProcessing.setVideoSource(inputVideoId, color);

//停止扣绿
videoProcessing.destroy();
1.2.0

1 year ago

1.2.1

1 year ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.2

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago