CN108563973B - Combined type source tracing coded label and identification method thereof - Google Patents

Combined type source tracing coded label and identification method thereof Download PDF

Info

Publication number
CN108563973B
CN108563973B CN201810385419.1A CN201810385419A CN108563973B CN 108563973 B CN108563973 B CN 108563973B CN 201810385419 A CN201810385419 A CN 201810385419A CN 108563973 B CN108563973 B CN 108563973B
Authority
CN
China
Prior art keywords
dimensional code
code
dimensional
image
coded
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
CN201810385419.1A
Other languages
Chinese (zh)
Other versions
CN108563973A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201810385419.1A priority Critical patent/CN108563973B/en
Publication of CN108563973A publication Critical patent/CN108563973A/en
Application granted granted Critical
Publication of CN108563973B publication Critical patent/CN108563973B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • 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
    • 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

Abstract

the application discloses a combined type traceability coded label and an identification method thereof, the combined type traceability coded label comprises a label body, a secret code and a two-dimensional code, wherein the secret code and the two-dimensional code are arranged on the label body, and the secret code comprises a two-dimensional code gray scale image and a secret code symbol staggered with the two-dimensional code gray scale image. Through setting up combination formula label, effectively hide product composition information and place of production information, realize safer product through dual anti-fake tracing to the source, owing to set up the secret code simultaneously for when the unable discernment of two-dimensional code, still can discern product information effectively.

Description

