A cigarette paper information detection method, electronic device, medium and product

CN122948524APending Publication Date: 2026-10-20CHINA TOBACCO JIANGSU INDAL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611224643.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-13
Publication Date
2026-10-20

AI Technical Summary

Technical Problem

[0003]本发明提供了一种卷烟纸信息检测方法、电子设备、介质及产品,以解决对卷烟纸信息检测的准确性、实时性低,以及无法实现卷烟纸拼接环节的源头追溯的问题

Benefits of technology

[0015]本发明实施例的技术方案,通过接收待拼接卷烟纸的待检测数据包,从待检测数据包内的二维码图像解析结果中提取二维码内容,实现了卷烟纸在卷烟纸拼接阶段的源头信息采集,快速精准得到待拼接卷烟纸的物料信息,避免人工录入出错;获取目标卷烟机的辅材物料清单信息,将辅材物料清单信息和二维码内容进行比对,得到比对结果,基于比对结果判定待拼接卷烟纸的检测结果,其中,检测结果表征待拼接卷烟纸的合格状态,实现了根据系统数据校验进行全自动核对,大幅提升核验效率、保障匹配准确性,标准化判定规则能统一检测标准,减少人为判断偏差;将二维码内容、比对结果、检测结果和目标卷烟机的生产信息进行关联绑定,生成目标卷烟机的生产追溯记录,实现了利用全量数据关联归档形成完整数据链路,便于后续质量复盘、问题溯源与生产管控。本方案根据待拼接卷烟纸的二维码信息与物料清单自动核验实现卷烟纸来料检测全流程自动化,从信息采集、合规校验到数据存证层层把控,提升卷烟纸来料检测的效率与准确率,有效避免错用辅料问题、保障产品品质和提升生产效率,也便于快速定位问题卷烟纸的来源及涉及的生产批次,还可以将全环节数据统一归档,构建可溯源的生产数据链条,方便后续质量核查、问题追溯与生产管理。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
  • Figure FT_3
    Figure FT_3
Patent Text Reader

Abstract

This invention discloses a method, electronic device, medium, and product for detecting cigarette paper information. The method includes receiving a data packet of cigarette paper to be spliced; extracting QR code content from the QR code image parsing result within the data packet; obtaining the auxiliary material list information of the target cigarette machine; comparing the auxiliary material list information with the QR code content to obtain a comparison result; determining the detection result of the cigarette paper to be spliced ​​based on the comparison result, wherein the detection result represents the qualified status of the cigarette paper to be spliced; and associating and binding the QR code content, comparison result, detection result, and production information of the target cigarette machine to generate a production traceability record for the target cigarette machine. This solution achieves automatic verification of the QR code content extracted from the QR code image parsing result with the material list, improving the efficiency and accuracy of incoming cigarette paper detection, constructing a traceable production data chain, and facilitating subsequent quality inspection, problem tracing, and production management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automatic detection technology, and in particular to a method, electronic device, medium, and product for detecting information on cigarette paper. Background Technology

[0002] In the cigarette production process, cigarette paper, as a core auxiliary material, directly affects the quality stability of the finished cigarette product due to its quality, specifications, and batch information. Currently, the cigarette industry's traceability of cigarette paper is mostly concentrated in the packaging stage, which has the following technical shortcomings: It cannot promptly detect the misuse of auxiliary materials, only discovering it in subsequent quality inspection stages, resulting in raw material waste and reduced production efficiency; the traceability chain is incomplete, making it impossible to quickly locate the source of problematic cigarette paper and the production batch involved when quality problems occur; furthermore, it requires manual verification of cigarette paper packaging information against production requirements, which is inefficient and prone to human error, leading to the misuse of auxiliary materials; and there is also low data utilization, making it difficult to achieve full-process collaborative control, resulting in low efficiency in cigarette paper information detection and an inability to achieve source traceability of cigarette paper in the rolling stage (especially the BOB splicing stage). Summary of the Invention

[0003] This invention provides a method, electronic device, medium, and product for detecting cigarette paper information, in order to solve the problems of low accuracy and real-time performance in detecting cigarette paper information, as well as the inability to trace the source of cigarette paper splicing.

[0004] According to one aspect of the present invention, a method for detecting information on cigarette paper is provided, comprising: Receive the data packet to be tested for the cigarette paper to be spliced, and extract the QR code content from the QR code image parsing result in the data packet to be tested; Obtain the auxiliary material list information of the target cigarette machine, compare the auxiliary material list information with the QR code content to obtain the comparison result, and determine the test result of the cigarette paper to be spliced ​​based on the comparison result. The test result represents the qualified status of the cigarette paper to be spliced. The QR code content, comparison results, test results, and production information of the target cigarette machine are linked and bound together to generate a production traceability record for the target cigarette machine.

[0005] Optionally, the method further includes: in response to the cigarette paper splicing signal, sending an image acquisition command to the image acquisition module at the target cigarette machine splicing node to control the image acquisition module to acquire the QR code image on the cigarette paper to be spliced, and returning a data packet to be detected constructed based on the QR code image parsing result of the QR code image.

[0006] Optionally, extracting QR code content from the QR code image parsing result in the data packet to be detected includes: performing identity verification based on the header field data of the data packet to be detected to obtain the verification result; if the verification result is successful, locating multiple field data of the data area of ​​the data packet to be detected based on preset feature identifiers, and extracting intermediate QR code content from the multiple field data; performing data compliance verification on each field data in the intermediate QR code content, and determining the field data that passes the verification as QR code content.

[0007] Optionally, the auxiliary material bill of materials information of the target cigarette machine is obtained, and the auxiliary material bill of materials information is compared with the QR code content to obtain the comparison result, including: searching the target database based on the production basic information of the target cigarette machine to obtain the auxiliary material bill of materials information; wherein, the production basic information includes at least the cigarette machine identification and production timestamp; if the auxiliary material bill of materials information contains the cigarette paper related information in the QR code content, the comparison result is determined to be a qualified match, and if the auxiliary material bill of materials information does not contain or does not fully contain the cigarette paper related information in the QR code content, the comparison result is determined to be a unqualified match; wherein, the cigarette paper related information includes material classification, material number, supplier / factory, production / packaging date, production batch number, identification type and serial number.

[0008] Optionally, the test result of the cigarette paper to be spliced ​​is determined based on the comparison result, including: if the comparison result is a qualified match, the test result of the cigarette paper to be spliced ​​is determined to be qualified; if the comparison result is an unqualified match, the test result of the cigarette paper to be spliced ​​is determined to be unqualified.

[0009] Optionally, the QR code content, comparison results, test results, and production information of the target cigarette machine are associated and bound to generate a production traceability record of the target cigarette machine. This includes: establishing a unique traceability identifier, mapping the QR code content, comparison results, test results, and production information of the target cigarette machine to the unique traceability identifier, collecting and binding multi-dimensional data, and generating a structured production traceability record of the target cigarette machine based on the complete data after binding.

[0010] Optionally, the method also includes: obtaining the splicing status information of the cigarette paper to be spliced, and adding the splicing status information to the production traceability record, wherein the splicing status information includes whether the splicing was successful or failed.

[0011] According to another aspect of the present invention, a cigarette paper information detection device is provided, comprising: The QR code content determination module is used to receive the data packet to be detected from the QR code image parsing result in the data packet to be detected and extract the QR code content from the QR code image parsing result in the data packet to be detected. The test result determination module is used to obtain the auxiliary material list information of the target cigarette machine, compare the auxiliary material list information with the QR code content to obtain the comparison result, and determine the test result of the cigarette paper to be spliced ​​based on the comparison result. The test result represents the qualified status of the cigarette paper to be spliced. The production traceability record determination module is used to associate and bind the QR code content, comparison results, test results and production information of the target cigarette machine to generate the production traceability record of the target cigarette machine.

[0012] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory that is communicatively connected to at least one processor; wherein, The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to perform the cigarette paper information detection method according to any embodiment of the present invention.

[0013] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions for causing a processor to execute the cigarette paper information detection method of any embodiment of the present invention.

[0014] According to another aspect of the present invention, a computer program product is provided, which, when executed by a processor, implements the cigarette paper information detection method of any embodiment of the present invention.

[0015] The technical solution of this invention, by receiving the test data packet of cigarette paper to be spliced, extracting the QR code content from the QR code image parsing result in the test data packet, realizes the source information collection of cigarette paper in the cigarette paper splicing stage, quickly and accurately obtains the material information of the cigarette paper to be spliced, and avoids errors from manual input; obtains the auxiliary material list information of the target cigarette machine, compares the auxiliary material list information with the QR code content to obtain the comparison result, and determines the test result of the cigarette paper to be spliced ​​based on the comparison result, wherein the test result represents the qualified status of the cigarette paper to be spliced, realizing fully automatic verification based on system data verification, greatly improving verification efficiency and ensuring matching accuracy, and the standardized judgment rules can unify the test standards and reduce human judgment bias; the QR code content, comparison result, test result and production information of the target cigarette machine are associated and bound to generate the production traceability record of the target cigarette machine, realizing the formation of a complete data link by using full data association and archiving, which facilitates subsequent quality review, problem tracing and production control. This solution automates the entire process of incoming cigarette paper inspection by automatically verifying the QR code information of the cigarette paper to be spliced ​​against the bill of materials. From information collection and compliance verification to data storage, it controls every step, improving the efficiency and accuracy of incoming cigarette paper inspection. This effectively avoids the misuse of auxiliary materials, ensures product quality, and improves production efficiency. It also facilitates the rapid identification of the source of problematic cigarette paper and the production batches involved. Furthermore, it allows for the unified archiving of data from all stages, building a traceable production data chain to facilitate subsequent quality checks, problem tracing, and production management.

[0016] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart of a cigarette paper information detection method provided in Embodiment 1 of the present invention; Figure 2 This is an architecture diagram of a cigarette paper information detection system applicable to embodiments of the present invention; Figure 3 This is a flowchart of a cigarette paper information detection method applicable to an embodiment of the present invention; Figure 4 This is a flowchart of a cigarette paper information detection method provided in Embodiment 2 of the present invention; Figure 5 This is a schematic diagram of the structure of a cigarette paper information detection device provided in Embodiment 3 of the present invention; Figure 6 This is a schematic diagram of the structure of an electronic device that implements the cigarette paper information detection method of this invention. Detailed Implementation

[0019] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0020] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0021] Example 1 Figure 1 This is a flowchart of a cigarette paper information detection method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where cigarette paper information needs to be detected. The method can be executed by a cigarette paper information detection device, which can be implemented in hardware and / or software. This device can be configured in electronic devices such as computers, servers, and industrial control computers. Figure 1 As shown, the method includes: S110: Receive the data packet to be tested from the cigarette paper to be spliced, and extract the QR code content from the QR code image parsing result in the data packet to be tested.

[0022] Specifically, the data packet to be detected can be understood as an information carrier integrating relevant collected data of the cigarette paper to be spliced. It internally encapsulates the image parsing result of the QR code image on the surface of the cigarette paper. Optionally, the data packet to be detected can be transmitted via the TCP network protocol. The QR code image parsing result can be understood as the raw parsing data obtained after image recognition and decoding of the QR code image on the cigarette paper to be spliced. The QR code content can be understood as the information related to the cigarette paper extracted from the QR code image parsing result, including but not limited to material classification, material number, supplier / factory, production / packaging date, production batch number, identification type, and serial number. The data packet to be detected, the QR code image parsing result, and the QR code content sequentially carry the raw data, the intermediate decoding data, and the valid business data, forming a complete information reading chain.

