CN115251126B - Two-dimensional code, corresponding coding and decoding method, code spraying and code reading device - Google Patents

Two-dimensional code, corresponding coding and decoding method, code spraying and code reading device Download PDF

Info

Publication number
CN115251126B
CN115251126B CN202210619204.8A CN202210619204A CN115251126B CN 115251126 B CN115251126 B CN 115251126B CN 202210619204 A CN202210619204 A CN 202210619204A CN 115251126 B CN115251126 B CN 115251126B
Authority
CN
China
Prior art keywords
code
dimensional code
data
dimensional
spraying
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
CN202210619204.8A
Other languages
Chinese (zh)
Other versions
CN115251126A (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.)
Zrd Instrument Technology Nantong Co ltd
Original Assignee
Zrd Instrument Technology Nantong Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zrd Instrument Technology Nantong Co ltd filed Critical Zrd Instrument Technology Nantong Co ltd
Publication of CN115251126A publication Critical patent/CN115251126A/en
Application granted granted Critical
Publication of CN115251126B publication Critical patent/CN115251126B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A22BUTCHERING; MEAT TREATMENT; PROCESSING POULTRY OR FISH
    • A22CPROCESSING MEAT, POULTRY, OR FISH
    • A22C17/00Other devices for processing meat or bones
    • A22C17/10Marking meat or sausages
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J3/00Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
    • B41J3/01Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed for special character, e.g. for Chinese characters or barcodes
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J3/00Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
    • B41J3/407Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed for marking on special material
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9554Retrieval from the web using information identifiers, e.g. uniform resource locators [URL] by using bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/02Agriculture; Fishing; Forestry; Mining
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Mining & Mineral Resources (AREA)
  • Economics (AREA)
  • Food Science & Technology (AREA)
  • Agronomy & Crop Science (AREA)
  • Animal Husbandry (AREA)
  • Marine Sciences & Fisheries (AREA)
  • Wood Science & Technology (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Zoology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The utility model provides a two-dimensional code, corresponding coding and decoding method, spouting the code and reading device that are used for beasts and birds carcass epidermis to spout the code, the matrix pattern of two-dimensional code comprises 33×33 module, the content of two-dimensional code comprises position detection figure, data coding district and the custom area that 3 7×7 modules are constituteed, position detection figure accords with the version 4 of QRcode standard, the single code point of data coding district occupies 2×2 modules. The two-dimensional graphic code provided by the invention has the advantages of few code points, diffusion resistance, simple coding, capability of customizing characters or pictures, high recognition rate, easiness in information expansion and the like.

Description

Two-dimensional code, corresponding coding and decoding method, code spraying and code reading device
Technical Field
The invention relates to a two-dimensional code, a corresponding coding and decoding method, a code spraying and code reading device, which is mainly applied to the field of livestock carcass epidermis code spraying tracing.
Background
At present, marks are marked on the body surfaces of slaughtered livestock and poultry carcasses, and a stamping method is mainly adopted, so that the method is attractive, serious pollution is caused to the body surfaces of the livestock and poultry carcasses, and the circulation of products is influenced. The capped mark can be simply repeated information and cannot change the information content with each individual. Such a mark cannot truly reflect carcass and body information of slaughtered livestock and poultry. The two-dimensional code can be dynamically spray-printed on the animal carcass skin through the code spraying machine, so that the problems can be solved.
The existing two-dimensional graphic codes comprise QRCode (Quick Response Code), chinese character codes, PDF417, data Matrix and the like, and each two-dimensional code has own advantages and disadvantages. If the ink is sprayed on white paper or other clean surfaces, the decoding difference is not obvious; if the ink is sprayed on wet, stained and irregular surfaces such as live pig carcasses, the decoding effect is not ideal. In the two-dimensional codes, the most widely applied QRCode common in life is better in effect in combination with the consideration of distortion resistance, pollution, moisture dispersion and the like. QRCode is widely used in various fields at present, and the QRCode information capacity is big, and the coding scope is wide, but when spouting the seal on the surface of raw pig carcass, decoding efficiency still is very low, and main reasons are:
(1) The minimum version of the code point is composed of 21×21=441 code points according to the QRCode coding and decoding standard, and the code points are sprayed on the surface of a wet and irregular live pig carcass, so that after ink is dispersed, the ink is blurred and distorted, and the recognition difficulty is increased.
(2) The QRCode pattern is composed of deep and shallow color code points, the two-dimensional code application cannot be seen from the appearance of the graph, the two-dimensional code application can be seen only after scanning, the fault tolerance of the QRCode pattern is adopted to place an enterprise logo and the like in the middle of the QRCode, and the logo cannot be too large in size due to covering placement, otherwise decoding and identification of the two-dimensional code can be affected.
(3) When decoding QRCode, the recognition depth module usually uses gray level map and then binarizes to obtain 0, 1 array, this recognition mode is very effective to the white background black code of spray printing, but live pig carcass is generally edible blue ink of spray printing, and the carcass skin color is the ground color, so recognition accuracy is insufficient.
(4) The QRCode standard is complex, and its contents include position detection patterns, positioning patterns, correction patterns, format information, version information, data, error correction codewords, and the like. It is very difficult to manufacture a two-dimensional code if a third party tool is not used.
(5) The current two-dimensional code coding area of jet printing is square, and the dark color is 1, and the light color is 0. When the two-dimensional code is printed, as a plurality of grid areas with dark color of 1 are adhered together, the color of the light area can be influenced by the divergence of the surface of the pigskin, so that even the two-dimensional code cannot be identified even if the two-dimensional code has a higher fault tolerance.
In addition, the existing two-dimensional code of tracing to the source of using the ink jet numbering machine to spout the seal, this two-dimensional code of tracing to the source includes quarantine, raiser, slaughterhouse etc. information, still contain in the two-dimensional code and add redundant code for guaranteeing fault tolerance, lead to the two-dimensional code more complicated, have more code points and occupy more area, and the livestock body surface has more pore, line even profit, very easily lead to the two-dimensional code on livestock body surface to be difficult to be discerned, simultaneously, the uneven position in livestock body surface is more, hardly find the smooth region that is fit for spouting the seal large tracts of land two-dimensional code. In addition, the content contained in the existing two-dimensional code is traceable information of livestock carcasses, the information is fixed, and later modification cannot be added.
In view of the above, there is a need for a traceable two-dimensional graphic code that can be spray-printed on the surface of livestock carcasses, especially live pig carcasses, and the graphic code needs to have the advantages of few code points, diffusion resistance, simple coding, self-definable text or picture, high recognition rate, easy information expansion, and the like.
Disclosure of Invention
The invention aims to provide a self-defined two-dimensional graphic code which can encode and decode a group of numbers and is sprayed on the skin of livestock carcasses, in particular to the skin of pig carcasses to trace the slaughtered pork, and the graphic code can self-define display text or picture information.
In order to realize the two-dimensional code for the livestock carcass epidermis code spraying, the matrix graph of the two-dimensional code consists of 33 multiplied by 33 modules, the content of the two-dimensional code consists of a position detection graph consisting of 3 7 multiplied by 7 modules, a data coding region and a self-defined region, the position detection graph accords with the version 4 of the QRcode standard, and a single code point of the data coding region occupies 2 multiplied by 2 modules.
Still further, the data encoding region includes numbered regions M1 and M2 of mask patterns, which are eight mask patterns specified by the QRCode standard, and which are composed of 2×2 modules.
Furthermore, the data coding region is a square region formed by 24×24 modules, and further comprises a coding region, the coding region comprises data codeword regions D1-D8 and error correction codeword regions E1-E8, and the mask pattern is used for performing mask calculation on the coding region.
Further, the custom region is text, graphics or pictures.
Furthermore, the code points filled in the data coding region are round.
Further, the width ratio range of the position detection pattern is [0.25,1.0]: [1.0,2.5]: [1.5,3.0]: [1.0,2.5]: [0.25,1.0].
Still further, the code point maximum dimension E ranges from 0.5 a.ltoreq.E.ltoreq.2a, where a is the size of a single module.
Still further, the code point maximum dimension E ranges from 0.75 a.ltoreq.E.ltoreq.1.5 a, where a is the size of a single module.
The invention also provides a two-dimensional code which is used for spraying the livestock carcass epidermis and accords with the QRCode standard, the position detection graph of the two-dimensional code is circular, and the code points of the two-dimensional code are circular.
Still further, the width ratio range of the position detection pattern is [0.25,1.0): (1.0,2.5]:[1.5,3.0): (1.0,2.5) [0.25,1.0] the maximum size F of the code point is in the range of 0.25 a.ltoreq.F.ltoreq.a, where a is the size of a single module.
Further, the width ratio range of the position detection pattern is [0.25,0.75]: [1.25,2.5]: [1.5,2.75]: [1.25,2.5]: [0.25,0.75], the maximum size F of the code point is in the range of 0.5 a.ltoreq.F.ltoreq.0.75 a, where a is the size of a single module.
The invention also provides a generating method for the two-dimensional code, which comprises the following steps of,
step one, generating a module array consisting of 33 multiplied by 33 modules, setting corresponding modules of a position detection pattern and a data coding region, and setting filling pattern attribute parameters of code points of the position detection pattern and the data coding region, wherein the parameters comprise the type and the size of the filling pattern;
step two, generating a position detection pattern;
filling the encoded data code word and error correction code word into a data encoding region;
step four, adding a mask, masking the data code words and error correction code words of the data coding region, and recording the numbers of the selected mask in the number areas M1 and M2 of the mask pattern;
generating the masked data code words and the images of the error correction code words according to the filling figure attribute parameters;
and step six, filling the custom region.
The invention also provides a decoding method for the two-dimensional code, which comprises the following steps of,
Step one, identifying a depth module;
searching a position detection pattern and determining a data coding region;
step three, performing mask elimination operation on the data coding region;
recovering a data codeword and an error correction codeword, and correcting the data codeword by using the error correction codeword;
and fifthly, decoding the data code word to recover the encoded data.
The invention further provides a spraying device, and the code spraying device is used for spraying and printing the two-dimensional code.
The invention further provides a code reading device which is used for reading the two-dimensional code sprayed by the code spraying device.
After the two-dimensional code and the corresponding reading and decoding method and device are adopted, the two-dimensional code can be dynamically sprayed on the surfaces of carcasses of pigs, cattle, sheep, chickens, ducks, geese and other livestock and poultry, so that the anti-counterfeiting and source tracing effects are achieved, and the food safety is ensured. The main benefits include:
(1) The code points are few, the minimum version of the QRCode comprises 21×21=441 code points, the size of the data coding area of the graphic code except the position detection graphic is only 12×12=144 code points, even smaller, each code point of the data area is 4 times of the size of the normal code point, the identification is easier, and the decoding efficiency is improved.
(2) The space between the code points is large, the code points are not easy to be scattered in a piece, and the code points are clearer and more beneficial to decoding after spray printing;
(3) The two-dimensional code can directly display text description or pictures, intuitively tell a user the intention of the graphic code or display the character string as a traceable code character string, and can be recognized by using an OCR technology during decoding.
(4) Compared with the standard format of the QRCode, the graphic code of the invention is much simpler, and the area needing decoding and identification only comprises two parts of a position detection graphic and a data coding area.
The invention also provides a graphic code for the livestock carcass epidermis code spraying, which comprises a two-dimensional code A and a two-dimensional code B, wherein the two-dimensional code A and the two-dimensional code B are two-dimensional codes with different specifications, the specifications comprise one or more of the standard, the size and the pattern of the two-dimensional code, and the decoding contents of the two-dimensional code A and the two-dimensional code B at least comprise the tracing codes of the livestock carcass.
Further, the two-dimensional code A is a large code, and the two-dimensional code B is a small code.
Further, the two-dimensional code A is a standard code, and the two-dimensional code B is a private code; the matrix pattern of the private code consists of 33×33 modules, and a single code point of the data coding region of the private code occupies 2×2 modules.
Furthermore, the graphic code further comprises a text image of the source tracing code, and the text image and the two-dimensional code A or the two-dimensional code B are in pairs.
Furthermore, the code points filled in the data coding region are round.
The invention also provides a generating method for the graphic code, which is characterized in that the method comprises the following steps of,
step one, setting the specifications of the two-dimensional codes A and B;
step two, acquiring a tracing code of the livestock carcass;
step three, generating the two-dimensional code A and the two-dimensional code B according to the specification and the traceability code at the same time;
and fourthly, simultaneously spraying the two-dimensional code A and the two-dimensional code B on the animal carcass skin in an ink-jet mode.
Still further, the method may further comprise,
the first step further comprises setting fixed contents of the two-dimensional code A and the two-dimensional code B;
and step three, generating the two-dimensional code A and the two-dimensional code B simultaneously according to the specification, the traceability code and the fixed content.
Still further, the method may further comprise,
the third step further comprises the step of generating a text image of the tracing code according to the tracing code;
and step five, the two-dimensional code A, the two-dimensional code B and the character image of the tracing code are simultaneously printed on the skin of the livestock carcass in an inkjet mode.
Furthermore, the fifth step further comprises the step of obtaining the state of the code spraying area of the livestock and poultry carcass skin, and dynamically spraying the two-dimensional code A or the two-dimensional code B on the livestock and poultry carcass skin.
The invention also provides a code spraying device for the animal carcass skin, which comprises the method for generating the graphic code.
After the graphic code, the corresponding generation method and the code spraying device are adopted, the two-dimensional code and the traceability code can be better sprayed on the surfaces of livestock carcasses such as pigs, cattle, sheep, chickens, ducks and geese, and the like, the two-dimensional code reading and the requirements of different groups on the reading can be better ensured, and the food safety traceability and supervision can be ensured.
Drawings
FIG. 1 is a block diagram of a source tracing system according to a first embodiment of the present invention;
FIG. 2 is a block diagram of an image generation module according to a first embodiment of the present invention;
FIG. 3 is a block diagram illustrating an image jet printing module according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating the marking operation of the marking system according to the first embodiment of the present invention;
FIG. 5 is a block diagram of a decoding system according to a first embodiment of the present invention;
FIG. 6 is a flowchart illustrating decoding operations performed by the decoding system according to the first embodiment of the present invention;
FIG. 7 is a block diagram illustrating an image generation module according to a second embodiment of the present invention;
FIG. 8 is a flowchart illustrating the marking operation of the marking system according to the second embodiment of the present invention;
FIG. 9 is a diagram showing a two-dimensional code with the same content and a group of structure-linked two-dimensional codes according to a second embodiment of the present invention;
FIG. 10 is a block diagram of a decoding system according to a second embodiment of the present invention;
FIG. 11 is a block diagram of a decoding system according to a third embodiment of the present invention;
FIG. 12 is a flowchart illustrating decoding operations performed by the decoding system according to the third embodiment of the present invention;
FIG. 13 is a graphic code pattern of the present invention;
FIGS. 14a, 14b and 14c illustrate three versions of a graphic code of the present invention;
FIG. 15 is a data distribution diagram of a data encoding region according to the present invention;
FIG. 16 is a flow chart of encoding of a graphic code according to the present invention;
FIG. 17 is a flow chart of decoding of a graphics code according to the present invention;
FIG. 18 is a diagram of several common code eye shapes;
FIG. 19 is a size diagram of a code eye;
FIG. 20 is a diagram illustrating a typical code point pattern;
FIG. 21 is a plot of code dot size;
FIG. 22 is a combination of a private code, a large code and a small code;
FIG. 23 is a block combination of standard code large and small codes;
FIG. 24 is a combination of a private code and a standard code;
fig. 25 is a flowchart of a two-dimensional code combined pattern generation method.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
The terms first, second, third and the like in the description and in the claims of the invention and in the above-described figures, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the term "include" and any variations thereof is intended to cover a non-exclusive inclusion.
Example 1
Fig. 1 is a block diagram of a tracing system according to a first embodiment of the present invention.
As shown in fig. 1, the traceability system 100 for livestock carcasses in the present embodiment includes a marking system including an image generation module 10 and an image spraying module 20, and a decoding system 30.
FIG. 2 is a block diagram of an image generation module according to a first embodiment of the present invention; fig. 4 is a flowchart illustrating the marking operation of the marking system according to the first embodiment of the present invention.
As shown in fig. 2 and 4, the image generation module 10 includes a trace-source information storage unit 11, an image generation display unit 12, a data segmentation unit 13, a URL generation unit 14, and an encoding unit 15. The traceability information storage unit 11 stores a traceability information input screen, and the image generation display unit 12 displays the traceability information input screen so that an operator can input, add, and modify the traceability information of each livestock. The URL generating section 14 generates a URL corresponding to the trace-source information of the head stock. The trace source information storage unit 11 stores trace source information and URL of the head pig in association with each other. The URL constitutes the trace information data.
The data segmentation unit 13 equally divides the traceability information data into N data segments according to the data size, wherein N is a positive integer, further, N is more than or equal to 2 and less than or equal to 16, and further, N is 2, 3 or 4.
The encoding part 15 is configured to generate N structure-linked two-dimensional codes corresponding to the N data segments in a structure-linked manner to form a group of structure-linked two-dimensional code groups. The position detection graph of each structure link two-dimensional code is composed of a circular graph and a solid circular graph positioned in the circular graph.
Fig. 3 is a block diagram illustrating an image jet printing module according to a first embodiment of the present invention.
As shown in fig. 3, the image printing module 20 prints N structurally linked two-dimensional codes on the surface of an object to be printed, and includes a printing control part 21 and a printing part 22. The jet printing control section 21 is configured to be triggered to control the jet printing section 22 to jet print or stop printing.
The code spraying part can automatically move on the livestock carcass skin, or can be manually held by a hand to press the code spraying part 22 on the livestock carcass skin for movement.
According to some embodiments of the invention, the code spraying part comprises a spray printing unit and a handheld unit fixedly connected with the spray printing unit, wherein the spray printing unit is provided with a spray printing opening. The jet printing control section 21 includes a jet printing control unit and a trigger switch unit provided on the hand-held unit. Before jet printing, the trigger switch unit is triggered (such as pressing) to generate a trigger signal, the jet printing control unit receives the trigger signal and then acquires a structure link two-dimensional code group corresponding to the current livestock carcass, and then controls the jet printing part 22 to jet print the structure link two-dimensional code group.
Specifically, the trigger switch unit includes a start trigger switch, a stop trigger switch, and a pause trigger switch. The start trigger switch is triggered (e.g., pressed) to generate a start trigger signal, and the inkjet control unit controls the inkjet printing unit 22 to perform inkjet printing after receiving the start trigger signal.
The stop trigger switch is triggered (e.g., pressed) to generate a stop trigger signal, and the inkjet printing control unit controls the inkjet printing portion 22 to stop inkjet printing of the current structure-linked two-dimensional code group after receiving the stop trigger signal.
The pause trigger switch is triggered (e.g., pressed, etc.) to generate a pause trigger signal, and the jet printing control unit controls the jet printing part 22 to pause the jet printing of the current structure-linked two-dimensional code group after receiving the pause trigger signal.
Of course, in other embodiments, the trigger switch unit may be formed of one trigger switch according to actual needs, and the trigger signal for suspending the printing and the trigger signal for stopping the printing are generated by time difference of the trigger switch during the printing.
According to one embodiment of the present invention, the image spraying module 20 further includes a spraying prompt part 23, and when the spraying of one structure-linked two-dimensional code is completed, the spraying control unit controls the spraying prompt part 23 to send a prompt signal. The prompting signal is a sound signal.
The specific code spraying process comprises the following steps: before spraying the code, an operator searches a relatively flat part on the livestock carcass to serve as a region to be sprayed, presses the code spraying part on the region to be sprayed, presses a trigger switch unit, triggers (such as pressing) the trigger switch unit to generate a trigger signal, and then continuously detects the next part suitable for spraying the livestock carcass as the current region to be sprayed after the spray control unit receives the trigger signal and controls the spray part 22 to perform the spray printing action along with the movement of the trigger signal on the livestock carcass skin, if the region to be sprayed is large and a plurality of two-dimensional codes can be continuously sprayed, the spray part 22 continuously sprays the lower structure links the two-dimensional codes, when the position to be sprayed is not suitable for spraying any more in visual inspection, presses a touch switch, and controls the spray part to stop spraying the next two-dimensional code after receiving the trigger signal, and then the operator continuously detects the next part suitable for spraying the livestock carcass to serve as the current region to be sprayed, and presses the trigger switch unit to perform the spray printing.
When the trigger switch unit is pressed, the jet printing section 22 continues jet printing the structure connection two-dimensional code that is not currently jet printed.
Therefore, the two-dimension codes of the plurality of structure links in the invention may or may not be adjacent to each other according to the parts suitable for spray printing on the livestock carcasses.
FIG. 5 is a block diagram of a decoding system according to a first embodiment of the present invention; fig. 6 is a flowchart illustrating the decoding operation of the decoding system according to the first embodiment of the present invention.
As shown in fig. 5 and 6, the decoding system 30 includes a two-dimensional code scanning unit 31, a two-dimensional code temporary storage unit 32, a decoding judgment unit 33, a two-dimensional code analysis unit 34, a communication unit 35, a code scanning control unit 36, and a decoding display unit 37.
The two-dimensional code scanning unit 31 scans the structure-linked two-dimensional code located on the skin of the livestock carcass.
The two-dimensional code temporary storage unit 32 stores the structurally linked two-dimensional code scanned by the two-dimensional code scanning unit 31.
The decoding judgment part 33 judges whether the temporary storage part contains a group of complete two-dimensional codes in the structure link mode according to the coincidence sequence information, the parity check data and the symbol number information contained in the structure link two-dimensional codes, and when the judgment is negative, the decoding display part 37 continues to display the scanned page, and the two-dimensional code scanning part 31 continues to maintain the scanning state; when the determination is yes, it is determined that the structurally linked two-dimensional code stored in the current two-dimensional code temporary storage unit 32 is a complete group of structurally linked two-dimensional codes, and the two-dimensional code analysis unit 34 analyzes the group of structurally linked two-dimensional codes to obtain URL addresses, the communication unit 35 acquires the tracing information from the image generation module 10 according to the URL addresses, and the decoding display unit 37 displays the tracing information.
When the two-dimensional code scanning unit 31 is in the scanning state, the two-dimensional code scanning unit 31 pauses scanning after the code scanning control unit 36 is triggered, and when the two-dimensional code scanning unit 31 is in the pause state, the two-dimensional code scanning unit 31 continues to be in the scanning state after the code scanning control unit is triggered.
The scan code control unit 36 may be triggered by a physical key, or may be: the scan page has a scan pause key and a scan key thereon, and is triggered by clicking the scan pause key and the scan key on the scan page displayed by the decode display section 37.
In one embodiment of the present invention, the traceability system 100 for the carcass surface of livestock includes a traceability server, a code spraying machine communicatively connected to the traceability server, and a decoding terminal communicatively connected to the traceability server, where the decoding terminal is a two-dimensional code scanning device, and may be a mobile phone with a camera, a tablet, or the like.
The traceability server comprises a traceability information storage part 11, an image generation part and an image generation display part 12, the code spraying machine comprises a data segmentation part 13, an encoding part 15 and an image spraying module 20, and the code spraying machine acquires traceability information corresponding to a livestock carcass of a current image to be sprayed from the traceability server through a communication network; the traceability server may include a traceability information storage unit 11, an image generation unit, an image generation display unit 12, a data segmentation unit 13, and an encoding unit 15, and the inkjet printer may include an image jet module 20, and acquire data information of the structurally linked two-dimensional code from the traceability server through a communication network.
The decoding terminal has a decoding system 30 thereon.
Example two
In the second embodiment, the same reference numerals are given to the same parts as those in the first embodiment, and the same description is omitted.
FIG. 7 is a block diagram illustrating an image generation module according to a second embodiment of the present invention; fig. 8 is a flowchart illustrating the marking operation of the marking system according to the second embodiment of the present invention.
As shown in fig. 7 and 8, in the first embodiment, the image generation module 210 includes a trace-source information storage unit 211, an image generation display unit 212, a data segmentation unit 213, and an encoding unit 214.
The traceability information storage unit 211 stores a traceability information input screen, and the image generation display unit 212 displays the traceability information input screen so that an operator can input traceability information of each livestock. The trace source information storage unit 211 stores the input trace source information. The tracing information constitutes tracing information data.
The data segmenting section 213 classifies the trace-source information into N data segments according to the specific content of the trace-source information data.
Fig. 9 is a comparison diagram of two-dimensional codes containing the same content and a group of structure link two-dimensional codes in a second embodiment of the present invention.
As shown in fig. 9, the traceability information for food safety, such as spray-printed on the surface of pigskin, generally comprises four parts of source, evidence, inspection and enterprise: 1) Information of source, pig source farm; (2) Certificate, including animal inspection and quarantine qualification certificate, etc. of live pigs entering slaughter houses; (3) Checking a pre-slaughter checking record table, a post-slaughter quarantine record table, detecting clenbuterol hydrochloride and the like; (4) enterprise, pig slaughter site qualification and other information; therefore, the traceability information data is divided into four data segments including source, evidence, check and enterprise.
The encoding unit 214 generates N corresponding structure-linked two-dimensional codes by structure-linking N data segments. The position detection pattern of each structure-linked two-dimensional code is composed of a circular pattern and a solid circular pattern located in the circular pattern, and in this embodiment, N is 4, as shown in fig. 9.
Fig. 10 is a block diagram of a decoding system according to a second embodiment of the present invention.
As shown in fig. 10, the decoding system 230 includes a two-dimensional code scanning unit 231, a two-dimensional code analysis unit 233, and a decoding display unit 232.
The two-dimensional code scanning unit 231 scans the structure-linked two-dimensional code located on the skin of the livestock carcass, the two-dimensional code analyzing unit 233 analyzes the structure-linked two-dimensional code currently scanned to obtain corresponding part of tracing information, the decoding display unit 232 displays the part of tracing information, a return scanning key and an end key, the return scanning key is used for enabling a user to continue scanning, and the end key is used for enabling the user to stop scanning.
Example III
In the third embodiment, the same reference numerals are given to the same parts as those in the first and second embodiments, and the same description is omitted.
FIG. 11 is a block diagram of a decoding system according to a third embodiment of the present invention; fig. 12 is a flowchart illustrating the decoding operation of the decoding system according to the third embodiment of the present invention.
As shown in fig. 11 and 12, unlike the first and second embodiments, in the third embodiment, the decoding system 330 includes a two-dimensional code scanning unit 331, a screen storage unit 334, a two-dimensional code temporary storage unit 332, a decoding judgment unit 333, a two-dimensional code analysis unit 335, a communication unit 336, a scan control unit 337, and a decoding display unit 338.
The screen storage unit 334 stores an analysis selection screen, and the decode display unit 338 displays the analysis selection screen so that the user can select whether to view the corresponding content by single-code scanning or view all the trace-source information content after scanning all the two-dimensional codes.
When the user selects the single code to scan and view the corresponding content, the two-dimensional code scanning part 331 scans the structure link two-dimensional code located on the skin of the livestock carcass, the two-dimensional code analyzing part 335 analyzes the structure link two-dimensional code currently scanned to obtain the corresponding part of tracing information, the decoding display part 338 displays the part of tracing information, a return scanning key and an end key, the return scanning key is used for enabling the user to continue scanning, and the end key is used for enabling the user to stop scanning.
After the user selects to scan all the two-dimensional codes and view all the tracing information content, the two-dimensional code temporary storage part 332 stores the structure link two-dimensional code obtained by scanning by the two-dimensional code scanning part 331, the decoding judging part 333 judges whether the two-dimensional code temporary storage part 332 contains a group of two-dimensional codes in a complete structure link mode according to the coincidence sequence information, the parity check data and the symbol number information contained in the structure link two-dimensional code, and when the judgment is negative, the decoding display part 338 continues to display a scanning page, and the two-dimensional code scanning part 331 continues to keep a scanning state; when the determination is yes, it is determined that the structurally linked two-dimensional code stored in the current two-dimensional code temporary storage unit 332 is a group of structurally linked two-dimensional codes, and the two-dimensional code analysis unit 335 analyzes the group of structurally linked two-dimensional codes to obtain all the traceability information data. At this time, when the trace information data is trace information, the decode display unit 338 displays the trace information; when the trace information data is URL, the communication unit 336 obtains trace information from the image generation module according to the URL address, and the decode display unit 338 displays the trace information.
The function of the scan code control unit 337 is the same as that of the first embodiment, and will not be described here again.
Example IV
The two-dimensional codes mentioned above all completely follow QRCode (Quick Response Code) standard, in addition, chinese-character codes, PDF417, data Matrix, and the like are called "standard codes", but the standard codes are complex, and the code words are reduced by simplifying customization, so that the code is more suitable for two-dimensional code spraying of livestock and poultry carcass skin, and the code subjected to simplified customization is called "private code". The encoding and decoding rule of the "private code" and the two-dimensional code pattern generation rule are described below.
Fig. 13 is a graphic code pattern of the present invention. As can be seen from the figure, the graphic code mainly comprises six parts, the position detection graphics 101, 102 and 103 are used for accurately positioning the graphic code, the custom area one 104 and the custom area two 105 can allow a user to custom display text or pictures and other elements, and the rest occupies a majority of the area which is the data coding area 106. In order to multiplex an algorithm and save resources, the two-dimensional code of the invention refers to a mature QRCode standard, selects QRCode version 4 (33 multiplied by 33) as a reference, and consists of 33 multiplied by 33 modules, wherein a position detection pattern accords with QRCode version 4 (33 multiplied by 33) and consists of 37 multiplied by 7 position detection patterns; the first custom region 104 is a 17×7 rectangular region, the second custom region 105 is a 7×17 rectangular region, and the first custom region 104 and the second custom region 105 are used for placing custom characters or pictures. The data coding region 106 is a 24×24 square region, and is used to represent the encoded source code.
Three identical-appearance position detection patterns 101, 102 and 103, which are respectively positioned at the left upper corner, the left lower corner and the right upper corner of the symbol, can uniquely determine the position and the direction of the pattern code, and can be regarded as being composed of 3 overlapped concentric squares, which are respectively 7×7 dark color modules, 5×5 light color modules and 3×3 dark color modules. The module width ratio of the standard position detection pattern is 1:1:3:1:1, the possibility that similar patterns are encountered in other places in the graphic codes is extremely low, so that the possible graphic code positions can be rapidly identified, and the positions and directions of the graphic codes can be uniquely determined by the three position detection patterns, thereby realizing accurate decoding of a data coding region.
The custom area one 104 and the custom area two 105 are used for displaying text description or picture description of the graphic code, and the user can intuitively understand the graphic code before determining to scan the code. The user-defined area can also be designed with more beautiful characters or Logo, which is beneficial to the propaganda of enterprises.
In addition, the custom areas 104 and 105 can also be used for placing the text of the traceability code character string, and reading the traceability code is realized by utilizing the OCR (Optical Character Recognition ) technology so as to make up for the phenomenon of decoding failure of the graphic code caused by moist or uneven surface of the live pig carcass.
The data encoding region 106 includes an encoding region and a mask pattern number region, wherein the encoding region includes a data codeword region and an error correction codeword region, and is a region in which the data codeword and the error correction codeword are encoded with symbol characters. As can be seen from fig. 13, each data word in the area occupies 2×2 modules, 4 modules are occupied, namely 4 times of a single module, the color block with larger design is imaged more clearly after photographing, and the decoding accuracy is improved, which is a main reason that the decoding efficiency of the graphic code of the present invention is better than that of a standard two-dimensional code. The data encoding region 106 is a 24×24 square area.
In practical application, in a large slaughter house, after finishing slaughtering, the pigs enter a refrigeration house, and code spraying is performed when the pigs leave the refrigeration house, namely code spraying is performed on frozen live pig carcasses; and the smaller slaughter house sprays codes immediately after finishing the selection slaughter, and then carries out transportation and selling, namely, spraying codes on the hot fresh live pig carcasses. The method is characterized in that a large number of code spraying tests show that the surface of the frozen live pig carcass is hard, the water content is less, the decoding effect after code spraying is better, the surface of the hot fresh live pig carcass is soft, the water content is more, the ink spraying printing is easy to spread, namely blue ink is adhered together, and particularly, the position detection pattern without error correction code words is formed. For this situation, the size of the code point of the code can be dynamically adjusted before the code is sprayed, so as to avoid the situation of mutual adhesion between blue modules, for example, the width ratio of the code point of each position detection graph is defined by standard 1:1:3:1:1 is adjusted to 1:1.5:2.5:1.5:1 or other suitable ratio, in order to increase the spacing between the dark code dots, and also to reduce the width of the code dots in the data encoding region 106, to prevent the ink from spreading out from the hot fresh pig carcass. Through field code spraying tests, the scheme has remarkable effect.
Fig. 14a, 14b and 14c are three patterns of graphic codes of the present invention, and are distinguished in that the custom regions 104 and 105 may be laid out at other positions than the position detection patterns 101, 102 and 103, and the remaining positions are the data encoding regions 106.
Assuming that the source code in the data encoding region 106 is a 19-bit decimal number, the encoding scheme is determined as follows. As shown in Table 1, encoding a decimal 19-bit number, converting to binary requires 64 bits (10ζ12ζ), and the resulting bit stream is one codeword per 8 bits, with a total of 8 data codewords. According to the error correction algorithm of the open source Seed-Solomon error control coding, the error correction algorithm enables the symbols not to lose data when encountering damage, different error correction levels can be selected, and if 8 error correction codewords are selected, the error correction capacity is 4, and the error correction level is 4/(8+8) =25%. The 8 data codewords and the 8 error correction codewords require 128 bits, corresponding to a minimum pattern size of 12 x 12.
Digital length Binary bit Data codeword Error correction capacity Error correction codeword Error correction level Pattern size
19 64 8 1 2 10% 9*9
19 64 8 2 4 16% 10*10
19 64 8 3 6 21% 11*11
19 64 8 4 8 25% 12*12
Table 1 error correction level and pattern size for encoding 19-bit numbers
The data encoding region 106 in fig. 13 demonstrates a pattern of 12×12=144 modules for a pattern size of the longest 19-bit digital code, but is not limited to a format of 144 modules, and modules may be added or subtracted as needed to accommodate the digital length requirements to be encoded.
The higher the error correction level, the more error correction codewords are needed and the larger the pattern size. Before the graphic code is printed, the code spraying machine can select proper pattern size according to the current clean conditions on the surface of the live pig carcass, and when larger patterns are printed, the code spraying machine can select higher error correction level, so that the decoding rate is improved; when smaller patterns are printed by spraying, a lower error correction level can be selected, so that fewer code points are ensured, and the patterns are clearer.
FIG. 15 is a data distribution diagram of a data encoding region according to the present invention. The data encoding region includes an encoding region including a digital codeword region including D1-D8 and an error correction codeword region including E1-E8, and a mask region including M1 and M2, according to fig. 15. After the data codeword, error correction codeword, and pattern size are determined, the filling of data into the data encoding region 106 begins. And generating error correction code words by using Seed-Solomon according to the number of the data code words and the error correction level, and placing the error correction code words at the back of the data code words. As shown in fig. 15, starting from the lower right corner and filling in from bottom to top, S-shapes from right to left, D1-D8 are 8 data codewords, E1-E8 are 8 error correction codewords, and M1 and M2 are mask codewords. Of course, other placement modes can be selected, and decoding can be performed according to the same position during decoding. Finally, the coded areas are masked, which is only for a more uniform placement of dark and light modules, and to prevent the creation of patterns of position detection patterns.
The pattern of the encoded region in the data encoded region 106 is masked with eight mask patterns, i.e., XOR operations are performed at the pattern corresponding locations, with reference to the QRCode standard. The XOR operation places the encoded region pattern on each mask pattern in turn and inverts the module corresponding to the dark module of the mask pattern (light to dark or vice versa), selects the optimal set of four rules among the generated 8 mask results, and records the corresponding mask pattern numbers in the M1 and M2 codewords.
(1) The occurrence of position detection patterns in the data encoding region 106 should be avoided as much as possible;
(2) The color of adjacent modules in a row/column should be avoided as much as possible from being identical by more than 5;
(3) Larger color blocks of the same color should be avoided as much as possible;
(4) The dark ratio in the whole symbol is most preferably around 50%.
After all the data are determined, the whole graphic code is filled, and can be printed on the surface of a product by using a code spraying machine.
Fig. 16 is a flowchart of encoding a graphic code according to the present invention. The trace-back graphic code encoding flow chart briefly illustrates the encoding of 19-bit numbers, as shown in table 1, selecting 25% error correction level, the size of the data encoding area being 12 x 12 code points, the entire graphic code size being 33 x 33 module encoding flow including:
(1) Generating a module array of the two-dimensional code and setting module graphic attribute parameters. Generating a 33 x 33 module array for placing all elements, wherein the number of pixel points of the whole module array can be customized and is generally a multiple of 33; at the same time, element attributes of the module array are defined, such as whether the module is a position detection pattern area or a data encoding area or a mask area, whether the fill pattern of the module is a square or a dot, the size specification of the fill pattern, and so on.
(2) Three position detection patterns are generated. Generating position detection patterns 101, 102 and 103 as shown in fig. 13 at the upper left corner, the lower left corner and the upper right corner, respectively, each occupying a module of 7*7; in generating the position detection pattern, the code point width ratio may be standard 1:1:3:1:1, or 1:1.5:2.5:1.5:1, or other suitable ratio.
(3) And (5) data encoding. As shown in table 1, 19-bit digits of raw data are converted into binary and 8 data codewords are generated, and 8 error correction codewords are generated for the 8 data codewords using Reed-Solomon;
(4) Filling the data coding region. Filling all codewords in the data encoding region 106, D1-D8 filling data codewords, E1-E8 filling error correction codewords according to fig. 15;
(5) And (5) attaching a mask. Masking the data codeword and the error correction codeword, and recording the numbers of the selected masks in M1 and M2;
(6) And filling the custom region. Filling characters, pictures or trace back code character strings for OCR recognition in the first custom region 104 and the second custom region 105;
(7) Finally, a trace-back code pattern as shown in fig. 13 is obtained.
Fig. 17 is a flowchart of decoding a graphic code according to the present invention. The decoding step from reading a graphic code to the input data is the inverse of the encoding procedure, comprising:
(1) And identifying the depth module. The method comprises the steps of identifying a dark and light module, positioning and obtaining a symbol image, and determining an array of which the dark and light modules are identified as 1 and 0 according to blue printing ink and RGB numerical ranges of live pig carcass skin colors;
(2) Finding a position detection pattern. Finding the position detection patterns 101, 102 and 103 so as to accurately locate the data coding region;
(3) The data encoding region removes the mask. Reading the mask pattern numbers recorded by M1 and M2, and performing exclusive OR treatment on the bitmap of the data coding region by using mask pattern reference to obtain an elimination mask;
(4) The data and error correction codeword are recovered. Reading the symbol characters according to the module arrangement rule, and recovering the data of the information and the error correction code word;
(5) Error checking is performed with the error correction codeword. The data is error-detected using Reed-Solomon, and if an error is found, immediately corrected.
(6) And decoding the data code words. Decoding the data code word according to the data coding rule, and recovering 19-bit decimal numbers.
(7) The traceability code strings of custom regions 201 and 201 are identified (as needed) using OCR technology.
(8) And finally, outputting the decoded digital string result.
Example five
According to the above description, the filling pattern of each module in the module array in the two-dimensional code is generally square, but in consideration of the characteristics of the carcass skin of the livestock and poultry, pores are densely distributed and contain moisture, the moisture is easy to diffuse, the distribution of the moisture is positively correlated with that of the pores, and the diffusion of the ink is positively correlated with that of the moisture, so that when the filling pattern is selected, a round shape or a round dot is selected as a basic pattern, and a good decoding effect can be obtained.
For the selection of code eyes and code point patterns in two-dimensional codes, the method mainly comprises the following steps:
1) The code eye, namely the position detection pattern, is formed by superposing a code eye outer frame, a code eye middle frame and a code eye inner frame, the colors of the code eye are deep, shallow and deep respectively, and the shape of the code eye, namely the position detection pattern, can be selected from the shapes of standard square, round corner square, diamond and the like. Fig. 18 is an exemplary diagram of several common code eye shapes, including standard square, rounded square, inside-outside, outside-inside, and circular. Fig. 19 is a size diagram of a code eye. In addition to the shape, the dimensions of the outer frame 120 and the inner frame 121 may be selected, where the dimension a is the maximum dimension of the inner frame 121, the dimension C is the maximum dimension of the outer frame 120, and the dimension B is the maximum dimension of the middle frame, and according to the standard dimension a: b: c=3: 5:7, thus, the width ratio of the depth pattern in the middle of the code eye is 1:1:3:1:1. as mentioned earlier, the width ratio of the position detection pattern may be defined by standard 1:1:3:1:1 is adjusted to 1:1.5:2.5:1.5:1, or 0.5:1.5:2.5:1.5:1, or other suitable ratio, thereby reducing diffusion and improving the reading rate, the general principle is that dark color parts are less, light color parts are as much as possible, and the width ratio range of the position detection pattern is as follows:
[0.25,1.0):(1.0,2.5]:[1.5,3.0):(1.0,2.5]:[0.25,1.0)。
Preferably, the width ratio range of the position detection pattern is:
[0.25,0.75]:[1.25,2.5]:[1.5,2.75]:[1.25,2.5]:[0.25,0.75]
the size of a single code dot in the code eye is 1×1 module square.
In the foregoing, the size of the width ratio range of the position detection pattern is dynamically adjusted according to the dryness and humidity of the pork surface when the pig carcass is sprayed, or the width ratio range of the position detection pattern is respectively set according to hot fresh meat or cold fresh meat sprayed, so that the code scanning success rate can be improved.
2) The code points, i.e. the code points filled in a single block square in the data coding region, are shown in fig. 20, which is an exemplary diagram of a common code point pattern, and fig. 21, which is a diagram of a code point size. The code point patterns filled in the modules can be square, rounded square, round and the like. The size of the code point can be adjusted, the size of the code point is selected from the sizes of grid filling, 3/4 grid filling, 1/2 grid filling, 1/4 grid filling and the like, and the decoding success rate in the range of 3/4-1/4 grid filling interval is higher from the aspect of actual code scanning success rate. The size of a single module square is a, the space occupied by a single standard code point 125 of the data coding region is 1×1 module square for standard codes, and the range of the maximum size F is:
0.25a≤F≤a;
preferably, 0.5 a.ltoreq.F.ltoreq.0.75 a.
For the private code of the present invention, the space occupied by a single private code point 124 of the data encoding region is a 2×2 block square, the size d=2a, and the range of the maximum size E is:
0.5a≤E≤2a;
Preferably, E is 0.75 a.ltoreq.E.ltoreq.1.5 a.
In addition, the positions of the code points in the square grid can be set, the positions of the code points in the square grid can be adjusted in a selective mode, and the positions of the code points in the square grid are centered, the positions of the code points in the square grid are shifted upwards, downwards, leftwards, rightwards and the like, and in general, the centering is proper.
In the foregoing, the size of the code point is dynamically adjusted according to the dryness and humidity of the pork surface when the pig carcass is sprayed, or the size of the code point is respectively set according to hot fresh meat or cold fresh meat sprayed, so that the code scanning success rate can be improved.
And counting the code scanning success rate of the standard code spraying square code and the round code, wherein the code scanning success rate of the square code is 18.5%, and the code scanning success rate of the round code is 29.1%. If the private code round code is adopted, the code scanning success rate can reach more than 70 percent.
Example six
Considering that the animal carcass skin is not very smooth and flat, some parts are flat and suitable for code spraying, some parts have more undulation folds and are not suitable for code spraying, but in the continuous operation process, uncontrollable factors are many, in order to improve the recognition rate of the two-dimensional code, the embodiment adopts a mode of using a large code and a small code in a mixed way to improve the code scanning success rate.
In the first case, the large code and the small code are identical in content. Taking a large two-dimensional code with a side length of 5cm and a small two-dimensional code with a side length of 2.5cm as an example, the two codes have little recognition effect at a flat and smooth part; however, in the position with more undulation folds, the large code size, the large code point and the high anti-jamming capability are easy to be influenced by surface deformation or dirt, and the area is large and the probability of being disturbed is also high. The small code size is small, only a small block is required to be flat and smooth, and the probability of being disturbed as a whole is also small. In practice, the code spraying quality can be improved by adopting full large codes, full small codes and a mode of using the large codes and the small codes in a mixed way, and the code scanning success rate is improved.
In the second case, the large code and the small code are different in content. Taking the side length of the large two-dimensional code as 5cm and the side length of the large two-dimensional code as 2.5cm as an example, if the code point size of the large code and the small code is as large as the code point size of the large code and the small code, the large code data coding region is about 4 times of the data stored in the small code data coding region theoretically, so that the large code can store more data, or a higher error correction level is adopted, and the decoding success rate is improved. Thus, when the traceable two-dimensional codes are generated aiming at the same traceable code, the contents of the large code and the small code can be different, so that more information or services can be provided.
Example seven
The above mentioned standard code, private code, big code, small code and other forms, and the tracing code itself can have various combination forms, so as to ensure the code scanning success rate.
Fig. 22 is a private code large code small code combination form. The tracing code consists of 15 digits of Arabic numerals. The tracing code big code 130 is above, below is the tracing code private code big code 131, below is the tracing code private code small code 132 and the corresponding tracing code small code 133. The tracing codes and the tracing two-dimensional codes appear in pairs, so that the tracing codes can be read and identified, and the tracing codes and the tracing two-dimensional codes appear in pairs, thereby playing an encryption anti-counterfeiting role on the tracing codes.
Fig. 23 is a block combination of standard code large code and small code. Including a source code large code, a standard code large code 135, a source code small code, and a standard code small code 136. Under the same tracing code, the code points of the standard code are denser than the code points of the private code, the data size is larger, the code points of the private code are large and sparse, and the code points of the private code are easy to identify. Because the standard code accords with the QRCode standard, a special code scanning tool is not needed, and the micro-letter code scanning tool carried on the mobile phone can be read, so that tracking and tracing are convenient. Whereas private codes require custom code scanning software to read, the software may be in the form of apps, applets, public numbers, etc.
Fig. 24 is a combination of a private code and a standard code. The tracing code big code, the standard code big code 135, the tracing code small code and the private code small code are arranged from top to bottom in sequence. The standard code and the private code can be combined to facilitate different people to obtain the tracing, inspection and quarantine information of livestock carcasses by using different tools.
Example eight
The two-dimensional code combination is used for improving the code spraying decoding success rate, distinguishing the code scanning requirements of different types of users, meeting different code scanning tools and the like, and the generation method of the two-dimensional code combination graph is described in detail below.
Fig. 25 is a flowchart of a two-dimensional code combined pattern generation method. It is assumed that the two-dimensional code combination pattern includes two-dimensional code a and two-dimensional code B.
First, the specifications of the two-dimensional code A and the two-dimensional code B and the fixed content in the two-dimensional code A and the two-dimensional code B are set. The specification comprises a standard, a size, a pattern and the like, the fixed content is fixed in the current code spraying operation process, such as a linked website, and the two-dimensional code A and the two-dimensional code B can be linked to different websites.
And then, acquiring the tracing code of the livestock and poultry carcass to be sprayed currently.
And then, generating a two-dimensional code A, a two-dimensional code B and character images of the source tracing codes according to the set rules, fixed contents, the source tracing codes and the like, and combining the images only during subsequent jet printing.
And finally, simultaneously spraying the two-dimensional code A and the two-dimensional code B on the animal carcass skin in an ink-jet mode.
In order to achieve better spray printing, the system further comprises a spray printing area detection unit, and the size, the distribution and the combination mode of the two-dimensional code, the error correction level of the data coding area and the like are determined by detecting the wrinkling condition, the pollution condition and the like of the area to be spray printed of the animal carcass skin. Wherein, the wrinkling condition means that the epidermis is flat; the pollution condition refers to whether the epidermis has unhraped fur, blood or other pollutants, and the detection not only detects whether wrinkles or pollution exist, but also detects the areas of the wrinkles or pollution, so that the size and the jet printing position of the two-dimensional code are determined. The size of the two-dimensional code refers to that the two-dimensional code is a large code or a small code; the distribution refers to the position of the two-dimensional code sprayed on the area to be sprayed; the combination mode refers to a combination mode of a large code and a small code of a two-dimensional code, a combination mode of a standard code and a private code, a combination mode of a two-dimensional code and a character image of a tracing code and the like, and aims to facilitate decoding and reading and meet the requirements of different user objects on code scanning. And after the detection is finished, dynamically spray-printing the two-dimensional code A or the two-dimensional code B on the animal carcass skin by a system according to the detection condition.
Finally, it should be noted that: the above embodiments are provided for the purpose of illustrating the technical solution of the present invention by way of conventional breadth and not limitation, and those skilled in the art may make modifications or equivalent substitutions without departing from the spirit and scope of the present invention, and it should be construed that the present invention is covered by the appended claims.

