Skip to content

Tech Choice Comparisons ​

1. Computer Vision Runtime: Google MediaPipe Wasm vs TensorFlow.js vs Server-Side OpenCV ​

CriteriaMediaPipe Wasm (Chosen)TensorFlow.jsServer-Side OpenCV
Inference Latency< 15ms (GPU delegate)30-60ms150-300ms (Network delay)
Privacy100% Local on Device100% Local on DeviceLow (Streams sent to server)
Model Size~3.5MB quantized float1610-25MBZero client footprint
Server CostZero ($0.00 infrastructure)ZeroHigh GPU VM instances

Why Chosen: MediaPipe Tasks Vision provides pre-trained, float16 quantized landmark models with native WebAssembly and WebGL bindings, delivering 30fps real-time inference with zero cloud compute costs.

2. Video Player Integration: Native HTML5 Video Element vs Video.js vs YouTube Embed API ​

CriteriaNative HTML5 Video (Chosen)Video.jsYouTube Iframe API
LatencyInstantaneous DOM accessVery fastInterrupted by postMessage
Bundle Overhead0KB (Native browser API)~150KBExternal iframe overhead
Direct Buffer AccessFull video.currentTime controlFull controlLimited by API restrictions

Why Chosen: Direct DOM access allows sub-millisecond execution of play/pause commands without intermediate abstraction layers.