Decode barcode from image
decode_barcodeDecode 1D and 2D barcodes from image files or base64 strings. Supports QR, Code 128, EAN, UPC, DataMatrix, and more, returning decoded values and formats.
Instructions
Decode 1D and 2D barcodes (QR, Code 128, EAN, UPC, Code 39, DataMatrix, etc.) from an image supplied as a base64 string or a local file path. Returns the decoded value(s) and format(s).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Local image file path (png/jpg/etc.) | |
| base64 | No | Image as base64 (data URI prefix allowed) | |
| formats | No | Optional list of zxing formats to restrict to (e.g. ["QR_CODE","CODE_128"]) |