CN111539502B - Anti-counterfeiting two-dimensional code generation method and device, server and storage medium - Google Patents

Anti-counterfeiting two-dimensional code generation method and device, server and storage medium Download PDF

Info

Publication number
CN111539502B
CN111539502B CN202010204983.6A CN202010204983A CN111539502B CN 111539502 B CN111539502 B CN 111539502B CN 202010204983 A CN202010204983 A CN 202010204983A CN 111539502 B CN111539502 B CN 111539502B
Authority
CN
China
Prior art keywords
code
counterfeiting
product
information
preset
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
CN202010204983.6A
Other languages
Chinese (zh)
Other versions
CN111539502A (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.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China 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 Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN202010204983.6A priority Critical patent/CN111539502B/en
Publication of CN111539502A publication Critical patent/CN111539502A/en
Application granted granted Critical
Publication of CN111539502B publication Critical patent/CN111539502B/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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Marketing (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The invention relates to the field of data security, and provides a method, a device, a server and a computer readable storage medium for generating an anti-counterfeiting two-dimensional code, wherein the method comprises the following steps: acquiring a batch code, and acquiring a corresponding product ID according to the batch code; the product ID is coded based on a preset coding program to generate anti-counterfeiting information of the product ID; generating a tracking code of the product ID according to the batch code and the anti-counterfeiting information; generating a URL of the product ID according to preset website information and the tracking code; and based on a preset two-dimensional code generation algorithm, generating the anti-counterfeiting two-dimensional code of the product according to the URL, generating the URL from the anti-counterfeiting information of the product ID, and using the generated URL as the generation information of the two-dimensional code, thereby achieving the anti-counterfeiting effect.

Description

Anti-counterfeiting two-dimensional code generation method and device, server and storage medium
Technical Field
The invention relates to the technical field of data security, in particular to a method and a device for generating an anti-counterfeiting two-dimensional code, a server and a computer readable storage medium.
Background
A two-dimensional code (also called a two-dimensional bar code) originally originated in japan, which is a black and white pattern distributed on a plane (two-dimensional direction) according to a certain rule by using a specific geometric pattern, and is a key for all information data.
At present, the traceability-type identification code of a product on the market generally uses a two-dimensional code, enterprise information of the product or attribute information of the product, such as production information, product name, product application and the like, is recorded on a management platform, and a user obtains the enterprise information or the attribute information of the product recorded on the management platform by scanning the two-dimensional code on the product.
Disclosure of Invention
The invention mainly aims to provide a method, a device, a server and a computer readable storage medium for generating an anti-counterfeiting two-dimensional code, and aims to solve the technical problem that the anti-counterfeiting effect cannot be achieved due to the fact that the existing two-dimensional code can be used as a backtracking window of a product but is only used for displaying product information.
In a first aspect, a method for generating an anti-counterfeit two-dimensional code includes:
acquiring a batch code, and acquiring a corresponding product ID according to the batch code;
the product ID is coded based on a preset coding program to generate anti-counterfeiting information of the product ID;
generating a tracking code of the product ID according to the batch code and the anti-counterfeiting information;
generating a URL of the product ID according to preset website information and the tracking code;
and generating the anti-counterfeiting two-dimensional code of the product ID according to the URL based on a preset two-dimensional code generation algorithm.
In a second aspect, the present application further provides an apparatus for generating an anti-counterfeit two-dimensional code, where the apparatus for generating an anti-counterfeit two-dimensional code includes:
the acquisition module is used for acquiring batch codes and acquiring corresponding product IDs according to the batch codes;
the anti-counterfeiting information generating module is used for coding the product ID based on a preset coding program and generating anti-counterfeiting information of the product ID;
the tracking code generating module is used for generating the tracking code of the product ID according to the batch code and the anti-counterfeiting information;
the URL generating module is used for generating the URL of the product ID according to preset website information and the tracking code;
and the two-dimension code generation module is used for generating the anti-counterfeiting two-dimension code of the product ID according to the URL based on a preset two-dimension code generation algorithm.
In a third aspect, the present application further provides a server, including: the anti-counterfeiting two-dimensional code generation method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the computer program realizes the steps of the anti-counterfeiting two-dimensional code generation method when being executed by the processor.
In a fourth aspect, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for generating an anti-fake two-dimensional code according to the above invention are implemented.
The embodiment of the invention provides a method, a device, a server and a computer readable storage medium for generating an anti-counterfeiting two-dimensional code, which are used for acquiring batch codes and acquiring corresponding product IDs according to the batch codes; the product ID is coded based on a preset coding program to generate anti-counterfeiting information of the product ID; generating a tracking code of the product ID according to the batch code and the anti-counterfeiting information; generating a URL of the product ID according to preset website information and the tracking code; and based on a preset two-dimensional code generation algorithm, the anti-counterfeiting two-dimensional code of the product ID is generated according to the URL, so that the anti-counterfeiting effect is achieved by generating the URL from the anti-counterfeiting information of the product and using the generated URL as the generation information of the two-dimensional code.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for generating an anti-counterfeiting two-dimensional code according to an embodiment of the present application;
fig. 2 is a flow chart illustrating sub-steps of a method for generating the anti-counterfeit two-dimensional code in fig. 1;
fig. 3 is a flow chart illustrating sub-steps of a method for generating the anti-counterfeit two-dimensional code in fig. 1;
fig. 4 is a flow chart illustrating sub-steps of a method for generating the anti-counterfeit two-dimensional code in fig. 1;
fig. 5 is a schematic flow chart of another method for generating an anti-counterfeit two-dimensional code according to an embodiment of the present application;
fig. 6 is a schematic block diagram of an apparatus for generating an anti-counterfeit two-dimensional code according to an embodiment of the present application;
fig. 7 is a schematic block diagram of another apparatus for generating an anti-counterfeit two-dimensional code according to an embodiment of the present application;
fig. 8 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The embodiment of the application provides a method and a device for generating an anti-counterfeiting two-dimensional code, a server and a computer readable storage medium. The anti-counterfeiting two-dimensional code generation method can be applied to a server.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for generating an anti-counterfeit two-dimensional code according to an embodiment of the present application.
As shown in fig. 1, the method for generating the anti-counterfeit two-dimensional code includes steps S101 to S105.
S101, acquiring batch codes of products, and acquiring corresponding product IDs according to the batch codes;
when the server reads the batch code of the product, the batch code is the production batch number of the product, a group of numbers or letters plus numbers for identifying "batch", for example, year of production + month of production + number of times of production of batch, and generally consists of two digits of year, month and day of production time. And calling a preset encoding program or an encoder, and encoding the batch codes of the products through the preset encoding program or the encoder to generate the application program of the products. Encoding is the process by which information is converted from one form or format to another, also referred to as code in computer programming languages. Characters, numbers or other objects are coded into digital information by a predetermined coding rule, or the information and data are converted into a predetermined electric pulse signal. For example, when the server acquires the production year + production month + batch production times of the batch code, the production year + production month + batch production times are coded into digital information in the form of graphics, characters, and the like by a preset coding program or a preset coder.
An example is that the server obtains a batch code of the product, and obtains a mapping relation table between the batch code and the product ID. The information between the batch code and the product ID of the product is set in advance as a mapping relation table, for example, the batch code and all product ID numbers of the batch code are recorded in the mapping relation table, and each product has a product ID, and the product IDs are different. A product batch comprises more than one product ID, and all the product IDs are associated with batch codes of the products to generate a mapping relation table. And acquiring the product ID corresponding to the batch of codes through the mapping relation table, wherein the ID can be a combination of numbers, letters, special characters and the like, and the number of the acquired product IDs is not limited.
S102, coding the product ID based on a preset coding program to generate anti-counterfeiting information of the product;
and calling a preset coding program when the product ID is acquired. The code in the code program is the process by which information is converted from one form or format to another, also referred to as code in computer programming language. Characters, numbers or other objects are coded into digital information by a predetermined coding rule, or the information and data are converted into a predetermined electric pulse signal. And encoding the product ID through an encoding program to generate the anti-counterfeiting information of the product.
In an embodiment, specifically referring to fig. 2, step S102 includes: substeps 1021 to substep S1022.
The substep S1021 combines the product ID and a preset code based on the coding program to generate an anti-counterfeiting code corresponding to the product ID;
and acquiring a preset code in the coding program, and combining the product ID and the preset code through the coding program to generate an anti-counterfeiting code corresponding to the product. There are two ways of combination, in the embodiment, the combination is fixed, the preset code is placed at the front, and the product ID is placed at the back of the preset code. For example, when the preset code is 1234 and the product ID is 00012, the anti-counterfeiting code is 123400012. Alternatively, the product ID is preceded by a security code placed behind the product ID, and the security code is 000121234. And (4) random combination, namely, disordering the preset code and the product ID and recombining. For example, when the preset code is 1234 and the product ID is 00012, the anti-counterfeiting code is 010423021.
And a substep S1022 of obtaining the generation timestamp of the anti-counterfeiting code, and using the product ID, the anti-counterfeiting code, and the generation timestamp as anti-counterfeiting information.
When the anti-counterfeiting code is generated, the generation time for generating the anti-counterfeiting code is acquired. For example, when the anti-counterfeiting code is detected to be successfully generated, the time of the current time system is recorded, and the recorded time is used as the generation time stamp. And taking the product ID, the anti-counterfeiting code and the generated timestamp as anti-counterfeiting information, wherein each product ID has one piece of anti-counterfeiting information, and the anti-counterfeiting information of each product ID is different.
S103, generating a tracking code of the product ID according to the batch code and the anti-counterfeiting information;
and when the anti-counterfeiting information is acquired, combining the acquired anti-counterfeiting information with the batch codes to generate the tracking codes of the product. For example, when the anti-counterfeiting information is an anti-counterfeiting symbol, a group of anti-counterfeiting numbers and the like, the batch code is the production year, the production month and the batch production times of the product, the anti-counterfeiting symbol or the anti-counterfeiting numbers of the anti-counterfeiting information are combined with the production year, the production month and the batch production times of the product, the combination sequence is not specified, and the tracking code of the product ID is generated.
In an embodiment, specifically referring to fig. 3, step S103 includes: sub-step S1031 to sub-step S1032.
Step S1031, calculating the batch code, the product ID, the anti-counterfeiting code and the generation time stamp in sequence based on a preset hash algorithm program to respectively obtain hash values of the batch code, the product ID, the anti-counterfeiting code and the generation time stamp;
and calling a preset hash algorithm program when the server acquires the tracking code of the product. The hash algorithm program maps an arbitrary length binary value to a shorter fixed length binary value, this small binary value being referred to as the hash value. Hash values are a unique and extremely compact representation of a piece of data as a value. If a piece of plaintext is hashed and even if only one letter of the piece is altered, the subsequent hash will produce a different value. To find two different inputs whose hash is the same value, the hash value of the data can verify the integrity of the data. And respectively calculating the batch code, the product ID, the anti-counterfeiting code and the generation timestamp through a preset hash algorithm to obtain hash values of the batch code, the product ID, the anti-counterfeiting code and the generation timestamp. For example, the batch code is calculated by a preset hash algorithm program to obtain a hash value of the batch code, the product ID is calculated to obtain a hash value of the product ID, the anti-counterfeit code is calculated to obtain a hash value of the anti-counterfeit code, and the generation timestamp is calculated to obtain a hash value of the generation timestamp.
And a substep S1032 of combining the obtained batch code, the product ID, the anti-counterfeiting code and the hash value of the generated time stamp to generate a tracking code of the product ID.
And when the server respectively obtains the hash value of the batch code, the hash value of the product ID, the hash value of the anti-counterfeiting code and the hash value of the generation timestamp, combining the obtained hash value of the batch code, the hash value of the product ID, the hash value of the anti-counterfeiting code and the hash value of the generation timestamp to generate the tracking code of the product. For example, the combination mode may be a combination mode of the hash value of the batch code + the hash value of the product ID + the hash value of the anti-counterfeit code + the hash value of the generation time stamp to generate the tracking code of the product, or a combination mode of the hash value of the product ID + the hash value of the generation time stamp + the hash value of the anti-counterfeit code + the hash value of the batch code to generate the tracking code of the product ID, and the combination mode is not limited.
The server combines the obtained batch codes, product IDs, anti-counterfeiting codes and hash values for generating time stamps of the products and then maps the product IDs, the anti-counterfeiting codes and the hash values into binary character strings; and if the length of the binary character string is smaller than the target length, performing bit complement on the binary character string to generate the tracking code with the same length as the target length. For example, when a binary string is mapped after a batch code of a product, a product ID, an anti-counterfeit code, and a hash value for generating a time stamp are combined is obtained, the length of the binary string is obtained, the obtained length is compared with a preset target length, and when the length of the binary string is smaller than the target length, the length of the binary string is complemented, for example, when the length of the binary string is 16 bits and the target length is 18 bits, the binary string is complemented by two 0 s so that the length of the binary string is the same as the target length, and a tracking code having the same target length is generated.
Step S104, generating a URL of a product ID according to preset website information and a tracking code;
and when the terminal acquires the tracking code of the product, reading preset website information. The website information is pre-stored in a preset path, for example, http: com.cn is stored in a preset path, the terminal combines the preset website information and the tracking code of the processed product through the read preset website information and the tracking code of the product to generate the URL of the product, and the URL is a Uniform Resource Locator (URL), is a concise representation of the position and the access method of the Resource which can be obtained from the internet, and is the address of the standard Resource on the internet.
And S105, generating an anti-counterfeiting two-dimensional code of the product ID according to the URL based on a preset two-dimensional code generation algorithm.
When the server obtains the URL of the product, the URL of the product is coded through a preset two-dimensional code generation algorithm, and the two-dimensional code of the product is generated. The two-dimensional Code generation algorithm can be Data Matrix, Maxi Code, Aztec, QR Code, etc., and the two-dimensional Code includes a stack two-dimensional Code and a Matrix two-dimensional Code, wherein the stack two-dimensional Code is established on the basis of a one-dimensional bar Code and is stacked into two or more lines as required. The method inherits some characteristics of the one-dimensional bar code in aspects of coding design, checking principle, reading mode and the like, and the reading equipment is compatible with bar code printing and one-dimensional bar code technology. However, as the number of rows increases, the rows need to be determined, and the decoding algorithm and software are not exactly the same as the one-dimensional bar code. The row-row type two-dimensional bar code comprises: code16K, Code 49, PDF417, MicroPDF417, etc. Matrix two-dimensional bar codes (also called checkerboard two-dimensional bar codes) are coded in a rectangular space through different distribution of black and white pixels in a matrix. On the corresponding element positions of the matrix, binary '1' is represented by the appearance of points (square points, round points or other shapes), binary '0' is represented by the absence of the points, and the significance represented by the matrix type two-dimensional bar code is determined by the arrangement and combination of the points. Matrix two-dimensional bar code is a new pattern symbol automatic reading processing code system based on computer image processing technology and combined coding principle. Representative matrix two-dimensional barcodes are: code One, MaxiCode, QR Code, etc.
In an embodiment, specifically referring to fig. 4, step S105 includes: substeps S1051 to substep S1054.
The substep S1051, based on the preset two-dimension code generating algorithm, determining the character type of the URL, and converting the URL into a data character string according to the character set corresponding to the character type;
and the server analyzes the data of the URL through a preset two-dimensional code generation algorithm, determines the character type of the URL and converts the URL into a data character string according to a corresponding character set. And the preset two-dimension code generation algorithm is a QB two-dimension code generation algorithm. For example, data analysis is performed on a URL to determine the character type of the URL, when the URL is determined to be numeric, a character set corresponding to the numeric character is selected, when the URL is english, a character set corresponding to the english character is selected, the URL is converted into data characters through the data characters corresponding to the character set, and the data characters are combined to generate a data character string of the URL.
Substep S1052, performing data encoding on the data character string to obtain a first codeword sequence corresponding to the data character string;
the data character string of the URL is subjected to data coding, the data character string is converted into bit streams, and each 8 bits of the bit streams form a code word sequence of data as a whole. Data may be encoded in a mode for more efficient decoding, such as: for the data: 01234567 encoding, grouping: 01234567, binary: 012 → 0000001100, 345 → 0101011001, 67 → 1000011, the transition sequence: 000000110001010110011000011, converting the character number into binary system: 8 → 0000001000, add mode indicator (upper figure) 0001: 00010000001000000000110001010110011000011, thereby obtaining the first code word sequence of the data character string.
The substep S1053, carry on the error correction coding to the first codeword sequence through presetting the error correction coding grade, obtain the error correction code word of the first codeword sequence;
and selecting the error correction level of the URL, wherein the higher the error correction level is, the smaller the real data capacity is under the condition of a preset rule. And carrying out error correction coding on the data character string of the URL according to the error correction level of the URL, blocking the code word sequence as required, and acquiring error correction code words according to the error correction level and the blocked code words. In the case of determining the two-dimensional code specification and the error correction level, the total number of codewords and the number of error correction codewords that can be accommodated by the two-dimensional code specification and the error correction level are determined, for example: version 10, error correction level H, can accommodate a total of 346 codewords, of which 224 error correction codewords, that is, approximately 1/3 codewords in the two-dimensional code region, are redundant. For these 224 error correction codewords, it can correct 112 replacement errors (e.g., black-white inversion) or 224 data read errors (unreadable or undecodable).
And a substep S1054 of adding the error correction code word into the first code word sequence to generate a second code word sequence, and adding the second code word sequence into a preset matrix to generate the anti-counterfeiting two-dimensional code of the product ID.
And when the error correcting code word to be corrected is acquired, the error correcting code word is put into the first code word sequence to generate a second code word sequence. The final data information is constructed by a preset matrix, and the sequences generated above are put in blocks in order under the condition determined by the matrix specification. For example, the data is partitioned into blocks as prescribed, then calculations are performed on each block to obtain corresponding blocks of error correction code words, which are sequentially formed into a sequence to be added to the original data. Such as: d1, D12, D23, D35, D2, D13, D24, D36,. D11, D22, D33, D45, D34, D46, E1, E23, E45, E67, E2, E24, E46, E68. And (3) putting the detection pattern, the separator, the positioning pattern, the correction pattern and the code word module into a matrix, and filling the complete sequence into the area of the two-dimensional code matrix with the corresponding matrix specification to generate the anti-counterfeiting two-dimensional code.
In this embodiment, the anti-counterfeiting information is generated from the product ID, the URL is generated from the anti-counterfeiting information, and the generated URL is used as the generation information of the two-dimensional code, so that the two-dimensional code contains the anti-counterfeiting information of the product to achieve the anti-counterfeiting effect.
Referring to fig. 5, fig. 5 is a schematic flow chart illustrating a method for generating an anti-counterfeiting traceability two-dimensional code according to the embodiment.
As shown in fig. 5, the method for generating the anti-counterfeiting tracing two-dimensional code includes steps S201 to S211.
Step S201, obtaining a batch code of a product, and obtaining a corresponding product ID according to the batch code.
When the server reads the batch code of the product, the batch code is the production batch number of the product, a group of numbers or letters plus numbers for identifying "batch", for example, year of production + month of production + number of times of production of batch, and generally consists of two digits of year, month and day of production time. And calling a preset encoding program or an encoder, and encoding the batch codes of the products through the preset encoding program or the encoder to generate the application program of the products. Encoding is the process by which information is converted from one form or format to another, also referred to as code in computer programming languages. Characters, numbers or other objects are coded into digital information by a predetermined coding rule, or the information and data are converted into a predetermined electric pulse signal. For example, when the server acquires the production year + production month + batch production times of the batch code, the production year + production month + batch production times are coded into digital information in the form of graphics, characters, and the like by a preset coding program or a preset coder.
An example is that the server obtains a batch code of the product, and obtains a mapping relation table between the batch code and the product ID. The information between the batch code and the product ID of the product is set in advance as a mapping relation table, for example, the batch code and all product ID numbers of the batch code are recorded in the mapping relation table, and each product has a product ID, and the product IDs are different. A product batch comprises more than one product ID, and all the product IDs are associated with batch codes of the products to generate a mapping relation table. And acquiring the product ID corresponding to the batch of codes through the mapping relation table, wherein the ID can be a combination of numbers, letters, special characters and the like, and the number of the acquired product IDs is not limited.
And S202, coding the product ID based on a preset coding program to generate the anti-counterfeiting information of the product.
And calling a preset coding program when the product ID is acquired. The code in the code program is the process by which information is converted from one form or format to another, also referred to as code in computer programming language. Characters, numbers or other objects are coded into digital information by a predetermined coding rule, or the information and data are converted into a predetermined electric pulse signal. And encoding the product ID through an encoding program to generate the anti-counterfeiting information of the product.
And S203, generating a tracking code of the product ID according to the batch code and the anti-counterfeiting information.
And when the anti-counterfeiting information is acquired, combining the acquired anti-counterfeiting information with the batch codes to generate the tracking codes of the product. For example, when the anti-counterfeiting information is an anti-counterfeiting symbol, a group of anti-counterfeiting numbers and the like, the batch code is the production year, the production month and the batch production times of the product, the anti-counterfeiting symbol or the anti-counterfeiting numbers of the anti-counterfeiting information are combined with the production year, the production month and the batch production times of the product, the combination sequence is not specified, and the tracking code of the product is generated.
And step S204, generating a URL of the product ID according to the preset website information and the tracked code.
And when the terminal acquires the tracking code of the product, reading preset website information. The website information is pre-stored in a preset path, for example, http: com.cn is stored in a preset path, the terminal combines the preset website information and the tracking code of the processed product through the read preset website information and the tracking code of the product to generate the URL of the product, and the URL is a Uniform Resource Locator (URL), is a concise representation of the position and the access method of the Resource which can be obtained from the internet, and is the address of the standard Resource on the internet.
And S205, generating the anti-counterfeiting two-dimensional code of the product ID according to the URL based on a preset two-dimensional code generation algorithm.
And the server analyzes the data of the URL through a preset two-dimensional code generation algorithm, determines the character type of the URL and converts the URL into a data character string according to a corresponding character set. And the preset two-dimension code generation algorithm is a QB two-dimension code generation algorithm. For example, data analysis is performed on a URL to determine the character type of the URL, when the URL is determined to be numeric, a character set corresponding to the numeric character is selected, when the URL is english, a character set corresponding to the english character is selected, the URL is converted into data characters through the data characters corresponding to the character set, and the data characters are combined to generate a data character string of the URL.
The data character string of the URL is subjected to data coding, the data character string is converted into bit streams, and each 8 bits of the bit streams form a code word sequence of data as a whole. Data may be encoded in a mode for more efficient decoding, such as: for the data: 01234567 encoding, grouping: 01234567, binary: 012 → 0000001100, 345 → 0101011001, 67 → 1000011, the transition sequence: 000000110001010110011000011, converting the character number into binary system: 8 → 0000001000, add mode indicator (upper figure) 0001: 00010000001000000000110001010110011000011. a first codeword sequence of the data string is obtained.
And selecting the error correction level of the URL, wherein the higher the error correction level is, the smaller the real data capacity is under the condition of a preset rule. And carrying out error correction coding on the data character string of the URL according to the error correction level of the URL, blocking the code word sequence as required, and acquiring error correction code words according to the error correction level and the blocked code words. In the case of determining the two-dimensional code specification and the error correction level, the total number of codewords and the number of error correction codewords that can be accommodated by the two-dimensional code specification and the error correction level are determined, for example: version 10, error correction level H, can accommodate a total of 346 codewords, of which 224 error correction codewords, that is, approximately 1/3 codewords in the two-dimensional code region, are redundant. For these 224 error correction codewords, it can correct 112 replacement errors (e.g., black-white inversion) or 224 data read errors (unreadable or undecodable).
And when the error correcting code word to be corrected is acquired, the error correcting code word is put into the first code word sequence to generate a second code word sequence. The final data information is constructed by a preset matrix, and the sequences generated above are put in blocks in order under the condition determined by the matrix specification. For example, the data is partitioned into blocks as prescribed, then calculations are performed on each block to obtain corresponding blocks of error correction code words, which are sequentially formed into a sequence to be added to the original data. Such as: d1, D12, D23, D35, D2, D13, D24, D36,. D11, D22, D33, D45, D34, D46, E1, E23, E45, E67, E2, E24, E46, E68. And (3) putting the detection pattern, the separator, the positioning pattern, the correction pattern and the code word module into a matrix, and filling the complete sequence into the area of the two-dimensional code matrix with the corresponding matrix specification to generate the anti-counterfeiting two-dimensional code.
And S206, receiving an access request triggered by the scanning of the two-dimensional code by the terminal, and acquiring the tracking code carried by the access request.
And the server receives an access request triggered by the scanning terminal through scanning the two-dimensional code, and acquires the tracking code carried by the access request. For example, when the scanning terminal scans the anti-counterfeiting two-dimensional code on the product, the anti-counterfeiting two-dimensional code is generated based on a URL code, and the URL includes a tracking code which should be acquired.
And S207, inquiring preset anti-counterfeiting information corresponding to the tracking code based on the tracking code, and decoding the tracking code to acquire the anti-counterfeiting information in the tracking code.
When the server acquires the tracking code, the server searches preset anti-counterfeiting information corresponding to the tracking code recorded in the server storage by taking the tracking code as a search condition, and analyzes the tracking code to acquire the anti-counterfeiting information in the tracking code. The tracking code and the anti-counterfeiting information of each product are stored in a value server in advance, and the tracking code and the anti-counterfeiting information of each product are different and correspond to each other one by one.
And S208, when the anti-counterfeiting information is inconsistent with the preset anti-counterfeiting information, sending abnormal prompt information to the terminal.
When the anti-counterfeiting information is inconsistent with the preset anti-counterfeiting information, the server sends abnormal prompt system information to the terminal to prompt that the product is used. For example, the anti-counterfeiting information and the preset anti-counterfeiting information comprise a product ID, an anti-counterfeiting code and a generation timestamp, and when the product ID in the anti-counterfeiting information is inconsistent with the product ID in the preset anti-counterfeiting information, the anti-counterfeiting code in the anti-counterfeiting information is inconsistent with the anti-counterfeiting code in the preset anti-counterfeiting information, or the generation timestamp in the anti-counterfeiting information is inconsistent with the generation timestamp in the preset anti-counterfeiting information, the abnormal prompt information is sent.
And S209, when the anti-counterfeiting information is consistent with the preset anti-counterfeiting information, acquiring the target ID information and the target position information of the terminal carried by the access request.
And when the acquired anti-counterfeiting information is consistent with the preset anti-counterfeiting information, acquiring the target ID information and the position information of the terminal carried by the access request. For example, the anti-counterfeit information and the preset anti-counterfeit information include a product ID, an anti-counterfeit code and a generation timestamp, and when the product ID in the anti-counterfeit information is consistent with the product ID in the preset anti-counterfeit information, the anti-counterfeit code in the obtained anti-counterfeit information is consistent with the anti-counterfeit code in the preset anti-counterfeit information, or the generation timestamp in the anti-counterfeit information is consistent with the generation timestamp in the preset anti-counterfeit information, the target ID information and the target location information of the terminal carried by the access request are obtained.
Step S210, reading the ID information and the location information in the preset recording library, and comparing the read ID information and the read location information with the target ID information and the target location information.
And the server records the ID information and the position information of the terminal or the scanning terminal which scans the two-dimensional code for the first time in a public chain in which the product information is stored. When the server acquires the terminal ID information and the position information in the preset record library, the acquired terminal ID information and the position information are compared with the target ID information and the target position information, and when the terminal ID information and the position information in the server are the same as the target ID information and the target position information, the server sends the production responsibility main body information, the product and batch basic information, the product production, detection and processing links and input product information, and the logistics and sales channel information of the product, which are recorded in the public chain.
And step S211, when the ID information is inconsistent with the target ID information and the position information is inconsistent with the target position information, sending abnormal prompt information to the terminal.
When the ID information is inconsistent with the target ID information and the position information is inconsistent with the target position information, the server sends an abnormal prompt system information to the terminal to prompt that the product is used. And when the ID information is consistent with the target ID information and the position information is inconsistent with the target position information, the server sends the production responsibility main body information, the product and batch basic information, the product production, detection and processing links, the input product information and the logistics and sales channel information of the product, which are recorded in the public chain.
In this embodiment, the anti-counterfeiting information is generated from the product ID, the URL is generated from the anti-counterfeiting information, the generated URL is used as the generation information of the two-dimensional code to generate the anti-counterfeiting two-dimensional code of the product ID, and the anti-counterfeiting information in the two-dimensional code is acquired by scanning the two-dimensional code to verify whether the current product is an abnormal product.
Referring to fig. 6, fig. 6 is a schematic block diagram of an apparatus for generating an anti-counterfeit two-dimensional code according to an embodiment of the present disclosure.
As shown in fig. 6, the apparatus 400 for generating an anti-counterfeit two-dimensional code includes: the anti-counterfeiting system comprises an acquisition module 401, an anti-counterfeiting information generation module 402, a tracking code generation module 403, a URL generation module 404 and a two-dimensional code generation module 405.
The obtaining module 401 is configured to obtain a batch code of a product, and obtain a corresponding product ID according to the batch code;
an anti-counterfeiting information generating module 402, configured to encode the product ID based on a preset encoding program, and generate anti-counterfeiting information of the product;
a tracking code generation module 403, configured to generate a tracking code of the product ID according to the batch code and the anti-counterfeit information;
a URL generating module 404, configured to generate a URL of the product ID according to preset website information and the tracking code;
and a two-dimension code generation module 405, configured to generate an anti-counterfeiting two-dimension code of the product ID according to the URL based on a preset two-dimension code generation algorithm.
In one embodiment, as shown in fig. 7, the apparatus 500 for generating an anti-counterfeit two-dimensional code includes: the system comprises an acquisition module 501, an anti-counterfeiting information generation module 502, a tracking code generation module 503, a URL generation module 504, a two-dimensional code generation module 505, a tracking code acquisition module 506, an anti-counterfeiting information acquisition module 507, a first sending module 508, a terminal information acquisition module 509, a comparison module 510 and a second sending module 511.
The acquiring module 501 is configured to acquire a batch code of a product, and acquire a corresponding product ID according to the batch code;
an anti-counterfeiting information generating module 502, configured to encode the product ID based on a preset encoding program, and generate anti-counterfeiting information of the product;
a tracking code generation module 503, configured to generate a tracking code of the product ID according to the batch code and the anti-counterfeit information;
a URL generation module 504, configured to generate a URL of the product ID according to preset website information and tracking codes;
the two-dimension code generating module 505 is configured to generate an anti-counterfeiting two-dimension code of the product ID according to the URL based on a preset two-dimension code generating algorithm;
the tracking code obtaining module 506 is configured to receive an access request triggered by the terminal scanning the two-dimensional code, and obtain a tracking code carried by the access request;
the anti-counterfeiting information obtaining module 507 is used for inquiring preset anti-counterfeiting information corresponding to the tracking code based on the tracking code, and decoding the tracking code to obtain the anti-counterfeiting information in the tracking code;
a first sending module 508, configured to send an exception prompt message to the terminal when the anti-counterfeit information is inconsistent with preset anti-counterfeit information;
an obtaining terminal information module 509, configured to obtain, when the anti-fake information is consistent with the preset anti-fake information, target ID information and target location information of the terminal carried by the access request;
a comparing module 510, configured to read ID information and location information in a preset record library, and compare the ID information and the location information with the target ID information and the target location information;
a second sending module 511, configured to send an exception notification message to the terminal when the ID information is inconsistent with the target ID information and the location information is inconsistent with the target location information.
It should be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus and the modules and units described above may refer to the corresponding processes in the foregoing embodiment of the composite speech recognition method, and are not described herein again.
The apparatus provided by the above embodiments may be implemented in the form of a computer program, which can be run on a computer device as shown in fig. 8.
Referring to fig. 8, fig. 8 is a schematic block diagram illustrating a structure of a computer device according to an embodiment of the present disclosure. The computer device may be a terminal.
As shown in fig. 8, the computer device includes a processor, a memory, and a network interface connected by a system bus, wherein the memory may include a nonvolatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program comprises program instructions which, when executed, cause the processor to execute any one of the methods for generating the anti-counterfeiting two-dimensional code.
The processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment.
The internal memory provides an environment for running a computer program in the nonvolatile storage medium, and when the computer program is executed by the processor, the computer program can enable the processor to execute any one of the anti-counterfeiting two-dimensional code generation methods.
The network interface is used for network communication, such as sending assigned tasks and the like. Those skilled in the art will appreciate that the architecture shown in fig. 8 is a block diagram of only a portion of the architecture associated with the subject application, and is not intended to limit the computing device to which the subject application may be applied, and that a computing device may in particular include more or less components than those shown, or combine certain components, or have a different arrangement of components.
It should be understood that the Processor may be a Central Processing Unit (CPU), and the Processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor is configured to execute a computer program stored in the memory to implement the steps of:
acquiring batch codes of products, and acquiring corresponding product IDs according to the batch codes;
coding the product ID based on a preset coding program to generate anti-counterfeiting information of the product;
generating a tracking code of the product according to the batch code and the anti-counterfeiting information;
generating a URL of the product according to preset website information and the tracking code;
and generating the anti-counterfeiting two-dimensional code of the product according to the URL based on a preset two-dimensional code generation algorithm.
In one embodiment, the processor, when implementing encoding the product ID based on a preset encoding program to generate the anti-counterfeiting information of the product, is configured to implement:
combining the product ID and a preset code based on the coding program to generate an anti-counterfeiting code corresponding to the product ID;
and acquiring a generation time stamp of the anti-counterfeiting code, and taking the product ID, the anti-counterfeiting code and the generation time stamp as anti-counterfeiting information.
In one embodiment, the processor, in implementing generating the tracking code for the product ID based on the batch code and the anti-counterfeiting information, is configured to implement:
calculating the batch code, the product ID, the anti-counterfeiting code and the generation timestamp in sequence based on a preset hash algorithm program to respectively obtain hash values of the batch code, the product ID, the anti-counterfeiting code and the generation timestamp;
and combining the obtained batch codes, the product ID, the anti-counterfeiting codes and the hash value for generating the time stamp to generate the tracking codes of the product ID.
In one embodiment, the processor, when implementing to combine the obtained batch code, product ID, anti-counterfeiting code, and hash value of the generation timestamp to generate the tracking code of the product ID, is configured to implement:
combining the obtained batch codes, product IDs, anti-counterfeiting codes and hash values of the generated time stamps of the products, and mapping the combined product into a binary string;
and if the length of the binary character string is smaller than the target length, performing bit complement on the binary character string to generate a tracking code with the same length as the target length.
In one embodiment, when implementing a preset-based two-dimensional code generation algorithm to generate an anti-counterfeit two-dimensional code of the product ID according to the URL, the processor is configured to implement:
determining the character type of the URL based on a preset two-dimensional code generation algorithm, and converting the URL into a data character string according to a character set corresponding to the character type;
carrying out data encoding on the data character string to obtain a first code word sequence corresponding to the data character string;
carrying out error correction coding on the first codeword sequence by presetting an error correction coding grade to obtain an error correction codeword of the first codeword sequence;
and adding the error correction code word into the first code word sequence to generate a second code word sequence, and adding the second code word sequence into a preset matrix to generate the anti-counterfeiting two-dimensional code of the product ID.
In one embodiment, the processor, when effecting adding the second codeword sequence to a preset matrix to generate the anti-counterfeit two-dimensional code of the product, is configured to effect:
receiving an access request triggered by the terminal scanning the two-dimensional code, and acquiring a tracking code carried by the access request;
inquiring preset anti-counterfeiting information corresponding to the tracking code based on the tracking code, and decoding the tracking code to obtain the anti-counterfeiting information in the tracking code;
and when the anti-counterfeiting information is inconsistent with the preset anti-counterfeiting information, sending abnormal prompt information to the terminal.
In one embodiment, the processor, when effecting decoding of the tracking code to obtain the anti-counterfeiting information in the tracking code, is configured to effect:
when the anti-counterfeiting information is consistent with the preset anti-counterfeiting information, acquiring target ID information and target position information of a terminal carried by the access request;
reading ID information and position information in a preset record library, and comparing the read ID information and position information with target ID information and target position information;
and when the ID information is inconsistent with the target ID information and the position information is inconsistent with the target position information, sending abnormal prompt information to the terminal.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program includes program instructions, and a method implemented when the program instructions are executed can refer to various embodiments of the method for generating an anti-fake two-dimensional code.
The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred 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, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A generation method of an anti-counterfeiting two-dimensional code is characterized by comprising the following steps:
acquiring batch codes and acquiring corresponding product IDs according to the batch codes, wherein the product IDs are multiple;
the product ID is coded based on a preset coding program to generate anti-counterfeiting information of the product ID;
combining the anti-counterfeiting information and the batch codes to generate a tracking code of the product ID;
generating a URL of the product ID according to preset website information and the tracking code;
generating an anti-counterfeiting two-dimensional code of the product ID according to the URL based on a preset two-dimensional code generation algorithm;
wherein the combining the anti-counterfeiting information and the batch code to generate the tracking code of the product ID comprises:
and combining the anti-counterfeiting symbol or the anti-counterfeiting number of the anti-counterfeiting information with the production year, the production month and the batch production times of the batch code to generate the tracking code of the product ID.
2. The method for generating an anti-counterfeiting two-dimensional code according to claim 1, wherein the product ID is encoded based on a preset encoding program, and generating the anti-counterfeiting information of the product ID comprises:
combining the product ID and a preset code based on the coding program to generate an anti-counterfeiting code corresponding to the product ID;
and acquiring a generation time stamp of the anti-counterfeiting code, and taking the product ID, the anti-counterfeiting code and the generation time stamp as anti-counterfeiting information.
3. The method for generating an anti-counterfeiting two-dimensional code according to claim 2, wherein the step of combining the anti-counterfeiting information and the batch code to generate the tracking code of the product ID comprises the steps of:
calculating the batch code, the product ID, the anti-counterfeiting code and the generation timestamp in sequence based on a preset hash algorithm program to respectively obtain hash values of the batch code, the product ID, the anti-counterfeiting code and the generation timestamp;
and combining the obtained batch codes, the product ID, the anti-counterfeiting codes and the hash value for generating the time stamp to generate the tracking codes of the product ID.
4. The method for generating an anti-counterfeiting two-dimensional code according to claim 3, wherein the step of combining the obtained batch code, the product ID, the anti-counterfeiting code and the hash value of the generation timestamp to generate the tracking code of the product ID comprises the steps of:
combining the obtained batch codes, product IDs, anti-counterfeiting codes and hash values of the generated time stamps of the products, and mapping the product IDs, the anti-counterfeiting codes and the hash values into binary character strings;
and if the length of the binary character string is smaller than the target length, performing bit complement on the binary character string to generate a tracking code with the same length as the target length.
5. The method for generating an anti-counterfeiting two-dimensional code according to any one of claims 1 to 4, wherein the generating the anti-counterfeiting two-dimensional code of the product ID according to the URL based on a preset two-dimensional code generation algorithm comprises:
determining the character type of the URL based on a preset two-dimensional code generation algorithm, and converting the URL into a data character string according to a character set corresponding to the character type;
performing data encoding on the data character string to obtain a first code word sequence corresponding to the data character string;
carrying out error correction coding on the first codeword sequence by presetting an error correction coding grade to obtain an error correction codeword of the first codeword sequence;
and adding the error correction code word into the first code word sequence to generate a second code word sequence, and adding the second code word sequence into a preset matrix to generate the anti-counterfeiting two-dimensional code of the product ID.
6. The method for generating the anti-counterfeiting two-dimensional code according to claim 5, wherein after the adding the second code word sequence to a preset matrix to generate the anti-counterfeiting two-dimensional code of the product ID, the method comprises:
receiving an access request triggered by the terminal scanning the two-dimensional code, and acquiring a tracking code carried by the access request;
inquiring preset anti-counterfeiting information corresponding to the tracking code based on the tracking code, and decoding the tracking code to obtain the anti-counterfeiting information in the tracking code;
and when the anti-counterfeiting information is inconsistent with preset anti-counterfeiting information, sending abnormal prompt information to the terminal.
7. The method for generating an anti-counterfeiting two-dimensional code according to claim 6, wherein after the decoding the tracking code to obtain the anti-counterfeiting information in the tracking code, the method further comprises:
when the anti-counterfeiting information is consistent with the preset anti-counterfeiting information, acquiring target ID information and target position information of the terminal carried by the access request;
reading ID information and position information in a preset record library, and comparing the read ID information and the read position information with the target ID information and the target position information;
and when the ID information is inconsistent with the target ID information and the position information is inconsistent with the target position information, sending abnormal prompt information to the terminal.
8. The device for generating the anti-counterfeiting two-dimensional code is characterized by comprising the following components:
the acquisition module is used for acquiring batch codes and acquiring a plurality of corresponding product IDs according to the batch codes;
the anti-counterfeiting information generating module is used for coding the product ID based on a preset coding program and generating anti-counterfeiting information of the product ID;
the tracking code generation module is used for combining the anti-counterfeiting symbols or anti-counterfeiting numbers of the anti-counterfeiting information with the production year, the production month and the batch production times of the batch codes to generate the tracking codes of the product ID;
the URL generating module is used for generating the URL of the product ID according to preset website information and the tracking code;
and the two-dimension code generation module is used for generating the anti-counterfeiting two-dimension code of the product ID according to the URL based on a preset two-dimension code generation algorithm.
9. A server, characterized in that the server comprises: a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the computer program when executed by the processor implements the steps of the method for generating a two-dimensional code according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for generating a counterfeit-proof two-dimensional code according to any one of claims 1 to 7.
CN202010204983.6A 2020-03-25 2020-03-25 Anti-counterfeiting two-dimensional code generation method and device, server and storage medium Active CN111539502B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010204983.6A CN111539502B (en) 2020-03-25 2020-03-25 Anti-counterfeiting two-dimensional code generation method and device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010204983.6A CN111539502B (en) 2020-03-25 2020-03-25 Anti-counterfeiting two-dimensional code generation method and device, server and storage medium

Publications (2)

Publication Number Publication Date
CN111539502A CN111539502A (en) 2020-08-14
CN111539502B true CN111539502B (en) 2021-10-15

Family

ID=71979947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010204983.6A Active CN111539502B (en) 2020-03-25 2020-03-25 Anti-counterfeiting two-dimensional code generation method and device, server and storage medium

Country Status (1)

Country Link
CN (1) CN111539502B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112099454B (en) * 2020-09-24 2022-08-30 富泰华精密电子(郑州)有限公司 Control method, control device, and storage medium
CN113159798A (en) * 2021-03-25 2021-07-23 北京邮电大学 Crop tracing method and device, electronic equipment and storage medium
CN113240471A (en) * 2021-05-19 2021-08-10 完美世界(北京)软件科技发展有限公司 Prize exchanging code generation method and device, electronic device and storage medium
CN114595795B (en) * 2022-03-08 2022-09-09 芯电智联(北京)科技有限公司 NFC tag source tracing data processing method
CN116306754B (en) * 2023-05-18 2023-08-04 浙江美丽健乳业有限公司 Two-dimensional code generation method and device
CN117556851A (en) * 2023-11-17 2024-02-13 广东新亚光电缆股份有限公司 Power cable management system based on two-dimensional code image recognition

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103325042B (en) * 2013-05-17 2015-08-05 包晗 A kind of false proof market interaction integration system and method for tracing to the source
CN108345925A (en) * 2017-01-24 2018-07-31 北京大码技术有限公司 Generation, reading method and the device of composite type two-dimensional code
CN107341676A (en) * 2017-07-17 2017-11-10 深圳天净喔溯源科技有限公司 False proof mark and the method for tracing to the source
CN108596311A (en) * 2018-05-08 2018-09-28 亳州中药材商品交易中心有限公司 A kind of generation method of trace to the source code and its check code
CN110224810A (en) * 2019-04-28 2019-09-10 新大陆(福建)公共服务有限公司 A kind of method for anti-counterfeit of two dimensional code

Also Published As

Publication number Publication date
CN111539502A (en) 2020-08-14

Similar Documents

Publication Publication Date Title
CN111539502B (en) Anti-counterfeiting two-dimensional code generation method and device, server and storage medium
CN103400174B (en) The coded method of a kind of Quick Response Code, coding/decoding method and system
CN102930192B (en) Security information generates and acquisition methods and relevant apparatus
CN111027656B (en) Two-dimensional code generation and identification method and device, electronic equipment and storage medium
US20150324678A1 (en) Modifying Data-Bearing Images
CN103530669A (en) Data information two-dimensional code encoding method
CN112035355A (en) Data processing method, data processing device, computer equipment and storage medium
CN110991589A (en) Two-dimensional code and encryption method thereof
CN103997406A (en) Two-dimensional code-based identity authentication method and apparatus
EP2482231A1 (en) Method for encoding and decoding data on a matrix code symbol
CN116739022B (en) Decoding method and device for bar code image and electronic equipment
CN110322385B (en) Watermark embedding and extracting method and device and electronic equipment
CN107766909B (en) The method and system of anti-tamper processing is carried out to two-dimension code pattern
CN112131202B (en) Distributed file storage and reading method, terminal device and storage medium
CN101303742B (en) Microminiature Hanxin code and method for generating symbol thereof
CN103927572A (en) Encoding graph block and method and device for forming lattice graph through encoding graph block
CN112069850A (en) Service providing method, device, equipment and storage medium based on two-dimension code
CN115659942A (en) Contract template generation device and equipment
CN112530522B (en) Sequence error correction method, device, equipment and storage medium
CN113779932A (en) Digital formatting method, device, terminal equipment and storage medium
CN110348554B (en) Digital information encoding and decoding method and device, electronic equipment and storage medium
CN111881928B (en) Coding model training method and device, storage medium and electronic equipment
CN114629707B (en) Disorder code detection method and device, electronic equipment and storage medium
CN115310572B (en) Graphic code generation method and graphic code verification method
CN111144532B (en) Asset code element, asset code and construction method of asset code

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