Cigarette case two-dimensional code generation method and system

By receiving production task information in the tobacco industry, determining the inkjet equipment and timelines, and generating and detecting the cigarette box QR code, the problems of low quality and low recognition rate of the cigarette box QR code are solved, and the accuracy of the QR code is achieved and reliability improves product traceability and safety.

CN119397291APending Publication Date: 2025-02-07HUBEI CHINA TOBACCO INDUSTRY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411483187.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

When spraying the QR code of cigarette boxes, the technology is immature, resulting in low quality of QR codes and low recognition rate. There may be problems such that the QR code identification results do not correspond to the actual product, affecting sales and quality traceability.

Method used

By receiving production task information, the inkjet coding equipment and inkjet coding requirements are determined, the inkjet coding timeline is determined based on the equipment parameters, and the cigarette box serial number is determined based on the timeline. Generate the QR code of the target cigarette box based on the timeline, detect the image information of the QR code, determine whether its level meets the production task requirements, and compare the task code, time code and cigarette box serial number to ensure data accuracy.

Benefits of technology

Ensure that the QR code on the cigarette box not only meets the physical printing quality, but also has accurate data content, improves the reliability of the production process, and enhances the traceability and safety of the product.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119397291A_ABST
    Figure CN119397291A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a cigarette case two-dimensional code generation method and system, and the method comprises the steps: receiving production task information, determining code spraying equipment and code spraying requirements based on the production task information, determining a code spraying time axis in combination with the production task information and equipment parameters of the code spraying equipment, and determining a cigarette case serial number according to the code spraying time axis; determining a task code and a time code of the target cigarette case based on the code spraying time axis, and generating a two-dimensional code of the target cigarette case in combination with code spraying requirements; detecting the image information of the two-dimensional code, determining the two-dimensional code grade of the two-dimensional code based on the image information, and judging whether the two-dimensional code grade meets the grade requirement of the production task information; and when the grade of the two-dimensional code meets the grade requirement of the production task information, extracting a to-be-detected code from the two-dimensional code, obtaining a task code and a time code of the to-be-detected code, comparing the task code and the time code with the corresponding cigarette case serial number, and when the comparison result is matched, outputting a result that the two-dimensional code is qualified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of two-dimensional codes, and in particular to a method and system for generating a two-dimensional code for a cigarette box. Background Art

[0002] At present, with the development of big data technology, QR code has gradually become an essential part of every link of commodity production, storage, and sales, which can provide convenience for commodity anti-counterfeiting, traceability, information provision, etc. Specifically in the tobacco industry, QR code technology runs through every step of quality inspection, transportation and delivery, product packaging, and market launch, providing data support for the production, management, and sales of cigarettes.

[0003] However, the current technology used in the tobacco industry for spraying QR codes is not mature, and the quality of the QR codes sprayed on cigarette boxes is not high, which leads to a low recognition rate of QR codes in the later stage. In addition, when spraying the QR code, the recognition result of the QR code may not correspond to the actual product, which affects the subsequent cigarette sales process and makes it difficult to trace the quality. Summary of the invention

[0004] In view of the problems existing in the prior art, an embodiment of the present invention provides a method and system for generating a cigarette box QR code.

[0005] An embodiment of the present invention provides a method for generating a cigarette box QR code, the method comprising: Receive production task information, determine the inkjet equipment and inkjet requirements based on the production task information, determine the inkjet timeline in combination with the production task information and equipment parameters of the inkjet equipment, and determine the cigarette box serial number according to the inkjet timeline; Based on the coding time axis, determine the task code and time code of the target cigarette box, and generate the QR code of the target cigarette box in combination with the coding requirements; Detecting image information of the two-dimensional code, determining the two-dimensional code level of the two-dimensional code based on the image information, and judging whether the two-dimensional code level meets the level requirement of the production task information; When the level of the two-dimensional code meets the level requirements of the production task information, the code to be checked is extracted from the two-dimensional code, the task code and time code of the code to be checked are obtained, and compared with the corresponding cigarette box serial number. When the comparison results match, the qualified result of the two-dimensional code is output.

