QR Code Detection and Image Processing
QR code decoding begins with image processing to locate and extract QR code from input images. The process includes: grayscale conversion for simplified processing, binarization using adaptive thresholding (Otsu's method) to separate black modules from white background, finder pattern detection (identifying three corner squares with 1:1:3:1:1 ratio), perspective transformation to correct skewed/rotated codes, and module grid detection.