image.img:detect_barcodes
Declaration
lua
img:detect_barcodes([x1, y1, x2, y2 [, timeout_ms]])
Description
Detect barcodes on image.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
x1,y1,x2,y2 | number | Optional | Full image | Region |
timeout_ms | number | Optional | 3000 |
Return Values
| Type | Description |
|---|---|
| table | Texts |
| table | Details |
Example
lua
local texts, details = img:detect_barcodes()