[0006] In one embodiment, the method further comprises: Determine the number of random inspections of the QR code based on the level requirement, select the code to be inspected according to the number of random inspections, scan the code to be inspected, and obtain the task code and time code of the code to be inspected; Comparing the task code with the cigarette box serial number, and judging whether there is a production batch or production line error for the cigarette box corresponding to the code to be checked based on the comparison result; The time code and the cigarette box serial number are compared, and based on the comparison result, it is determined whether there is a string code or a garbled code in the cigarette box corresponding to the code to be checked.

[0007] In one embodiment, the method further comprises: When the task code and time code of the code to be checked do not match the comparison result of the corresponding cigarette box serial number, other two-dimensional codes within a preset range before and after the code to be checked on the coding time axis are obtained; Detecting whether the task code and time code of the other two-dimensional code match the corresponding cigarette box serial number; When the comparison result is mismatch, the preset range is expanded until the task code and time code of the other two-dimensional code are detected and match the corresponding cigarette box serial number, and the two-dimensional code and the corresponding cigarette box serial number whose comparison result is mismatched within the preset range are output.

[0008] In one embodiment, the coding requirements include: Error correction level, font, font size, QR code size, position, resolution, and dryness.

[0009] In one embodiment, the image information includes: Decoding, symbol contrast, print increment, axial non-uniformity, and unused error correction parameters.

[0010] An embodiment of the present invention provides a system for generating a cigarette box two-dimensional code, the system comprising: A receiving module, used to receive production task information, determine the coding equipment and coding requirements based on the production task information, determine the coding timeline in combination with the production task information and equipment parameters of the coding equipment, and determine the cigarette box serial number according to the coding timeline; A generating module, used to determine the task code and time code of the target cigarette box based on the coding time axis, and generate a QR code of the target cigarette box in combination with the coding requirements; A detection module, used to detect the image information of the two-dimensional code, determine the two-dimensional code level of the two-dimensional code based on the image information, and judge whether the two-dimensional code level meets the level requirement of the production task information; The comparison module is used to extract the code to be checked from the QR code when the level of the QR code meets the level requirements of the production task information, obtain the task code and time code of the code to be checked, and compare them with the corresponding cigarette box serial number. When the comparison results match, the result that the QR code is qualified is output.

[0011] In one embodiment, the system further comprises: A sampling inspection module, used to determine the number of sampling inspections of the two-dimensional code based on the level requirement, screen the code to be inspected according to the number of sampling inspections, scan the code to be inspected, and obtain the task code and time code of the code to be inspected; A task code module, used to compare the task code with the cigarette box serial number, and determine whether there is a production batch or production line error in the cigarette box corresponding to the code to be checked based on the comparison result; The time code module is used to compare the time code with the cigarette box serial number, and determine whether the cigarette box corresponding to the code to be checked has a string code or a garbled code based on the comparison result. In one embodiment, the system further comprises: The second acquisition module is used to acquire other two-dimensional codes within a preset range before and after the code to be checked on the coding time axis when the task code and the time code of the code to be checked do not match the comparison result of the corresponding cigarette box serial number; A second detection module is used to detect whether the task code and time code of the other two-dimensional code match the corresponding cigarette box serial number; The output module is used to expand the preset range when the comparison result is mismatched until the task code and time code of the other two-dimensional code are detected and match the corresponding cigarette box serial number, and output the two-dimensional code and the corresponding cigarette box serial number whose comparison result is mismatched within the preset range.

[0012] An embodiment of the present invention provides an electronic device, including a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method described in one or more embodiments.

[0013] An embodiment of the present invention provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for generating a two-dimensional code of a cigarette box are implemented.

