CN116703427A - Anti-counterfeiting tracing method combining dot matrix code and digital watermark - Google Patents

Anti-counterfeiting tracing method combining dot matrix code and digital watermark Download PDF

Info

Publication number
CN116703427A
CN116703427A CN202310856126.8A CN202310856126A CN116703427A CN 116703427 A CN116703427 A CN 116703427A CN 202310856126 A CN202310856126 A CN 202310856126A CN 116703427 A CN116703427 A CN 116703427A
Authority
CN
China
Prior art keywords
dot matrix
code
target
information
counterfeiting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202310856126.8A
Other languages
Chinese (zh)
Inventor
王丽生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Traceless Anti Counterfeiting Technology Co ltd
Original Assignee
Jiangsu Traceless Anti Counterfeiting Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Traceless Anti Counterfeiting Technology Co ltd filed Critical Jiangsu Traceless Anti Counterfeiting Technology Co ltd
Priority to CN202310856126.8A priority Critical patent/CN116703427A/en
Publication of CN116703427A publication Critical patent/CN116703427A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding

Landscapes

  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Marketing (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The application relates to the field of digital watermarking, and provides an anti-counterfeiting tracing method combining a dot matrix code and a digital watermarking, which comprises the following steps: acquiring a dot matrix code image and watermark information to be embedded into the dot matrix code image, and acquiring code point pixel values corresponding to code point positions based on the dot matrix code image; weighting the code point pixel values, and cascading a plurality of weighted code point pixel values into first target information; embedding the watermark information into first target information to obtain a target anti-counterfeiting traceability data set; and generating the target anti-counterfeiting traceability picture from the target anti-counterfeiting traceability data set through a dot matrix code generator.

Description

Anti-counterfeiting tracing method combining dot matrix code and digital watermark
Technical Field
The application relates to the field of digital watermarks, in particular to an anti-counterfeiting tracing method combining a dot matrix code and a digital watermark.
Background
In order to reduce the harm and loss of counterfeit articles to manufacturers, operators and consumers, numerous anti-counterfeiting technologies have been developed. However, the anti-counterfeiting technology applied to the market at present has the problems of easy imitation, easy copying, easy repeated application, special equipment requirement for application and the like, the anti-counterfeiting effect is not ideal, in order to enhance the anti-counterfeiting capability and traceability reliability of the product, the anti-counterfeiting information of the product is encoded into an image through a dot matrix code technology, and the digital watermark is embedded into an identification image or a package design of the product, so that additional anti-counterfeiting protection can be provided, and a consumer can use a specific decoding tool to verify the authenticity of the product and acquire hidden traceability information.
As disclosed in the patent with publication number CN109978107a, the medium is encoded by fine dot matrix, and the encoding and other information are not affected to be displayed in a superimposed manner; in addition, the coding is carried out in a dot matrix form, the carried coding information is large in quantity, and the requirement of a user for coding a large quantity of complex information can be met;
the prior art has the following defects:
1. the existing digital watermarking technology is generally small in capacity and limited in information quantity capable of being carried. In some application scenarios, larger-capacity information embedding is required to meet complex traceability requirements or provide more verification information;
2. if an attacker can detect the existence of the watermark and modify or delete the watermark, the trace-back and anti-counterfeiting functions are invalid;
3. decoding and extraction of digital watermarks typically requires specific equipment or algorithm support. If the corresponding decoding equipment or algorithm is not available, the watermark information cannot be accurately extracted, and the universality and applicability of the anti-counterfeiting traceability technology are limited.
In view of the above, the application provides an anti-counterfeiting tracing method combining a dot matrix code and a digital watermark.
Disclosure of Invention
The application provides an anti-counterfeiting tracing method combining a dot matrix code and a digital watermark, aiming at the problems of robustness and safety in the prior art.
According to one aspect of the application, there is provided an anti-counterfeiting tracing method combining a dot matrix code and a digital watermark, comprising:
step 1: acquiring a dot matrix code image and watermark information to be embedded into the dot matrix code image, and acquiring code point pixel values corresponding to code point positions based on the dot matrix code image;
step 2: weighting the code point pixel values, and cascading a plurality of weighted code point pixel values into first target information;
step 3: embedding the watermark information into first target information to obtain a target anti-counterfeiting traceability data set;
step 4: and generating the target anti-counterfeiting traceability picture from the target anti-counterfeiting traceability data set through a dot matrix code generator.
As a preferred embodiment of the present application, the analysis logic for the dot matrix code image is:
the number of the dot matrix coding units can be obtained based on the number of the code points of the dot matrix code image and the number of the code points of the dot matrix coding units;
and (3) based on the corresponding position of the dot matrix coding unit in the dot matrix code image, marking the serial number of the dot matrix coding unit, and extracting the code point pixel value of the corresponding code point position in the corresponding dot matrix coding unit.
As a preferred embodiment of the present application, the logic for weighting the code point pixel values is:
respectively multiplying code point pixel values at corresponding positions by target weight values, wherein the target weight values comprise fixed weight values and fluctuation weight values, and the target weight values are products of the fixed weight values and the fluctuation weight values;
the fixed weight value is the ratio of the number of code points of the position where the pixel value of the current code point is positioned to the number of code points of the corresponding lattice coding unit,
and the fluctuation weight value is assigned according to the position corresponding to the code point pixel value.
As a preferred embodiment of the present application, the assignment logic of the fluctuating weight value is:
when the position corresponding to the code point pixel value is in the position coding region, the fluctuation weight value is assigned as,/>
When the position corresponding to the code point pixel value is in the code correction coding region, the fluctuation weight value is assigned as,/>
When the position corresponding to the code point pixel value is in the information coding area, the fluctuationWeight value assignment as,/>
As a preferred embodiment of the present application, the generation logic of the target anti-counterfeiting traceability data set is as follows:
input matrix taking first target information and watermark information as preset anti-counterfeiting traceability identification output modelThe output matrix of the anti-fake tracing identification output model is the target anti-fake tracing data set.
As a preferred embodiment of the application, the function of the anti-counterfeiting traceability recognition output model is as follows:
in the method, in the process of the application,indicate->Line->First target matrix corresponding to each lattice coding unit; ->Indicate->Line->Watermark data streams corresponding to watermark information of the lattice coding units;/>is->The target anti-counterfeiting traceability data sets correspond to the lattice coding units; wherein: />;/>;/>;/>The method comprises the steps of carrying out a first treatment on the surface of the And->;/>;/>;/>Indicate->Line->The bit-array coding unit is->Line->Code point pixel values of the columns; />Is->Line->The bit-array coding unit is->Line->A target weight value corresponding to the column; />Is->Line->The bit-array coding unit is->Line->A target weight value dataset corresponding to the column; />Is->Line->The bit-array coding unit is->Line->The watermark data stream corresponding to the columns.
As a preferred embodiment of the present application, the first objectMatrix arrayA data matrix set corresponding to the first target information; said first target matrix->The following is shown:
in the method, in the process of the application,indicate->Line->The bit-array coding unit is->Line->Code point pixel values of the columns; />Is->Line->The bit-array coding unit is->Line->And (5) listing corresponding target weight values.
As a preferred embodiment of the present application, the target anti-counterfeiting traceability picture decoding logic is:
image content extraction processing is carried out on the target anti-counterfeiting traceability picture, and first target information and watermark information are generated;
acquiring a corresponding dot matrix code image according to the first target information;
obtaining a corresponding dot matrix coding unit based on the dot matrix code image, and obtaining a corresponding position coding region, an information coding region and a code correction coding region based on the dot matrix coding unit;
obtaining a corresponding lattice coding unit target weight value data set based on the position coding region, the information coding region and the code correction coding region;
acquiring a data set of the lattice coding unit based on the first target information and the corresponding target weight value data set of the lattice coding unit;
corresponding code point pixel values are obtained based on the data set of the dot matrix coding unit.
As a preferred embodiment of the present application, the analysis logic for obtaining the corresponding dot matrix code image according to the first target information is:
calculating cosine distance between the first target information and a pre-stored dot matrix code image by using a classifier;
if the cosine distance is larger than a preset threshold value, determining that the currently prestored dot matrix code image is the dot matrix code image corresponding to the target anti-counterfeiting traceability picture;
and if the cosine distance is smaller than or equal to a preset threshold value, the dot matrix code image stored in advance at present is not the dot matrix code image corresponding to the target anti-counterfeiting traceability picture.
According to another aspect of the present application, there is provided an anti-counterfeit tracing system combining a dot matrix code and a digital watermark, including:
the information acquisition module acquires a dot matrix code image and watermark information to be embedded into the dot matrix code image, and obtains code point pixel values corresponding to code point positions based on the dot matrix code image;
the information analysis module is used for carrying out weighting processing on the code point pixel values and cascading a plurality of weighted code point pixel values into first target information;
the information integration module is used for embedding the watermark information into first target information to obtain a target anti-counterfeiting traceability data set;
an image generator: and generating the target anti-counterfeiting traceability picture from the target anti-counterfeiting traceability data set through a dot matrix code generator.
According to still another aspect of the present application, there is provided an electronic apparatus characterized by comprising: a processor and a memory, wherein the memory stores a computer program for the processor to call;
the processor executes the anti-counterfeiting tracing method combining the dot matrix code and the digital watermark by calling the computer program stored in the memory.
According to a further aspect of the present application, there is provided a computer readable storage medium storing instructions that, when executed on a computer, cause the computer to perform an anti-counterfeiting tracing method of combining a dot matrix code and a digital watermark as described above.
The application has the beneficial effects that: the anti-counterfeiting tracing method combining the dot matrix code and the digital watermark can improve the anti-counterfeiting performance of the product, increase the tracing accuracy and reliability, expand the information capacity, provide the hiding performance and the stability, and provide more credible product tracing experience for consumers; the embedding of the watermark information may be visually imperceptible, making it more difficult for counterfeiters to counterfeit or tamper with the product; meanwhile, the digital watermarking technology can provide unique identifiers or information, and tracing verification is carried out in a decoding and extracting mode. By combining the matrix code and the digital watermarking technology, the method can improve the accuracy and reliability of anti-counterfeiting tracing.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application, and therefore should not be considered as limiting the scope of patent protection, and other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a coding flow chart of an anti-counterfeiting tracing method combining dot matrix codes and digital watermarks;
FIG. 2 is a schematic diagram of the structure of the dot matrix code-based image according to the present application;
FIG. 3 is a flow chart of decoding processing of the target anti-counterfeiting traceability picture;
fig. 4 is a schematic structural diagram of an anti-counterfeiting traceability device combining a dot matrix code and a digital watermark;
fig. 5 is a schematic structural diagram of an electronic device according to the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
Example 1
In order to solve the above problems, as shown in fig. 1, the present application provides an anti-counterfeit tracing method combining a dot matrix code and a digital watermark, which is used for solving the problem of embedding digital watermark information in a target image.
Step 1: acquiring a dot matrix code image and watermark information to be embedded into the dot matrix code image, and acquiring code point pixel values corresponding to code point positions based on the dot matrix code image;
what needs to be explained here is: the dot matrix code image is formed by combining a plurality of dot matrix coding units 10, the dot matrix coding units 10 are arranged in a grid-shaped mode, the dot matrix coding units 10 comprise a position coding area 11, a code correction coding area 12 and an information coding area 13, the information coding area 13 is used for storing commodity information, the commodity information comprises commodity numbers, commodity names, commodity tracing information, commodity prices, buying and selling statistics and authenticity verification information, and the position coding area 11 determines the position of the information coding area 13 corresponding to the dot matrix code image.
The watermark information is used as a secret key to encrypt information consisting of commodity numbers, commodity names, commodity production places, commodity production dates and tracing websites;
the analysis logic of the dot matrix code image is as follows:
the dot matrix code image comprises a plurality of dot matrix coding units 10, and the number of the dot matrix coding units 10 can be obtained based on the number of the code points of the dot matrix code image and the number of the code points of the dot matrix coding units 10;
the concrete steps are as follows: the number of code points of the dot matrix code image isThe number of code points of the lattice coding unit 10 is,/>,/>Determining the number of lattice coding units 10>,/>,/>Is->An integer multiple;,/>is->An integer multiple; exemplary: the number of code points of the dot matrix code image we use is +.>The number of code points of the lattice coding unit 10 is +.>Then the dot matrix code image is described as having +.>The number of lattice coding units 10, in the example,,/>,/>,/>
based on the corresponding position of the dot matrix coding unit 10 in the dot matrix code image, marking serial numbers on the dot matrix coding unit 10, and extracting the code point pixel value corresponding to the corresponding code point position in the dot matrix coding unit 10;
the concrete steps are as follows: the dot matrix code image hasThe dot matrix coding units 10 obtain the marking serial number of the dot matrix coding units 10 according to the corresponding positions of the dot matrix coding units 10 in the dot matrix code image>,/>The method comprises the steps of carrying out a first treatment on the surface of the I.e. < th->Line->The marking serial numbers of the dot matrix coding units 10 are respectively +.>The method comprises the steps of carrying out a first treatment on the surface of the First->Line->The data set of the individual lattice coding units 10 is +.>,/>,/>Indicate->Line->The dot matrix coding unit 10 is +.>Line->Code point pixel values of the columns;
what needs to be explained here is: the dot matrix code image consists of a plurality of dot matrix coding units 10, wherein the size of a specific dot matrix coding unit 10 is determined according to specific requirements, and no fixed standard size exists; in the decoding process in the later stage of the same, the information coding region 13 is determined mainly by searching the position coding region 11 of the lattice coding unit 10, so that the information of the lattice coding unit 10 is determined. The choice of these parameters typically depends on factors such as the use scenario, the amount of data, and the readability requirements.
In addition, the pixel value of each code point in the dot matrix coding unit 10 is controlled; and each code point has a corresponding position, which can ensure that the dot matrix code image is displayed in various shapes and patterns, wherein the dot matrix code image is any form of image, such as a photo, a drawing or other visual contents.
Step 2: weighting the code point pixel values, and cascading a plurality of weighted code point pixel values into first target information;
what needs to be explained here is: the method of the embodiment of the application is mainly applied to the extraction of the code point pixel values, and before the preset coding is carried out, the code point pixel values corresponding to the images required by the anti-counterfeiting traceable target images required by the products are required to be defined; determining processing logic of a corresponding part of the dot matrix code image, and facilitating later decoding processing;
the lattice coding unit 10 comprises a position coding region 11, a code correction coding region 12 and an information coding region 13; the position-coding area 11 is preset in the lattice coding unit 10, and in this area, position information may be represented using a specific coding scheme, such as binary or other coding schemes; the code correction coding regions 12 are positioned between the position coding regions 11, and the code correction coding regions 12 are arranged between the position coding regions 11 adjacent horizontally and/or vertically; the code correction coding region is used for storing error correction codes or redundant information so as to be capable of detecting and correcting errors which may exist when decoding; the surrounding area of the position coding area 11 and the code correction coding area 12 is an information coding area 13, and specific information data such as pixel values of images or other relevant information can be stored in the area; as particularly shown in fig. 2;
the concrete steps are as follows: assume that、/>And->The corresponding region is the position-coding region 11, < ->Andthe corresponding areas are all code correction coding areas 12,the remaining area is the information encoding area 13.
In this embodiment, the code point pixel values at the corresponding positions are multiplied by the target weight values, respectively, to obtain weighted code point pixel values. For convenience of subsequent processing, the positions corresponding to the code point pixel values need to be divided, and the target weight value of the corresponding position comprises a fixed weight value and a fluctuation weight value, wherein the specific formula is as follows: target weight value = fixed weight value × fluctuating weight value.
Preferably, the fixed weight value is preferably a ratio of the number of code points at the position where the current code point pixel value is located to the number of code points corresponding to the lattice coding unit 10, the fluctuating weight value is assigned according to the position corresponding to the code point pixel value,
when the position corresponding to the code point pixel value is in the position coding region, the fluctuation weight value is assigned as,/>
When the position corresponding to the code point pixel value is in the code correction coding region, the fluctuation weight value is assigned as,/>
When the position corresponding to the code point pixel value is in the information coding region, the fluctuation weight value is assigned as,/>
The specific method is that the position corresponding to the code point pixel value is identified, when the position corresponding to the code point pixel value is in the position coding region 11, the weight value of the position coding region 11 is increased, and the fluctuation weight value is assigned as 2; when the position corresponding to the code point pixel value is in the code correction coding region 12, the weight value of the code correction coding region 12 is reduced, and the fluctuation weight value is assigned to 0.5; when the position corresponding to the code point pixel value is in the information coding region 13, the weight value is not changed, and the fluctuation weight value is assigned to be 1.
It should be noted that, the above-mentioned position coding region 11, code correction coding region 12, information coding region 13, and code point pixel values at corresponding positions are preset in advance by the dot matrix coding unit 10;
similarly, the weight value of the corresponding region can be determined according to the number of code points corresponding to the position coding region 11, the code correction coding region 12 and the information coding region 13, which is preset, and the position coding region 11, the code correction coding region 12 and the information coding region 13 can be better resolved according to a certain rule in the later decoding process.
Further, a plurality of weighted code point pixel values are concatenated according to the corresponding positions, as an example, the data set of the lattice coding unit 10Wherein: />Indicate->Line->The first lattice coding unit 10Line->Code point pixel values of the columns; />Is->Line->Lattice coding data sets corresponding to the lattice coding units 10; target weight value dataset +.>Wherein->Is->Line->The dot matrix coding unit 10 is +.>Line->A target weight value corresponding to the column; />Is->Line->Target weight value data sets corresponding to the lattice coding units 10; multiplying code point pixel values in the data set of the dot matrix coding unit 10 with corresponding target weight values respectively and cascading the code point pixel values into first target information; the first target matrix corresponding to the first target information is +.>
Step 3: and embedding the watermark information into the first target information to obtain a target anti-counterfeiting traceability data set.
Input matrix taking first target information and watermark information as preset anti-counterfeiting traceability identification output modelAnti-fake tracing source identificationOutput matrix of other output model is target anti-fake traceability data set +.>The specific output function is as follows:
in the method, in the process of the application,indicate->Line->First target matrix corresponding to the individual lattice coding units 10; ->Indicate->Line->Watermark data streams corresponding to watermark information of the lattice coding units 10; />Is->The target anti-counterfeiting traceability data sets corresponding to the lattice coding units 10; />Indicate->Line->The dot matrix coding unit 10 is +.>Line->Code point pixel values of the columns; />Is->Line->The dot matrix coding unit 10 is +.>Line->A target weight value corresponding to the column; />Is->Line->The dot matrix coding unit 10 is +.>Line->Watermark data stream corresponding to a column, wherein +_>Is->Line 1The dot matrix coding unit 10 is +.>Line->Watermark data stream corresponding to the column, wherein the watermark data stream refers to a technology of hiding information embedded in digital media; a watermark may be some specific identifier, number, graphic or other form of data that is used to identify or verify the origin or integrity of digital media;
what needs to be explained here is: the corresponding anti-fake tracing data set of each array coding unit 10 obtains the anti-fake tracing data set of the corresponding size of the array code through the anti-fake tracing identification output model, and marks the anti-fake tracing data set of the array code as a target anti-fake tracing data set;
the anti-fake tracing identification output model is equivalent to a summation function, has the function of evidence accumulation and can distinguish the position of each array coding unit;
the first target information and the watermark information are both converted intoA data stream in a system, the data stream is in a position (e.g.)>And->Is->Line->The dot matrix coding unit 10 is +.>Line->Column-corresponding code point pixel value, target weight value and watermark data stream, wherein +.>Line->The dot matrix coding unit 10 is +.>Line->Column as position information) one-to-one mapping, determining the data flow of the corresponding position; thereby obtaining the target anti-counterfeiting traceability data set through quantitative data calculation.
Step 4: and generating the target anti-counterfeiting traceability picture from the target anti-counterfeiting traceability data set through a dot matrix code generator.
The method comprises the steps of obtaining a dot matrix code image, and obtaining a code point pixel value corresponding to each code point position from the image; each code point pixel value is weighted, and brightness adjustment, color conversion and other operations can be performed according to the need. Then concatenating the plurality of weighted code point pixel values together to form first target information; the watermark information to be embedded is embedded into the first target information, and an encryption algorithm or technology can be used for fusing the watermark information with the code point pixel value, so that the hiding performance and the stability of the watermark information are ensured. After the watermark is embedded, a target anti-counterfeiting traceability data set is obtained, the target anti-counterfeiting traceability data set is input into the matrix code generator, and an anti-counterfeiting traceability picture containing embedded watermark information is generated. The dot matrix code generator can generate corresponding pictures according to anti-counterfeiting requirements and specific dot matrix code rules, and the dot matrix code generator is such as a QR code generator, an LED dot matrix generator and the like.
The decoding logic of the anti-counterfeiting tracing picture is as follows:
image content extraction processing is carried out on the target anti-counterfeiting traceability picture, and first target information and watermark information are generated;
the image content can be the batch number, the production date, the geographic information and the like of the product, and more tracing and verification information is provided: extracting watermark information through hidden information embedded in an image, specifically through an image processing algorithm and a watermarking algorithm, and removing first target information of the watermark information; the particular image processing algorithm may be selected as desired, such as image analysis, feature extraction, or other related techniques.
Acquiring a corresponding dot matrix code image according to the first target information;
obtaining a corresponding dot matrix coding unit 10 based on the dot matrix code image, and obtaining a corresponding position coding region, an information coding region and a code correction coding region based on the dot matrix coding unit 10; extraction can be performed according to the design and rules of the coding scheme;
obtaining a corresponding dot matrix coding unit 10 target weight value data set based on the position coding region, the information coding region and the code correction coding region;
acquiring a data set of the lattice coding unit 10 based on the first target information and the corresponding target weight value data set of the lattice coding unit 10; these data sets contain critical information required in the decoding process.
Corresponding code point pixel values are obtained based on the data set of the lattice coding unit 10, which can be used to generate the final decoding result.
What needs to be explained here is: the steps provide anti-counterfeiting tracing decoding logic combining the dot matrix code and the digital watermark, and the decoding logic is specifically performed through an encoding scheme and an image processing algorithm of the target anti-counterfeiting tracing picture.
The analysis logic for acquiring the corresponding dot matrix code image according to the first target information is as follows:
calculating cosine distance between the first target information and a pre-stored dot matrix code image by using a classifier;
if the cosine distance is larger than a preset threshold value, determining that the currently prestored dot matrix code image is the dot matrix code image corresponding to the target anti-counterfeiting traceability picture;
if the cosine distance is smaller than or equal to a preset threshold value, the dot matrix code image stored in advance at present is not the dot matrix code image corresponding to the target anti-counterfeiting traceability picture;
what needs to be explained here is: data in the first target information is first classified into different categories by a classifier. Converting the first target information and the pre-stored dot matrix code image into data vectors, and calculating the distance between the first target information and the pre-stored dot matrix code image by using a cosine distance formula to measure the similarity between the data vectors.
The anti-counterfeiting tracing method combining the dot matrix code and the digital watermark can improve the anti-counterfeiting performance of the product, increase the tracing accuracy and reliability, expand the information capacity, provide the hiding performance and the stability, and provide more credible product tracing experience for consumers; the embedding of the watermark information may be visually imperceptible, making it more difficult for counterfeiters to counterfeit or tamper with the product; meanwhile, the digital watermarking technology can provide unique identifiers or information, and tracing verification is carried out in a decoding and extracting mode. By combining the matrix code and the digital watermarking technology, the method can improve the accuracy and reliability of anti-counterfeiting tracing.
And by concatenating the plurality of weighted code point pixel values into the first target information, the capacity of the embedded watermark information may be increased. This allows more information to be embedded, such as lot number, date of manufacture, geographic information, etc. of the product, providing more traceability and verification information.
Example 2
Referring to fig. 3, the anti-counterfeiting tracing method combining a dot matrix code and a digital watermark according to the embodiment further includes the following steps:
image content extraction processing is carried out on the target anti-counterfeiting traceability picture, and first target information and watermark information are generated;
acquiring a corresponding dot matrix code image according to the first target information;
obtaining a corresponding dot matrix coding unit 10 based on the dot matrix code image, and obtaining a corresponding position coding region 11, a code correction coding region 12 and an information coding region 13 based on the dot matrix coding unit 10;
obtaining a corresponding target weight value data set of the lattice coding unit 10 based on the position coding region 11, the code correction coding region 12 and the information coding region 13;
acquiring a data set of the lattice coding unit 10 based on the first target information and the corresponding target weight value data set of the lattice coding unit 10;
corresponding code point pixel values are obtained based on the data set of the dot matrix encoding unit 10.
What needs to be explained here is: the decoding processing can be carried out on the target anti-counterfeiting traceable picture, the code point pixel value is extracted, and then the embedded watermark information and the first target information for watermark removal are obtained, so that the decoding operation on the anti-counterfeiting traceable picture is realized.
Example 3
Referring to fig. 4, the anti-counterfeiting tracing system combining a dot matrix code and a digital watermark according to the embodiment is based on an implementation of an anti-counterfeiting tracing method combining a dot matrix code and a digital watermark, and includes:
the information acquisition module acquires a dot matrix code image and watermark information to be embedded into the dot matrix code image, and obtains code point pixel values corresponding to code point positions based on the dot matrix code image;
the information analysis module is used for carrying out weighting processing on the code point pixel values and cascading a plurality of weighted code point pixel values into first target information;
the information integration module is used for embedding the watermark information into first target information to obtain a target anti-counterfeiting traceability data set;
an image generator: and generating the target anti-counterfeiting traceability picture from the target anti-counterfeiting traceability data set through a dot matrix code generator.
Example 4
An electronic device is shown according to an exemplary embodiment, comprising: a processor and a memory, wherein the memory stores a computer program for the processor to call;
the processor executes the anti-counterfeiting tracing method combining the dot matrix code and the digital watermark by calling the computer program stored in the memory.
The anti-counterfeiting tracing method combining the dot matrix code and the digital watermark can improve the anti-counterfeiting performance of the product, increase the tracing accuracy and reliability, expand the information capacity, provide the hiding performance and the stability, and provide more credible product tracing experience for consumers; the embedding of the watermark information may be visually imperceptible, making it more difficult for counterfeiters to counterfeit or tamper with the product; meanwhile, the digital watermarking technology can provide unique identifiers or information, and tracing verification is carried out in a decoding and extracting mode. By combining the matrix code and the digital watermarking technology, the method can improve the accuracy and reliability of anti-counterfeiting tracing.
The application is helpful to find out abnormal conditions or potential problems of the server in time by analyzing the access data parameters and the test environment information of the server so as to repair or optimize, improve the reliability and performance of the server, predict the anti-interference capability of the server by analyzing the running state evaluation index of the server, and is helpful to determine which servers are more suitable for running in the interference environment and provide more reliable protection for critical tasks or sensitive data.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device may have a relatively large difference due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) and one or more memories, where at least one computer program is stored in the memories, and the at least one computer program is loaded and executed by the processors to implement the anti-counterfeit tracing method combining the dot matrix code and the digital watermark provided in the foregoing method embodiments. The electronic device can also include other components for implementing the functions of the device, for example, the electronic device can also have a wired or wireless network interface, an input-output interface, and the like, for input-output. The embodiments of the present application are not described herein.
Example 5
A computer readable storage medium having stored thereon a computer program that is erasable according to an exemplary embodiment is shown;
when the computer program runs on the computer equipment, the computer equipment is enabled to execute the anti-counterfeiting tracing method combining the dot matrix code and the digital watermark.
The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any other combination. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center over a wired network or/and a wireless network. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more sets of available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium may be a solid state disk.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely one, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Finally: the foregoing description of the preferred embodiments of the application is not intended to limit the application to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and principles of the application are intended to be included within the scope of the application.

