CN113627577B - Three-dimensional code generation method and anti-counterfeiting tracing system based on three-dimensional code - Google Patents

Three-dimensional code generation method and anti-counterfeiting tracing system based on three-dimensional code Download PDF

Info

Publication number
CN113627577B
CN113627577B CN202110882031.4A CN202110882031A CN113627577B CN 113627577 B CN113627577 B CN 113627577B CN 202110882031 A CN202110882031 A CN 202110882031A CN 113627577 B CN113627577 B CN 113627577B
Authority
CN
China
Prior art keywords
dimensional code
code
commodity
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.)
Active
Application number
CN202110882031.4A
Other languages
Chinese (zh)
Other versions
CN113627577A (en
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.)
Cn3wm Xiamen Network Technology Co ltd
Original Assignee
Cn3wm Xiamen Network 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 Cn3wm Xiamen Network Technology Co ltd filed Critical Cn3wm Xiamen Network Technology Co ltd
Priority to CN202110882031.4A priority Critical patent/CN113627577B/en
Publication of CN113627577A publication Critical patent/CN113627577A/en
Application granted granted Critical
Publication of CN113627577B publication Critical patent/CN113627577B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • 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/06046Constructional details
    • 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/06046Constructional details
    • G06K19/06075Constructional details the marking containing means for error correction
    • 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/06046Constructional details
    • G06K19/0614Constructional details the marking being selective to wavelength, e.g. color barcode or barcodes only visible under UV or IR
    • 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
    • G06Q30/0185Product, service or business identity fraud
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • H04L9/0825Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Signal Processing (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Credit Cards Or The Like (AREA)

Abstract

The invention relates to a three-dimensional code generation method, which comprises the following steps: the code generation end acquires commodity information and background pictures; generating a two-dimensional code matrix by the code generating end according to commodity information; the code generating end fuses the background picture and the two-dimensional code matrix to obtain a three-dimensional code; selecting a plurality of first specific areas and a plurality of second specific areas on the three-dimensional code; the color value of each first specific area and the color value of each second specific area are recorded. And correlating the three-dimensional code with the commodity, and performing anti-counterfeiting tracing on the commodity by utilizing the three-dimensional code. The invention improves the forging difficulty and the forging cost through the background picture, and the background picture is commodity picture or commodity icon which can show commodity condition, increases the visual information in the three-dimensional code and is easy to give impression.

Description

Three-dimensional code generation method and anti-counterfeiting tracing system based on three-dimensional code
Technical Field
The invention relates to a three-dimensional code generation method and an anti-counterfeiting tracing system based on the three-dimensional code, and belongs to the field of anti-counterfeiting tracing.
Background
The anti-counterfeiting technology comprises 7 types of material anti-counterfeiting, printing anti-counterfeiting, laser anti-counterfeiting, digital anti-counterfeiting, electronic identification anti-counterfeiting, texture anti-counterfeiting and security line digital informatization anti-counterfeiting. The current mainstream scheme is: and pasting the two-dimensional code on the commodity, and scanning the two-dimensional code by a consumer to authenticate the commodity and obtain the tracing information of the commodity. As the two-dimension code algorithm is an open source algorithm, a counterfeiter can directly generate the two-dimension code. For the two-dimensional code using the encryption algorithm, a counterfeiter can shoot a two-dimensional code print through an instrument (such as a two-dimensional code copying machine, a high-speed camera and the like) to obtain a two-dimensional code electronic image, then the two-dimensional code electronic image is adjusted to a certain extent by utilizing image correction software, and finally the two-dimensional code electronic image is printed by using the similar materials to obtain the counterfeited two-dimensional code. Therefore, a technical solution with low cost and good anti-counterfeiting effect is needed.
In the prior art, as in the patent with application number of CN202010256508.3, a method, a device and an anti-counterfeiting system for generating a color anti-counterfeiting two-dimensional code are used for judging whether the color two-dimensional code is counterfeit or not by comparing and scanning the color two-dimensional code with a color two-dimensional code stored in the system in advance; the color anti-counterfeiting two-dimensional code increases the counterfeiting difficulty, but cannot prevent counterfeiters from counterfeiting the two-dimensional code by directly copying the color anti-counterfeiting two-dimensional code.
The prior art, such as patent application number CN201810869785.4, anti-counterfeiting two-dimensional code and generation method and generation application system thereof, comprises: step S1: a laser holographic method is adopted to manufacture a label substrate of the two-dimensional code; step S2: printing a two-dimensional code pattern on a label substrate by utilizing optical ink, and forming laser anti-counterfeiting areas which are all covered by the label substrate around the two-dimensional code pattern, wherein the two-dimensional code pattern comprises an anti-counterfeiting coding area for regenerating binary data according to a random sequence; wherein, the optical ink is added with an optical gradient material; step S3: and collecting key characteristics of the laser anti-counterfeiting area, carrying out coding modeling, and collecting and coding specific random color information generated at each matrix point for the authenticity identification of subsequent products. The invention uses the uniqueness and irreversibility of the laser hologram generating process to radically stop the phenomenon that a counterfeiter imitates the two-dimension code, but has high anti-counterfeiting cost and is difficult to popularize on common goods.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a three-dimensional code generation method, which improves the forging difficulty and the forging cost through a background picture, uses the color in the background picture as an anti-counterfeiting mark, does not need a complex printing process, has low anti-counterfeiting cost, is easy to popularize, and can also be used as a complementary scheme for assisting in judging other anti-counterfeiting means.
The technical scheme of the invention is as follows:
the technical scheme is as follows:
a method of generating a three-dimensional code, comprising the steps of:
the code generation end acquires commodity information and background pictures;
generating a two-dimensional code matrix by the code generating end according to commodity information;
the code generating end fuses the background picture and the two-dimensional code matrix to obtain a three-dimensional code;
selecting a plurality of first specific areas and a plurality of second specific areas on the three-dimensional code; the color value of each first specific area and the color value of each second specific area are recorded.
Further, the method further comprises the following steps: dividing a display area visible to human eyes on a background picture, wherein code points of a two-dimensional code matrix are prevented from being displayed in the display area; a second specific region is disposed within the display area.
The second technical scheme is as follows:
an anti-counterfeiting traceability system based on the three-dimensional code comprises the following steps:
presetting a first threshold interval;
associating the three-dimensional code with a commodity;
the user side obtains a picture containing the three-dimensional code and sends the picture to the code verification side;
the code checking terminal tries to decode the three-dimensional code and confirms the color value of at least one second specific area in the three-dimensional code according to the picture to obtain a second color value; if the second color value does not fall into the first threshold value interval, the three-dimensional code is considered to be a counterfeit product, and decoding is stopped; otherwise, the three-dimensional code is considered as a genuine product, and the code verification terminal decodes the data in the three-dimensional code to obtain the commodity information and returns the commodity information to the user terminal.
Further, the calculating step of the first threshold interval is as follows:
constructing a linear regression model;
constructing a sample set: shooting three-dimensional codes under different shooting conditions to obtain a plurality of sample data, wherein the sample data comprise recorded color values of a first specific area or a second specific area and color values obtained by identifying the specific area;
according to the sample set, solving the linear regression model by a least square method; and calculating a prediction interval with the confidence coefficient of 1-alpha as a first threshold interval by using a linear regression equation.
Further, the method further comprises the following steps: identifying colors in each first specific area in the three-dimensional code to obtain a plurality of first color values;
checking a linear regression model according to a plurality of the first color values; if the linear regression model passes the inspection and the second color value does not fall into the first threshold interval, the three-dimensional code is considered to be a counterfeit product; and if the linear regression model passes the inspection and the second color value falls into the first threshold value interval, the three-dimensional code is considered to be a genuine product.
Further, the method further comprises the following steps: the code generation end is provided with a private key; the user is provided with a public key corresponding to the private key;
the code generation end encrypts commodity information by using the private key to obtain commodity information ciphertext, and generates a two-dimensional code matrix according to the commodity information ciphertext;
decoding the commodity information ciphertext by the code verification terminal and returning the commodity information ciphertext to the user terminal;
and the user decrypts the commodity information by using the public key.
Further, the code generation end acquires anti-counterfeiting information; the code generation end generates a data field according to the commodity information and the anti-counterfeiting information, wherein the data field comprises a data code, an error correction code and a supplementary mark, the commodity information is positioned in the data code, and the anti-counterfeiting information is positioned in the supplementary mark; and the code generating end generates a two-dimensional code matrix according to the data field.
Further, the commodity information comprises a commodity tracing information interface address and commodity identification information.
Further, the method further comprises the following steps:
the user terminal sends user identification information and the picture containing the three-dimensional code to the code verification terminal;
after the code verification terminal decodes the commodity information, the user identification information is recorded and correlated with the commodity identification information, and a commodity inquiry record is generated.
Further, the commodity traceability information comprises a production place, logistics information, a sales store and appointed sales time of the commodity.
The invention has the following beneficial effects:
1. the invention improves the forging difficulty and the forging cost through the background picture, and the background picture is commodity picture or commodity icon which can show commodity condition, increases the visual information in the three-dimensional code, and is easy to give impression;
2. in the invention, the code generation end and the user end are respectively provided with the private key and the public key, and the code generation end encrypts commodity information by using the private key to generate the three-dimensional code, so that a counterfeiter cannot generate the three-dimensional code by itself and can copy the three-dimensional code by an instrument;
3. the color of the counterfeits obtained through copying is used as the anti-counterfeiting mark, the linear regression model is used for analyzing the color deviation range (namely the first threshold interval) generated by only one shooting, and whether the second color value falls into the first threshold interval is judged to distinguish the genuine products from the counterfeits, so that the anti-counterfeiting effect is good, a complex printing process is not needed, the anti-counterfeiting cost is low, the popularization is easy, and the method can also be used as the supplementary scheme auxiliary judgment of other anti-counterfeiting means;
4. the method and the device check the linear regression model through the first color value data obtained during decoding, and ensure the effectiveness of the linear regression model.
5. The invention can better display commodity conditions by dividing the display area, and can more conveniently select and identify the second specific area.
6. According to the invention, the anti-counterfeiting information is placed in the filling field in the data field, so that the way that a consumer obtains commodity information and commodity tracing information is not affected, but if the anti-counterfeiting information needs to be further obtained, only a specific two-dimensional code reading terminal or software can be used, and the anti-counterfeiting means is hidden, so that the counterfeiting difficulty and the counterfeiting cost are further increased.
7. The consumer can judge whether the commodity is counterfeit by comparing the actual purchasing shop with the sales shops in the commodity traceability information.
Drawings
FIG. 1 is a flow chart of the present invention;
FIG. 2 is a flow chart of an embodiment;
FIG. 3 is a schematic diagram of a three-dimensional code according to the present invention.
Detailed Description
The invention will now be described in detail with reference to the drawings and to specific embodiments.
Example 1
As shown in fig. 1 and 2, a method for generating a three-dimensional code includes the steps of:
and the code generation end acquires commodity information and background pictures. The commodity information comprises commodity basic information, commodity tracing information interface addresses and commodity identification information. The commodity basic information comprises commodity names, commodity quantity, commodity quality, manufacturers and the like; the commodity tracing information comprises commodity production places, logistics information, sales shops, appointed sales time and the like; the commodity identification information is a series of numbers for identifying uniqueness of the commodity. The background picture may be a merchandise picture or a trademark picture.
And the code generation end encrypts commodity information by using a private key and generates a two-dimensional code matrix according to the commodity information ciphertext.
And the code generating end fuses the background picture and the two-dimensional code matrix to obtain a three-dimensional code. (for a specific process of fusing a background picture and a two-dimensional code matrix, reference may be made to patent No. CN201610080300.4, i.e., a three-dimensional code encoding method and system, or patent No. CN201910294747.5, i.e., a three-dimensional code optimizing method, medium, computer device, and apparatus)
In this embodiment, six first specific areas and one second specific area are selected on the three-dimensional code by the code generating end (in this embodiment, three white code points in the two-dimensional code matrix and three white areas in the positioning pattern are selected as the first specific areas, and a solid color area is selected as the second specific area). The positions and color values of the first specific area and the second specific area are recorded (the color values of the first specific area and the second specific area are all the average value of the color values of all pixels in the area).
The beneficial effects of this implementation lie in: the counterfeiting difficulty and the counterfeiting cost are improved through the background picture, the commodity picture or the commodity icon can show commodity conditions, visual information in the three-dimensional code is increased, and impression is easily given.
Example two
Further, on the basis of the first embodiment, the three-dimensional code is used for anti-counterfeiting tracing of the commodity, and the method comprises the following steps:
s1, constructing a linear regression model:
x i '=ω 1 ·x i +c 1
y i '=ω 2 ·y i +c 2
z i '=ω 3 ·z i +c 3
wherein omega 1 、ω 2 、ω 3 、c 1 、c 2 、c 3 The parameters to be solved; (x) i ,y i ,z i ) Color value representing a particular region of a record, (x) i ',y i ',z i ' indicates identification (x) i ,y i ,z i ) The color value obtained by the corresponding specific area. In this embodiment, the color values are in RGB color mode.
S2, constructing a sample set, and solving a linear regression model and a first threshold interval by using the sample set:
and shooting the three-dimensional code at different angles by utilizing a plurality of intelligent mobile terminals respectively to obtain a plurality of sample data, wherein the sample data comprise recorded color values of a first specific area and color values obtained by identifying the first specific area. Inputting the sample set into a linear regression model, and solving the parameter omega by a least square method 1 、ω 2 、ω 3 、c 1 、c 2 、c 3
And inputting the recorded color value of the second specific region into a linear regression equation to obtain a predicted value of the second color value, calculating a predicted interval with the confidence coefficient of 1-alpha, and taking the predicted interval from a first threshold interval.
S3, associating the three-dimensional code with a commodity; (in this embodiment, the three-dimensional code is directly attached to the commodity)
S4, the user side obtains the picture containing the three-dimensional code and sends the picture to the code verification side.
S5, the code checking end tries to decode the three-dimensional code and identify the colors in the six first specific areas and one second specific area according to the picture to obtain six first color values and one second color value. ( If a plurality of second specific areas are identified to obtain a plurality of second color values, taking the median or average value of the plurality of second color values; or, when the number of the second color values falling in the first threshold interval exceeds a threshold value, the three-dimensional code is considered to be a genuine product. )
The code checking terminal checks the significance of the linear regression model by using an F checking method (or using a t checking method) according to the six obtained first color values, if the linear regression model passes the check and the second color value falls into the first threshold interval, the three-dimensional code is considered to be a genuine product, and the code checking terminal decodes the commodity information ciphertext and returns the commodity information ciphertext to the user terminal; and if the linear regression model passes the inspection and the second color value does not fall into the first threshold value interval, the three-dimensional code is considered to be a counterfeit product, and decoding is stopped.
The progress of the implementation is that:
the code generation end and the user end are respectively provided with a private key and a public key, the code generation end encrypts commodity information by using the private key and then generates a three-dimensional code, so that a counterfeiter cannot generate the three-dimensional code by itself and can forge the three-dimensional code only by copying the three-dimensional code through an instrument;
firstly, a counterfeiter shoots a three-dimensional code printed matter to obtain a three-dimensional code electronic image, and then prints the three-dimensional code electronic image to obtain a counterfeited three-dimensional code printed matter; finally, the consumer shoots the forged three-dimensional code printed matter to check the counterfeiting. Obviously, in the above process, the deviation of the counterfeits color is far greater than that of the genuine products (the counterfeits are shot twice and printed once, and the genuine products are shot only once) due to factors such as the precision of the printing instrument and the shooting instrument, the shooting illumination condition and the like. The invention uses the color in the three-dimensional code as the anti-counterfeiting mark, analyzes the color deviation range (namely the first threshold interval) generated by only one shooting through the linear regression model, and then judges whether the second color value falls into the first threshold interval to distinguish the genuine product from the counterfeit product (the first color value deviation is smaller because the white part, namely the color of the first specific area, can be possibly regulated when the counterfeiter copies the three-dimensional code), thereby having good anti-counterfeiting effect, needing no complex printing process, having low anti-counterfeiting cost, being easy to popularize and being used as the supplementary scheme of other anti-counterfeiting means for auxiliary judgment.
Further, the validity of the linear regression model is ensured by checking the linear regression model through the first color value data obtained during decoding.
Example III
A display area visible to human eyes is partitioned on the background picture (the partition method of the display area can refer to patent application number CN202011120378.7, a three-dimensional code generation method and device for enhancing visual effect, and the code points of a two-dimensional code matrix are prevented from being displayed in the display area).
In this embodiment, the code generating end selects two first specific areas on the three-dimensional code, and selects a second specific area in the three-dimensional code display area. The first specific area may be a blank area or a white code point in the three-dimensional code (e.g. 101 area in fig. 3), and the RGB value (color value) of the first specific area is (R255, G255, B255); a second specific region (e.g., region 102 of fig. 3) is selected, and RGB values are designated as (R240, G65, B85).
The embodiment is advanced in that the commodity condition is better displayed by dividing the display area, and the second specific area can be more conveniently selected and identified.
Example IV
Further, when the user side sends the three-dimensional code picture, user identification information is also sent to the code verification side;
and the code verification end records the user identification information and associates the user identification information with the commodity identification information to generate a commodity inquiry record.
The likelihood of the merchandise being counterfeited may be analyzed based on the merchandise query record, such as: if the query record data of a certain commodity exceeds a threshold value and the user identification in the query record is different, the commodity is highly likely to be counterfeited.
Example five
The code generation end acquires commodity information, anti-counterfeiting information and background pictures; the anti-counterfeiting information comprises three-dimensional code identification numbers, three-dimensional code finished product pictures, links and other data capable of uniquely identifying the three-dimensional codes;
the code generation end generates a data field according to the commodity information and the anti-counterfeiting information, wherein the data field comprises a data code, an error correction code and a supplementary mark, the commodity information is positioned in the data code, and the anti-counterfeiting information is positioned in the supplementary mark; generating a two-dimensional code matrix according to the data field by the code generating end;
the code generating end fuses the background picture and the two-dimensional code matrix to obtain a three-dimensional code;
selecting a plurality of first specific areas and a plurality of second specific areas on the three-dimensional code; the color value of each first specific area and the color value of each second specific area are recorded.
The improvement of the embodiment is that the anti-counterfeiting information is placed in the filling field in the data field, so that the way of acquiring commodity information and commodity tracing information is not affected, but if the anti-counterfeiting information is further acquired, only a specific two-dimensional code reading terminal or software (the existing two-dimensional code or three-dimensional code reading algorithm cannot identify the data in the filling code and the encoding rule of the anti-counterfeiting information in the filling code is difficult to know) can be used, and the anti-counterfeiting means is hidden, so that the counterfeiting difficulty and the counterfeiting cost are further increased.
Example six
And the merchant updates the tracing information of the commodity in real time according to commodity dynamics. The consumer inquires the production place, logistics information, sales shops, appointed sales time and the like of the commodity through the commodity tracing information interface address.
The consumer can judge whether the commodity is counterfeit by comparing the actual purchasing store with the sales store in the traceability information.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent structures or equivalent processes or direct or indirect application in other related technical fields are included in the scope of the present invention.

