OBSCURA VISION WEB SDK · TECHNICAL DEMONSTRATION

Inspect the live document-vision engine.

This page runs directly on the Obscura Vision TypeScript SDK wrapper and WebAssembly runtime. Start your camera to inspect live 4-corner tracking, real runtime telemetry, and planar perspective-corrected image output. All processing runs locally in your browser.

CAMERA VIEWPORT wasm · initializing on start
IDLE

Camera is stopped

Click Start Camera to initialize the WebAssembly vision worker and begin live 4-corner detection.

LIVE ENGINE TELEMETRY IDLE
{
  "state": "idle",
  "note": "Start the camera to stream real DetectionFrame and CaptureResult payloads."
}
EVENT LOG
  • --:--:--INITReady. Waiting for Start Camera.

PERSPECTIVE-CORRECTED OUTPUT

No capture yet

Start the camera, point it at a document, and click Capture Document to inspect the actual planar perspective-corrected image returned by scanner.capture().

REAL SDK INTERFACE

Integration example

The exact TypeScript API powering this page. Zero PDF or OCR dependencies required.

import { createObscuraVision } from './sdk/obscura-vision'

const video = document.querySelector<HTMLVideoElement>('#camera')!
const overlay = document.querySelector<SVGSVGElement>('#overlay')!

const scanner = createObscuraVision({
  captureMimeType: 'image/png',
  onReady: (caps) => console.log('Runtime ready:', caps.backend, caps.threads),
  onDetection: (frame) => {
    // frame: { status, locked, score, corners, normalizedCorners, supportedSides, inferenceMs, ... }
    console.log(frame.status, frame.locked, frame.corners)
  },
  onError: (err) => console.error(err.code, err.message),
})

await scanner.startCamera(video, overlay)

const result = await scanner.capture()
const previewUrl = URL.createObjectURL(result.blob)
// result: { blob, mimeType, width, height, corners, normalizedCorners, detected, inferenceMs, warpMs }

// Release camera tracks, animation loop, and WebAssembly worker on exit
scanner.stopCamera()
scanner.destroy()
URL.revokeObjectURL(previewUrl)

Ready to embed Obscura Vision in your web app?

One-time perpetual commercial license ($499 single project or $899 unlimited projects). Complete TypeScript source and compiled WASM binaries.

Get the Commercial Source License