[0023] Specifically, the system receives the data packet to be tested corresponding to the cigarette paper to be spliced ​​from the image acquisition device in real time. The data packet contains the QR code image data on the surface of the cigarette paper. The system first parses the QR code image parsing result from the data packet to be tested, and then accurately extracts the material-related content carried by the QR code from this parsing result.

[0024] In this embodiment, the entire process of data reception, image decoding, and information extraction is fully automated, eliminating manual scanning and information copying. This not only results in fast response and high recognition accuracy, effectively reducing the probability of human error, but also ensures the complete retention of the original material information, providing a true and reliable data foundation for subsequent verification work.

[0025] Optionally, the method further includes: in response to the cigarette paper splicing signal, sending an image acquisition command to the image acquisition module at the target cigarette machine splicing node to control the image acquisition module to acquire the QR code image on the cigarette paper to be spliced, and returning a data packet to be detected constructed based on the QR code image parsing result of the QR code image.

[0026] The image acquisition module is a hardware unit deployed at the splicing node of the cigarette machine, responsible for capturing images of the QR codes on the cigarette paper. The image acquisition command is a control signal sent from the industrial control computer system to the image acquisition module, which is used to trigger the equipment to start taking pictures and acquiring images. The two work together to complete the automated acquisition of QR code images.

[0027] Specifically, after receiving the cigarette paper splicing signal, the system immediately sends a collection command to the image acquisition module at the splicing position of the target cigarette machine, driving the image acquisition module to capture the QR code image on the surface of the cigarette paper to be spliced. The module completes image recognition and decoding and generates the QR code image parsing result, and then assembles the data packet to be detected based on the result and sends it back.

[0028] In this embodiment, automated image acquisition and data encapsulation are achieved based on signal triggering, without the need for manual intervention. The acquisition timing is precise and the action response is rapid, which not only ensures the complete acquisition of QR code images and the authenticity and validity of the parsed data, but also enables real-time data transmission, providing a coherent and standardized data source for subsequent detection work, while improving the overall work efficiency and process automation level.

[0029] Optionally, extracting QR code content from the QR code image parsing result in the data packet to be detected includes: performing identity verification based on the header field data of the data packet to be detected to obtain the verification result; if the verification result is successful, locating multiple field data of the data area of ​​the data packet to be detected based on preset feature identifiers, and extracting intermediate QR code content from the multiple field data; performing data compliance verification on each field data in the intermediate QR code content, and determining the field data that passes the verification as QR code content.

[0030] Specifically, the verification result can be understood as the system's judgment conclusion after verifying the identity of the data packet header fields. It is used to distinguish whether the data packet is legal and valid. The verification result can be determined by comparing the preset identity code and check code in the header fields with the system's standard data to determine whether the verification result is successful or unsuccessful. The preset feature identifier can be understood as a pre-set positioning marker, which can quickly locate the position of the corresponding field in the data packet data area to obtain the material-related content of the cigarette paper to be spliced. The intermediate QR code content can be understood as the raw information initially extracted from the positioning fields. It has not yet undergone compliance screening and needs further verification before it can become the official QR code content.

[0031] Specifically, the header field data of the data packet to be detected is read, and the preset data packet identity verification algorithm is called to complete the identity verification. After the data packet to be detected passes the verification, the various fields of the data packet data area are located according to the preset feature identifier, the intermediate QR code content is extracted from it, and then the compliance verification of the content is performed item by item. Finally, the compliant data is determined as the final QR code content.

[0032] In this embodiment, through multi-level verification and precise field positioning, it is possible to identify illegal and abnormal data packets, prevent invalid and erroneous data from flowing into subsequent stages, and accurately filter valid information and remove non-compliant fields, thereby greatly improving the accuracy and security of data extraction and ensuring the stability and reliability of the overall detection process.

[0033] S120. Obtain the auxiliary material list information of the target cigarette machine, compare the auxiliary material list information with the QR code content, obtain the comparison result, and determine the test result of the cigarette paper to be spliced ​​based on the comparison result. The test result represents the qualified status of the cigarette paper to be spliced.

[0034] The auxiliary material bill of materials information can be understood as the compliant auxiliary material standard data preset by the target cigarette machine, which clarifies the specifications, batches, and other information of the cigarette paper that the equipment is allowed to use. The comparison result can be understood as the difference or consistency obtained after matching the QR code content with each item in the bill of materials. The test result can be understood as the judgment based on the comparison result, which directly reflects whether the cigarette paper to be spliced ​​meets the usage standards and is qualified.

[0035] Specifically, the auxiliary material list information corresponding to the target cigarette machine can be retrieved from the production plan, production log, or production execution database corresponding to the target cigarette machine. The auxiliary material list information is matched and compared with the extracted QR code content item by item to generate a comparison result. Based on the result, the qualified status of the cigarette paper to be spliced ​​is determined, and the final test conclusion is formed.

[0036] In this embodiment, relying on the system's automatic data comparison and standardized judgment rules, the manual verification mode is abandoned. This not only ensures fast comparison speed and objective and consistent results, effectively avoiding human oversight and misjudgment, but also accurately identifies the mismatch of cigarette paper materials, ensuring compliance of production auxiliary materials from the source and building a solid product quality defense line.

[0037] Optionally, the test result of the cigarette paper to be spliced ​​is determined based on the comparison result, including: if the comparison result is a qualified match, the test result of the cigarette paper to be spliced ​​is determined to be qualified; if the comparison result is an unqualified match, the test result of the cigarette paper to be spliced ​​is determined to be unqualified.

[0038] Specifically, the judgment is made based on the comparison results between the QR code content and the auxiliary material list: if the two match and are qualified, the cigarette paper to be spliced ​​is deemed qualified; if they do not match, it is deemed unqualified.