Claims (11)

1. The two-dimensional code for the livestock and poultry carcass skin code spraying is characterized in that a matrix graph of the two-dimensional code consists of 33 multiplied by 33 modules, the content of the two-dimensional code consists of a position detection graph consisting of 3 7 multiplied by 7 modules, a data coding region and a self-defined region, the position detection graph accords with version 4 of the QRcode standard, and a single code point of the data coding region occupies 2 multiplied by 2 modules; the data coding region comprises a numbering region M1 and a numbering region M2 of mask patterns, the mask patterns are eight mask patterns specified by the QRCode standard, and each mask pattern consists of 2 multiplied by 2 modules; the data coding region is a square region formed by 24×24 modules, and further comprises a coding region, wherein the coding region comprises data codeword regions D1-D8 and error correction codeword regions E1-E8, and the mask pattern is used for performing mask calculation on the coding region; the range of the maximum size E of the code point is 0.75 a-1.5 a, wherein a is the size of a single module; the width proportion range of the position detection pattern is [0.25,0.75]: [1.25,2.5]: [1.5,2.75]: [1.25,2.5]: [0.25,0.75].
2. The two-dimensional code for livestock carcass skin code spraying of claim 1, wherein the custom area is a text, a graph or a picture.
3. The two-dimensional code for livestock carcass skin code spraying according to claim 1, wherein code points filled in the data coding region are circular.
4. A code spraying device, which is used for spraying and printing the two-dimensional code for spraying the livestock carcass skin according to any one of claims 1 to 3.
5. A code reading device, wherein the code reading device is used for reading the two-dimensional code sprayed by the code spraying device according to claim 4.
6. A method for generating a two-dimensional code for livestock and poultry carcass skin code spraying according to claim 1, which is characterized in that the method comprises the following steps,
step one, generating a module array consisting of 33 multiplied by 33 modules, setting a position detection pattern and a module corresponding to a data coding region, and setting filling pattern attribute parameters of code points of the position detection pattern and the data coding region, wherein the parameters comprise the type and the size of the filling pattern;
step two, generating a position detection pattern;
filling the encoded data code word and error correction code word into a data encoding region;
Step four, adding a mask, masking the data code words and error correction code words of the data coding region, and recording the numbers of the selected mask in the number areas M1 and M2 of the mask pattern;
generating the masked data code words and the images of the error correction code words according to the filling figure attribute parameters;
and step six, filling the custom region.
7. A decoding method for the two-dimensional code for the livestock carcass skin code spraying according to claim 1, which is characterized in that the method comprises the following steps,
step one, identifying a depth module;
searching a position detection pattern and determining a data coding region;
step three, performing mask elimination operation on the data coding region;
recovering a data codeword and an error correction codeword, and correcting the data codeword by using the error correction codeword;
and fifthly, decoding the data code word to recover the encoded data.
8. The two-dimensional code meeting the QRCode standard for the pig carcass epidermis code spraying is characterized in that a position detection pattern of the two-dimensional code is circular, and code points of the two-dimensional code are circular; the range of the maximum size F of the code points is 0.5 a-0.75 a, the size of the code points is dynamically adjusted according to the degree of dryness and humidity of the pork surface, or the sizes of the code points are respectively set according to hot fresh meat or cold fresh meat which is sprayed, wherein a is the size of a single module; the width proportion range of the position detection pattern is [0.25,1.0): (1.0,2.5]:[1.5,3.0): (1.0,2.5]:[0.25,1.0).
9. The two-dimensional code meeting the QRCode standard for the pig carcass epidermis code spraying is characterized in that a position detection pattern of the two-dimensional code is circular, and code points of the two-dimensional code are circular; the range of the maximum size F of the code points is 0.5 a-0.75 a, the size of the code points is dynamically adjusted according to the degree of dryness and humidity of the pork surface, or the sizes of the code points are respectively set according to hot fresh meat or cold fresh meat which is sprayed, wherein a is the size of a single module; the width proportion range of the position detection pattern is [0.25,0.75]: [1.25,2.5]: [1.5,2.75]: [1.25,2.5]: [0.25,0.75].
10. A code spraying device, characterized in that the code spraying device is used for spraying and printing the two-dimensional code meeting the QRCode standard for spraying the codes on the skin of the pig carcass according to any one of claims 8 to 9.
11. A code reading device, wherein the code reading device is used for reading the two-dimensional code sprayed by the code spraying device according to claim 10.
CN202210619204.8A 2021-10-29 2022-06-02 Two-dimensional code, corresponding coding and decoding method, code spraying and code reading device Active CN115251126B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111268363.XA CN114027351A (en) 2021-10-29 2021-10-29 Marking system and decoding system for livestock carcasses
CN202111268363X 2021-10-29

