CodePudding user response:
Is to find a square contour in the qr code? Is it inside the contour line? Direct binarization and contour extraction should be right, after all, qr code generally white background and black text, foreground background is quite easy to separate, opencv is a ready-made qr code extraction function, but just take a rectangular,