Shape Detection API Playground

Detect faces, barcodes, and text from your camera or an image.

Start here

Pick an input source to get a live preview or load a file.

Tip: drag & drop an image onto the preview, or paste with Ctrl/⌘+V.

Preview

Drop image to load
Loaded image preview

Results

Detections will list here (raw objects in console).
TypeSummaryBox (x,y,w,h)

Detectors

Supported barcode formats (from BarcodeDetector.getSupportedFormats()):

Status & Environment

Instructions / Troubleshooting
  1. Use a Chromium-based browser. This demo uses the Shape Detection API.
  2. Barcode is commonly available by default. Face and Text may require enabling experimental features depending on your build.
  3. If something is unavailable, try enabling: chrome://flags/#enable-experimental-web-platform-features, restart the browser, then refresh this page.
  4. Camera requires a secure origin (https:// or localhost).
  5. Loading an image by URL requires the image server to allow CORS; otherwise you’ll see a SecurityError.
  6. Detectors are asynchronous and not guaranteed to be real-time. Prefer manual snapshots or occasional checks.