Qrio uses only the luminance, greyscale, or "Y" value of pixels (determined by the PixelPolicy value passed to its decode function). Qrdecoder = qrio.QRDecoder(cam.width, cam.height) Capture a greyscale or YUV image When creating it, pass in the width and height of the image that you will later decode. You'll want to create the QR Decoder object just once in your program, if possible. Overview of QR Scanning Create a QR Decoder object Scan To Adafruit IO: Each scanned and decoded barcode is sent to Adafruit IO, where you can view it on a dashboard or connect it to triggers.Īdditionally, each demo uses the Kaluga's LCD screen to show the live image in greyscale as well as the last scanned code.įor the Scan To Web demo, we've made sure the code works with the free version of Adafruit IO, so give it a try even if you haven't subscribed to IO+ yet.Scan To USB HID: Each scanned and decoded barcode is typed into the connected host computer using a virtual keyboard.Scan To REPL: Each scanned and decoded barcode is printed in the REPL, so you can see it in mu or other compatible software.These demos are designed to work with the Espressif Kaluga development kit, which comes with a compatible camera, can connect via WiFi to Adafruit IO, and has plenty of RAM to store the images for analysis. CircuitPython 7 adds the qrio module, which can decode QR codes from images grabbed with compatible cameras like the OV2640.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |