screen

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
NameTypeRequiredDefaultDescription
x1,y1,x2,y2numberOptionalFull screenRegion
timeout_msnumberOptional3000Detection timeout
Return Values
TypeDescription
tableArray of barcode text strings
tableArray of detail objects
Example
lua
local texts, details = screen.detect_barcodes()