[0014] In view of the above, in one or more embodiments of the present specification, the production task information is received, the coding equipment and coding requirements are determined based on the production task information, the coding timeline is determined in combination with the equipment parameters of the production task information and the coding equipment, and the cigarette box serial number is determined according to the coding timeline; based on the coding timeline, the task code and time code of the target cigarette box are determined, and the QR code of the target cigarette box is generated in combination with the coding requirements; the image information of the QR code is detected, the QR code level of the QR code is determined based on the image information, and it is judged whether the QR code level meets the level requirements of the production task information; when the QR code level meets the level requirements of the production task information, the code to be checked is extracted from the QR code, the task code and time code of the code to be checked are obtained, and the code is compared with the corresponding cigarette box serial number, and when the comparison results match, the qualified result of the QR code is output. In this way, it can be ensured that the QR code on the cigarette box is not only up to standard in terms of physical printing quality, but also accurate in the data content of the cigarette. This not only improves the reliability of the production process, but also enhances the traceability and safety of the product. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 This is a flow chart of a method for generating a cigarette box QR code provided in one embodiment of this specification.

[0017] Figure 2 It is a structural schematic diagram of a system for generating a cigarette box QR code provided in one embodiment of this specification.

[0018] Figure 3 It is a structural schematic diagram of an electronic device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0019] The subject matter described herein will now be discussed with reference to example embodiments. It should be understood that the discussion of these embodiments is only to enable those skilled in the art to better understand and implement the subject matter described herein, and is not a limitation of the scope of protection, applicability or examples set forth in the claims. The functions and arrangements of the elements discussed can be changed without departing from the scope of protection of the contents of this specification. Various examples can omit, replace or add various processes or components as needed. For example, the described method can be performed in an order different from the described order, and various steps can be added, omitted or combined. In addition, the features described relative to some examples can also be combined in other examples.

[0020] As used herein, the term "including" and its variations represent open terms, meaning "including but not limited to". The term "based on" means "based at least in part on". The terms "one embodiment" and "an embodiment" mean "at least one embodiment". The term "another embodiment" means "at least one other embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other definitions may be included below, whether explicit or implicit. Unless the context clearly indicates otherwise, the definition of a term is consistent throughout the specification.

[0021] like Figure 1 As shown, an embodiment of the present invention provides a method for generating a cigarette box QR code, comprising: Step S101, receiving production task information, determining the coding equipment and coding requirements based on the production task information, determining the coding timeline in combination with the production task information and equipment parameters of the coding equipment, and determining the cigarette box serial number according to the coding timeline.

[0022] Specifically, the production task information of cigarettes is received, wherein the production task information may include cigarette type, cigarette quantity, batch information, production date, etc., and the inkjet device and inkjet requirements of the QR code can be further determined according to the production task information, that is, according to the specific requirements of the production task information, such as (such as output, speed, accuracy, etc.), and the current task operation status of the inkjet device, the appropriate inkjet device is selected. Different inkjet devices may have different performance characteristics, such as different inkjet speeds, resolutions, inkjet widths, paper feed paper sizes, etc. The inkjet requirements may include error correction levels, including data content, etc., wherein the error correction level is an error correction capability that can be divided into four levels, from the lowest to the highest, namely L (about 7%), M (about 15%), Q (about 25%) and H (about 30%). The error correction level indicates that part of the content of the QR code is damaged or blocked, as long as it does not exceed the set error correction tolerance, such as a QR code with an L error correction level, as long as the damaged or blocked part does not exceed 7%, the original data can still be restored and the QR code data can be scanned and read. According to the production batch arrangement of the product in the production task information and the coding speed in the equipment parameters of the coding equipment, the coding time axis of the product is determined, wherein the coding time axis refers to the coding sequence time axis corresponding to the product. For example, in a batch of production task information, there are 3 batches of Class A cigarettes, A1, A2, A3, and 2 batches of Class B cigarettes, B1, B2. According to the equipment parameters, the coding time is designated from 2 o'clock to 4 o'clock, and the corresponding coding time axis can be: 2 o'clock-A1, 2:20-A2, 2:40-A3, 3 o'clock-B1, 3:30-B2. In addition, on this basis, each batch of cigarettes can be further divided into the coding time axis. For example, for the first batch of Class A cigarettes, which contains 1,000 packs of cigarettes, each pack, or every 10 packs of cigarettes, can be divided into the corresponding time axis, thereby realizing the reasonable planning of each stage in the production process. After dividing the time axis, the cigarette box serial numbers can be further divided. For example, when dividing the time axis of every 10 packs of cigarettes in the first batch of Class A cigarettes, the corresponding serial numbers can also be divided according to the same rules. For example, the serial numbers of the first batch of Class A cigarettes can be: A1-1 (first 10 packs), A1-2 (first 20 packs), A1-3 (first 30 packs)..., and the serial numbers of other batches can be deduced in the same way.

