Alibaba Group Holding Limited
Generating authentication image to verify a two-dimensional code offline
Last updated:
Abstract:
The present disclosure describes technologies related to generating authentication image to verify a two-dimensional (2D) code offline. In some implementations, a 2D code is parsed to identify a plurality of black pixels and a plurality of white pixels. A target image is parsed to identify a plurality of black pixels and a plurality of white pixels. The plurality of black pixels and the plurality of white pixels of the images are converted to a first plurality of binary arrays and a second plurality of binary arrays based on a predetermined rule. At least a portion of the first plurality of binary arrays and a portion of the second plurality of binary arrays are compared, and an authentication image including a plurality of black pixels, a plurality of white pixels, and a plurality of transparent pixels is generated based on comparison results.
Utility
24 Apr 2020
6 Oct 2020