Combined type source tracing coded label and identification method thereof
Technical Field
the application relates to the field of computers, in particular to a combined traceability coded label and an identification method thereof.
Background
Because of the current substandard market economic order, many high-quality agricultural products often become the objects of counterfeit imitation by bad vendors, and are replaced by overdue agricultural products, so that the economic benefits and the image of well-known enterprises are seriously injured, and meanwhile, the benefits of consumers are also greatly injured. The known enterprises have great investment in various aspects of traceability packaging, but the effect is not ideal.
aiming at the continuous emergence of counterfeit and shoddy agricultural products, a label with a traceability function is urgently needed to be arranged on the agricultural products to help consumers or law enforcement to distinguish the counterfeit and shoddy agricultural products and conduct traceability query in the commodity purchasing and selling process.
disclosure of Invention
the application aims to provide a combined type traceability coding label, which solves the problem that the existing traceability coding label is easy to crack and is safe and reliable.
based on this, this application provides a modular coding label of tracing to source, modular coding label of tracing to source includes label body, secret code and two-dimensional code, and wherein secret code and two-dimensional code setting are on the label body, include the secret code symbol that two-dimensional code gray scale graph and two-dimensional code gray scale graph crisscross in the secret code.
Wherein the two-dimensional code gray scale map generation comprises:
reading a two-dimensional code on the combined type traceability coded label;
Converting the read two-dimensional code data into a two-dimensional matrix;
performing two-dimensional fast Fourier transform on the two-dimensional matrix to obtain a Fourier spectrum;
And coding and quantizing the Fourier spectrum to obtain a two-dimensional code gray image.
wherein the cipher symbols are discrete encoded dots.
Wherein the discrete encoded points represent product composition information.
The two-dimensional code is scanned to obtain the information of the production place of the product, and the password is scanned to obtain the composition information of the product.
further, the present application also provides a method for generating a combined tracing code label, which includes the following steps:
generating a label body;
generating a two-dimensional code by utilizing the production place information of the product;
Generating a secret code by using the two-dimensional code;
Printing the two-dimensional code and the secret code on the label body;
the code comprises a two-dimensional code gray scale image and code symbols interlaced with the two-dimensional code gray scale image.
wherein the two-dimensional code gray scale map generation comprises:
reading a two-dimensional code on the combined type traceability coded label;
converting the read two-dimensional code data into a two-dimensional matrix;
Performing two-dimensional fast Fourier transform on the two-dimensional matrix to obtain a Fourier spectrum;
and coding and quantizing the Fourier spectrum to obtain a two-dimensional code gray image.
wherein the cipher symbols are discrete encoded dots.
Wherein the discrete encoded points represent product composition information.
the application also provides a method for identifying the combined type source tracing coded label, which comprises the following steps:
reading the two-dimensional code to obtain the information of the place of origin;
Reading the password to obtain product composition information;
When the two-dimensional code cannot be identified, the two-dimensional code is recovered by using the two-dimensional code gray-scale image included in the secret code, so that accurate place of production information is obtained.
this application is through setting up combination formula label, effectively hides product composition information and place of production information, realizes safer product through dual anti-fake tracing to the source, owing to set up the secret code simultaneously for when the unable discernment of two-dimensional code, still can discern product information effectively.
Drawings
FIG. 1 is a block diagram of a combined traceability coded tag;
FIG. 2 is a flow chart of a method for generating a combined traceability coded tag;
FIG. 3 is a flow chart of a method for generating a two-dimensional code gray scale map;
FIG. 4 is a flow diagram of a method for identifying a combined traceability coded tag;
FIG. 5 is a flow chart of a method for identifying a gray scale map of a two-dimensional code;
fig. 6 is a flowchart of a two-dimensional code grayscale map correction method.
Detailed Description
the technical solutions in the embodiments of the present invention 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, not all, embodiments of the present invention. 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 application claims to protect a combined type traceability coded label and an identification method thereof, wherein the coded label has a structure shown in fig. 1 and comprises a label body 110, a secret code 120 and a two-dimensional code 130, wherein the secret code 120 and the two-dimensional code 130 are arranged on the label body 110, and the secret code 120 further comprises a two-dimensional code gray scale (a pattern formed by dots in the secret code 120) and secret code symbols (symbols of stars in the secret code 120) interlaced with the two-dimensional code gray scale. The code symbols are discrete code points, which represent the composition information of the product, such as the structure information, color information, etc. of the product. It will be understood by those skilled in the art that the above-mentioned secret code is schematically illustrated, and the actually generated two-dimensional code gray scale and the secret code symbol may have different code dot forms as long as the information can be represented, and the information is not limited herein.
example 1
fig. 2 shows a method for generating the combined traceable coded tag shown in fig. 1, which includes the following steps:
Step S210, generating a label body;
the label body is formed by multiple layers of printed layers through layer-by-layer pressing.
S220, generating a two-dimensional code by utilizing the production place information of the product;
And encoding the production place information of the product to generate a two-dimensional code.
Step S230, generating a secret code by using the two-dimensional code;
the secret code comprises a two-dimensional code gray scale image and a secret code symbol interlaced with the two-dimensional code gray scale image, as shown in fig. 1, and comprises the following substeps:
step S2301, generating a two-dimensional code gray image;
the step of generating the two-dimensional code gray scale map is shown in fig. 3, and comprises the following sub-steps:
step S310, reading a two-dimension code on the combined type traceability coding label;
The two-dimensional code information may be read by a reading device such as a portable terminal.
step S320, converting the read two-dimensional code data into a two-dimensional matrix;
And converting the two-dimensional code information read by the portable terminal into a two-dimensional matrix.
s330, performing two-dimensional fast Fourier transform on the two-dimensional matrix to obtain a Fourier spectrum;
and step S340, coding and quantizing the Fourier spectrum to obtain a two-dimensional code gray image.
through the steps shown in fig. 3, a two-dimensional code grayscale map is obtained. Because the two-dimensional code gray-scale map carries out a series of transformations to the two-dimensional code to make the degree of difficulty of cracking greatly increased, simultaneously because the increase of the information content that the Fourier spectrum carried makes even the two-dimensional code gray-scale map suffers destruction, the two-dimensional code information that it carried also can be by most recovery. However, compared with the two-dimensional code, the two-dimensional code gray-scale image has the defects of complex calculation and high recovery difficulty, so that the two-dimensional code and the two-dimensional code gray-scale image are combined for use, and when the two-dimensional code cannot be read, the product production place information can be read through the two-dimensional code gray-scale image which is relatively high in complexity and correspondingly improved in recovery degree. The method and the device have the advantages that the two aspects of simplicity, rapidness and complex and reliable two-dimensional code gray level images are combined, and therefore reliable reading guarantee is provided for users under the condition that rapid reading is guaranteed.
and step S2302 of generating a password symbol.
the combination symbols are discrete code points, as shown in fig. 1, which are used to represent product composition information, such as product structure, product color, and the like. The discrete coding points can be programmed through a programmable part of the portable device, the programmed program is utilized to generate the discrete coding points, the discrete coding points have special meanings in the program, and after the discrete coding points are read through a reading interface of the portable device, the information represented by the discrete coding points can be obtained.
and step S2303, synthesizing the generated two-dimensional code gray image and the password code points to form a password code.
step S240, printing the two-dimensional code and the secret code on the label body;
the code comprises a two-dimensional code gray scale image and code symbols interlaced with the two-dimensional code gray scale image.
example 2
The method for generating the combined traceable coded label is described above with reference to fig. 1 to 3, and the method for identifying the generated coded label is described below with reference to fig. 4 and 5, including the following steps:
s410, reading the two-dimensional code to obtain the producing area information;
the origin information can be obtained by reading the two-dimensional code.
step S420, reading the password to obtain product composition information;
the method comprises the steps of obtaining a password through a reading interface of a reading device, analyzing a password symbol in the password, and further obtaining product composition information represented by the password symbol through a pre-programmed program.
further, in the case where the two-dimensional code cannot be read to obtain the information of the place of origin in step S410, for example, when the two-dimensional code is broken, the two-dimensional code is restored using the grayscale map of the two-dimensional code included in the secret code, thereby obtaining accurate information of the place of origin. The two-dimensional code recovery method using the two-dimensional code gray-scale image included in the secret code comprises the following steps, as shown in fig. 5:
Step S510, reading a two-dimensional code gray image in the password;
The two-dimensional code gray scale image can be obtained by obtaining the secret code and removing the sign of the secret code.
Step S520, converting the obtained two-dimensional code gray image into a two-dimensional matrix;
And step S530, performing Fourier transform on the two-dimensional matrix to obtain the carried origin information.
example 3
the above describes a method for generating and identifying a combined type traceability coded label, and the method can effectively solve the problem of information extraction when a two-dimensional code is damaged due to the adoption of a two-dimensional code gray scale image, but because the two-dimensional code is damaged and is often accompanied by the damage of a secret code, although the two-dimensional code gray scale image has better information recovery capability than the two-dimensional code, the problem of incomplete information recovery still exists, and therefore, the following method for correcting the two-dimensional code gray scale image is proposed, as shown in fig. 6:
step S610, binarizing the two-dimensional code gray level image;
Step S620, removing redundant information;
Edge extraction can be achieved using existing image processing techniques, such as Canny operators.
step S630, executing expansion operation;
the image to be processed is morphologically dilated using a square structure, so that all background points in contact with the square structure merge into the square structure and expand its boundaries outward.
Step S640, executing communication operation;
the connected operation can mark each separated part in the binary image, so that the two-dimensional code gray image is distinguished from other useless information.
and step S650, selecting the maximum communication area.
Step S660, setting the pixel values of other communication areas to be 0;
The pixel values of the other connected regions except for the maximum connected region are all set to 0.
step S670, horizontal projection and vertical projection are carried out on the image;
And step S680, cutting according to the projection result to obtain an output image.
Through the correction method, the damage noise in the two-dimensional code gray image can be effectively removed, and the more accurate two-dimensional code gray image can be obtained.
The description and applications of the invention herein are illustrative and are not intended to limit the scope of the invention to the embodiments described above. Variations and modifications of the embodiments disclosed herein are possible, and alternative and equivalent various components of the embodiments will be apparent to those skilled in the art. It will be clear to those skilled in the art that the present invention may be embodied in other forms, structures, arrangements, proportions, and with other components, materials, and parts, without departing from the spirit or essential characteristics thereof. Other variations and modifications of the embodiments disclosed herein may be made without departing from the scope and spirit of the invention.