[0023] Step S102, based on the coding time axis, determine the task code and time code of the target cigarette box, and generate the QR code of the target cigarette box in combination with the coding requirement.

[0024] Specifically, based on the coding time axis of each batch of cigarettes in the production task information, the target cigarette boxes, that is, the task code and time code that should be sprayed on the cigarette boxes of each batch of cigarettes are determined, wherein the task code is a batch identifier of the cigarettes, which is used to identify the production information of the cigarettes such as the production batch and production line number, and the time code is a time identifier of the cigarettes, which is used to identify the corresponding production timestamp on the time axis when the cigarettes are produced. Combined with the coding requirements, such as the error correction level, the corresponding QR code is generated. The QR code generation steps can be specifically divided into four steps: data combination, encoding rules, error correction level, and QR code generation, including: 1. Data combination, combining the task code, time code and any other necessary information (such as relevant information of the cigarettes, serial number, anti-counterfeiting code, etc.) to form a complete data set; 2. According to the standard encoding rules of the QR code, converting the data set into a form that can be represented by the QR code; 3. According to the error correction level, adding appropriate redundant information to the data set to improve fault tolerance; 4. QR code generation, using the QR code generation software tool, the above data and parameters are used to generate an actual QR code image. In the process of generating the QR code, the physical requirements for spraying the QR code on the cigarette box can also be obtained, such as font, font size, QR code size, position, resolution, dryness, etc., so as to generate the QR code of the target cigarette box.

[0025] Step S103, detecting the image information of the two-dimensional code, determining the two-dimensional code level of the two-dimensional code based on the image information, and judging whether the two-dimensional code level meets the level requirement of the production task information.

[0026] Specifically, the image information of the two-dimensional code is obtained through an image acquisition device, the image information is analyzed, and the two-dimensional code level of the two-dimensional code is determined. The evaluation of the two-dimensional code level can be based on the ISO / IEC15415 standard or other relevant standards, and a series of parameters of the two-dimensional code image can be evaluated, including but not limited to decoding ability, symbol contrast, printing increment (modulation), axial inconsistency, and unused error correction capability. The two-dimensional code level standard can be divided into 5 levels from high to low, namely, A, B, C, D, and F. Decoding capability means that the entire data information can be successfully decoded, then the decoding is passed, and the decoding level is A, otherwise it is F; symbol contrast is used to measure the contrast between black modules and white modules. Good contrast helps improve reading speed and accuracy; printing increment measures the change in reflectivity of a single module in the QR code. Ideally, all black modules should have the same dark color, and white modules should also be uniformly bright; axial inconsistency reflects the consistency of the QR code pattern in the horizontal or vertical direction; unused error correction capability indicates the gap between the actual error correction capability used and the level set during design. If the QR code does not fully utilize its error correction function, it may indicate a potential problem. Evaluate the QR code level corresponding to the QR code according to the parameters, and judge whether the QR code level meets the level requirements of the production task information. In the above example, for general production task information, the four levels of ABCD are qualified levels, and the F level is unqualified.

[0027] Step S104, when the level of the two-dimensional code meets the level requirements of the production task information, extract the code to be checked from the two-dimensional code, obtain the task code and time code of the code to be checked, and compare them with the corresponding cigarette box serial number. When the comparison results match, output the result that the two-dimensional code is qualified.

