Barcode scanner
read_barcodeRead every barcode in a PNG, JPEG or WebP image, given as base64 (or a data URL), a public https URL, or an attached file. At most 2 MB and 4000 by 4000 pixels. Returns text, format, corner positions and GS1 product number, expiry and lot when present.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public https URL of a PNG, JPEG or WebP image; 2 MB maximum. | |
| file | No | An image file the user attached (OpenAI Apps SDK file parameter). | |
| image | No | Base64 PNG/JPEG/WebP or image data URL; 2 MB decoded maximum. Give one of image, url or file. |