Decode barcodes from an image
decode_barcodeDetect and decode all barcodes in an image. Input: base64-encoded image bytes (PNG/JPEG/WebP/anything sharp reads). Output: JSON array of {format, text}. Supports QR, Aztec, DataMatrix, Code128/39/93, EAN-13/8, UPC-A/E, ITF, PDF417, Codabar. Use formats filter to restrict results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| formats | No | Optional canonical format ids to keep, e.g. ["qr","ean13"] | |
| image_base64 | Yes | Base64-encoded image file bytes (no data: URI prefix) |