[0028] Specifically, when the quality level of the QR code meets the level requirements of the production task information, it means that the QR code meets the physical printing requirements, and the data in the QR code needs to be verified. Among them, the object of verification can be extracted from the QR code, that is, the QR code is sampled, and the task code and time code of the sampled target are compared with the corresponding cigarette box serial number, wherein the number of samples can be determined according to the level requirements of the production task information. When the level requirements are higher, the more samples are sampled. The comparison includes two parts. One is to compare the task code with the cigarette box serial number, that is, to compare the task batch and production line in the task code with the cigarette box serial number on the spraying timeline, so as to determine whether there are problems with the production batch and production line in the cigarette production process. By comparing the task code, it can be confirmed whether the task information in the QR code is consistent with the task information recorded by the system. This helps to ensure that the QR code on each cigarette box correctly reflects the production batch and production line to which it belongs. Secondly, by comparing the time code with the cigarette box serial number, it can be determined whether the cigarettes were sprayed according to the spraying timeline during production. If they are not sprayed according to the spraying timeline, there may be time disorders on the time code such as string codes or garbled codes. By comparing the time code, it can be confirmed whether the time information in the QR code is consistent with the time information recorded by the system. This helps to ensure that the QR code on each cigarette box correctly reflects its production time and is produced according to the expected timeline. When the task code and time code of the sampling target are the same as the information in the corresponding cigarette box serial number, it means that there is no problem with the QR code data, and the QR code is output as qualified.

[0029] In addition, when the task code and time code of the code to be checked do not match the comparison result of the corresponding cigarette box serial number, obtain other two-dimensional codes within the preset range before and after the code to be checked on the coding time axis, wherein the preset range can be set according to the production task information, such as 5 minutes before and after, when the code to be checked does not match the cigarette box serial number, obtain all the two-dimensional codes of the code to be checked on the coding time axis before and after 5 minutes for further detection, when the comparison result is still that all the two-dimensional codes of 5 minutes before and after do not match, continue to expand the preset range, such as doubling to 10 minutes, and then detect again. Until the task code and time code of other two-dimensional codes are detected, they match the corresponding cigarette box serial number. The match at this time is that before and after the spraying time axis, there are task codes and time codes of other two-dimensional codes, which match the corresponding cigarette box serial number. Stop further detection at this time, and output the unmatched two-dimensional code and the corresponding cigarette box serial number with the comparison result within the preset range, so that the relevant staff can carry out subsequent maintenance work.

[0030] A method for generating a two-dimensional code for a cigarette box provided by an embodiment of the present invention receives production task information, determines the coding equipment and coding requirements based on the production task information, determines the coding timeline in combination with the equipment parameters of the production task information and the coding equipment, and determines the cigarette box serial number according to the coding timeline; determines the task code and time code of the target cigarette box based on the coding timeline, and generates the two-dimensional code of the target cigarette box in combination with the coding requirements; detects the image information of the two-dimensional code, determines the two-dimensional code level of the two-dimensional code based on the image information, and determines whether the two-dimensional code level meets the level requirements of the production task information; when the two-dimensional code level meets the level requirements of the production task information, extracts the code to be checked from the two-dimensional code, obtains the task code and time code of the code to be checked, and compares them with the corresponding cigarette box serial number, and when the comparison results match, outputs the result of the qualified two-dimensional code. In this way, it can be ensured that the two-dimensional code on the cigarette box is not only up to standard in terms of physical printing quality, but also accurate in terms of the data content of the cigarette. This not only improves the reliability of the production process, but also enhances the traceability and safety of the product.

[0031] See also Figure 2 , Figure 2 Schematic diagram of a system for generating a cigarette box QR code according to an embodiment of the present application. Figure 2 As shown, the system comprises: The receiving module S201 is used to receive production task information, determine the coding equipment and coding requirements based on the production task information, determine the coding timeline in combination with the production task information and the equipment parameters of the coding equipment, and determine the cigarette box serial number according to the coding timeline; A generating module S202 is used to determine the task code and time code of the target cigarette box based on the coding time axis, and generate a QR code of the target cigarette box in combination with the coding requirements; A detection module S203 is used to detect the image information of the two-dimensional code, determine the two-dimensional code level of the two-dimensional code based on the image information, and judge whether the two-dimensional code level meets the level requirement of the production task information; The comparison module S204 is used to extract the code to be checked from the QR code when the level of the QR code meets the level requirements of the production task information, obtain the task code and time code of the code to be checked, and compare them with the corresponding cigarette box serial number. When the comparison results match, the result that the QR code is qualified is output.

