The invention discloses a coding
watermark pattern generation, hiding and detection method, which comprises the following steps of: firstly, establishing a Cartesian coordinate
system for an original graph, calibrating, further quantifying the gray scale of the original graph into dark and light color blocks, and further splicing the adjacent dark and light color blocks into a virtual graph block; the method comprises the following steps of: performing channel coding on
source data to be hidden, generating a coding sequence, further modulating the coding sequence by adopting a two-dimensional spreading code, generating a two-dimensional matrix
signal, performing two-dimensional inverse cosine transformation, forming a two-dimensional
spatial domain signal, performing
amplitude modulation, forming a matrix graph, and performing
information hiding on a virtual graph block; in the detection and
verification stage, the steps of gray scale quantization and virtual graph block splicing are also performed, then two-dimensional cosine transform is performed,
demodulation is performed based on a prior spreading code, a received
signal sequence is further recovered according to the coding sequence of the virtual graph blocks, channel decoding is further performed, and authenticity
verification of information is completed. According to the invention, the
information security degree and the anti-counterfeiting level are improved.