Claims (12)

1. The anti-counterfeiting tracing method combining the dot matrix code and the digital watermark is characterized by comprising the following steps of:
step 1: acquiring a dot matrix code image and watermark information to be embedded into the dot matrix code image, and acquiring code point pixel values corresponding to code point positions based on the dot matrix code image;
step 2: weighting the code point pixel values, and cascading a plurality of weighted code point pixel values into first target information;
step 3: embedding the watermark information into first target information to obtain a target anti-counterfeiting traceability data set;
step 4: and generating the target anti-counterfeiting traceability picture from the target anti-counterfeiting traceability data set through a dot matrix code generator.
2. The anti-counterfeiting tracing method combining a dot matrix code and a digital watermark according to claim 1, wherein the analysis logic of the dot matrix code image is as follows:
the number of the dot matrix coding units can be obtained based on the number of the code points of the dot matrix code image and the number of the code points of the dot matrix coding units;
and (3) based on the corresponding position of the dot matrix coding unit in the dot matrix code image, marking the serial number of the dot matrix coding unit, and extracting the code point pixel value of the corresponding code point position in the corresponding dot matrix coding unit.
3. The anti-counterfeiting tracing method combining a dot matrix code and a digital watermark according to claim 2, wherein the logic for performing weighting processing on the pixel values of the code dots is as follows:
respectively multiplying code point pixel values at corresponding positions by target weight values, wherein the target weight values comprise fixed weight values and fluctuation weight values, and the target weight values are products of the fixed weight values and the fluctuation weight values;
the fixed weight value is the ratio of the number of code points of the position where the pixel value of the current code point is positioned to the number of code points of the corresponding lattice coding unit,
and the fluctuation weight value is assigned according to the position corresponding to the code point pixel value.
4. The anti-counterfeiting tracing method combining a dot matrix code and a digital watermark according to claim 3, wherein the assignment logic of the fluctuation weight value is as follows:
when the position corresponding to the code point pixel value is in the position coding region, the fluctuation weight value is assigned as,/>
When the position corresponding to the code point pixel value is in the code correction coding region, the fluctuation weight value is assigned as,/>
When the position corresponding to the code point pixel value is in the information coding region, the fluctuation weight value is assigned as,/>
5. The anti-counterfeiting tracing method combining a dot matrix code and a digital watermark according to claim 4, wherein the generation logic of the target anti-counterfeiting tracing data set is as follows:
input matrix taking first target information and watermark information as preset anti-counterfeiting traceability identification output modelDefend againstThe output matrix of the pseudo-traceability identification output model is a target anti-counterfeiting traceability data set.
6. The anti-counterfeiting tracing method combining the dot matrix code and the digital watermark according to claim 5, wherein the function of the anti-counterfeiting tracing identification output model is as follows:
in the method, in the process of the application,indicate->Line->First target matrix corresponding to each lattice coding unit; ->Indicate->Line->Watermark data streams corresponding to watermark information of the lattice coding units; />Is->The target anti-counterfeiting traceability data sets correspond to the lattice coding units; wherein: />;/>;/>;/>The method comprises the steps of carrying out a first treatment on the surface of the And->;/>;/>;/>Indicate->Line->The bit-array coding unit is->Line->Code point pixel values of the columns; />Is->Line->The bit-array coding unit is->Line->A target weight value corresponding to the column;is->Line->The bit-array coding unit is->Line->A target weight value dataset corresponding to the column; />Is the firstLine->The bit-array coding unit is->Line->The watermark data stream corresponding to the columns.
7. The anti-counterfeiting tracing method combining dot matrix codes and digital watermarks according to claim 6, wherein the first target matrixA data matrix set corresponding to the first target information; said first target matrix->The following is shown:
in the method, in the process of the application,indicate->Line->The bit-array coding unit is->Line->Code point pixel values of the columns; />Is->Line->The bit-array coding unit is->Line->And (5) listing corresponding target weight values.
8. The anti-counterfeiting tracing method combining a dot matrix code and a digital watermark according to claim 7, wherein the target anti-counterfeiting tracing picture decoding logic is as follows:
image content extraction processing is carried out on the target anti-counterfeiting traceability picture, and first target information and watermark information are generated;
acquiring a corresponding dot matrix code image according to the first target information;
obtaining a corresponding dot matrix coding unit based on the dot matrix code image, and obtaining a corresponding position coding region, an information coding region and a code correction coding region based on the dot matrix coding unit;
obtaining a corresponding lattice coding unit target weight value data set based on the position coding region, the information coding region and the code correction coding region;
acquiring a data set of the lattice coding unit based on the first target information and the corresponding target weight value data set of the lattice coding unit;
corresponding code point pixel values are obtained based on the data set of the dot matrix coding unit.
9. The method for anti-counterfeiting tracing by combining a dot matrix code and a digital watermark according to claim 8, wherein the analysis logic for obtaining the corresponding dot matrix code image according to the first target information is as follows:
calculating cosine distance between the first target information and a pre-stored dot matrix code image by using a classifier;
if the cosine distance is larger than a preset threshold value, determining that the currently prestored dot matrix code image is the dot matrix code image corresponding to the target anti-counterfeiting traceability picture;
and if the cosine distance is smaller than or equal to a preset threshold value, the dot matrix code image stored in advance at present is not the dot matrix code image corresponding to the target anti-counterfeiting traceability picture.
10. An anti-counterfeiting tracing system combining a dot matrix code and a digital watermark is based on the realization of the anti-counterfeiting tracing method combining the dot matrix code and the digital watermark, which is characterized in that: comprising the following steps:
the information acquisition module acquires a dot matrix code image and watermark information to be embedded into the dot matrix code image, and obtains code point pixel values corresponding to code point positions based on the dot matrix code image;
the information analysis module is used for carrying out weighting processing on the code point pixel values and cascading a plurality of weighted code point pixel values into first target information;
the information integration module is used for embedding the watermark information into first target information to obtain a target anti-counterfeiting traceability data set;
and the image generator is used for generating a target anti-counterfeiting traceability picture from the target anti-counterfeiting traceability data set through the dot matrix code generator.
11. An electronic device, comprising: a processor and a memory, wherein the memory stores a computer program for the processor to call;
the processor executes an anti-counterfeiting tracing method combining a dot matrix code and a digital watermark according to any one of claims 1 to 9 by calling a computer program stored in the memory.
12. A computer-readable storage medium, characterized by: instructions are stored which, when run on a computer, cause the computer to perform an anti-counterfeiting tracing method according to any one of claims 1 to 9 by combining a dot matrix code and a digital watermark.
CN202310856126.8A 2023-07-13 2023-07-13 Anti-counterfeiting tracing method combining dot matrix code and digital watermark Withdrawn CN116703427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310856126.8A CN116703427A (en) 2023-07-13 2023-07-13 Anti-counterfeiting tracing method combining dot matrix code and digital watermark

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310856126.8A CN116703427A (en) 2023-07-13 2023-07-13 Anti-counterfeiting tracing method combining dot matrix code and digital watermark