[0032] In another embodiment, a system for generating a cigarette box QR code further includes: A sampling inspection module, used to determine the number of sampling inspections of the two-dimensional code based on the level requirement, screen the code to be inspected according to the number of sampling inspections, scan the code to be inspected, and obtain the task code and time code of the code to be inspected; A task code module, used to compare the task code with the cigarette box serial number, and determine whether there is a production batch or production line error in the cigarette box corresponding to the code to be checked based on the comparison result; The time code module is used to compare the time code with the cigarette box serial number, and determine whether there is a string code or a garbled code in the cigarette box corresponding to the code to be checked based on the comparison result.

[0033] In another embodiment, a system for generating a cigarette box QR code further includes: The second acquisition module is used to acquire other two-dimensional codes within a preset range before and after the code to be checked on the coding time axis when the task code and the time code of the code to be checked do not match the comparison result of the corresponding cigarette box serial number; A second detection module is used to detect whether the task code and time code of the other two-dimensional code match the corresponding cigarette box serial number; The output module is used to expand the preset range when the comparison result is mismatched until the task code and time code of the other two-dimensional code are detected and match the corresponding cigarette box serial number, and output the two-dimensional code and the corresponding cigarette box serial number whose comparison result is mismatched within the preset range.

[0034] Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present application can be implemented with the help of software and / or hardware. The "unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.

[0035] Each processing unit and / or module of the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.

[0036] See also Figure 3 , which shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, the electronic device can be used to implement Figure 1 The method in the embodiment shown. Figure 3 As shown, the electronic device 300 may include: at least one processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .

[0037] The communication bus 302 is used to realize the connection and communication between these components.

[0038] The user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.

[0039] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0040] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts of the entire electronic device 300, and executes various functions and processes data of the terminal 300 by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the processor 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (ProgrammableLogic Array, PLA). The processor 301 can integrate one or a combination of a processor (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 301, and it can be implemented separately through a chip.

[0041] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may optionally be at least one storage device located away from the aforementioned processor 301. As Figure 3 As shown, the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.

[0042] exist Figure 3 In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 301 can be used to call the interactive application based on image generation stored in the memory 305, and specifically perform the following operations: receive production task information, determine the inkjet equipment and inkjet requirements based on the production task information, determine the inkjet timeline in combination with the production task information and the equipment parameters of the inkjet equipment, and determine the cigarette box serial number according to the inkjet timeline; determine the task code and time code of the target cigarette box based on the inkjet timeline, and generate the QR code of the target cigarette box in combination with the inkjet requirements; detect the image information of the QR code, determine the QR code level of the QR code based on the image information, and judge whether the QR code level meets the level requirements of the production task information; when the QR code level meets the level requirements of the production task information, extract the code to be checked from the QR code, obtain the task code and time code of the code to be checked, and compare them with the corresponding cigarette box serial number, and when the comparison results match, output the result that the QR code is qualified.

[0043] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0044] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0045] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0046] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0047] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0048] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0049] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.

[0050] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct related hardware. The program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0051] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

Claims

1. A method for generating a cigarette box QR code, the method comprising: Receive production task information, determine the inkjet equipment and inkjet requirements based on the production task information, determine the inkjet timeline in combination with the production task information and equipment parameters of the inkjet equipment, and determine the cigarette box serial number according to the inkjet timeline; Based on the coding time axis, determine the task code and time code of the target cigarette box, and generate the QR code of the target cigarette box in combination with the coding requirements; Detecting image information of the two-dimensional code, determining the two-dimensional code level of the two-dimensional code based on the image information, and judging whether the two-dimensional code level meets the level requirement of the production task information; When the level of the two-dimensional code meets the level requirements of the production task information, the code to be checked is extracted from the two-dimensional code, the task code and time code of the code to be checked are obtained, and compared with the corresponding cigarette box serial number. When the comparison results match, the qualified result of the two-dimensional code is output.

2. The method according to claim 1, characterized in that: The extracting the code to be checked from the two-dimensional code, obtaining the task code and time code of the code to be checked, and comparing them with the corresponding cigarette box serial number, includes: Determine the number of random inspections of the QR code based on the level requirement, select the code to be inspected according to the number of random inspections, scan the code to be inspected, and obtain the task code and time code of the code to be inspected; Comparing the task code with the cigarette box serial number, and judging whether there is a production batch or production line error for the cigarette box corresponding to the code to be checked based on the comparison result; The time code and the cigarette box serial number are compared, and based on the comparison result, it is determined whether there is a string code or a garbled code in the cigarette box corresponding to the code to be checked.

3. The method according to claim 1, characterized in that: The method further comprises: When the task code and time code of the code to be checked do not match the comparison result of the corresponding cigarette box serial number, other two-dimensional codes within a preset range before and after the code to be checked on the coding time axis are obtained; Detecting whether the task code and time code of the other two-dimensional code match the corresponding cigarette box serial number; When the comparison result is mismatch, the preset range is expanded until the task code and time code of the other two-dimensional code are detected and match the corresponding cigarette box serial number, and the two-dimensional code and the corresponding cigarette box serial number whose comparison result is mismatched within the preset range are output.

4. The method according to claim 1, characterized in that The coding requirements include: Error correction level, font, font size, QR code size, position, resolution, and dryness.

5. The method according to claim 1, characterized in that: The image information includes: Decoding, symbol contrast, print increment, axial non-uniformity, and unused error correction parameters.

6. A system for generating a cigarette box QR code, characterized in that: The system comprises: A receiving module, used to receive production task information, determine the coding equipment and coding requirements based on the production task information, determine the coding timeline in combination with the production task information and equipment parameters of the coding equipment, and determine the cigarette box serial number according to the coding timeline; A generating module, used to determine the task code and time code of the target cigarette box based on the coding time axis, and generate a QR code of the target cigarette box in combination with the coding requirements; A detection module, used to detect the image information of the two-dimensional code, determine the two-dimensional code level of the two-dimensional code based on the image information, and judge whether the two-dimensional code level meets the level requirement of the production task information; The comparison module is used to extract the code to be checked from the QR code when the level of the QR code meets the level requirements of the production task information, obtain the task code and time code of the code to be checked, and compare them with the corresponding cigarette box serial number. When the comparison results match, the result that the QR code is qualified is output.

7. The system according to claim 6, characterized in that The system further comprises: A sampling inspection module, used to determine the number of sampling inspections of the two-dimensional code based on the level requirement, screen the code to be inspected according to the number of sampling inspections, scan the code to be inspected, and obtain the task code and time code of the code to be inspected; A task code module, used to compare the task code with the cigarette box serial number, and determine whether there is a production batch or production line error in the cigarette box corresponding to the code to be checked based on the comparison result; The time code module is used to compare the time code with the cigarette box serial number, and determine whether there is a string code or a garbled code in the cigarette box corresponding to the code to be checked based on the comparison result.

8. The system according to claim 6, characterized in that The system further comprises: The second acquisition module is used to acquire other two-dimensional codes within a preset range before and after the code to be checked on the coding time axis when the task code and the time code of the code to be checked do not match the comparison result of the corresponding cigarette box serial number; A second detection module is used to detect whether the task code and time code of the other two-dimensional code match the corresponding cigarette box serial number; The output module is used to expand the preset range when the comparison result is mismatched until the task code and time code of the other two-dimensional code are detected and match the corresponding cigarette box serial number, and output the two-dimensional code and the corresponding cigarette box serial number whose comparison result is mismatched within the preset range.

9. An electronic device comprising a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method according to any one of claims 1 to 5.

10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 5.