Publications (2)

Publication Number Publication Date
CN115251126A CN115251126A (en) 2022-11-01
CN115251126B true CN115251126B (en) 2023-11-21

Family

ID=80135715

Family Applications (4)

Application Number Title Priority Date Filing Date
CN202111268363.XA Pending CN114027351A (en) 2021-10-29 2021-10-29 Marking system and decoding system for livestock carcasses
CN202210619204.8A Active CN115251126B (en) 2021-10-29 2022-06-02 Two-dimensional code, corresponding coding and decoding method, code spraying and code reading device
CN202210619215.6A Pending CN114885973A (en) 2021-10-29 2022-06-02 Graphic code for livestock and poultry carcass skin code spraying, generation method and code spraying device
CN202211009211.2A Active CN115886055B (en) 2021-10-29 2022-08-22 Marking system and decoding system for livestock carcasses

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202111268363.XA Pending CN114027351A (en) 2021-10-29 2021-10-29 Marking system and decoding system for livestock carcasses

Family Applications After (2)

Application Number Title Priority Date Filing Date
CN202210619215.6A Pending CN114885973A (en) 2021-10-29 2022-06-02 Graphic code for livestock and poultry carcass skin code spraying, generation method and code spraying device
CN202211009211.2A Active CN115886055B (en) 2021-10-29 2022-08-22 Marking system and decoding system for livestock carcasses

