Skip to content

object-detection · vision · MediaPipe Tasks 0.10.18 · 4.60 MB int8 · WASM · Apache-2.0

MediaPipe ObjectDetector — 80-class COCO boxes on-device

Google's EfficientDet-Lite object detectors localize 80 COCO categories in tens of milliseconds inside a classic Web Worker. Switch between Lite0 INT8 (4.60 MB), Lite2 INT8 (7.52 MB), and Lite0 FP32 (13.84 MB) — every image stays strictly on your device.

Interactive object detection workspace

Loading sample image…

Click any box or detection chip to inspect its score, pixel bounds, and COCO category ID.

VariantLite0 INT8
Backend / WebGL–
Inference–
Shown / raw ≥ 0.15–
Unique classes–
Top score–
Detected COCO categories above threshold
Category Group Count Best score Mean score Frame share
Run the detector to inspect per-class counts and coverage.

At a glance

Exact MediaPipe ObjectDetector runtime, verified GCS artifacts, and I/O contract
Model family Google MediaPipe ObjectDetector (mediapipe/object-detector)
Task object-detection — 80 COCO object categories with axis-aligned bounding boxes and confidence scores
Runtime @mediapipe/tasks-vision@0.10.18 · ObjectDetector.createFromOptions() in a classic Web Worker (ImageBitmap transfer)
Quantization & variants int8 default: EfficientDet-Lite0 INT8 (4.60 MB / 4,602,795 B · 320×320 · 25.69 mAP), EfficientDet-Lite2 INT8 (7.52 MB / 7,515,971 B · 448×448 · 33.97 mAP), EfficientDet-Lite0 float32 (13.84 MB / 13,836,895 B · 320×320 · 26.41 mAP). Every download is SHA-256 verified before caching.
Backend requirement CPU WASM (XNNPACK delegate) + WebGL required (hardware WebGL or SwiftShader WebGL for MediaPipe bitmap upload; degrades honestly if WebGL is disabled)
Output shape { detections: [{ boundingBox: { originX, originY, width, height }, categories: [{ categoryName, score, index }] }] }
License Apache-2.0

Inspect the live implementation

</> Classic Web Worker (worker.js) View source
</> Pure detection & export core (object-detector-core.mjs) View source

References & provenance