CN113627577A - Three-dimensional code generation method and anti-counterfeiting traceability system based on three-dimensional code - Google Patents

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

Info

Publication number
CN113627577A
CN113627577A CN202110882031.4A CN202110882031A CN113627577A CN 113627577 A CN113627577 A CN 113627577A CN 202110882031 A CN202110882031 A CN 202110882031A CN 113627577 A CN113627577 A CN 113627577A
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.)
Granted
Application number
CN202110882031.4A
Other languages
Chinese (zh)
Other versions
CN113627577B (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

Abstract

The invention relates to a method for generating a three-dimensional code, which comprises the following steps: the code generation end acquires commodity information and a background picture; the code generation end generates a two-dimensional code matrix according to the commodity information; the code generation 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; and recording the color value of each first specific area and the color value of each second specific area. And associating the three-dimensional code with the commodity, and performing anti-counterfeiting tracing on the commodity by using the three-dimensional code. According to the invention, the counterfeiting difficulty and the counterfeiting cost are improved through the background picture, the background picture is a commodity picture or a commodity icon, the commodity condition can be displayed, the visual information in the three-dimensional code is increased, and the impression is easily given to people.

Description

Three-dimensional code generation method and anti-counterfeiting traceability system based on three-dimensional code
Technical Field
The invention relates to a three-dimensional code generation method and an anti-counterfeiting traceability system based on a three-dimensional code, and belongs to the field of anti-counterfeiting traceability.
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 safety line digital informatization anti-counterfeiting. The current mainstream solution is: and pasting the two-dimensional code on the commodity, and scanning the two-dimensional code by a consumer to perform certified product authentication on the commodity and obtain traceability information of the commodity. Because the two-dimensional code algorithm is an open source algorithm, a counterfeiter can directly generate the two-dimensional code. For the two-dimensional code using the encryption algorithm, a counterfeiter can shoot a two-dimensional code printed matter through an instrument (such as a two-dimensional code copying machine, a high-speed shooting instrument and the like) to obtain a two-dimensional code electronic image, then certain adjustment is carried out on the two-dimensional code electronic image by using image correction software, and finally the two-dimensional code electronic image is printed by using the same material to obtain the forged two-dimensional code. Therefore, a technical scheme with low cost and good anti-counterfeiting effect is urgently needed.
In the prior art, for example, in patent "a method, an apparatus and an anti-counterfeit system for generating a color anti-counterfeit two-dimensional code" with application number CN202010256508.3, whether the color two-dimensional code is counterfeit or not is determined by comparing and scanning the color two-dimensional code obtained by scanning with a color two-dimensional code pre-stored in the system; although the color anti-counterfeiting two-dimensional code increases the counterfeiting difficulty, a counterfeiter cannot forge the two-dimensional code by directly copying the color anti-counterfeiting two-dimensional code.
In the prior art, for example, patent "anti-fake two-dimensional code and its generation method and generation application system" with application number CN201810869785.4 includes: step S1: manufacturing a label substrate of the two-dimensional code by adopting a laser holographic method; step S2: printing a two-dimensional code pattern on a label substrate by using optical ink, and forming a laser anti-counterfeiting area which is coated by the label substrate on the periphery of the two-dimensional code pattern, wherein the two-dimensional code pattern comprises an anti-counterfeiting coding area which regenerates 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, coding and modeling, and meanwhile, collecting and coding unique random color information generated at each matrix point for authenticity identification of subsequent products. The invention utilizes the uniqueness and irreversibility of the laser hologram generation process to fundamentally avoid the phenomenon that a counterfeiter imitates the two-dimensional code, but has high anti-counterfeiting cost and is difficult to popularize on common commodities.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a method for generating a three-dimensional code, which improves the counterfeiting difficulty and the counterfeiting cost through a background picture, utilizes 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 supplementary scheme of other anti-counterfeiting means for assisting judgment.
The technical scheme of the invention is as follows:
the first technical scheme is as follows:
a three-dimensional code generation method comprises the following steps:
the code generation end acquires commodity information and a background picture;
the code generation end generates a two-dimensional code matrix according to the commodity information;
the code generation 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; and recording the color value of each first specific area and the color value of each second specific area.
Further, the method also comprises the following steps: dividing a display area visible to human eyes on the background picture, wherein code points of the two-dimensional code matrix are prevented from being displayed in the display area; the second specific area 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 an article of merchandise;
the user side acquires the picture containing the three-dimensional code and sends the picture to the code checking side;
the code checking end 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 as a counterfeit product, and decoding is stopped; otherwise, the three-dimensional code is considered to be a genuine product, and the code checking end decodes data in the three-dimensional code to obtain the commodity information and returns the commodity information to the user end.
Further, the calculating step of the first threshold interval is:
constructing a linear regression model;
constructing a sample set: shooting the three-dimensional code under different shooting conditions to obtain a plurality of sample data, wherein the sample data comprises the color value of the recorded first specific area or second specific area and the color value obtained by identifying the specific area;
solving the linear regression model by a least square method according to the sample set; and calculating a prediction interval with the confidence coefficient of 1-alpha as a first threshold interval through a linear regression equation.
Further, the method also comprises the following steps: identifying the color in each first specific area in the three-dimensional code to obtain a plurality of first color values;
checking a linear regression model based on a number of said first color values; 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 as a counterfeit product; and if the linear regression model passes the test and the second color value falls into the first threshold interval, the three-dimensional code is considered as a genuine product.
Further, the method also comprises the following steps: the code generation end is provided with a private key; the user side is provided with a public key corresponding to the private key;
the code generation end encrypts the commodity information by using the private key to obtain a commodity information ciphertext, and generates a two-dimensional code matrix according to the commodity information ciphertext;
the code checking end decodes to obtain a commodity information ciphertext and returns the commodity information ciphertext to the user end;
and the user side decrypts the commodity information by using the public key to obtain the commodity information.
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 complementary code, the commodity information is located in the data code, and the anti-counterfeiting information is located in the complementary code; and the code generation end generates a two-dimensional code matrix according to the data field.
Further, the commodity information includes a commodity tracing information interface address and commodity identification information.
Further, the method also comprises the following steps:
the user side sends user identification information and the picture containing the three-dimensional code to the code checking side;
and after the code checking end decodes to obtain the commodity information, recording the user identification information and associating the user identification information with the commodity identification information to generate a commodity query record.
Further, the commodity traceability information includes a production place, logistics information, sales stores and specified sales time of the commodity.
The invention has the following beneficial effects:
1. according to the invention, the counterfeiting difficulty and the counterfeiting cost are improved through the background picture, and the background picture is a commodity picture or a commodity icon and can show the commodity condition, so that the visual information in the three-dimensional code is increased, and the impression is easily given to people;
2. in the invention, the code generation end and the user end are respectively provided with a private key and a public key, the code generation end generates a three-dimensional code after encrypting commodity information by using the private key, a counterfeiter cannot generate the three-dimensional code by himself or herself and can only copy the three-dimensional code through an instrument;
3. because the color of the counterfeit product obtained by copying has larger deviation, the color in the three-dimensional code is used as the anti-counterfeiting mark, the color deviation range (namely a first threshold value interval) which can be generated by only once shooting is analyzed through a linear regression model, and the genuine product and the counterfeit product are distinguished by judging whether the second color value falls into the first threshold value interval, 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 supplementary scheme can also be used as a supplementary scheme for other anti-counterfeiting means to assist in judgment;
4. the invention verifies the linear regression model through the first color value data obtained during decoding, thereby ensuring the effectiveness of the linear regression model.
5. The invention can better display the commodity condition by dividing the display area, and can more conveniently select and identify the second specific area.
6. The anti-counterfeiting information is placed in the supplemented fields in the data fields, so that the mode of acquiring the commodity information and the commodity traceability information by a consumer is not influenced, but only a specific two-dimensional code reading terminal or software can be used if the anti-counterfeiting information needs to be further acquired, the anti-counterfeiting means is hidden, and the counterfeiting difficulty and the counterfeiting cost are further increased.
7. The consumer can judge whether the commodity is forged by comparing the actual purchasing shop with the sales shops in the commodity tracing 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 is described in detail below with reference to the figures and the specific embodiments.
Example one
As shown in fig. 1 and 2, a method for generating a three-dimensional code includes the following steps:
and the code generation end acquires commodity information and a background picture. The commodity information comprises commodity basic information, a commodity traceability information interface address and commodity identification information. The basic information of the commodity comprises commodity names, commodity quantity, commodity quality, manufacturers and the like; the commodity tracing information comprises commodity production places, logistics information, sales stores, specified sales time and the like; the commodity identification information is a series of numbers for identifying the uniqueness of the commodity. The background picture can be a commodity picture or a trademark picture.
And the code generation end encrypts the commodity information by using a private key and generates a two-dimensional code matrix according to the commodity information ciphertext.
And the code generation end fuses the background picture and the two-dimensional code matrix to obtain the three-dimensional code. (for the specific process of fusing the background picture and the two-dimensional code matrix, refer to the three-dimensional code encoding method and system of patent application No. CN201610080300.4 or the three-dimensional code optimizing method, medium, computer device and apparatus of patent application No. CN 201910294747.5.)
In this embodiment, the code generation end selects six first specific areas and one second specific area on the three-dimensional code (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). And recording the positions and color values of the first specific area and the second specific area (the color values of the first specific area and the second specific area are the average value of all pixel color values in the areas).
The beneficial effect of this implementation lies in: the counterfeiting difficulty and the counterfeiting cost are improved through the background picture, the background picture is a commodity picture or a commodity icon, the commodity condition can be displayed, the visual information in the three-dimensional code is increased, and the impression is easily given to people.
Example two
Further, on the basis of the first embodiment, the three-dimensional code is used for performing anti-counterfeiting traceability of the commodity, and the steps are as follows:
s1, constructing a linear regression model:
xi'=ω1·xi+c1
yi'=ω2·yi+c2
zi'=ω3·zi+c3
wherein, ω is1、ω2、ω3、c1、c2、c3Is a parameter to be solved; (x)i,yi,zi) Color value (x) indicating a specific area of recordingi',yi',zi') indicates identification (x)i,yi,zi) The color value obtained from the corresponding specific region. In the present embodiment, the color values adopt an RGB color mode.
S2, constructing a sample set, and solving the linear regression model and the first threshold interval by using the sample set:
and shooting the three-dimensional code at different angles by using a plurality of intelligent mobile terminals respectively to obtain a plurality of sample data, wherein the sample data comprises the color value of the recorded first specific area and the color value 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 method1、ω2、ω3、c1、c2、c3
And inputting the recorded color value of the second specific area into a linear regression equation to obtain a predicted value of the second color value, calculating a prediction interval with the confidence coefficient of 1-alpha, and taking the prediction interval as the first threshold interval.
S3, associating the three-dimensional code with a commodity; (in this embodiment, the three-dimensional code is directly attached to the commercial product)
S4, the user side obtains the picture containing the three-dimensional code and sends the picture to the code checking side.
And S5, trying to decode the three-dimensional code and identifying the colors in the six first specific areas and the six second specific areas by the code verification terminal according to the picture to obtain six first color values and one second color value. (if a plurality of second specific regions are identified to obtain a plurality of second color values, then the median or the average value of the plurality of second color values is taken; or if the number of the second color values falling into the first threshold interval exceeds the threshold, then the three-dimensional code is considered as a genuine product.)
The code checking end checks the significance of the linear regression model by using an F checking method (or by using a t checking method) according to the obtained six 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 as a genuine product, and the code checking end decodes to obtain the commodity information ciphertext and returns the commodity information ciphertext to the user end; and if the linear regression model passes the inspection and the second color value does not fall into the first threshold interval, considering the three-dimensional code as a counterfeit product, and stopping decoding.
The implementation has the advantages that:
the code generation end and the user end are respectively provided with a private key and a public key, the code generation end generates a three-dimensional code after encrypting commodity information by using the private key, and a counterfeiter cannot generate the three-dimensional code by himself or herself and can only forge the three-dimensional code by means of copying the three-dimensional code by an instrument;
a counterfeiter firstly 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 forged three-dimensional code printed matter; and finally, shooting the forged three-dimensional code printed matter by a consumer for anti-counterfeiting inspection. Obviously, in the above process, the color of the counterfeit is affected by the precision of the printing instrument and the photographing instrument, the photographing illumination condition and other factors, and the deviation is much larger than that of the genuine product (the counterfeit product is photographed twice and printed once, and the genuine product is photographed only once). The method uses the color in the three-dimensional code as the anti-counterfeiting mark, performs color deviation range (namely a first threshold value interval) generated by shooting only once through linear regression model analysis, and distinguishes the genuine product from the counterfeit product by judging whether the second color value falls into the first threshold value interval (because a counterfeiter may adjust the color of a white part, namely a first specific area, when copying the three-dimensional code, the deviation of the first color value is smaller), the anti-counterfeiting effect is good, no complex printing process is needed, the anti-counterfeiting cost is low, the method is easy to popularize, and the method can also be used as a supplementary scheme of other anti-counterfeiting means to assist judgment.
Furthermore, the linear regression model is verified through the first color value data obtained during decoding, and the effectiveness of the linear regression model is ensured.
EXAMPLE III
A display area visible to the human eye is divided on the background picture (for the division method of the display area, refer to patent application No. CN202011120378.7, "a method and apparatus for generating three-dimensional code for enhancing visual effect", etc.), and the display area is prevented from displaying the code points of the two-dimensional code matrix.
In this embodiment, the code generation 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 white area or a white code dot in the three-dimensional code (e.g., the area 101 in fig. 3), and the RGB values (color values) of the first specific area are (R255, G255, B255); the second specific region (e.g., region 102 in fig. 3) is selected and the RGB values are (R240, G65, B85).
The embodiment has the advantages 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 four
Further, when the user side sends the three-dimensional code picture, the user identification information is sent to the code checking side;
and the code checking end records the user identification information and associates the user identification information with the commodity identification information to generate a commodity query record.
The possibility that the commodity is forged can be analyzed according to the commodity inquiry record, such as: if the query record data of a certain commodity exceeds the threshold value and the user identifiers in the query records are different, the commodity has a high possibility of being forged.
EXAMPLE five
The code generation end acquires commodity information, anti-counterfeiting information and a background picture; the anti-counterfeiting information comprises data which can uniquely identify the three-dimensional code, such as a three-dimensional code identification number, a three-dimensional code finished product picture acquisition link and the like;
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 complementary code, the commodity information is located in the data code, and the anti-counterfeiting information is located in the complementary code; the code generation end generates a two-dimensional code matrix according to the data field;
the code generation 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; and recording the color value of each first specific area and the color value of each second specific area.
The anti-counterfeiting method has the advantages that the anti-counterfeiting information is placed in the filling fields in the data fields, so that the mode that consumers obtain the commodity information and the commodity traceability information is not affected, but only a specific two-dimensional code reading terminal or software can be used if the anti-counterfeiting information needs to be further obtained (the existing two-dimensional code or three-dimensional code reading algorithm cannot identify the data in the filling codes and is difficult to know the coding rules of the anti-counterfeiting information in the filling codes), the anti-counterfeiting means is relatively hidden, and 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 the commodity dynamics. The consumer inquires about the production place, logistics information, sales store, specified sales time, etc. of the goods through the goods traceability information interface address.
The consumer can judge whether the commodity is forged by comparing the actual purchasing shop with the sales shops in the tracing information.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for generating a three-dimensional code is characterized by comprising the following steps:
the code generation end acquires commodity information and a background picture;
the code generation end generates a two-dimensional code matrix according to the commodity information;
the code generation 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; and recording the color value of each first specific area and the color value of each second specific area.
2. The method for generating three-dimensional code according to claim 1, further comprising: dividing a display area visible to human eyes on the background picture, wherein code points of the two-dimensional code matrix are prevented from being displayed in the display area; the second specific area is disposed within the display area.
3. The anti-counterfeiting traceability system based on the three-dimensional code as claimed in claim 1, comprising the following steps:
presetting a first threshold interval;
associating the three-dimensional code with an article of merchandise;
the user side acquires the picture containing the three-dimensional code and sends the picture to the code checking side;
the code checking end 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 as a counterfeit product, and decoding is stopped; otherwise, the three-dimensional code is considered to be a genuine product, and the code checking end decodes data in the three-dimensional code to obtain the commodity information and returns the commodity information to the user end.
4. The anti-counterfeiting traceability system based on the three-dimensional code as claimed in claim 3, wherein the calculation step of the first threshold interval is:
constructing a linear regression model;
constructing a sample set: shooting the three-dimensional code under different shooting conditions to obtain a plurality of sample data, wherein the sample data comprises the color value of the recorded first specific area or second specific area and the color value obtained by identifying the specific area;
solving the linear regression model by a least square method according to the sample set; and calculating a prediction interval with the confidence coefficient of 1-alpha as a first threshold interval through a linear regression equation.
5. The anti-counterfeiting traceability system based on the three-dimensional code as claimed in claim 4, further comprising: identifying the color in each first specific area in the three-dimensional code to obtain a plurality of first color values;
checking a linear regression model based on a number of said first color values; 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 as a counterfeit product; and if the linear regression model passes the test and the second color value falls into the first threshold interval, the three-dimensional code is considered as a genuine product.
6. The anti-counterfeiting traceability system based on the three-dimensional code as claimed in claim 5, further comprising: the code generation end is provided with a private key; the user side is provided with a public key corresponding to the private key;
the code generation end encrypts the commodity information by using the private key to obtain a commodity information ciphertext, and generates a two-dimensional code matrix according to the commodity information ciphertext;
the code checking end decodes to obtain a commodity information ciphertext and returns the commodity information ciphertext to the user end;
and the user side decrypts the commodity information by using the public key to obtain the commodity information.
7. The anti-counterfeiting traceability system based on the three-dimensional code as claimed in claim 5, 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 complementary code, the commodity information is located in the data code, and the anti-counterfeiting information is located in the complementary code; and the code generation end generates a two-dimensional code matrix according to the data field.
8. The anti-counterfeiting traceability system based on three-dimensional codes as claimed in claim 7, wherein the commodity information comprises a commodity traceability information interface address and commodity identification information.
9. The anti-counterfeiting traceability system based on the three-dimensional code as claimed in claim 8, further comprising:
the user side sends user identification information and the picture containing the three-dimensional code to the code checking side;
and after the code checking end decodes to obtain the commodity information, recording the user identification information and associating the user identification information with the commodity identification information to generate a commodity query record.
10. The anti-counterfeiting traceability system based on the three-dimensional code as claimed in claim 9, wherein the commodity traceability information comprises a production place, logistics information, sales stores and 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 true CN113627577A (en) 2021-11-09
CN113627577B 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
CN113627577B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN109190736B (en) Anti-counterfeiting two-dimensional code and generation method and generation application system thereof
US7757952B2 (en) Method and apparatus for counterfeiting protection
US7815117B2 (en) Method and apparatus for counterfeiting protection
WO2009122730A1 (en) Goods processing method
US9224087B2 (en) Secure identification of a product
CN205665721U (en) Present label that machine readable vision is showed
CN107341676A (en) False proof mark and the method for tracing to the source
US20050179252A1 (en) System and method for authenticating objects using non-visually observable encoded indicia
US20050234823A1 (en) Systems and methods to prevent products from counterfeiting and surplus production also of tracking their way of distribution.
CN109472337B (en) Label anti-counterfeiting method and device based on random characteristics
WO2018107683A1 (en) Method and device for preventing counterfeit and inferior merchandise from entering circulation field
CN111639734B (en) Novel two-dimensional code encoding and anti-counterfeiting application method embedded with QR code
US11587339B2 (en) Method for reading a code stored in a halftone image and comparison with a retrievable value
CN101142605A (en) Counterfeit protecting method
EP2702541A2 (en) Monitoring movable articles
US11004088B1 (en) Method and system for certifying product authenticity using physical feature information including digitized surface fingerprint and blockchain
DE102015009123B4 (en) Procedure for checking the authenticity of the origin labeling and shelf life information of products
CN105654841A (en) Anti-counterfeit label with film fiber code and anti-counterfeit method
US20160117685A1 (en) A counterfeiting control system
US10193883B2 (en) Systems and methods for product authentication
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
CN107209970A (en) Based on manufacture be related to different process relative position change measurement come confirm and certification safety document method
CN112862029B (en) Anti-fake verification method and anti-fake verification system

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