[0039] In this embodiment, a judgment method with clear logical rules and unified execution standards is adopted. The entire process is automated, the judgment response is rapid and the results are objective, completely eliminating the subjective bias caused by manual judgment. It can accurately distinguish the compliance status of materials and stably control the quality of auxiliary materials.

[0040] S130. Associate and bind the QR code content, comparison results, test results and production information of the target cigarette machine to generate a production traceability record of the target cigarette machine.

[0041] Specifically, the production traceability record can be understood as a complete data archive formed by linking and integrating the QR code content, comparison results, test results and cigarette machine production information. It fully retains key information from all stages, such as cigarette paper verification and equipment production, and can be used for subsequent quality inspection, problem tracing and production control.

[0042] Specifically, the parsed QR code content, material comparison results, cigarette paper test results, and production information corresponding to the target cigarette machine are integrated, associated, and bound together to generate a complete production traceability record.

[0043] In this embodiment, multiple types of data are centrally archived and corresponded one-to-one, with clear data association logic. This not only preserves key information throughout the entire process and forms a closed-loop data archive, but also enables rapid traceability and verification when quality issues arise. It also facilitates production data statistics, process review, and full-process supervision, thereby improving the standardization of production management.

[0044] Optionally, the QR code content, comparison results, test results, and production information of the target cigarette machine are associated and bound to generate a production traceability record of the target cigarette machine. This includes: establishing a unique traceability identifier, mapping the QR code content, comparison results, test results, and production information of the target cigarette machine to the unique traceability identifier, collecting and binding multi-dimensional data, and generating a structured production traceability record of the target cigarette machine based on the complete data after binding.

[0045] Specifically, the traceability identifier can be understood as an automatically generated unique identification code. As the core index for data association, it unifies and binds various information such as QR code content, testing data, and equipment production information. With its uniqueness, it enables accurate differentiation of each production record, facilitating quick retrieval, traceability, and management.

[0046] Specifically, a unique traceability identifier is created, and then the QR code content, comparison results, test results, and target cigarette machine production information are mapped and bound to this identifier one by one, completing the collection and integration of multi-dimensional data, and finally generating a structured production traceability record with a standardized format.

[0047] In this embodiment, data is accurately associated based on a unique identifier to avoid information confusion. The structured data is easy to store, retrieve, and access. It not only enables the permanent retention of key information throughout the entire process, but also allows for the rapid location of the entire production data based on the traceability identifier, which greatly improves the efficiency of quality traceability, data statistics, and production supervision.

[0048] Optionally, the method also includes: obtaining the splicing status information of the cigarette paper to be spliced, and adding the splicing status information to the production traceability record, wherein the splicing status information includes whether the splicing was successful or failed.

[0049] Specifically, after the splicing operation of the cigarette paper to be spliced ​​is completed, the splicing status information of the cigarette paper to be spliced ​​is collected, distinguishing between two results: splicing success and splicing failure, and the information is added to the generated production traceability record.

[0050] In this embodiment, by storing the splicing status information of the cigarette paper to be spliced ​​into the production traceability record, the traceability data dimension is improved, so that the entire record fully covers the entire process of material verification, testing and actual splicing. This not only reflects the execution status of the process intuitively, but also facilitates subsequent analysis of splicing failures and review of production conditions, further enhancing the comprehensiveness and management value of production traceability.

[0051] In one specific embodiment, a cigarette paper information detection system is set up to perform QR code identification and batch traceability of cigarette paper in the automatic changeover unit (BOB unit) of the cigarette machine, such as... Figure 2 The diagram shows the architecture of a cigarette paper information detection system. The system includes a QR code acquisition module, a data transmission module, an industrial control computer processing module, a MES (Manufacturing Execution System) interaction module, a database storage module, and a data interface module. These modules work together to achieve QR code recognition, information comparison, data binding, and traceability functions for cigarette paper. Details are as follows: (1) The QR code acquisition module uses a camera device installed at the paper tray splicing point of the BOB unit of the cigarette machine (specific installation location: side of the splicing station between the BOB paper tray frame and the paper feeding roller, installation angle: facing the paper tray, 15° upward angle), used to capture the QR code printed on the cigarette paper on the new paper tray when the BOB unit is splicing cigarette paper, and to obtain the QR code image information. The camera device is linked with the splicing signal of the BOB unit (linkage method: using a photoelectric switch to trigger shooting, when the paper tray head passes the photoelectric switch, the camera is triggered to take a picture, and the shooting timeout is 6 seconds), to ensure that the QR code on the cigarette paper is accurately captured at the key node of splicing the new paper tray and the old paper tray, and to avoid missed scanning or wrong scanning; the camera has a built-in supplementary light device (supplementary light type: red light DPM, polarized / diffuse light supplementary light), and supports high dynamic range (HDR) technology to solve the reflection problem caused by the thinness and transparency of the cigarette paper, and improve the clarity of the QR code image.

[0052] (2) The data transmission module adopts the TCP protocol to establish a communication connection between the QR code acquisition module and the industrial computer processing module. This connection is used to transmit the QR code content parsed by the QR code acquisition module (without transmitting image data) to the industrial computer processing module in real time. The specific transmission process is as follows: After the QR code acquisition module captures the QR code image, it directly completes the QR code processing and parsing inside the camera. After successful parsing, it directly outputs the QR code content. The QR code content is encapsulated into TCP data packets and sent to the industrial computer via Ethernet (communication port: custom). After receiving the TCP data packets, the industrial computer unpacks the data, extracts the QR code content, and completes the data transmission. The adoption of the TCP protocol can ensure the reliability of data transmission, avoid data loss and transmission delay caused by network fluctuations, and meet the real-time transmission requirements in high-speed production scenarios.

