object-detection · document image · WASM · ~210 MB
Drop in a scanned document and the model draws a box around every handwritten signature it finds. It's a detector trained for one job — locating signatures on forms, contracts and letters — the way another detector finds tables. Everything runs on your device; the document never leaves the tab.
| Model | onnx-community/yolos-base-signature-detection-ONNX |
|---|---|
| Task / pipeline | object-detection |
| Classes | 1 — signature (a box + confidence per detection) |
| Architecture | YOLOS — a DETR-style detector with a ViT backbone |
| Quantization | q4f16 ONNX (the int8 build won't run on WASM — it uses ConvInteger; the float build detects reliably) |
| Backend | WebAssembly (runs anywhere; no WebGPU needed) |
| Download | ~210 MB, cached after first load |
| License | Apache-2.0 |
Drop or choose a document image, or try a sample. Each detected signature is boxed with its confidence.
Drop a document image, or:
Finding where a signature is — not reading it — is a common first step in document automation: you can check a form was signed, crop or redact the signature, or route the page for review. Doing it in the browser means sensitive contracts never have to be uploaded.
It detects the presence and location of a signature — it does not read the name, verify who signed, or check authenticity. It's trained on scanned-document signatures, so it expects real pen-stroke marks (the built-in samples use drawn signatures); very faint marks or unusual layouts can be missed, and the confidence is shown so you can judge.
It's one object-detection call; boxes come back in image pixel coordinates:
import { pipeline } from "@huggingface/transformers";
const detect = await pipeline("object-detection",
"onnx-community/yolos-base-signature-detection-ONNX");
const out = await detect(documentImage, { threshold: 0.3, percentage: false });
// → [{ label: "signature", score: 0.95, box: { xmin, ymin, xmax, ymax } }]
One forward pass returns every signature above the threshold. It runs in a Web Worker so the page stays responsive, and the boxes are scaled from original pixels to the displayed image.