php identify QR code

 

include_once LIB_ROOT_PATH . '3rdParty/QRReader/lib/QrReader.php';// Introduce the QR code recognition plugin

// Read the thumbnail of the QR code and recognize it.
$qrcode = new \QrReader('./temp/Upload/imora/thumbnails/'.$key.'.jpg');
$text = $ qrcode->text(); //Return the recognized text
$uuid = explode("q/", $text)[1]; // Intercept the last parameter

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325890444&siteId=291194637