[0053] (3) The industrial control computer processing module is the core processing unit of the entire system. It adopts an industrial-grade industrial control computer with built-in QR code parsing software, information comparison software and data binding software. It is used to complete operations such as QR code reception, information comparison and data binding. The specific functions are as follows: ① QR code reception and verification: The industrial control computer processing module receives the QR code content sent by the data transmission module (which is parsed by the camera device). Through the built-in QR code parsing software (parsing software name / version: self-developed, parsing basis: industry "batch label specification for tobacco materials"), the received QR code content is verified to confirm the completeness and validity of the parsed content. The QR code content includes: material classification, material number, supplier / factory, production / packaging date, production batch number, identification type and serial number. ② Information Comparison: The industrial control computer processing module obtains the auxiliary material BOM information of the current production grade from the MES system through the MES system interaction module (the auxiliary material BOM information includes at least the auxiliary material list corresponding to the current production grade, i.e., the auxiliary material list contained in the auxiliary material BOM tree). It automatically compares the received and verified QR code content with the auxiliary material BOM list and generates a comparison result. The comparison result includes "match qualified" and "match unqualified". The comparison details are as follows: if the QR code parsing content is included in the auxiliary material BOM list, it is considered a successful match. If it is not included, it is considered an unqualified match, and a specific unqualified item needs to be generated (such as "QR code parsing content is not in the auxiliary material BOM list of the current production grade"). ③ Data binding: The industrial control computer processing module obtains the current production information of the winding machine (production information acquisition method: read from the MES database, the MES database is MYSQL). The production information includes at least: winding machine number, production brand, production batch, production shift, and production timestamp. The QR code content and comparison results are bound to the above production information in real time to form a complete production traceability data record.

[0054] (4) The MES system interaction module serves as a communication bridge between the industrial computer processing module and the MES system. It adopts the TCP communication protocol to establish a two-way communication connection between the industrial computer and the MES system database. The core function is to initiate a query operation to the MES system database through the self-developed software built into the industrial computer to obtain the auxiliary material BOM information and production information database in the system. The specific functions are as follows: ① Data acquisition: The industrial computer processing module sends a query request to the MES system database through the self-developed software built into the industrial computer and the MES system interaction module to query and obtain the auxiliary material BOM information of the brand number opened by the current winding machine. The request frequency is synchronized with the BOB splicing frequency to ensure that the obtained auxiliary material BOM information is consistent with the current production status. ② Data feedback: The industrial computer processing module feeds back the QR code comparison results (especially the unqualified results) to the MES system database through the self-developed software built into the industrial computer. At the same time, when the matching fails, the industrial computer provides an output signal to the on-site audible and visual alarm device and gives a clear alarm message (non-MES system warning) on ​​the industrial computer screen to remind the operator to deal with the problem of misuse of auxiliary materials in time.

[0055] (5) The database storage module adopts an industrial-grade database (e.g., database type: MySQL, deployment location: database server) to store complete traceability data records generated by the industrial control computer processing module, including: QR code content, comparison results, rolling machine number, production brand, production batch, production shift, production timestamp, and data transmission timestamp. The database adopts a partitioned storage strategy (partitioned by production batch) to ensure the orderly storage of data and query efficiency; data backup is not currently considered, but a backup mechanism can be added later according to actual needs to meet the long-term retention requirements of traceability data.

[0056] (6) The data interface module adopts a standardized “RESTful API” interface and is deployed in the database storage module to provide data call interface for other systems (such as quality inspection system, production scheduling system, equipment operation and maintenance system). Other systems can use this interface to query and obtain traceability data stored in the database according to their needs, so as to realize data sharing and collaborative management.

[0057] In a specific embodiment, such as Figure 3 The flowchart of a method for detecting information on cigarette paper is shown below, with detailed steps: Step 1: Equipment Initialization and Parameter Configuration: Initialize the QR code acquisition module, industrial computer processing module, data transmission module, MES system interaction module, and database storage module, and configure relevant parameters: ① Configure QR code acquisition module parameters: Set the camera installation angle, shooting frequency, and supplementary light brightness; bind the BOB unit splicing contact signal to ensure that the camera only starts shooting during splicing; ② Configure TCP communication parameters: Set the TCP communication port and transmission rate; establish a TCP connection between the camera and the industrial computer; test the stability of data transmission; ③ Configure industrial computer processing module parameters: Install and debug the QR code parsing software (self-developed, depending on...). According to the "Batch Label Specification for Tobacco Materials"), information comparison software, and data binding software, set the parsing accuracy and comparison rules (specific comparison rules: the auxiliary material BOM tree will have an auxiliary material list; if the QR code parsing content is included in the auxiliary material BOM list, it is considered a successful match); ④ MES system interaction module parameter configuration: set the communication protocol and data request frequency with the MES system, complete the communication test between the industrial control computer and the MES system, and ensure that the auxiliary material BOM information can be obtained normally and the comparison results can be fed back; ⑤ Database storage module parameter configuration: set the database storage path, partitioning strategy, data retention period, and configure data interface parameters and access control rules.

[0058] Step 2, QR Code Acquisition and Data Transmission: When the BOB splicing signal triggers the photoelectric switch on the paper tray head, starting the cigarette machine's BOB unit to splice cigarette paper, the BOB unit sends a splicing trigger signal to the QR code acquisition module. Upon receiving the signal, the QR code acquisition module starts capturing images of the QR codes on the new paper tray cigarette paper, acquiring the QR code image information. The QR code acquisition module internally processes and parses the QR code without requiring preprocessing by the industrial control computer. After successful parsing, it directly outputs the QR code content, encapsulates the QR code content into TCP data packets, and transmits them in real time to the industrial control computer processing module according to the set TCP communication parameters. After receiving the TCP data packets, the industrial control computer processing module unpacks the data, extracts the QR code content, and proceeds to the next processing step.