Claims (10)

1. The combined type traceability coded label is characterized by comprising a label body, a secret code and a two-dimensional code, wherein the secret code and the two-dimensional code are arranged on the label body, and the secret code comprises a two-dimensional code gray scale image and a secret code symbol staggered with the two-dimensional code gray scale image;
The correction method of the two-dimensional code gray image comprises the following steps:
Binarizing the two-dimensional code gray image;
removing redundant information;
Performing an expand operation;
performing a join operation;
selecting a maximum connected region;
Setting the pixel values of other communication areas to 0;
Performing horizontal projection and vertical projection on the image;
And cutting according to the projection result to obtain an output image.
2. the combined traceability coded tag of claim 1, wherein the two-dimensional code grayscale map generation comprises:
reading a two-dimensional code on the combined type traceability coded label;
Converting the read two-dimensional code data into a two-dimensional matrix;
Performing two-dimensional fast Fourier transform on the two-dimensional matrix to obtain a Fourier spectrum;
and coding and quantizing the Fourier spectrum to obtain a two-dimensional code gray image.
3. the combined traceback encoding tag of claim 1 or 2, wherein the combination symbols are discrete encoding points.
4. the modular traceability coded tag of claim 3, wherein the discrete coded points represent product composition information.
5. the combined traceability coded label of claim 1, wherein the two-dimensional code is scanned to obtain product origin information, and the secret code is scanned to obtain product composition information.
6. a combined tracing coding label generating method comprises the following steps:
generating a label body;
Generating a two-dimensional code by utilizing the production place information of the product;
generating a secret code by using the two-dimensional code;
Printing the two-dimensional code and the secret code on the label body;
The password comprises a two-dimensional code gray scale image and password symbols which are staggered with the two-dimensional code gray scale image;
the correction method of the two-dimensional code gray image comprises the following steps:
binarizing the two-dimensional code gray image;
removing redundant information;
performing an expand operation;
Performing a join operation;
Selecting a maximum connected region;
Setting the pixel values of other communication areas to 0;
Performing horizontal projection and vertical projection on the image;
and cutting according to the projection result to obtain an output image.
7. The method of generating a combined type traceability coded tag of claim 6, wherein the generating of the two-dimensional code gray map comprises:
Reading a two-dimensional code on the combined type traceability coded label;
Converting the read two-dimensional code data into a two-dimensional matrix;
Performing two-dimensional fast Fourier transform on the two-dimensional matrix to obtain a Fourier spectrum;
And coding and quantizing the Fourier spectrum to obtain a two-dimensional code gray image.
8. the method as claimed in claim 6 or 7, wherein the combination of the source-tracing coded labels is a discrete coded point.
9. The method of claim 6 or 7, wherein the discrete code points represent product composition information.
10. a method of identifying the combined traceability coded tag of claim 1, comprising the steps of:
Reading the two-dimensional code to obtain the information of the place of origin;
reading the password to obtain product composition information;
when the two-dimensional code is damaged, the two-dimensional code is restored by using the two-dimensional code gray-scale image included in the secret code, so that accurate place of production information is obtained.
CN201810385419.1A 2018-04-26 2018-04-26 Combined type source tracing coded label and identification method thereof Active CN108563973B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810385419.1A CN108563973B (en) 2018-04-26 2018-04-26 Combined type source tracing coded label and identification method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810385419.1A CN108563973B (en) 2018-04-26 2018-04-26 Combined type source tracing coded label and identification method thereof