Publications (1)

Publication Number Publication Date
CN116703427A true CN116703427A (en) 2023-09-05

Family

ID=87825858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310856126.8A Withdrawn CN116703427A (en) 2023-07-13 2023-07-13 Anti-counterfeiting tracing method combining dot matrix code and digital watermark

Country Status (1)

Country Link
CN (1) CN116703427A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117436907A (en) * 2023-12-20 2024-01-23 中科微点技术有限公司 Anti-fake information tracing method based on combination of mobile phone scanning dot matrix code and digital watermark

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117436907A (en) * 2023-12-20 2024-01-23 中科微点技术有限公司 Anti-fake information tracing method based on combination of mobile phone scanning dot matrix code and digital watermark
CN117436907B (en) * 2023-12-20 2024-03-19 中科微点技术有限公司 Anti-fake information tracing method based on combination of mobile phone scanning dot matrix code and digital watermark

Similar Documents

Publication Publication Date Title
Zhao et al. Robust hashing for image authentication using Zernike moments and local features
CN102375941B (en) Method and system for validating chip validity by utilizing graphical chip
CN108229596A (en) Combined two-dimension code, digital certificates carrier, generation, reading device and method
CN104077624A (en) Methods and systems for generating and checking electronic note with anti-counterfeiting two-dimension code
WO2018103756A1 (en) Combined two-dimensional code anti-counterfeiting system and method, combined two-dimensional code and reading apparatus
JP6020089B2 (en) Fraud detection system
CN105205674A (en) Product anti-counterfeiting method based on two-dimensional code
CN116703427A (en) Anti-counterfeiting tracing method combining dot matrix code and digital watermark
CN103049779A (en) Method for generating and recognizing food safety liability insurance electronic policy two-dimensional code voucher
CN102087800A (en) Digital online paper-marking system
CN115329919B (en) Random additional point anti-counterfeiting method and device based on micro point code
US11531996B2 (en) Method for anti-counterfeit inspection of QR code of agricultural product based on watermark library
Rathor et al. Exploring handwritten signature image features for hardware security
CN110069907A (en) Big data source tracing method and system based on digital watermarking
CN116911883B (en) Agricultural product anti-counterfeiting tracing method and cloud platform based on AI (advanced technology) authentication technology and tracing quantification
CN111783119A (en) Form data security control method and device, electronic equipment and storage medium
CN116167807A (en) Bill anti-counterfeiting method and device, electronic equipment and storage medium
CN114626968A (en) Watermark embedding method, watermark extracting method and device
CN115526282A (en) Watermark encryption method, watermark extraction method, device and storage medium
JP4958868B2 (en) Document feature extraction apparatus and method
US11816756B1 (en) Anti-leak digital document marking system and method using distributed ledger
US12118638B1 (en) Anti-leak digital document marking system and method using distributed ledger
JP5343659B2 (en) Image processing apparatus and image processing program
JP7083055B1 (en) Issuing device, authentication device, authentication system, issuing method, and information code
CN114723960B (en) Additional verification method and system for enhancing bank account security

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20230905

WW01 Invention patent application withdrawn after publication