Claims (9)

1. A method for generating a three-dimensional code, comprising the steps of:
the code generation end acquires commodity information and background pictures;
dividing a display area visible to human eyes on a background picture, wherein code points of a two-dimensional code matrix are prevented from being displayed in the display area;
generating a two-dimensional code matrix by the code generating end according to commodity information;
the code generating end fuses the background picture and the two-dimensional code matrix to obtain a three-dimensional code;
selecting a plurality of first specific areas and a plurality of second specific areas on the three-dimensional code, wherein the second specific areas are arranged in the display area;
the color value of each first specific area and the color value of each second specific area are recorded.
2. An anti-counterfeiting traceability system based on the three-dimensional code according to claim 1, which is characterized by comprising the following steps:
presetting a first threshold interval;
associating the three-dimensional code with a commodity;
the user side obtains a picture containing the three-dimensional code and sends the picture to the code verification side;
the code checking terminal tries to decode the three-dimensional code and confirms the color value of at least one second specific area in the three-dimensional code according to the picture to obtain a second color value; if the second color value does not fall into the first threshold value interval, the three-dimensional code is considered to be a counterfeit product, and decoding is stopped; otherwise, the three-dimensional code is considered as a genuine product, and the code verification terminal decodes the data in the three-dimensional code to obtain the commodity information and returns the commodity information to the user terminal.
3. The three-dimensional code-based anti-counterfeiting traceability system according to claim 2, wherein the calculating step of the first threshold interval is as follows:
constructing a linear regression model;
constructing a sample set: shooting three-dimensional codes under different shooting conditions to obtain a plurality of sample data, wherein the sample data comprise recorded color values of a first specific area or a second specific area and color values obtained by identifying the specific area;
according to the sample set, solving the linear regression model by a least square method; and calculating a prediction interval with the confidence coefficient of 1-alpha as a first threshold interval by using a linear regression equation.
4. A three-dimensional code-based anti-counterfeiting traceability system according to claim 3, further comprising: identifying colors in each first specific area in the three-dimensional code to obtain a plurality of first color values;
checking a linear regression model according to a plurality of the first color values; if the linear regression model passes the inspection and the second color value does not fall into the first threshold interval, the three-dimensional code is considered to be a counterfeit product; and if the linear regression model passes the inspection and the second color value falls into the first threshold value interval, the three-dimensional code is considered to be a genuine product.
5. The three-dimensional code-based anti-counterfeiting traceability system according to claim 4, further comprising: the code generation end is provided with a private key; the user is provided with a public key corresponding to the private key;
the code generation end encrypts commodity information by using the private key to obtain commodity information ciphertext, and generates a two-dimensional code matrix according to the commodity information ciphertext;
decoding the commodity information ciphertext by the code verification terminal and returning the commodity information ciphertext to the user terminal;
and the user decrypts the commodity information by using the public key.
6. The three-dimensional code-based anti-counterfeiting traceability system according to claim 4, further comprising:
the code generation end acquires anti-counterfeiting information; the code generation end generates a data field according to the commodity information and the anti-counterfeiting information, wherein the data field comprises a data code, an error correction code and a supplementary mark, the commodity information is positioned in the data code, and the anti-counterfeiting information is positioned in the supplementary mark; and the code generating end generates a two-dimensional code matrix according to the data field.
7. The three-dimensional code-based anti-counterfeiting traceability system according to claim 6, wherein the commodity information comprises commodity traceability information interface addresses and commodity identification information.
8. The three-dimensional code-based anti-counterfeiting traceability system according to claim 7, further comprising:
the user terminal sends user identification information and the picture containing the three-dimensional code to the code verification terminal;
after the code verification terminal decodes the commodity information, the user identification information is recorded and correlated with the commodity identification information, and a commodity inquiry record is generated.
9. The three-dimensional code-based anti-counterfeiting traceability system according to claim 8, wherein the commodity traceability information comprises a production place, logistics information, a sales store and a designated sales time of the commodity.
CN202110882031.4A 2021-08-02 2021-08-02 Three-dimensional code generation method and anti-counterfeiting tracing system based on three-dimensional code Active CN113627577B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110882031.4A CN113627577B (en) 2021-08-02 2021-08-02 Three-dimensional code generation method and anti-counterfeiting tracing system based on three-dimensional code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110882031.4A CN113627577B (en) 2021-08-02 2021-08-02 Three-dimensional code generation method and anti-counterfeiting tracing system based on three-dimensional code