[0059] Step 3: QR Code Parsing and Information Comparison: The industrial control computer (ICC) processing module verifies the received QR code content using its built-in QR code parsing software, obtaining relevant information about the cigarette paper (material classification, material number, supplier / factory, production / packaging date, production batch number, identification type, and serial number). Simultaneously, the ICC processing module sends a data request to the MES system through the MES system interaction module to obtain the auxiliary material BOM information for the brand currently produced by the rolling machine (the auxiliary material list contained in the auxiliary material BOM tree corresponding to the current production brand). The ICC processing module automatically compares the cigarette paper information obtained from the QR code parsing with the auxiliary material BOM information obtained from the MES system according to preset comparison rules, generating a comparison result: if the QR code parsing content is included in the auxiliary material BOM list, it is determined to be a "match qualified" and enters data binding; if it is not included, it is determined to be a "match unqualified," triggering an audible and visual alarm. Optionally, specific unqualified items can also be recorded.

[0060] Step 4, Data Binding and Feedback: The industrial control computer processing module obtains the current production information of the cigarette rolling machine (machine number, production brand, production batch, shift, timestamp), and binds the QR code parsing information and comparison results with the production information in real time to form a complete traceability data record that can be stored long-term and is searchable; if the comparison result is "match unqualified", the industrial control computer outputs a signal to the on-site audible and visual alarm device and displays an alarm message on the screen to remind the operator to replace with qualified cigarette paper; if the comparison result is "match qualified", no alarm needs to be triggered, and the process proceeds to the next step of data storage.

[0061] Step 5: Data Storage and Interface Call: The industrial control computer processing module sends the bound complete traceability data record to the database storage module through the data transmission link. The database storage module stores the traceability data according to the preset storage strategy, ensuring that the data can be retained and queried for a long time. Other systems (such as quality inspection systems and production scheduling systems) can query and call the traceability data stored in the database through the data interface module according to the preset interface rules and permissions to achieve data sharing and collaborative management. Operators can also query historical traceability data through the industrial control computer or database terminal for quality problem investigation, production review, and other work.

[0062] Step 6, Repeated Execution: After each BOB unit cigarette paper splicing is completed, repeat steps 2-5 to achieve QR code recognition, information comparison, data binding and storage for each new roll of cigarette paper, forming a continuous and complete production traceability link until the cigarette splicing machine completes the production task of the current production batch, forming a continuous and complete production traceability link where each new roll of cigarette paper can be traced.

[0063] The technical solution of this embodiment receives the data packet to be tested from the cigarette paper to be spliced, extracts the valid QR code content from the QR code image parsing result, retrieves the auxiliary material list of the target cigarette machine, automatically compares the two to obtain the comparison result, and determines the qualification status of the cigarette paper accordingly. Finally, the QR code content, comparison result, and test result are associated and bound with the equipment production information to generate a corresponding production traceability record. This solution automates the entire process of incoming cigarette paper inspection based on the automatic verification of QR code information and material list. From information collection and compliance verification to data storage, it controls each layer, improving the efficiency and accuracy of incoming cigarette paper inspection, avoiding errors caused by manual operation, effectively preventing the misuse of auxiliary materials, ensuring product quality, and integrating key data throughout the process to form a searchable traceability file. This not only strictly controls the quality of cigarette paper auxiliary materials used, but also achieves full traceability of the production process, assisting in production management and problem investigation.

[0064] Example 2 Figure 4 This is a flowchart of a cigarette paper information detection method provided in Embodiment 2 of the present invention. The method in this embodiment is a further optimization of the method in the above embodiments. Optionally, based on the production basic information of the target cigarette machine, a search is performed in the target database to obtain auxiliary material list information. The production basic information includes at least the cigarette machine identifier and production timestamp. If the auxiliary material list information contains cigarette paper-related information from the QR code content, the comparison result is determined to be a qualified match; if the auxiliary material list information does not contain or does not fully contain cigarette paper-related information from the QR code content, the comparison result is determined to be a unqualified match. The cigarette paper-related information includes material classification, material number, supplier / factory, production / packaging date, production batch number, identification type, and serial number. Figure 4 As shown, the method includes: S410: Receive the data packet to be tested from the cigarette paper to be spliced, and extract the QR code content from the QR code image parsing result in the data packet to be tested.

[0065] S420. Based on the production basic information of the target cigarette machine, retrieve the auxiliary material list information from the target database; the production basic information includes at least the cigarette machine identifier and the production timestamp.

[0066] Specifically, the production foundation information can be understood as information used to locate corresponding production equipment and operating periods, with identification data centered on cigarette machine identifiers and production timestamps. The target database can be understood as a dedicated storage medium that centrally stores various production and material data; for example, it could be a manufacturing execution database. The auxiliary material bill of materials information can be understood as the standard details of auxiliary materials such as cigarette paper that are allowed to be used by each cigarette machine during the corresponding period, stored in the database. These three types of data—production foundation information, target database, and auxiliary material bill of materials information—work together to achieve accurate retrieval of standard material data.

[0067] Specifically, by utilizing the target cigarette machine's basic production information, including the cigarette machine identifier and production timestamp, a search operation is performed in the target database to retrieve the corresponding auxiliary material list information.

[0068] In this embodiment, data is accurately located by relying on exclusive identifiers and timestamps, and the retrieval is fast and highly accurate. It can accurately retrieve standard material data for the corresponding time period and equipment, ensuring that subsequent comparison and verification are based on evidence. At the same time, the data retrieval is automated, improving the overall process efficiency and data accuracy.

[0069] S430. If the auxiliary material list information contains information related to cigarette paper in the QR code content, the comparison result is determined to be a qualified match. If the auxiliary material list information does not contain or does not fully contain information related to cigarette paper in the QR code content, the comparison result is determined to be a unqualified match.

[0070] The information related to cigarette paper includes material classification, material number, supplier / factory, production / packaging date, production batch number, identification type, and serial number.

