screen.screen.detect_barcodes
Declaration
lua
screen.detect_barcodes([x1, y1, x2, y2 [, timeout_ms]])
Description
Detect barcodes/QR codes on screen using Vision framework.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
x1,y1,x2,y2 | number | Optional | Full screen | Region |
timeout_ms | number | Optional | 3000 | Detection timeout |
Return Values
| Type | Description |
|---|---|
| table | Array of barcode text strings |
| table | Array of detail objects |
Example
lua
local texts, details = screen.detect_barcodes()