Publications (2)

Publication Number Publication Date
CN108563973A CN108563973A (en) 2018-09-21
CN108563973B true CN108563973B (en) 2019-12-17

Family

ID=63536906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810385419.1A Active CN108563973B (en) 2018-04-26 2018-04-26 Combined type source tracing coded label and identification method thereof

Country Status (1)

Country Link
CN (1) CN108563973B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112699975A (en) * 2020-12-28 2021-04-23 深圳市信达珑丰科技有限公司 Material tracing method and system based on two-dimension code

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103903039B (en) * 2014-03-26 2017-02-22 深圳大学 Hidden code holographic anti-counterfeiting film and manufacturing method and recognition system thereof
CN104915849A (en) * 2015-06-29 2015-09-16 立德高科(北京)数码科技有限责任公司 Combined source tracing tag and commodity source tracing method and system
CN105550732A (en) * 2016-02-22 2016-05-04 冯贵良 Combined-type source tracing label and commodity source tracing method and system
CN107644186A (en) * 2017-10-24 2018-01-30 河南科技大学 A kind of damaged two-dimensional code identification method holographic based on calculating

Also Published As

Publication number Publication date
CN108563973A (en) 2018-09-21

Similar Documents

Publication Publication Date Title
TWI606406B (en) Methods, apparatus, and tangible computer readable storage media to extract text from imaged documents
CN110766594B (en) Information hiding method and device, detection method and device and anti-counterfeiting tracing method
CN108154208B (en) Article identification method, article identification method and article identification system based on two-dimensional code
CN111639734B (en) Novel two-dimensional code encoding and anti-counterfeiting application method embedded with QR code
EP2842076A1 (en) Two-dimensional barcodes having a plurality of different regions
CN109190736B (en) Anti-counterfeiting two-dimensional code and generation method and generation application system thereof
CN105706107A (en) Two dimensional barcode and method of authentication of such barcode
CN107944527A (en) A kind of encryption of anti-fake two-dimension code and coding/decoding method
CN105701757B (en) Product anti-counterfeiting method and device based on digital watermark and graphic code
Hung et al. Micrography QR codes
CN111444998A (en) Method for manufacturing multiple anti-counterfeiting traceable package identifier
CN108563973B (en) Combined type source tracing coded label and identification method thereof
CN109101810A (en) A kind of text method for recognizing verification code based on OCR technique
CN108960387A (en) A kind of anti-counterfeiting two dimensional code and its generation and recognition methods
Lee et al. A new data transfer method via signal-rich-art code images captured by mobile devices
CN109671011B (en) Copyright information embedding method, copyright information extracting method and electronic equipment
CN106185014A (en) A kind of bottled drinking water traceability system based on Quick Response Code and method for anti-counterfeit
Tkachenko et al. Rich QR code for multimedia management applications
CN106934756B (en) Method and system for embedding information in single-color or special-color image
CN109816077A (en) A kind of hidden method of two-dimensional barcode information, device, electronic equipment and storage medium
CN109325568B (en) Anti-counterfeiting two-dimensional code and modulation encryption method and identification system thereof
Tkachenko et al. Improving the module recognition rate of high density QR codes (Version 40) by using centrality bias
CN109002821A (en) A kind of Internetbank shield digit recognition method based on connected domain and tangent slope
CN109840574B (en) Two-dimensional code information hiding method and device, electronic equipment and storage medium
Zhang et al. A robust secret sharing QR code via texture pattern design

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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Feng Guiliang

Inventor after: Yang Dong

Inventor before: Feng Guiliang

GR01 Patent grant
GR01 Patent grant