Tagged articles
6 articles
Page 1 of 1
Bilibili Tech
Bilibili Tech
Jun 9, 2023 · Artificial Intelligence

Implementing Face Blocking Danmaku Using Machine Learning in Browser

Liu Jun explains how Bilibili’s engineers replaced traditional pre‑processed SVG masks with a real‑time, browser‑based machine‑learning pipeline—using MediaPipe SelfieSegmentation, OffscreenCanvas, and Web Workers—to extract human contours and block faces in danmaku, achieving roughly 5 % CPU load on a 2020 M1 MacBook.

Face DetectionMediaPipeWeb Workers
0 likes · 9 min read
Implementing Face Blocking Danmaku Using Machine Learning in Browser
ELab Team
ELab Team
Jul 21, 2022 · Frontend Development

How to Build a Web Video Cutter with FFmpeg, WASM, and OffscreenCanvas

This article walks through the design and implementation of a web‑based video cutter, covering its overall architecture, the use of ffmpeg compiled to WebAssembly, OffscreenCanvas rendering, and worker threads, while providing code examples and practical tips for achieving smooth preview and export functionality.

ffmpeg wasmmedia processingoffscreencanvas
0 likes · 18 min read
How to Build a Web Video Cutter with FFmpeg, WASM, and OffscreenCanvas
DeWu Technology
DeWu Technology
Dec 23, 2021 · Frontend Development

Canvas Performance Optimization Techniques

Canvas performance hinges on the number and size of drawn shapes, so optimizing by reducing draw‑calls, using layered or clipped rendering, and offloading heavy drawing to OffscreenCanvas or Web Workers can preserve frame rates and keep the UI responsive.

CanvasJavaScriptWeb Workers
0 likes · 15 min read
Canvas Performance Optimization Techniques
DeWu Technology
DeWu Technology
Dec 16, 2021 · Frontend Development

Canvas Performance Optimization Techniques

Optimizing HTML5 canvas performance involves reducing draw calls, using layered and clipped rendering, performing quick bounding‑box checks, and offloading heavy drawing to OffscreenCanvas with Web Workers, enabling smooth animation even when thousands of shapes are rendered.

CanvasJavaScriptRendering
0 likes · 14 min read
Canvas Performance Optimization Techniques