This is just a slight modification of the Google Vision sample code for scanning QR and barcodes. It copies the first detected code to clipboard and closes. Nothing more, nothing less.
Это всего лишь небольшая модификация образца кода Google Vision для сканирования QR-кодов и штрих-кодов. Копирует первый обнаруженный код в буфер обмена и закрывается. Ни больше ни меньше.