Country Status (1)

Country Link
CN (4) CN114027351A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117253170B (en) * 2023-09-27 2024-04-02 河北祥盛农业科技有限公司 Batch identification method, identification system and slaughterhouse information management system
CN117273044B (en) * 2023-10-27 2024-03-29 广州通赢科技有限公司 Lattice diagram construction method and lattice diagram identification method
CN117291631A (en) * 2023-10-27 2023-12-26 广州通赢科技有限公司 Hidden commodity tracing method and system

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0398338A2 (en) * 1989-05-19 1990-11-22 Banss Maschinenfabrik GmbH & Co. KG Apparatus for coding slaughtered animals
JPH1049610A (en) * 1996-08-02 1998-02-20 Toppan Printing Co Ltd Method for forming two-dimensional code picture
US6267296B1 (en) * 1998-05-12 2001-07-31 Denso Corporation Two-dimensional code and method of optically reading the same
JP2004206674A (en) * 2002-10-29 2004-07-22 Denso Corp Two-dimensional code and formation structure thereof
CN103310252A (en) * 2012-10-29 2013-09-18 成都菲普迪斯科技有限公司 CCQR (Colorful Coded Quick Response) anti-counterfeiting mark
CN103428575A (en) * 2013-08-19 2013-12-04 符晓友 Modulating and demodulating control method of information overlaid in media stream or media file images
DE102015008431A1 (en) * 2014-07-08 2016-08-18 mobitronic-sps systems processing services GmbH & Co. KG Quality and origin assurance procedures S.P.L.-2.5xx / ECC200 for tracking carcass (SN) pigs in current slaughterhouses. It is a laser-optimized data matrix code, with an additional ECC200 error corrector
CN107122816A (en) * 2017-03-20 2017-09-01 广东顺德中山大学卡内基梅隆大学国际联合研究院 A kind of self-defined view finding figure Quick Response Code and generation method
CN206480013U (en) * 2016-04-12 2017-09-08 立德高科(昆山)数码科技有限责任公司 The Quick Response Code and two-dimension code label of a kind of novel type
CN109324607A (en) * 2018-08-13 2019-02-12 济南大学 Two-dimensional code identification method and robot visual guidance method for self-locating based on it
CN109754046A (en) * 2019-01-31 2019-05-14 北京迈格威科技有限公司 Two dimensional code, the coding method of two dimensional code, coding/decoding method, device and equipment
CN110084349A (en) * 2019-04-30 2019-08-02 尤尼泰克(嘉兴)信息技术有限公司 A kind of method for drafting and geometry pixel two dimensional code of two dimensional code pixel
CN110384127A (en) * 2019-07-27 2019-10-29 智锐达仪器科技南通有限公司 A kind of livestock ketone body marking method and marking device
CN112187284A (en) * 2019-07-05 2021-01-05 杭州海康机器人技术有限公司 Encoding method, encoding pattern reading method, and imaging device
CN112487834A (en) * 2020-12-23 2021-03-12 智锐达仪器科技南通有限公司 Livestock carcass skin traceability code spray printing method, ink jet printer, traceability code and server

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446264A (en) * 2010-10-15 2012-05-09 航天信息股份有限公司 Printing and scanning recognition method and system for two-dimensional code of special value-added tax invoice
US9704081B2 (en) * 2012-12-19 2017-07-11 Denso Wave Incorporated Information code, information code producing method, information code reader, and system which uses information code
CN104424498B (en) * 2013-09-10 2019-03-15 北京意锐新创科技有限公司 A kind of method and device of high speed transformation two dimensional code coding
CN105243571A (en) * 2015-11-25 2016-01-13 清远市粤阳一号农业科技有限公司 Implementing method for F2O source tracing marketing
CN207082267U (en) * 2016-06-17 2018-03-09 纷美(北京)贸易有限公司 For the product packaging of liquid food, sheet material and packaging material
CN107832652A (en) * 2017-09-28 2018-03-23 努比亚技术有限公司 Two-dimensional code identification method, terminal and computer-readable recording medium
CN115380941A (en) * 2018-12-04 2022-11-25 智锐达仪器科技南通有限公司 Method, device and system for marking livestock carcass skin
CN111311244A (en) * 2018-12-11 2020-06-19 北京意锐新创科技有限公司 Passive code scanning method and device based on QR (quick response) code
CN110495487A (en) * 2019-06-06 2019-11-26 智锐达仪器科技南通有限公司 A kind of livestock ketone body marking device and marking method
CN110991203A (en) * 2019-12-10 2020-04-10 浩云科技股份有限公司 Two-dimensional code communication method, encoding method, decryption method and device
CN112544676B (en) * 2020-12-23 2022-08-19 智锐达仪器科技南通有限公司 Livestock carcass tracing method, corresponding ink-jet printer and system

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0398338A2 (en) * 1989-05-19 1990-11-22 Banss Maschinenfabrik GmbH & Co. KG Apparatus for coding slaughtered animals
JPH1049610A (en) * 1996-08-02 1998-02-20 Toppan Printing Co Ltd Method for forming two-dimensional code picture
US6267296B1 (en) * 1998-05-12 2001-07-31 Denso Corporation Two-dimensional code and method of optically reading the same
JP2004206674A (en) * 2002-10-29 2004-07-22 Denso Corp Two-dimensional code and formation structure thereof
CN103310252A (en) * 2012-10-29 2013-09-18 成都菲普迪斯科技有限公司 CCQR (Colorful Coded Quick Response) anti-counterfeiting mark
CN103428575A (en) * 2013-08-19 2013-12-04 符晓友 Modulating and demodulating control method of information overlaid in media stream or media file images
DE102015008431A1 (en) * 2014-07-08 2016-08-18 mobitronic-sps systems processing services GmbH & Co. KG Quality and origin assurance procedures S.P.L.-2.5xx / ECC200 for tracking carcass (SN) pigs in current slaughterhouses. It is a laser-optimized data matrix code, with an additional ECC200 error corrector
CN206480013U (en) * 2016-04-12 2017-09-08 立德高科(昆山)数码科技有限责任公司 The Quick Response Code and two-dimension code label of a kind of novel type
CN107122816A (en) * 2017-03-20 2017-09-01 广东顺德中山大学卡内基梅隆大学国际联合研究院 A kind of self-defined view finding figure Quick Response Code and generation method
CN109324607A (en) * 2018-08-13 2019-02-12 济南大学 Two-dimensional code identification method and robot visual guidance method for self-locating based on it
CN109754046A (en) * 2019-01-31 2019-05-14 北京迈格威科技有限公司 Two dimensional code, the coding method of two dimensional code, coding/decoding method, device and equipment
CN110084349A (en) * 2019-04-30 2019-08-02 尤尼泰克(嘉兴)信息技术有限公司 A kind of method for drafting and geometry pixel two dimensional code of two dimensional code pixel
CN112187284A (en) * 2019-07-05 2021-01-05 杭州海康机器人技术有限公司 Encoding method, encoding pattern reading method, and imaging device
CN110384127A (en) * 2019-07-27 2019-10-29 智锐达仪器科技南通有限公司 A kind of livestock ketone body marking method and marking device
CN112487834A (en) * 2020-12-23 2021-03-12 智锐达仪器科技南通有限公司 Livestock carcass skin traceability code spray printing method, ink jet printer, traceability code and server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
中国物品编码中心.QR码.《二维条码技术与应用》.中国计量出版社,2007,第188-194、200-201、285-287页. *