[0071] Specifically, the information related to cigarette paper can be understood as the core material data stored in the QR code, including but not limited to material classification, material number, supplier / factory, production / packaging date, production batch number, identification type and serial number, which is the key basis for determining whether cigarette paper meets the usage standards.

[0072] Specifically, each piece of information in the QR code is checked against the retrieved auxiliary material list. If the list completely contains all the information in the QR code, the comparison result is considered a successful match. If there are any missing or inconsistent information, the match is considered unsuccessful.

[0073] In this embodiment, the comparison rules cover multiple key parameters, the verification standards are detailed and comprehensive, and the judgment logic is clear and unified. This can not only accurately screen for material information deviations and avoid the misuse of auxiliary materials from multiple dimensions, but also ensure that the verification results are objective and reliable, effectively strengthening the compliance management of cigarette paper materials.

[0074] S440. Determine the test results of the cigarette paper to be spliced ​​based on the comparison results, wherein the test results represent the qualified status of the cigarette paper to be spliced.

[0075] S450. Associate and bind the QR code content, comparison results, test results and production information of the target cigarette machine to generate a production traceability record of the target cigarette machine.

[0076] The technical solution of this embodiment involves receiving a data packet of cigarette paper to be spliced ​​for testing, extracting the QR code content from the QR code image parsing results, and then retrieving the corresponding auxiliary material list information from the target database based on the basic production information including the cigarette machine identifier and production timestamp. Subsequently, the list is checked against various cigarette paper-related information such as material classification, number, and batch number in the QR code. If the list completely covers the corresponding information, the comparison is deemed qualified; if there are any omissions or discrepancies, the comparison is deemed unqualified. The final qualified status of the cigarette paper is determined based on the comparison results. Finally, the QR code content, comparison results, test results, and equipment production information are linked together to generate a complete production traceability record. This solution automates the entire process of incoming cigarette paper inspection by automatically verifying QR code information and bill of materials. From information collection and compliance verification to data storage, it controls every step of the process. Based on cross-verification of multi-dimensional information, the judgment criteria are meticulous and rigorous, and the results are objective and accurate. This effectively prevents the misuse of cigarette paper to be spliced ​​and avoids substandard or counterfeit cigarette paper from entering the production process. At the same time, it provides basic data support for subsequent anti-counterfeiting and anti-diversion of finished products, and integrates the data of the entire process to form a traceable archive. This not only ensures the compliance of production materials, but also facilitates subsequent data query, quality traceability and production management, which meets the development needs of anti-counterfeiting and traceability in the cigarette industry.

[0077] Example 3 Figure 5 This is a schematic diagram of the structure of a cigarette paper information detection device provided in Embodiment 3 of the present invention. Figure 5 As shown, the device includes: The QR code content determination module 510 is used to receive the data packet to be detected of the cigarette paper to be spliced, and extract the QR code content from the QR code image parsing result in the data packet to be detected. The test result determination module 520 is used to obtain the auxiliary material list information of the target cigarette machine, compare the auxiliary material list information with the QR code content to obtain the comparison result, and determine the test result of the cigarette paper to be spliced ​​based on the comparison result. The test result represents the qualified status of the cigarette paper to be spliced. The production traceability record determination module 530 is used to associate and bind the QR code content, comparison results, test results and production information of the target cigarette machine to generate the production traceability record of the target cigarette machine.

[0078] The technical solution of this embodiment involves a QR code content determination module receiving a data packet of cigarette paper to be spliced ​​and extracting the QR code content from the QR code image parsing result within the data packet. A detection result determination module obtains the auxiliary material list information of the target cigarette machine, compares the auxiliary material list information with the QR code content, obtains the comparison result, and determines the detection result of the cigarette paper to be spliced ​​based on the comparison result. The detection result represents the qualified status of the cigarette paper to be spliced. A production traceability record determination module associates and binds the QR code content, comparison result, detection result, and production information of the target cigarette machine to generate a production traceability record for the target cigarette machine. This solution automates the entire process of incoming cigarette paper inspection based on automatic verification of QR code information and the material list. From information collection and compliance verification to data storage, it controls each layer, improving the efficiency and accuracy of incoming cigarette paper inspection, effectively avoiding the misuse of auxiliary materials, ensuring product quality, and unifying the archiving of data from all stages to build a traceable production data chain, facilitating subsequent quality inspection, problem tracing, and production management.

[0079] Based on the above embodiments, optionally, the QR code content determination module 510 is also used to send an image acquisition command to the image acquisition module at the target cigarette machine splicing node in response to the cigarette paper splicing signal, so as to control the image acquisition module to acquire the QR code image on the cigarette paper to be spliced, and return the data packet to be detected constructed based on the QR code image parsing result of the QR code image.

[0080] Optionally, the QR code content determination module 510 is specifically used to perform identity verification based on the header field data of the data packet to be detected and obtain the verification result; if the verification result is successful, it locates multiple field data of the data area of ​​the data packet to be detected based on the preset feature identifier, extracts the intermediate QR code content from the multiple field data; performs data compliance verification on each field data in the intermediate QR code content, and determines the field data that passes the verification as the QR code content.

[0081] Optionally, the detection result determination module 520 is specifically used to retrieve auxiliary material list information from the target database based on the production basic information of the target cigarette machine. The production basic information includes at least the cigarette machine identifier and production timestamp. If the auxiliary material list information contains cigarette paper-related information from the QR code content, the comparison result is determined to be a qualified match; if the auxiliary material list information does not contain or does not fully contain cigarette paper-related information from the QR code content, the comparison result is determined to be a unqualified match. The cigarette paper-related information includes material classification, material number, supplier / factory, production / packaging date, production batch number, identification type, and serial number.

[0082] Optionally, the test result determination module 520 is specifically used to determine that the test result of the cigarette paper to be spliced ​​is qualified if the comparison result is a qualified match, and to determine that the test result of the cigarette paper to be spliced ​​is unqualified if the comparison result is an unqualified match.