Publications (2)

Publication Number Publication Date
CN113627577A CN113627577A (en) 2021-11-09
CN113627577B true CN113627577B (en) 2023-05-23

Family

ID=78382212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110882031.4A Active CN113627577B (en) 2021-08-02 2021-08-02 Three-dimensional code generation method and anti-counterfeiting tracing system based on three-dimensional code

Country Status (1)

Country Link
CN (1) CN113627577B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008077201A (en) * 2006-09-19 2008-04-03 Ricoh Co Ltd Writing medium, writing information detection device, writing information detection method, program, and recording medium
CN110210878A (en) * 2019-06-10 2019-09-06 北京意锐新创科技有限公司 Commodity source tracing method and device based on two dimension code reading device
CN110942126A (en) * 2019-11-08 2020-03-31 广州追溯信息科技有限公司 Method for generating star array three-dimensional code
CN112101966A (en) * 2020-09-24 2020-12-18 周丽君 Commodity anti-counterfeiting tracing method based on multi-code matching technology
CN112183695A (en) * 2019-07-05 2021-01-05 杭州海康机器人技术有限公司 Encoding method, encoding pattern reading method, and imaging device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008077201A (en) * 2006-09-19 2008-04-03 Ricoh Co Ltd Writing medium, writing information detection device, writing information detection method, program, and recording medium
CN110210878A (en) * 2019-06-10 2019-09-06 北京意锐新创科技有限公司 Commodity source tracing method and device based on two dimension code reading device
CN112183695A (en) * 2019-07-05 2021-01-05 杭州海康机器人技术有限公司 Encoding method, encoding pattern reading method, and imaging device
CN110942126A (en) * 2019-11-08 2020-03-31 广州追溯信息科技有限公司 Method for generating star array three-dimensional code
CN112101966A (en) * 2020-09-24 2020-12-18 周丽君 Commodity anti-counterfeiting tracing method based on multi-code matching technology

