description:Scan images for QR codes, barcodes, and 2D codes with annotated output.
---
# Barcode Reader
Scan uploaded images for all types of barcodes and QR codes. Returns decoded text, barcode type, and position data for each detected code. Also generates an annotated image with colored bounding boxes around detected codes.
- Uses the zxing-wasm library for barcode detection.
- The annotated image overlays colored polygon bounding boxes and numbered labels on each detected barcode.
- Up to 255 barcodes can be detected in a single image.
- If no barcodes are found, `barcodes` is an empty array and `annotatedUrl` is null.
- The `tryHarder` mode performs more thorough scanning at the cost of processing time. Disable it for faster processing of clean, well-aligned barcodes.
- The annotated output is always PNG format.
- HEIC, RAW, PSD, and SVG inputs are automatically decoded before scanning.
- EXIF orientation is auto-applied before processing.