[0083] Optionally, the production traceability record determination module 530 is specifically used to establish a unique traceability identifier, mapping the QR code content, comparison results, test results, and production information of the target cigarette machine to the unique traceability identifier, performing multi-dimensional data association, collection and binding, and generating a structured production traceability record of the target cigarette machine based on the complete data after binding.

[0084] Optionally, the production traceability record determination module 530 is also used to obtain the splicing status information of the cigarette paper to be spliced ​​and add the splicing status information to the production traceability record, wherein the splicing status information includes whether the splicing was successful or failed.

[0085] The cigarette paper information detection device provided in this embodiment of the invention can execute the cigarette paper information detection method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the method.

[0086] Example 4 Figure 6 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0087] like Figure 6 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded into the RAM 13 from storage unit 18. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0088] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0089] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the cigarette paper information detection method.

[0090] In some embodiments, the cigarette paper information detection method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the cigarette paper information detection method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the cigarette paper information detection method by any other suitable means (e.g., by means of firmware).

[0091] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0092] The computer program for implementing the cigarette paper information detection method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are performed. The computer program can be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0093] Example 5 Embodiment 5 of the present invention also provides a computer-readable storage medium storing computer instructions for causing a processor to execute a cigarette paper information detection method, the method comprising: Receive the data packet to be tested for the cigarette paper to be spliced, and extract the QR code content from the QR code image parsing result in the data packet to be tested; Obtain the auxiliary material list information of the target cigarette machine, compare the auxiliary material list information with the QR code content to obtain the comparison result, and determine the test result of the cigarette paper to be spliced ​​based on the comparison result. The test result represents the qualified status of the cigarette paper to be spliced. The QR code content, comparison results, test results, and production information of the target cigarette machine are linked and bound together to generate a production traceability record for the target cigarette machine.

[0094] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0095] To provide interaction with an object, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the object; and a keyboard and pointing device (e.g., a mouse or trackball) through which the object provides input to the electronic device. Other types of devices can also be used to provide interaction with the object; for example, feedback provided to the object can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the object can be received in any form (including sound input, voice input, or tactile input).

[0096] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., a computer with a graphical user interface or web browser through which an item can interact with the implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0097] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0098] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0099] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements a cigarette paper information detection method according to any embodiment of the invention.

[0100] In implementing the computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0101] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for detecting information on cigarette paper, characterized in that, include: Receive the data packet to be tested for the cigarette paper to be spliced, and extract the QR code content from the QR code image parsing result in the data packet to be tested; Obtain the auxiliary material list information of the target cigarette machine, compare the auxiliary material list information with the QR code content to obtain the comparison result, and determine the test result of the cigarette paper to be spliced ​​based on the comparison result, wherein the test result represents the qualified status of the cigarette paper to be spliced. The QR code content, the comparison result, the detection result, and the production information of the target cigarette machine are associated and bound together to generate a production traceability record for the target cigarette machine.

2. The method according to claim 1, characterized in that, The method further includes: In response to the cigarette paper splicing signal, an image acquisition command is sent to the image acquisition module at the target cigarette machine splicing node to control the image acquisition module to acquire the QR code image on the cigarette paper to be spliced, and to return a data packet to be detected constructed based on the QR code image parsing result of the QR code image.

3. The method according to claim 1, characterized in that, Extracting QR code content from the QR code image parsing result within the data packet to be detected includes: Identity verification is performed based on the header field data of the data packet to be detected, and the verification result is obtained; If the verification result is successful, multiple fields of data in the data area of ​​the data packet to be detected are located based on preset feature identifiers, and the intermediate QR code content is extracted from the multiple fields of data. Perform data compliance verification on each field of the intermediate QR code content, and determine the field data that passes the verification as the QR code content.

4. The method according to claim 1, characterized in that, The step of obtaining the auxiliary material list information of the target cigarette machine, comparing the auxiliary material list information with the QR code content, and obtaining the comparison result includes: Based on the production basic information of the target cigarette machine, a search is performed in the target database to obtain the auxiliary material list information; wherein, the production basic information includes at least the cigarette machine identifier and the production timestamp; If the auxiliary material list information contains the cigarette paper information in the QR code content, the comparison result is determined to be a qualified match; if the auxiliary material list information does not contain or does not fully contain the cigarette paper information in the QR code content, the comparison result is determined to be a unqualified match. The information related to the cigarette paper includes material classification, material number, supplier / factory, production / packaging date, production batch number, identification type, and serial number.

5. The method according to claim 1, characterized in that, The determination of the detection result of the cigarette paper to be spliced ​​based on the comparison result includes: If the comparison result is a qualified match, then the test result of the cigarette paper to be spliced ​​is determined to be qualified. If the comparison result is a mismatch, then the test result of the cigarette paper to be spliced ​​is determined to be unqualified.

6. The method according to claim 1, characterized in that, The step of associating and binding the QR code content, the comparison result, the detection result, and the production information of the target cigarette machine to generate a production traceability record for the target cigarette machine includes: A unique traceability identifier is established, and the QR code content, the comparison result, the detection result, and the production information of the target cigarette machine are mapped one by one to the unique traceability identifier. Multi-dimensional data is associated, collected, and bound, and a structured production traceability record of the target cigarette machine is generated based on the complete data after binding.

7. The method according to claim 1, characterized in that, The method further includes: Obtain the splicing status information of the cigarette paper to be spliced, and add the splicing status information to the production traceability record, wherein the splicing status information includes whether the splicing was successful or failed.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the cigarette paper information detection method according to any one of claims 1-7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that are used to cause a processor to execute the cigarette paper information detection method according to any one of claims 1-7.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the cigarette paper information detection method according to any one of claims 1-7.