Also Published As

Publication number Publication date
CN113627577A (en) 2021-11-09

Similar Documents

Publication Publication Date Title
CN109190736B (en) Anti-counterfeiting two-dimensional code and generation method and generation application system thereof
EP3311336B1 (en) Authentication feature in a barcode
US9224087B2 (en) Secure identification of a product
CA2518359C (en) System and method for authenticating objects
CN205665721U (en) Present label that machine readable vision is showed
CN109472337B (en) Label anti-counterfeiting method and device based on random characteristics
CN107506816A (en) The method of two-dimension code label, commodity counterfeit prevention code label and commodity counterfeit prevention analysis
US9153005B2 (en) Method and system for authenticating a secure document
CN106682912A (en) Method and apparatus for authentication of 3D structure
CN111639734B (en) Novel two-dimensional code encoding and anti-counterfeiting application method embedded with QR code
CN1326578A (en) Verification method
Cozzella et al. Drug packaging security by means of white-light speckle
US9871660B2 (en) Method for certifying and authentifying security documents based on a measure of the relative variations of the different processes involved in its manufacture
CN112313716A (en) Method for producing a security element that is invisible to the human eye and cannot be copied in an image, and printed image
DE102015009123B4 (en) Procedure for checking the authenticity of the origin labeling and shelf life information of products
CN108602374A (en) Verification to the object for being provided with security element
US8325969B2 (en) Methods for making an authenticating system
CN111144908A (en) Anti-counterfeit label management method, device, equipment and readable storage medium
CN108875875A (en) A kind of label and method for anti-counterfeit
CN113627577B (en) Three-dimensional code generation method and anti-counterfeiting tracing system based on three-dimensional code
US20060201364A1 (en) Secure printing method to thwart counterfeiting
CN107209970A (en) Based on manufacture be related to different process relative position change measurement come confirm and certification safety document method
CN109313701A (en) For generating method, imaging device and the system of the measurement of the authenticity of object
CN109299770B (en) Anti-counterfeiting two-dimensional code and laser hologram encryption method and production application system thereof
WO2013036227A1 (en) Tracking customer loyalty information using an incremental information object

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant