Tobacco package error correction coding method and device with visual and encryption double check for tobacco logistics
By employing a dual-verification method for cigarette pack error correction and coding in tobacco logistics, and utilizing high-speed vision and ultraviolet invisible coding technology, the problem of cross-contamination and cross-departmentalization of cigarette packs during the circulation process has been solved, improving the accuracy of outbound delivery and the efficiency of verification, and reducing customer complaints and economic losses.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- 湖南易码智能科技有限公司
- Filing Date
- 2026-05-12
- Publication Date
- 2026-06-09
AI Technical Summary
In the final sorting, packaging and distribution stages of tobacco commercial logistics, existing technologies are unable to effectively solve problems such as cross-contamination, cross-departmentalization, and dropping of cigarette packs during physical circulation, resulting in the separation of data and physical goods, affecting the accuracy of outbound delivery and customer satisfaction. Furthermore, existing error correction methods are inefficient and unreliable.
A tobacco pack error correction and coding method using dual verification of visual and encrypted data in tobacco logistics is adopted. High-speed visual scanning technology is used to read the QR code of the cigarette pack and print the ultraviolet invisible code. Combined with ultraviolet visual recognition technology, dual error correction is performed before the cigarette pack leaves the warehouse to ensure that the information of the cigarette pack matches the order information and prevent incorrect cigarette packs from being stacked or loaded.
It achieves precise physical and data-based dual error prevention, reduces outbound errors, improves verification efficiency and reliability, reduces customer complaints and economic losses, and reduces the occurrence of "code-swapping" incidents.
Smart Images

Figure CN122174854A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of tobacco processing and intelligent identification technology, and particularly relates to a method and device for error correction coding of tobacco packages using visual and encrypted dual verification in tobacco logistics. Background Technology
[0002] Currently, in the final sorting, packaging, and distribution stages of tobacco commercial logistics, especially in the automated packaging and consolidation of cigarette cartons, there are still several prominent pain points that are difficult to eradicate using existing conventional technologies. These problems not only directly affect the accuracy of outbound shipments and customer satisfaction, but also pose a serious challenge to the accuracy and authenticity of data in the final execution stage of the constructed full-chain data element collection and monitoring system based on cigarette carton QR codes.
[0003] The specific performance and limitations of existing solutions are as follows: With the tobacco industry having fully implemented the QR code management system for cigarette cartons, although the QR codes for cigarette cartons have been bound to the retailer's information before packaging, in actual physical circulation, during the process of transferring cigarettes from the sorting line to the cigarette packaging machine, the physical positions of cigarette cartons between different order units ("households") are easily interchanged or confused due to mechanical structure wear, changes in the posture of the cigarette cartons, or gaps in process connections. This results in "cigarette swapping" or "household swapping," leading to the separation of system data from physical goods. When packaging orders containing non-standard cigarettes, due to the different specifications and random shapes of the cigarettes, they are prone to misalignment, missing or extra cigarettes before entering the packaging machine due to inaccurate gripping and displacement. Existing mechanical or photoelectric detection methods based on fixed templates are not capable of adapting to such non-standard situations. For orders with identical cigarette packs but different retailer information, if a physical misalignment occurs during the high-speed automated packaging process, existing technologies cannot effectively distinguish and correct it before and after packaging, which can easily lead to "cigarette packs being sold to different retailers". Due to its hidden nature, this problem has become a major challenge for customer complaints, order recalls, and internal error tracing. During the packing machine's cigarette clamping mechanism, stacking or pushing mechanism, transfer mechanism, and subsequent heat shrink film shrinkage process, there is a risk that cigarette packs may fall off the conveyor line or packaging module. If the fallen cigarette packs are not detected and returned in time, it will directly lead to missing cigarette packs in the finished cigarette pack, resulting in packaging errors. At the same time, loose or deformed cigarette packs may also cause cigarette packs to fall off when passing through the heat shrink oven.
[0004] Currently, common industry responses to the aforementioned pain points mainly include: Verification via QR code on cigarette packs: Re-read the QR code on the front or back of the packaging; however, due to the plastic film covering the cigarette packs, the diversity of colors, sizes, reflections, and refractions of the cigarette packs can seriously interfere with the scanning success rate, resulting in unstable recognition rates. Deploy general visual inspection: Perform package shape inspection during or at the end of the packaging process; however, due to factors such as the diversity of cigarette colors, size differences, reflection, refraction, and optical interference from plastic film packaging, the accuracy of judging whether the quantity and specifications of the cigarettes inside are correct is limited, and the false alarm and false alarm rates are high. Manual review: As a last resort, it is inefficient, time-consuming and labor-intensive, and is affected by visual fatigue and concentration of personnel, making it difficult to achieve a continuous and reliable 100% accuracy rate. In summary, the existing technology system lacks a precise, real-time, and interference-resistant verification and error prevention mechanism at the critical stage of packaging formation. This means that there is still a risk of discrepancies between the "one item, one code" data layer and the "goods order consistency" physical layer, and the risk of quality problems and customer complaints has not been fundamentally eliminated.
[0005] Furthermore, traditional labeling operations require continuous consumption of consumables such as label paper and ribbon, and label residues affect the clean recycling of plastic film, presenting a dual bottleneck in terms of cost control and green recycling. Therefore, relying on key technologies such as multi-level error correction, intelligent coding, and real-time data association to build an intelligent and traceable "strip-package-household" precise management and control system has become a crucial link in solving current management challenges and moving towards smart logistics. Summary of the Invention
[0006] To address the aforementioned technical problems, this invention provides a method and apparatus for error correction coding of tobacco packages using both visual and encrypted verification in tobacco logistics.
[0007] The technical solution adopted in this invention is: Firstly, a method for error correction coding of tobacco packages using both visual and encrypted verification in tobacco logistics is provided, including: Before the cigarette packs enter the cigarette packaging machine, the QR codes on the cigarette packs are read using high-speed visual scanning technology. The system determines whether the cigarette pack's QR code matches the retailer's order information issued by the cigarette pack sorting system. If the order does not match the retailer's order information, the first level of error correction information will be sent to the cigarette sorting system. If the order information matches the retailer's order information, the QR code of the cigarette pack will be bound to the retailer's order information in real time and saved to the local database. At the same time, a unique ultraviolet invisible code will be printed on the cigarette pack based on the QR code. After the cigarette packaging machine completes the cigarette wrapping film packaging, and before stacking or loading, the ultraviolet invisible code of the cigarette pack is read by ultraviolet visual recognition technology. Decode the UV invisible code to obtain the corresponding original order information, and determine whether the cigarette pack has passed verification based on the original order information and the expected information of the current outbound batch; If the cigarette pack fails verification, a second error correction message is issued as a warning to prevent the cigarette packs from being stacked or loaded onto a vehicle.
[0008] Furthermore, high-speed visual scanning technology is used to read the QR codes on the cigarette cartons, including: High-speed vision cameras installed on the left and right sides of the cigarette belt conveyor scan the cigarettes conveyed on the belt conveyor before they enter the cigarette packaging machine to obtain QR code images; The QR code for the cigarette pack can be read from the QR code image.
[0009] Furthermore, the system determines whether the QR code on the cigarette pack matches the retailer's order information issued by the cigarette pack sorting system, including: Decode the QR code on the cigarette pack to obtain the corresponding cigarette pack information, which includes cigarette brand information and cigarette specification information; Obtain retailer order information from the cigarette sorting system. Retailer order information includes the retailer's required brand information and required specifications. The information on the cigarette cartons was compared with the retailer's order information; If the cigarette brand information is the same as the required brand information, and the cigarette specification information is the same as the required specification information, then it is determined that the order information matches the retailer's order information. If the cigarette brand information does not match the required brand information and / or the cigarette specification information does not match the required specification information, then it is determined that the order does not meet the retailer's order information.
[0010] Furthermore, the first-level error correction information is fed back to the cigarette sorting system, including: The first-level correction information for identifying cigarette packs that do not conform to the retailer's order information includes incorrect cigarette brand and / or incorrect cigarette specifications; The first-level error correction information is sent to the cigarette sorting system, enabling the system to correct errors in cigarette brand and / or cigarette specification based on this information.
[0011] Furthermore, the QR code on each pack of cigarettes is linked to the retailer's order information and saved to a local database in real time. Simultaneously, a unique ultraviolet invisible code is printed on each pack of cigarettes based on the QR code, including: The QR code of a pack of cigarettes is linked to the retailer's order information in real time to obtain a QR code-order binding association table; Save the QR code of the cigarette pack, retailer order information, and QR code-order binding association table to the local database; Based on the QR code of the cigarette pack, a unique ultraviolet invisible code is generated by combining a preset random code value generation algorithm. Ultraviolet invisible codes are sprayed onto the end face of cigarette packs using a fluorescent material spraying device.
[0012] Furthermore, ultraviolet visual recognition technology is used to read the ultraviolet invisible code of the cigarette pack, including: By using ultraviolet irradiation lamps installed on the cigarette pack conveyor line at the exit of the cigarette pack packaging machine, the cigarette packs are irradiated with ultraviolet light, causing the end face of the cigarette packs to show an invisible ultraviolet code. A high-speed vision camera installed on the tobacco pack conveyor line scans the ultraviolet-irradiated area of the tobacco pack to obtain a scanned image. Analyze the presence of ultraviolet patterns in scanned images using image recognition technology; If no ultraviolet pattern is found, it indicates that the fluorescent material spraying equipment is missing fluorescent material or has a spraying malfunction. If an ultraviolet pattern is present, the ultraviolet invisible code can be identified.
[0013] Furthermore, the UV invisible code is decoded to obtain the corresponding original order information. Based on the original order information and the expected information of the current outbound batch, it is determined whether the cigarette pack has passed verification, including: The ultraviolet invisible code is decoded according to a preset random code value generation algorithm to obtain the restored QR code; The corresponding retailer's order information is obtained by retrieving the restored QR code from the QR code-order binding association table in the local database and used as the original order information. Based on the original order information, the total number of cigarettes in each pack and the specifications of each pack are calculated. Determine the expected number of cigarettes and the expected cigarette specifications for each pack based on the expected information of the current outbound batch; Compare the total number of cigarettes and the cigarette varieties in all the cigarette packs with the expected number of cigarettes and the expected cigarette varieties; If the total number of cigarette cartons is the same as the expected number of cigarette cartons, and the cigarette pack specifications are the same as the expected cigarette pack specifications, then the cigarette pack verification is confirmed to be successful. If the total number of cigarette packs is different from the expected number of cigarette packs and / or the cigarette pack specifications are different from the expected cigarette pack specifications, then the cigarette pack verification is deemed unsuccessful.
[0014] Furthermore, a second layer of error correction information is issued as a warning, including: The second level of error correction information is determined when the cigarette pack verification fails. The second level of error correction information includes at least one of the following: the total number of cigarette packs is greater than the expected number of cigarette packs, the total number of cigarette packs is less than the expected number of cigarette packs, and the cigarette pack specifications are different from the expected cigarette pack specifications. A second error correction message is issued as a warning to prevent the cigarette packs from being stacked or loaded onto trucks.
[0015] Secondly, a tobacco pack error correction coding device with dual visual and encrypted verification for tobacco logistics is provided, including: The QR code recognition module is used to read the QR code on the cigarette packs using high-speed visual scanning technology before the cigarette packs enter the packaging machine. The first error correction module is used to determine whether the QR code on the cigarette pack matches the retailer's order information issued by the cigarette pack sorting system; if it does not match the retailer's order information, the first error correction information is sent back to the cigarette pack sorting system. The UV invisible code assignment module is used to bind the QR code of the cigarette pack with the retailer's order information in real time and save it to the local database if it matches the retailer's order information. At the same time, it prints a unique UV invisible code on the cigarette pack based on the QR code. The ultraviolet invisible code recognition module is used to read the ultraviolet invisible code of the cigarette packs after the cigarette packaging machine has finished packaging the cigarette wrapping film, and before palletizing or loading. The second error correction module is used to decode the ultraviolet invisible code to obtain the corresponding original order information. Based on the original order information and the expected information of the current outbound batch, it determines whether the cigarette pack has passed verification. If the cigarette pack fails verification, a second error correction message is issued to warn the user, thereby preventing the cigarette pack from being stacked or loaded onto the truck.
[0016] The beneficial effects achieved by this invention are as follows: Before the cigarette packs enter the packaging machine, high-speed visual scanning technology is used to read the QR codes on the cigarette packs. The QR codes are then used to determine if they match the retailer's order information issued by the cigarette sorting system. If they do not match, the first level of error correction information is sent to the cigarette sorting system. If they match, the QR codes and order information are linked and saved to the local database in real time. Simultaneously, a unique ultraviolet (UV) invisible code is printed on the cigarette packs based on the QR codes. After the packaging machine completes the wrapping, but before palletizing or loading, UV visual recognition technology reads the UV invisible codes on the cigarette packs. The UV invisible codes are decoded to obtain the corresponding original order information. Based on the original order information and the expected information for the current outbound batch, the verification of the cigarette pack is determined. If the verification fails, a second level of error correction information is issued as an alarm, preventing the packs from being palletized or loaded.
[0017] A dual error correction system was constructed, using the QR code of each pack of cigarettes as the "key" and the ultraviolet invisible code as the "lock," to achieve dual error prevention and anti-counterfeiting through both physical and data methods. Through dual error correction, especially the final verification of the "lock-key" between the ultraviolet invisible code and the QR code of the cigarette pack before the cigarette pack leaves the warehouse, the problem of "cross-contamination" of the cigarette pack can be accurately intercepted and located, ensuring that the quantity of cigarette packs matches the quantity before the cigarette pack leaves the warehouse, thereby reducing customer complaints and economic losses caused by cigarette pack recalls due to errors in the cigarette packs leaving the warehouse. By replacing manual verification with intelligent ultraviolet invisible code visual verification, the efficiency of cigarette pack verification can be significantly improved. Compared with manual verification, the error rate of outbound verification can be significantly reduced, thus improving the reliability of cigarette pack verification. The "lock-key" dual error correction mechanism requires that while "copying" the QR code of cigarette packs, the corresponding ultraviolet invisible code must also be copied. This increases the technical threshold and risk, technically eliminating the possibility of "passing off fakes as genuine" and reducing the occurrence of "copying" incidents. In summary, the tobacco logistics visual and encrypted dual-verification method and device for correcting and coding cigarette packs can reduce customer complaints and economic losses caused by cigarette pack recalls due to errors in outbound cigarette packs, significantly improve the verification efficiency of cigarette packs, and significantly reduce the outbound error rate compared with manual verification, thereby improving the reliability of cigarette pack verification and reducing the occurrence of "code swapping" incidents. Attached Figure Description
[0018] Figure 1 This is a flowchart of the tobacco pack error correction coding method of the present invention, which uses both visual and encrypted dual verification for tobacco logistics. Figure 2 This is a structural diagram of the tobacco pack error correction and coding device for dual verification of tobacco logistics vision and encryption according to the present invention. Detailed Implementation
[0019] The present invention will be further described below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and should not be used to limit the scope of protection of the present invention.
[0020] like Figure 1 As shown, this embodiment of the invention provides a tobacco pack error correction coding method with dual visual and encryption verification in tobacco logistics, including: 101. Before the cigarette packs enter the packaging machine, the QR codes on the cigarette packs are read using high-speed visual scanning technology; In this embodiment, before the cigarette packs enter the cigarette packaging machine, high-speed vision cameras installed on the left and right sides of the cigarette pack conveyor belt scan the cigarette packs before they enter the cigarette packaging machine to obtain QR code images; the QR code of the cigarette pack is then read from the QR code images using QR code recognition technology.
[0021] 102. Determine whether the QR code on the cigarette pack matches the retailer's order information issued by the cigarette pack sorting system; In this embodiment, in the prior art, QR codes record binary data through specific geometric shapes and actually contain a wide range of information types, mainly covering digital content such as text, URLs, contact information, payment vouchers, and multimedia links; In this invention, the information contained in the QR code of the cigarette pack is specifically the cigarette pack information. Therefore, by decoding the QR code of the cigarette pack, the corresponding cigarette pack information is obtained. The cigarette pack information includes cigarette brand information and cigarette specification information, and may also include information such as cigarette production date. The system obtains retailer order information from the cigarette sorting system. This information includes the retailer's required brand and specifications. The cigarette sorting system typically operates by having operators input instructions based on the retailer's requirements. However, sorting errors may occur during the process, hence the need for a first-level error correction mechanism for verification. The information on the cartons of cigarettes is compared with the retailer's order information. Specifically, the cigarette brand information and the required brand information are compared to see if they are the same, and the cigarette specifications information and the required specifications are compared to see if they are the same. If the cigarette brand information is the same as the required brand information, and the cigarette specification information is the same as the required specification information, then it is determined that it matches the retailer's order information, and step 104 needs to be executed. If the cigarette brand information is different from the required brand information and / or the cigarette specification information is different from the required specification information, it is determined that the order does not meet the retailer's order information, and step 103 needs to be executed.
[0022] 103, Feedback of the first level of error correction information to the cigarette sorting system; In this embodiment, if it is determined that the order information does not match the retailer's order information, there may be situations where the cigarette brand information is different from the required brand information, or the cigarette specification information is different from the required specification information, or both are different. Then it is necessary to determine the first-level correction information of the cigarette information that does not conform to the retailer's order information. The first-level correction information includes incorrect cigarette brand, incorrect cigarette specifications, or both incorrect cigarette brand and cigarette specifications. The first-level error correction information is sent to the cigarette sorting system, enabling the system to correct errors in cigarette brand and / or cigarette specification based on this information.
[0023] The specific error correction method can be that the cigarette sorting system immediately stops sorting upon receiving the first error correction information and sends a sorting error alarm to the operator. After the operator readjusts the cigarette sorting system, the sorting work can resume. Furthermore, incorrect cigarettes on the cigarette conveyor belt need to be removed manually or by a robotic arm to prevent them from entering the cigarette pack.
[0024] 104. The QR code of the cigarette pack is bound to the retailer's order information in real time and saved to the local database. At the same time, a unique ultraviolet invisible code is printed on the cigarette pack based on the QR code. In this embodiment, after confirming that the order information matches the retailer's order information, it indicates that the cigarette pack is correct and can be sent to the cigarette packaging machine. At this time, the QR code of the cigarette pack is bound to the retailer's order information in real time to obtain the QR code-order binding association table. Save the cigarette pack QR code, retailer order information, and QR code-order binding association table to a local database; this will allow you to easily retrieve retailer order information later using the QR code-order binding association table in the local database. Based on the QR code of the cigarette pack, a unique ultraviolet invisible code is generated by combining a preset random code value generation algorithm. The visible QR code of the cigarette pack is used as the plaintext, and after being encrypted by combining the preset random code value generation algorithm, a unique ultraviolet invisible code is generated. That is, each ultraviolet invisible code is a one-time and irreversible unique identifier. Thus, both the ultraviolet invisible code and the QR code of the cigarette pack uniquely point to the corresponding retailer's order information of the cigarette pack. Because the cigarette packs formed after the wrapping process by the cigarette pack packaging machine are covered with plastic film, and factors such as the variety of colors and sizes of the cigarettes inside, as well as the reflection and refraction, and the optical interference of the plastic film packaging, make it difficult to accurately judge the quantity and specifications of the cigarettes inside using traditional visual recognition technology. However, by using a fluorescent material spraying device to spray ultraviolet invisible codes on the end face of the cigarette packs, ultraviolet invisible codes can be formed that do not affect the wrapping packaging and are invisible to the naked eye.
[0025] 105. After the cigarette packaging machine completes the cigarette wrapping film packaging, and before stacking or loading, the ultraviolet invisible code of the cigarette pack in the cigarette pack is read by ultraviolet vision recognition technology. In this embodiment, after the end face of the cigarette pack is sprayed with ultraviolet invisible code, the cigarette pack is packaged with cigarette wrapping film on the cigarette pack packaging machine. Before the cigarette packs are stacked or loaded onto the truck, it is also necessary to verify whether there are any errors in the cigarette packs leaving the warehouse. By using ultraviolet irradiation lamps installed on the cigarette pack conveyor line at the exit of the cigarette pack packaging machine, the cigarette packs are irradiated with ultraviolet light. If the end face of the cigarette pack has been sprayed with ultraviolet invisible code, it will be revealed. A high-speed vision camera installed on the tobacco pack conveyor line scans the ultraviolet-irradiated area of the tobacco pack and captures the scanned image. Analyze the presence of ultraviolet patterns in scanned images using image recognition technology; If there is no ultraviolet pattern, that is, the end face of the cigarette pack is not coated with ultraviolet invisible code, then it can be determined that there is a lack of fluorescent material or a spraying malfunction in the fluorescent material spraying equipment. It is necessary to send a spraying alarm message to the fluorescent material spraying equipment, and the fluorescent material spraying equipment will perform self-inspection based on the spraying alarm message or the staff will carry out maintenance. If a UV pattern exists, the UV invisible code can be identified from the UV pattern.
[0026] 106. Decode the UV invisible code to obtain the corresponding original order information, and determine whether the cigarette pack has passed verification based on the original order information and the expected information of the current outbound batch; In this embodiment, given that the algorithm for generating the preset random code value is known, the decoding algorithm is also known, and the ultraviolet invisible code can be decoded to obtain the restored QR code. The QR code is used to retrieve the QR code-order binding association table in the local database, and the corresponding retailer order information is obtained as the original order information. Since all cartons of cigarettes have a corresponding ultraviolet invisible code, all cartons of cigarettes also have corresponding original order information. Based on the original order information, the total number of cigarettes in each pack and the specifications of each pack are calculated. Determine the expected number of cigarettes and the expected cigarette specifications for each pack based on the expected information of the current outbound batch; Because of the risks of cigarette packs falling off the conveyor line or packaging module during the cigarette packing machine's cigarette clamping mechanism, stacking or pushing, and transfer mechanisms, as well as during the subsequent heat shrink film shrinkage process, there is a risk of cigarette packs falling off the machine. This can result in missing cigarette packs in the finished cigarette pack, causing packaging errors. At the same time, loose or deformed cigarette packs may also cause cigarette packs to fall off when passing through the heat shrink oven, which can lead to errors in the total number and specifications of cigarette packs in the cigarette pack. Therefore, it is necessary to compare the total number and specifications of cigarette packs in the cigarette pack with the expected number and specifications. If the total number of cigarette cartons is the same as the expected number of cigarette cartons, and the cigarette pack specifications are the same as the expected cigarette pack specifications, then the cigarette pack verification is confirmed to be successful. If the total number of cigarette packs is different from the expected number of cigarette packs and / or the cigarette pack specifications are different from the expected cigarette pack specifications, then the cigarette pack verification is determined to be unsuccessful, and step 107 is executed.
[0027] 107. Issue a second error correction message to warn and prevent the cigarette packs from being stacked or loaded onto trucks.
[0028] In this embodiment, a second layer of error correction information is determined when the original order information is inconsistent with the expected information. There are five situations for the second layer of error correction information: first, the total number of cigarette cartons is greater than the expected number of cigarette cartons; second, the total number of cigarette cartons is less than the expected number of cigarette cartons; third, the cigarette pack specifications are different from the expected cigarette pack specifications; fourth, the total number of cigarette cartons is greater than the expected number of cigarette cartons and the cigarette pack specifications are different from the expected cigarette pack specifications; fifth, the total number of cigarette cartons is less than the expected number of cigarette cartons and the cigarette pack specifications are different from the expected cigarette pack specifications. Any one of these situations results in the cigarette pack not meeting expectations. A second error correction message is issued as a warning to prevent the cigarette packs from being stacked or loaded onto trucks.
[0029] The beneficial effects achieved by the embodiments of the present invention are as follows: Before the cigarette packs enter the packaging machine, high-speed visual scanning technology reads the QR codes on the cigarette packs. The QR codes are then used to determine if they match the retailer's order information issued by the cigarette sorting system. If they don't match, the first level of error correction information is sent to the cigarette sorting system. If they match, the QR codes and order information are linked and saved to the local database in real time. Simultaneously, a unique UV invisible code is printed on the cigarette pack based on the QR code. After the packaging machine completes the wrapping, but before palletizing or loading, UV visual recognition technology reads the UV invisible codes on the cigarette packs. The UV invisible codes are decoded to obtain the corresponding original order information. Based on the original order information and the expected information for the current outgoing batch, the verification of the cigarette pack is determined. If the verification fails, a second level of error correction information is issued as an alarm, preventing the packs from being palletized or loaded.
[0030] A dual error correction system was constructed, using the QR code of each pack of cigarettes as the "key" and the ultraviolet invisible code as the "lock," to achieve dual error prevention and anti-counterfeiting through both physical and data methods. Through dual error correction, especially the final verification of the "lock-key" between the ultraviolet invisible code and the QR code of the cigarette pack before the cigarette pack leaves the warehouse, the problem of "cross-contamination" of the cigarette pack can be accurately intercepted and located, ensuring that the quantity of cigarette packs matches the quantity before the cigarette pack leaves the warehouse, thereby reducing customer complaints and economic losses caused by cigarette pack recalls due to errors in the cigarette packs leaving the warehouse. By replacing manual verification with intelligent ultraviolet invisible code visual verification, the efficiency of cigarette pack verification can be significantly improved. Compared with manual verification, the error rate of outbound verification can be significantly reduced, thus improving the reliability of cigarette pack verification. The "lock-key" dual error correction mechanism requires that while "copying" the QR code on cigarette packs, the corresponding ultraviolet invisible code must also be replicated. This raises the technical threshold and risk, technically eliminating the possibility of "counterfeiting" and reducing the occurrence of "code copying" incidents.
[0031] Based on the tobacco logistics visual and encryption dual verification method for cigarette pack error correction coding described in the above embodiments, the following embodiments will illustrate the tobacco logistics visual and encryption dual verification method for cigarette pack error correction coding device.
[0032] like Figure 2 As shown, this embodiment of the invention provides a tobacco pack error correction coding device with dual visual and encryption verification for tobacco logistics, comprising: The QR code recognition module 201 is used to read the QR code on the cigarette packs using high-speed visual scanning technology before the cigarette packs enter the cigarette packaging machine. The first error correction module 202 is used to determine whether the QR code on the cigarette pack matches the retailer's order information issued by the cigarette pack sorting system; if it does not match the retailer's order information, it sends the first error correction information to the cigarette pack sorting system. The UV invisible code assignment module 203 is used to bind the QR code of the cigarette pack with the retailer's order information in real time and save it to the local database if it matches the retailer's order information. At the same time, it prints a unique UV invisible code on the cigarette pack based on the QR code. The UV invisible code recognition module 204 is used to read the UV invisible code of the cigarette pack in the cigarette pack through UV visual recognition technology after the cigarette pack packaging machine has completed the cigarette wrapping film packaging and before palletizing or loading. The second error correction module 205 is used to decode the ultraviolet invisible code to obtain the corresponding original order information. If the cigarette pack verification fails, a second error correction message is issued to warn the user, thereby preventing the cigarette pack from being stacked or loaded onto a vehicle.
[0033] The tobacco logistics visual and encrypted dual-verification method and device for correcting and coding cigarette packs described above can reduce customer complaints and economic losses caused by cigarette pack recalls due to errors in outbound cigarette packs, significantly improve the verification efficiency of cigarette packs, and significantly improve the outbound error rate compared with manual verification, thereby increasing the reliability of cigarette pack verification and reducing the occurrence of "code swapping" incidents.
[0034] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0035] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0036] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0037] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0038] The above are merely embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of the claims of the present invention pending approval.
Claims
1. A method for error correction coding of tobacco packages using both visual and encrypted dual verification in tobacco logistics, characterized in that, include: Before the cigarette packs enter the cigarette packaging machine, the QR codes on the cigarette packs are read using high-speed visual scanning technology. The system determines whether the cigarette pack's QR code matches the retailer's order information issued by the cigarette pack sorting system. If the order does not match the retailer's order information, the first level of error correction information will be sent to the cigarette sorting system. If the order information matches the retailer's order information, the QR code of the cigarette pack will be bound to the retailer's order information in real time and saved to the local database. At the same time, a unique ultraviolet invisible code will be printed on the cigarette pack based on the QR code. After the cigarette packaging machine completes the cigarette wrapping film packaging, and before stacking or loading, the ultraviolet invisible code of the cigarette pack is read by ultraviolet visual recognition technology. Decode the UV invisible code to obtain the corresponding original order information, and determine whether the cigarette pack has passed verification based on the original order information and the expected information of the current outbound batch; If the cigarette pack fails verification, a second error correction message is issued as a warning to prevent the cigarette packs from being stacked or loaded onto a vehicle.
2. The tobacco pack error correction coding method with visual and encrypted dual verification for tobacco logistics as described in claim 1, characterized in that, High-speed visual scanning technology is used to read the QR codes on cigarette cartons, including: High-speed vision cameras installed on the left and right sides of the cigarette belt conveyor scan the cigarettes conveyed on the belt conveyor before they enter the cigarette packaging machine to obtain QR code images; The QR code for the cigarette pack can be read from the QR code image.
3. The tobacco pack error correction coding method with visual and encrypted dual verification for tobacco logistics as described in claim 2, characterized in that, The system determines whether the cigarette pack's QR code matches the retailer's order information issued by the cigarette pack sorting system, including: Decode the QR code on the cigarette pack to obtain the corresponding cigarette pack information, which includes cigarette brand information and cigarette specification information; Obtain retailer order information from the cigarette sorting system. Retailer order information includes the retailer's required brand information and required specifications. The information on the cigarette cartons was compared with the retailer's order information; If the cigarette brand information is the same as the required brand information, and the cigarette specification information is the same as the required specification information, then it is determined that the order information matches the retailer's order information. If the cigarette brand information does not match the required brand information and / or the cigarette specification information does not match the required specification information, then it is determined that the order does not meet the retailer's order information.
4. The tobacco pack error correction coding method with visual and encrypted dual verification for tobacco logistics as described in claim 3, characterized in that, The first level of error correction information is fed back to the cigarette sorting system, including: The first-level correction information for identifying cigarette packs that do not conform to the retailer's order information includes incorrect cigarette brand and / or incorrect cigarette specifications; The first-level error correction information is sent to the cigarette sorting system, enabling the system to correct errors in cigarette brand and / or cigarette specification based on this information.
5. The tobacco pack error correction coding method with visual and encrypted dual verification for tobacco logistics as described in claim 1, characterized in that, The QR code on each pack of cigarettes is linked to the retailer's order information and saved to a local database in real time. Simultaneously, a unique ultraviolet invisible code is printed on each pack of cigarettes based on the QR code, including: The QR code of a pack of cigarettes is linked to the retailer's order information in real time to obtain a QR code-order binding association table; Save the QR code of the cigarette pack, retailer order information, and QR code-order binding association table to the local database; Based on the QR code of the cigarette pack, a unique ultraviolet invisible code is generated by combining a preset random code value generation algorithm. Ultraviolet invisible codes are sprayed onto the end face of cigarette packs using a fluorescent material spraying device.
6. The tobacco pack error correction coding method with visual and encrypted dual verification for tobacco logistics as described in claim 5, characterized in that, Using ultraviolet visual recognition technology to read the ultraviolet invisible code of cigarettes in the pack, including: By using ultraviolet irradiation lamps installed on the cigarette pack conveyor line at the exit of the cigarette pack packaging machine, the cigarette packs are irradiated with ultraviolet light, causing the end face of the cigarette packs to show an invisible ultraviolet code. A high-speed vision camera installed on the tobacco pack conveyor line scans the ultraviolet-irradiated area of the tobacco pack to obtain a scanned image. Analyze the presence of ultraviolet patterns in scanned images using image recognition technology; If no ultraviolet pattern is found, it indicates that the fluorescent material spraying equipment is missing fluorescent material or has a spraying malfunction. If an ultraviolet pattern is present, the ultraviolet invisible code can be identified.
7. The tobacco pack error correction coding method with visual and encrypted dual verification for tobacco logistics as described in claim 6, characterized in that, Determine whether the cigarette packs have passed verification based on the original order information and the expected information of the current outbound batch, including: The ultraviolet invisible code is decoded according to a preset random code value generation algorithm to obtain the restored QR code; The corresponding retailer's order information is obtained by retrieving the restored QR code from the QR code-order binding association table in the local database and used as the original order information. Based on the original order information, the total number of cigarettes in each carton and the specifications of each carton are calculated. Determine the expected number of cigarettes and the expected cigarette specifications for each pack based on the expected information of the current outbound batch; Compare the total number of cigarettes and the cigarette varieties in all the cigarette packs with the expected number of cigarettes and the expected cigarette varieties; If the total number of cigarette cartons is the same as the expected number of cigarette cartons, and the cigarette pack specifications are the same as the expected cigarette pack specifications, then the cigarette pack verification is confirmed to be successful. If the total number of cigarette packs is different from the expected number of cigarette packs and / or the cigarette pack specifications are different from the expected cigarette pack specifications, then the cigarette pack verification is deemed unsuccessful.
8. The tobacco pack error correction coding method with visual and encrypted dual verification for tobacco logistics as described in claim 7, characterized in that, Issue a second level of error correction information as a warning, including: The second level of error correction information is determined when the cigarette pack verification fails. The second level of error correction information includes at least one of the following: the total number of cigarette packs is greater than the expected number of cigarette packs, the total number of cigarette packs is less than the expected number of cigarette packs, and the cigarette pack specifications are different from the expected cigarette pack specifications. A second error correction message is sent as a warning to prevent the cigarette packs from being stacked or loaded onto trucks.
9. A tobacco pack error correction and coding device with dual visual and encrypted verification for tobacco logistics, characterized in that, include: The QR code recognition module is used to read the QR code on the cigarette packs using high-speed visual scanning technology before the cigarette packs enter the packaging machine. The first error correction module is used to determine whether the QR code on the cigarette pack matches the retailer's order information issued by the cigarette pack sorting system. If the order does not match the retailer's order information, the first level of error correction information will be sent to the cigarette sorting system. The UV invisible code assignment module is used to bind the QR code of the cigarette pack with the retailer's order information in real time and save it to the local database if it matches the retailer's order information. At the same time, it prints a unique UV invisible code on the cigarette pack based on the QR code. The ultraviolet invisible code recognition module is used to read the ultraviolet invisible code of the cigarette packs after the cigarette packaging machine has finished packaging the cigarette wrapping film, and before palletizing or loading. The second error correction module is used to decode the ultraviolet invisible code to obtain the corresponding original order information. Based on the original order information and the expected information of the current outbound batch, it determines whether the cigarette pack has passed verification. If the cigarette pack fails verification, a second error correction message is issued to warn the user, thereby preventing the cigarette pack from being stacked or loaded onto the truck.