摘要 |
A method for image processing a two-dimensional (2D) code, including: obtaining an image by scanning a screen displaying the 2D code using a plurality of pixels, where the image includes multiple hard edges corresponding multiple spaces on the screen between the multiple pixels; identifying a pixel pitch of the screen; reducing the multiple hard edges by applying a filter based on the pixel pitch to the image; and generating, after reducing the multiple hard edges, a binary image including the 2D code by applying a threshold function to the image. |