Also Published As

Publication number Publication date
CN115886055B (en) 2023-10-13
CN115251126A (en) 2022-11-01
CN114885973A (en) 2022-08-12
CN115886055A (en) 2023-04-04
CN114027351A (en) 2022-02-11

Similar Documents

Publication Publication Date Title
CN115251126B (en) Two-dimensional code, corresponding coding and decoding method, code spraying and code reading device
CN103383738B (en) Embedding visual information in a two-dimensional bar code
CN108334922B (en) Dot matrix two-dimensional code and encoding and identifying method thereof
CN105447546B (en) The two dimensional code and its coding and decoding methods and equipment of embeddable large scale figure
JP3643196B2 (en) Method for encoding information to be printed on a print medium, method for decoding information printed on a print medium, and two-dimensional data barcode
CN103489026B (en) Colorful two-dimension code, generating method and generating system thereof and printed article
JP2000200321A (en) Method for detecting place of two-dimensional bar code and reading same
CN106295454B (en) For handling the data processing equipment and method of 2D color bar code
CN1326165A (en) Method and device for producing and decoding clear visual barcodes
Kopec Multilevel character templates for document image decoding
JP2010510561A (en) Two-dimensional code, decoding method thereof, and printed publication to which the two-dimensional code is applied
CN101088100A (en) Mixed code, and method and apparatus for generating the same, and method and appratus for decoding the same
EP2864958A2 (en) Image mask providing a machine-readable data matrix code
CN1983299A (en) System and method for extracting invisible information
CN1953362A (en) A method and installation to embed pattern in two-dimensional bar code
CN111046996B (en) Color QR code generation and identification method
US20020180995A1 (en) Detecting halftone modulations embedded in an image
CN109902530B (en) Two-dimensional code decoding method and terminal
CN107247985A (en) Coding, positioning and the recognition methods of New Two Dimensional code
CN110222800A (en) A kind of two-dimension code anti-counterfeit mark image and its recognition methods based on dot matrix
CN101359360A (en) Graphics context fused electronic ticket coding/decoding method
CN108154544A (en) A kind of method and apparatus of overlaying character on the image
JPH10261041A (en) Method for locating position of mechanically readable marker in image
CN110020702A (en) A kind of two dimensional code and its generation method
CN110175661A (en) The generation method and device in two dimensional code sharing path

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