March 2019
Intermediate to advanced
532 pages
13h 2m
English
To complete this chapter, we are going to learn how to detect QR codes in images. This way, QR codes can also be used as markers for our augmented reality applications. The cv2.detectAndDecode() function both detects and decodes a QR code in the image containing the QR code. The image can be grayscale or color (BGR).
This function returns the following:
In the qr_code_scanner.py script, we make use of the aforementioned function to detect and decode QR codes. The key points are commented next.
First, the image is ...