The invention relates to a graphic coding and image decoding method of a
dot matrix anti-counterfeiting code, which optimizes the coordinate
layout of code points by designing template coding units E-S and positioning structure
code point combination rules in the aspect of graphic coding of the
dot matrix anti-counterfeiting code. In combination with a corner sharing splicing
extension method, a data region assignment strategy based on a dynamic
mask and a
boundary region assignment strategy based on
randomization, the
visual saliency of a positioning pattern is effectively reduced, texture traces during splicing printing are inhibited, and the visual quality of a coded image is remarkably improved; in the aspect of image decoding of
dot matrix anti-counterfeiting codes, a UNet neural network
image segmentation method based on
deep learning and a spatial neighbor
search algorithm based on a KDTree
data structure are adopted, and accurate decoding of low-quality images and multi-unit complex dot matrix anti-counterfeiting codes is achieved. The method solves the problems of dominant
exposure of a positioning structure, insufficient decoding robustness and the like, and has the characteristics of good concealment of the positioning structure, strong anti-
copying capability, excellent visual effect and the like.