A multi-dimensional configuration self-recovery method, device, electronic equipment, and storage medium for cigarette pack appearance inspection equipment.

CN122673009APending Publication Date: 2026-09-01HONGYUN HONGHE TOBACCO (GRP) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610764777.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-29
Publication Date
2026-09-01

AI Technical Summary

Technical Problem

[0004]本发明的目的在于提出一种烟包外观检测设备的多维配置自恢复方法、装置、电子设备及储存介质,以解决现有烟包外观检测设备中因检测窗口配置漂移、检测参数/窗口变更操作无追溯机制及缺陷数据与检测窗口关联断裂,所引发的烟包外观检测设备配置混乱导致检测烟草产品质量失控的问题

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122673009A_ABST
    Figure CN122673009A_ABST
Patent Text Reader

Abstract

This invention relates to the field of multi-dimensional configuration recovery technology for cigarette packaging appearance inspection equipment, and particularly to a multi-dimensional configuration self-recovery method, device, electronic device, and storage medium for cigarette packaging appearance inspection equipment. The method includes the following steps: first, obtaining a unique encryption key for the cigarette packaging appearance inspection equipment, wherein the unique encryption key is the standard configuration of the cigarette packaging appearance inspection equipment; then, calculating the hash deviation value between the current configuration and the standard configuration of the cigarette packaging appearance inspection equipment; and determining whether to trigger an automatic configuration recovery strategy based on the hash deviation value; finally, if the hash deviation value is greater than zero, automatically recovering the configuration of the cigarette packaging appearance inspection equipment based on the automatic recovery strategy. This addresses the problem of uncontrolled tobacco product quality caused by configuration chaos in existing cigarette packaging appearance inspection equipment due to drifting of the detection window configuration, lack of traceability mechanism for detection parameter / window change operations, and broken association between defect data and the detection window.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of multi-dimensional configuration recovery technology for cigarette pack appearance inspection equipment, and particularly to a multi-dimensional configuration self-recovery method, device, electronic equipment, and storage medium for cigarette pack appearance inspection equipment. Background Technology

[0002] In the tobacco packaging production process, the appearance quality inspection of cigarette packs is crucial to the quality of tobacco products. However, existing visual inspection equipment for cigarette pack appearance is insufficient for inspecting the appearance of a certain brand of tobacco products (the inspection window is shown in the attached diagram in the instruction manual). Figure 5 The following defects also exist in the process: (1) Multiple people adjust the detection window and detection window parameters, which leads to the drift of the detection window configuration (the drift of the detection window configuration: frequent addition / deletion / modification); (2) There is no traceability mechanism for the detection window parameter / detection window change operation; (3) The drift of the detection window configuration leads to the break of the association between defect data and detection window; These defects will not only cause the chaotic configuration of the cigarette pack appearance detection equipment, but also indirectly lead to the situation of uncontrolled tobacco product quality.

[0003] Therefore, it is necessary to improve and optimize the multi-dimensional configuration self-recovery method of cigarette pack appearance inspection equipment to solve the problem of uncontrolled tobacco product quality caused by the chaotic configuration of cigarette pack appearance inspection equipment due to the drift of the detection window configuration, the lack of a traceability mechanism for the operation of detection parameter / window changes, and the break in the association between defect data and the detection window. Summary of the Invention

[0004] The purpose of this invention is to propose a multi-dimensional configuration self-recovery method, device, electronic device, and storage medium for cigarette pack appearance inspection equipment, in order to solve the problem of uncontrolled tobacco product quality caused by the chaotic configuration of existing cigarette pack appearance inspection equipment due to drift in the configuration of the detection window, lack of traceability mechanism for changes in detection parameters / windows, and breakage of the association between defect data and the detection window.

[0005] To solve the above-mentioned technical problems, the present invention adopts the following technical solution:

[0006] This application proposes a multi-dimensional configuration self-recovery method for cigarette pack appearance inspection equipment in its first aspect, including the following steps:

[0007] Obtain the unique encryption key for the cigarette pack appearance inspection equipment; the unique encryption key for the cigarette pack appearance inspection equipment is a standard configuration of the equipment.

[0008] Calculate the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment, and determine whether to trigger the automatic configuration recovery strategy of the cigarette pack appearance inspection equipment based on the hash deviation value;

[0009] If the hash deviation value is greater than zero, the configuration of the cigarette pack appearance inspection equipment will be automatically restored based on the automatic recovery strategy.

[0010] Prior to this, obtaining the unique encryption key for the cigarette pack appearance inspection device includes the following steps:

[0011] The configuration of the cigarette pack appearance inspection equipment is structured and sorted using a key generator to obtain the structured and sorted configuration of the cigarette pack appearance inspection equipment.

[0012] The configuration of the cigarette pack appearance inspection equipment after structured sorting is hashed using the SHA-256 algorithm to obtain the standard configuration of the cigarette pack appearance inspection equipment, i.e., the unique encryption key of the cigarette pack appearance inspection equipment.

[0013] Prioritizing the calculation of the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment, and determining whether to trigger the automatic recovery strategy of the cigarette pack appearance inspection equipment configuration based on the hash deviation value, includes the following steps:

[0014] The standard configuration of the cigarette pack appearance inspection equipment is stored in a key vault, resulting in a key vault containing the standard configuration of the cigarette pack appearance inspection equipment.

[0015] The standard configuration of the cigarette pack appearance inspection equipment is retrieved from the key store containing the standard configuration of the cigarette pack appearance inspection equipment, and the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment is calculated by the drift detector.

[0016] The drift detector determines whether the hash deviation value has reached the preset threshold for triggering the automatic recovery strategy of the cigarette pack appearance inspection device; the preset threshold is a hash deviation value greater than zero.

[0017] Preferably, the step of retrieving the standard configuration of the cigarette pack appearance inspection equipment from the key library storing the standard configuration of the cigarette pack appearance inspection equipment, and calculating the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment using a drift detector, is specifically obtained through the following steps:

[0018] The decision engine is restored to issue a configuration preparation command to the cigarette pack appearance inspection equipment.

[0019] The cigarette pack appearance inspection equipment responds to the issued configuration preparation command and uploads the current configuration of the cigarette pack appearance inspection equipment to the recovery decision engine;

[0020] By sending the current configuration of the cigarette pack appearance inspection equipment to the drift detector through the recovery decision engine, the process of calculating the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment is completed.

[0021] Prior to this, if the hash deviation value is greater than zero, the automatic recovery strategy for automatically recovering the configuration of the cigarette pack appearance inspection equipment based on the automatic recovery strategy is as follows:

[0022] Step A: When the hash deviation value is greater than zero, the idle period of the cigarette pack production equipment or the preset shutdown period of the cigarette pack production equipment is monitored in real time through the MES cigarette pack production capacity management system; wherein, the idle period of the cigarette pack production equipment is determined by the equipment production speed ≤ N packs / minute and the duration is T minutes based on the MES cigarette pack production capacity feedback.

[0023] Step B: During the idle period of the cigarette packaging production equipment or during the preset shutdown period of the cigarette packaging production equipment, the recovery decision engine sends a configuration preparation command to the cigarette packaging appearance inspection equipment. The cigarette packaging appearance inspection equipment responds to the sent configuration preparation command and uploads the current configuration of the cigarette packaging appearance inspection equipment to the recovery decision engine.

[0024] Step C: The recovery decision engine verifies the current configuration of the cigarette pack appearance inspection equipment against its standard configuration; the standard configuration recovery decision engine for the cigarette pack appearance inspection equipment is retrieved from the key library storing the standard configuration of the cigarette pack appearance inspection equipment.

[0025] Step D: If the verification fails, the standard configuration of the cigarette pack appearance inspection equipment will be injected into the cigarette pack appearance inspection equipment by using buffering technology through the recovery decision engine.

[0026] Step E: The cigarette pack appearance inspection equipment responds to the standard configuration of the cigarette pack appearance inspection and sends the newly generated cigarette pack appearance inspection equipment configuration to the recovery decision engine;

[0027] Step F: The recovery decision engine makes a judgment based on the hash value between the newly generated cigarette pack appearance inspection equipment configuration and the standard configuration of the cigarette pack appearance inspection equipment; wherein, the hash value between the newly generated cigarette pack appearance inspection equipment configuration and the standard configuration of the cigarette pack appearance inspection equipment is the deviation between the newly generated cigarette pack appearance inspection equipment configuration and the standard configuration of the cigarette pack appearance inspection equipment.

[0028] Step G: If the hash value is zero, the newly generated cigarette pack appearance inspection equipment configuration is a complete match with the cigarette pack appearance inspection equipment. At the same time, the recovery decision engine sends a confirmation command to the cigarette pack appearance inspection equipment and an automatic recovery success log to the MES cigarette pack production capacity management system. The confirmation command confirms that the cigarette pack appearance inspection equipment configuration has been successfully automatically recovered. The automatic recovery success log includes the ID information of the recovered cigarette pack appearance inspection equipment, the recovery time period of the recovered cigarette pack appearance inspection equipment, the configuration version of the recovered cigarette pack appearance inspection equipment, and the operator ID of the operator who recovered the cigarette pack appearance inspection equipment configuration.

[0029] Step H: If the hash value is greater than zero, repeat steps B through G.

[0030] Preferably, step A, when the hash deviation value is greater than zero, further includes:

[0031] By combining a three-level drift mechanism, the detection windows stored in the cigarette pack appearance inspection equipment are monitored throughout the entire process to determine the root cause of configuration deviations in the cigarette pack appearance inspection equipment.

[0032] Prior to this, the combined three-level drift mechanism is used to monitor the entire process of the detection windows stored in the cigarette pack appearance inspection equipment to determine the root cause of the configuration deviation of the cigarette pack appearance inspection equipment, including the following steps:

[0033] If the hash deviation value is greater than zero, compare the number of detection windows on the cigarette pack appearance inspection equipment to determine whether there is any abnormal addition or deletion of detection windows;

[0034] If the detection window is determined to be normal, then the ID sequence of the detection window is checked to determine whether the ID sequence of the detection window matches.

[0035] If the ID sequence of the detection window is determined to be mismatched, the correlation matrix is ​​used to analyze the matching degree between the detection window and the defect type of the cigarette pack to determine whether the detection window and the defect type of the cigarette pack are associated.

[0036] If the detection window is not associated with the defect type of the cigarette pack, or the detection window ID sequence does not match, or the addition / deletion of the detection window is abnormal, a detection window offset monitoring report will be generated. The detection window offset monitoring report includes a report on the number of detection windows added or deleted, a report on the location of detection windows, and a report on the breakpoint associated with the defect of the detection window.

[0037] Based on the detection window offset monitoring report, the root cause of the configuration deviation of the cigarette pack appearance inspection equipment was determined.

[0038] Prior to this, a multi-dimensional configuration self-recovery method for a cigarette pack appearance inspection device also includes, before operating the inspection window of the cigarette pack appearance inspection device, verifying based on the employee number factor to limit the range of operations that different operators can perform on the inspection window of the cigarette pack appearance inspection device.

[0039] This application proposes a multi-dimensional configuration self-recovery device for a cigarette pack appearance inspection equipment in its second aspect, comprising:

[0040] The standard configuration acquisition module is used to acquire the unique encryption key of the cigarette pack appearance inspection equipment; the unique encryption key of the cigarette pack appearance inspection equipment is a standard configuration of the cigarette pack appearance inspection equipment.

[0041] The configuration recovery judgment module is used to calculate the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment, and to determine whether to trigger the automatic configuration recovery strategy of the cigarette pack appearance inspection equipment based on the hash deviation value;

[0042] The configuration recovery module is used to automatically recover the configuration of the cigarette pack appearance inspection equipment based on the automatic recovery strategy when the hash deviation value is greater than zero.

[0043] This application proposes an electronic device in a third aspect, including...

[0044] One or more processors;

[0045] The memory is used to store one or more programs; when one or more programs are executed by one or more processors, the one or more processors implement a multi-dimensional configuration self-recovery method for the cigarette pack appearance inspection device.

[0046] In its fourth aspect, this application proposes a computer-readable storage medium storing computer instructions for causing a processor to execute a multi-dimensional configuration self-recovery method for a cigarette pack appearance inspection device.

[0047] Compared with the prior art, the present invention has at least one of the following beneficial effects:

[0048] 1. The present invention discloses a multi-dimensional configuration self-recovery method for a cigarette pack appearance inspection device. First, a unique encryption key for the cigarette pack appearance inspection device is obtained, wherein the unique encryption key is the standard configuration of the cigarette pack appearance inspection device. Then, the hash deviation value between the current configuration and the standard configuration of the cigarette pack appearance inspection device is calculated. Based on the hash deviation value, it is determined whether to trigger the automatic configuration recovery strategy of the cigarette pack appearance inspection device. Finally, if the hash deviation value is greater than zero, the configuration of the cigarette pack appearance inspection device is automatically recovered based on the automatic recovery strategy. Thus, by combining a three-level drift detection mechanism, dynamic values ​​of the detection configuration based on dynamic calculation during device operation, and intelligent time-series recovery engine technology, not only are functions such as configuration standard management and automatic recovery after configuration drift of the cigarette pack appearance visual inspection device realized, but the effectiveness and accuracy of the inspection device are also guaranteed, and the automation and accuracy of cigarette pack quality inspection are significantly improved. This solves the problem of uncontrolled tobacco product quality caused by chaotic configuration of the cigarette pack appearance inspection device due to drift of the detection window configuration, lack of traceability mechanism for detection parameter / window change operations, and broken association between defect data and the detection window in existing cigarette pack appearance inspection devices.

[0049] 2. The multi-dimensional configuration self-recovery method for a cigarette pack appearance inspection device in this invention monitors the idle periods or preset shutdown periods of the cigarette pack production equipment in real time through the MES cigarette pack production capacity management system. The idle periods are determined based on the equipment production speed being ≤ N packs / minute and the duration being T minutes, according to the MES cigarette pack production capacity feedback. During the idle periods or preset shutdown periods, a recovery decision engine issues a configuration preparation command to the cigarette pack appearance inspection device. The device responds to the command by uploading its current configuration to the recovery decision engine. This countdown recovery mechanism ensures that any human modification is automatically reset after N days, eliminating configuration chaos caused by multiple adjustments and ensuring that the mapping between the inspection window and defect type conforms to the standard template.

[0050] 3. The multi-dimensional configuration self-recovery method for the cigarette packaging appearance inspection equipment of the present invention sends a confirmation command to the cigarette packaging appearance inspection equipment and an automatic recovery success log to the MES cigarette packaging production capacity management system through a recovery decision engine. The confirmation command confirms that the configuration of the cigarette packaging appearance inspection equipment has been successfully automatically recovered. The automatic recovery success log includes the ID information of the recovered cigarette packaging appearance inspection equipment, the recovery time period of the recovered cigarette packaging appearance inspection equipment, the configuration version of the recovered cigarette packaging appearance inspection equipment, and the operator ID of the operator who recovered the configuration of the cigarette packaging appearance inspection equipment. Thus, each recovery not only automatically generates an encrypted audit log, recording key information such as the personnel involved in the change, the original configuration, and the recovery time, but also, in conjunction with four-dimensional spatiotemporal tagging technology (equipment ID + timestamp + configuration version + operator ID), establishes a full-link traceability system, allowing defect data to be traced back to any historical configuration version, indirectly improving quality management efficiency.

[0051] 4. In the multi-dimensional configuration self-recovery method of the cigarette pack appearance inspection device of the present invention, before operating the inspection window of the cigarette pack appearance inspection device, the operation range of different operators on the inspection window of the cigarette pack appearance inspection device is restricted based on the employee number factor verification; in this way, not only is the operation permission of electricians restricted through the employee number factor verification, but also illegal modifications are intercepted in a timely manner. Attached Figure Description

[0052] Figure 1 This is a flowchart of the multi-dimensional configuration self-recovery method for the cigarette pack appearance inspection device in this invention.

[0053] Figure 2 This is a schematic diagram of the structure of the method in this invention that combines a three-level drift mechanism to monitor the entire process of the detection window stored in the cigarette pack appearance inspection equipment in order to determine the root cause of the configuration deviation of the cigarette pack appearance inspection equipment.

[0054] Figure 3 This is a schematic diagram of the structure of a multi-dimensional configuration self-recovery device for a cigarette pack appearance inspection equipment according to the present invention.

[0055] Figure 4 This is a schematic diagram of the structure of an electronic device according to the present invention.

[0056] Figure 5 This is a schematic diagram of manually setting a detection window on an existing visual inspection device for the appearance of cigarette packs in this invention. Detailed Implementation

[0057] like Figure 1-5 As shown, to make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present invention and are not intended to limit the present invention.

[0058] Example 1

[0059] Figure 1 A flowchart of a multi-dimensional configuration self-recovery method for a cigarette pack appearance inspection device is provided for Embodiment 1 of the present invention. This embodiment is applicable to the automatic recovery of the standard configuration of a cigarette pack appearance inspection device. This method can be executed by a multi-dimensional configuration self-recovery device for the cigarette pack appearance inspection device. This multi-dimensional configuration self-recovery device can be implemented in hardware and / or software, and can be configured in an electronic device with data processing capabilities. For example... Figure 1 As shown, the method includes:

[0060] S110. Obtain the unique encryption key for the cigarette pack appearance inspection equipment.

[0061] The unique encryption key for the cigarette pack appearance inspection equipment is a standard feature of the equipment.

[0062] Optionally, obtain the unique encryption key for the cigarette pack appearance inspection device, including steps A1 to A2:

[0063] A1. The configuration of the cigarette pack appearance inspection equipment is structured and sorted using a key generator to obtain the structured and sorted configuration of the cigarette pack appearance inspection equipment.

[0064] A2. Based on the SHA-256 algorithm, the configuration of the cigarette pack appearance inspection equipment after structured sorting is hashed to obtain the standard configuration of the cigarette pack appearance inspection equipment, that is, the unique encryption key of the cigarette pack appearance inspection equipment.

[0065] S120. Calculate the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment, and determine whether to trigger the automatic recovery strategy of the cigarette pack appearance inspection equipment configuration based on the hash deviation value.

[0066] in,

[0067] Optionally, the configuration of the cigarette pack appearance inspection equipment after structured sorting is hashed based on the SHA-256 algorithm to obtain the standard configuration of the cigarette pack appearance inspection equipment, including steps B1 to B3:

[0068] B1. Store the standard configuration of the cigarette pack appearance inspection equipment in a key vault to obtain a key vault containing the standard configuration of the cigarette pack appearance inspection equipment.

[0069] B2. Retrieve the standard configuration of the cigarette pack appearance inspection equipment from the key library that stores the standard configuration of the cigarette pack appearance inspection equipment, and calculate the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment through the drift detector.

[0070] The current configuration of the cigarette pack appearance inspection equipment is obtained in the following way: the recovery decision engine sends a configuration preparation command to the cigarette pack appearance inspection equipment; the cigarette pack appearance inspection equipment responds to the issued configuration preparation command and uploads its current configuration to the recovery decision engine; the recovery decision engine sends the current configuration of the cigarette pack appearance inspection equipment to the drift detector, thus completing the process of calculating the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment through the drift detector.

[0071] B3. Using a drift detector, determine whether the hash deviation value has reached the preset threshold for triggering the automatic recovery strategy configured in the cigarette pack appearance inspection equipment.

[0072] The preset threshold is a hash deviation value greater than zero.

[0073] S130. If the hash deviation value is greater than zero, the configuration of the cigarette pack appearance inspection equipment will be automatically restored based on the automatic recovery strategy.

[0074] Optionally, if the hash deviation value is greater than zero, the automatic recovery strategy for configuring the cigarette pack appearance inspection equipment is performed based on the automatic recovery strategy. The automatic recovery strategy specifically includes steps C1 to C8:

[0075] C1. When the hash deviation value is greater than zero, the idle period of the cigarette pack production equipment or the preset shutdown period of the cigarette pack production equipment is monitored in real time through the MES cigarette pack production capacity management system. The idle period of the cigarette pack production equipment is determined by the equipment production speed ≤ N packs / minute and the duration is T minutes based on the MES cigarette pack production capacity feedback.

[0076] C2. During the idle period of the cigarette packaging production equipment or the preset shutdown period of the cigarette packaging production equipment, the recovery decision engine sends a configuration preparation command to the cigarette packaging appearance inspection equipment. The cigarette packaging appearance inspection equipment responds to the sent configuration preparation command and uploads the current configuration of the cigarette packaging appearance inspection equipment to the recovery decision engine.

[0077] C3. The recovery decision engine verifies the current configuration of the cigarette pack appearance inspection equipment against its standard configuration; the standard configuration recovery decision engine for the cigarette pack appearance inspection equipment is retrieved from the key library that stores the standard configuration of the cigarette pack appearance inspection equipment.

[0078] C4. If the verification fails, the standard configuration of the cigarette pack appearance inspection equipment will be injected into the cigarette pack appearance inspection equipment by using buffer technology through the recovery decision engine.

[0079] C5. The cigarette pack appearance inspection equipment responds to the standard configuration of the cigarette pack appearance inspection and sends the newly generated cigarette pack appearance inspection equipment configuration to the recovery decision engine.

[0080] C6. The recovery decision engine makes a judgment based on the hash value between the newly generated cigarette pack appearance inspection equipment configuration and the standard configuration of the cigarette pack appearance inspection equipment; whereby the hash value between the newly generated cigarette pack appearance inspection equipment configuration and the standard configuration of the cigarette pack appearance inspection equipment is the deviation between the newly generated cigarette pack appearance inspection equipment configuration and the standard configuration of the cigarette pack appearance inspection equipment.

[0081] C7. If the hash value is zero, the newly generated cigarette pack appearance inspection equipment configuration is a complete match with the cigarette pack appearance inspection equipment. At the same time, the recovery decision engine sends a confirmation command to the cigarette pack appearance inspection equipment and an automatic recovery success log to the MES cigarette pack production capacity management system. The confirmation command confirms that the cigarette pack appearance inspection equipment configuration has been successfully restored. The automatic recovery success log includes the ID information of the restored cigarette pack appearance inspection equipment, the restoration time period of the restored cigarette pack appearance inspection equipment, the configuration version of the restored cigarette pack appearance inspection equipment, and the operator ID of the operator who restored the cigarette pack appearance inspection equipment configuration.

[0082] C8. If the hash value is greater than zero, repeat steps C2 to C8.

[0083] It should be noted that before operating the inspection window of the cigarette pack appearance inspection equipment, the scope of operation of the inspection window of the cigarette pack appearance inspection equipment by different operators is limited based on the employee number factor verification.

[0084] The technical solution of this application embodiment first obtains a unique encryption key for the cigarette pack appearance inspection device. This unique encryption key is the standard configuration of the cigarette pack appearance inspection device. Then, it calculates the hash deviation value between the current configuration and the standard configuration of the cigarette pack appearance inspection device. Based on the hash deviation value, it determines whether to trigger the automatic configuration recovery strategy for the cigarette pack appearance inspection device. Finally, if the hash deviation value is greater than zero, the configuration of the cigarette pack appearance inspection device is automatically recovered based on the automatic recovery strategy. Thus, by combining a three-level drift detection mechanism, dynamic values ​​of the detection configuration based on dynamic calculation during device operation, and an intelligent time-series recovery engine technology, it not only achieves functions such as configuration standard management and automatic recovery after configuration drift of the cigarette pack appearance visual inspection device, but also ensures the effectiveness and accuracy of the inspection device and significantly improves the automation and accuracy of cigarette pack quality inspection. This solves the problem of uncontrolled tobacco product quality caused by chaotic configuration of the cigarette pack appearance inspection device due to drift in the detection window configuration, lack of traceability mechanism for detection parameter / window change operations, and broken association between defect data and the detection window in existing cigarette pack appearance inspection devices.

[0085] Example 2

[0086] Figure 2This invention provides a flowchart illustrating "a method for determining the root cause of configuration deviations in the cigarette pack appearance inspection equipment by combining a three-level drift mechanism to monitor the detection windows stored in the equipment throughout the entire process when the hash deviation value is greater than zero." This embodiment further optimizes the aforementioned embodiments and can be combined with various optional solutions in one or more of the above embodiments. Figure 2 As shown, this embodiment, when the hash deviation value is greater than zero, also includes a method for monitoring the entire process of the detection windows stored in the cigarette pack appearance inspection equipment in conjunction with a three-level drift mechanism to determine the root cause of the configuration deviation of the cigarette pack appearance inspection equipment. This method may include the following steps:

[0087] S210. If the hash deviation value is greater than zero, compare the number of detection windows on the cigarette pack appearance inspection device to determine whether the addition / deletion of detection windows is abnormal.

[0088] S220. If the detection window is determined to be normal, perform ID sequence verification on the detection window to determine whether the ID sequence of the detection window matches.

[0089] S230. If it is determined that the ID sequence of the detection window does not match, the matching degree between the detection window and the defect type of the cigarette pack is analyzed by the correlation matrix to determine whether the detection window and the defect type of the cigarette pack are associated.

[0090] S240. If the detection window is not associated with the defect type of the cigarette pack, or the detection window ID sequence does not match, or the addition / deletion of the detection window is abnormal, a detection window offset monitoring report will be generated.

[0091] The detection window offset monitoring report includes reports on the increase or decrease of the number of detection windows, reports on the location of detection windows, and reports on the associated breakpoints of defects in detection windows.

[0092] S250. Based on the detection window offset monitoring report, determine the root cause of the configuration deviation of the cigarette pack appearance inspection equipment.

[0093] The technical solution of this application embodiment compares the number of detection windows on the cigarette pack appearance inspection device when the hash deviation value is greater than zero to determine whether the addition / deletion of detection windows is abnormal. If the detection windows are determined to be normal, the ID sequence of the detection windows is checked to determine whether the ID sequence of the detection windows matches. If the ID sequence of the detection windows does not match, the matching degree between the detection windows and the cigarette pack defect types is analyzed through the correlation matrix to determine whether the detection windows and the cigarette pack defect types are associated. If the detection windows are not associated with the cigarette pack defect types, or the ID sequence of the detection windows does not match, or the addition / deletion of detection windows is abnormal, a detection window offset monitoring report is generated. Based on the detection window offset monitoring... The report identifies the root cause of configuration deviations in cigarette pack appearance inspection equipment. Therefore, by combining a three-level drift detection mechanism, dynamic values ​​of the detection configuration based on dynamic calculations during equipment operation, and intelligent time-series recovery engine technology, it not only achieves functions such as configuration standard management and automatic recovery after configuration drift of the cigarette pack appearance visual inspection device, but also ensures the effectiveness and accuracy of the inspection device and significantly improves the automation and accuracy of cigarette pack quality inspection. This addresses the problem of uncontrolled tobacco product quality caused by chaotic configuration of existing cigarette pack appearance inspection equipment due to drift in detection window configuration, lack of traceability mechanisms for detection parameter / window changes, and broken correlation between defect data and detection windows.

[0094] Example 3

[0095] Figure 3 This invention provides a structural block diagram of a multi-dimensional configuration self-recovery device for a cigarette pack appearance inspection equipment. This embodiment is applicable to situations where the standard configuration of the cigarette pack appearance inspection equipment automatically recovers. This multi-dimensional configuration self-recovery device for the cigarette pack appearance inspection equipment can be implemented in hardware and / or software, and can be configured in an electronic device with data processing capabilities. Figure 3 As shown, the multi-dimensional configuration self-recovery device of the cigarette pack appearance inspection equipment in this embodiment may include: S310, standard configuration acquisition module, S320, configuration recovery judgment module, and S330, configuration recovery recovery module.

[0096] Among them, S310, the standard configuration acquisition module, is used to acquire the unique encryption key of the cigarette pack appearance inspection equipment; the unique encryption key of the cigarette pack appearance inspection equipment is the standard configuration of the cigarette pack appearance inspection equipment.

[0097] S320, Configuration Recovery Judgment Module, is used to calculate the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment, and determine whether to trigger the automatic configuration recovery strategy of the cigarette pack appearance inspection equipment based on the hash deviation value;

[0098] S330, Configuration Recovery Module, is used to automatically recover the configuration of the cigarette pack appearance inspection equipment based on the automatic recovery strategy when the hash deviation value is greater than zero.

[0099] The technical solution of this application embodiment first obtains the unique encryption key of the cigarette pack appearance inspection device through the standard configuration acquisition module. This unique encryption key is the standard configuration of the cigarette pack appearance inspection device. Then, the configuration recovery judgment module calculates the hash deviation value between the current configuration and the standard configuration of the cigarette pack appearance inspection device. Based on the hash deviation value, it determines whether to trigger the automatic configuration recovery strategy. Finally, if the hash deviation value is greater than zero, the configuration of the cigarette pack appearance inspection device is automatically restored based on the automatic recovery strategy. Thus, by combining a three-level drift detection mechanism, dynamic values ​​of the detection configuration based on dynamic calculation during device operation, and intelligent time-series recovery engine technology, not only are functions such as configuration standard management and automatic recovery after configuration drift of the cigarette pack appearance visual inspection device realized, but the effectiveness and accuracy of the inspection device are also guaranteed, and the automation and accuracy of cigarette pack quality inspection are significantly improved. This solves the problem of uncontrolled tobacco product quality caused by configuration chaos in existing cigarette pack appearance inspection devices due to drift in the detection window configuration, lack of traceability mechanisms for detection parameter / window changes, and broken association between defect data and the detection window.

[0100] Based on the above embodiments, optionally, the standard configuration acquisition module is specifically used for:

[0101] The configuration of the cigarette pack appearance inspection equipment is structured and sorted using a key generator to obtain the structured and sorted configuration of the cigarette pack appearance inspection equipment.

[0102] The configuration of the cigarette pack appearance inspection equipment after structured sorting is hashed using the SHA-256 algorithm to obtain the standard configuration of the cigarette pack appearance inspection equipment, i.e., the unique encryption key of the cigarette pack appearance inspection equipment.

[0103] Based on the above embodiments, optionally, the configuration recovery judgment module is specifically used for:

[0104] The standard configuration of the cigarette pack appearance inspection equipment is stored in a key vault, resulting in a key vault containing the standard configuration of the cigarette pack appearance inspection equipment.

[0105] The standard configuration of the cigarette pack appearance inspection equipment is retrieved from the key store containing the standard configuration of the cigarette pack appearance inspection equipment, and the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment is calculated by the drift detector.

[0106] The drift detector determines whether the hash deviation value has reached the preset threshold for triggering the automatic recovery strategy of the cigarette pack appearance inspection device; the preset threshold is a hash deviation value greater than zero.

[0107] Based on the above embodiments, optionally, the step of retrieving the standard configuration of the cigarette pack appearance inspection equipment from the key library storing the standard configuration of the cigarette pack appearance inspection equipment, and calculating the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment using a drift detector, is specifically obtained through the following steps:

[0108] The decision engine is restored to issue a configuration preparation command to the cigarette pack appearance inspection equipment.

[0109] The cigarette pack appearance inspection equipment responds to the issued configuration preparation command and uploads the current configuration of the cigarette pack appearance inspection equipment to the recovery decision engine;

[0110] By sending the current configuration of the cigarette pack appearance inspection equipment to the drift detector through the recovery decision engine, the process of calculating the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment is completed.

[0111] Based on the above embodiments, optionally, the configuration recovery module is specifically used for:

[0112] Step A: When the hash deviation value is greater than zero, the idle period of the cigarette pack production equipment or the preset shutdown period of the cigarette pack production equipment is monitored in real time through the MES cigarette pack production capacity management system; wherein, the idle period of the cigarette pack production equipment is determined by the equipment production speed ≤ N packs / minute and the duration is T minutes based on the MES cigarette pack production capacity feedback.

[0113] Step B: During the idle period of the cigarette packaging production equipment or during the preset shutdown period of the cigarette packaging production equipment, the recovery decision engine sends a configuration preparation command to the cigarette packaging appearance inspection equipment. The cigarette packaging appearance inspection equipment responds to the sent configuration preparation command and uploads the current configuration of the cigarette packaging appearance inspection equipment to the recovery decision engine.

[0114] Step C: The recovery decision engine verifies the current configuration of the cigarette pack appearance inspection equipment against its standard configuration; the standard configuration recovery decision engine for the cigarette pack appearance inspection equipment is retrieved from the key library storing the standard configuration of the cigarette pack appearance inspection equipment.

[0115] Step D: If the verification fails, the standard configuration of the cigarette pack appearance inspection equipment will be injected into the cigarette pack appearance inspection equipment by using buffering technology through the recovery decision engine.

[0116] Step E: The cigarette pack appearance inspection equipment responds to the standard configuration of the cigarette pack appearance inspection and sends the newly generated cigarette pack appearance inspection equipment configuration to the recovery decision engine;

[0117] Step F: The recovery decision engine makes a judgment based on the hash value between the newly generated cigarette pack appearance inspection equipment configuration and the standard configuration of the cigarette pack appearance inspection equipment; wherein, the hash value between the newly generated cigarette pack appearance inspection equipment configuration and the standard configuration of the cigarette pack appearance inspection equipment is the deviation between the newly generated cigarette pack appearance inspection equipment configuration and the standard configuration of the cigarette pack appearance inspection equipment.

[0118] Step G: If the hash value is zero, the newly generated cigarette pack appearance inspection equipment configuration is a complete match with the cigarette pack appearance inspection equipment. At the same time, the recovery decision engine sends a confirmation command to the cigarette pack appearance inspection equipment and an automatic recovery success log to the MES cigarette pack production capacity management system. The confirmation command confirms that the cigarette pack appearance inspection equipment configuration has been successfully automatically recovered. The automatic recovery success log includes the ID information of the recovered cigarette pack appearance inspection equipment, the recovery time period of the recovered cigarette pack appearance inspection equipment, the configuration version of the recovered cigarette pack appearance inspection equipment, and the operator ID of the operator who recovered the cigarette pack appearance inspection equipment configuration.

[0119] Step H: If the hash value is greater than zero, repeat steps B through G.

[0120] Based on the above embodiments, optionally, step A, when the hash deviation value is greater than zero, further includes:

[0121] By combining a three-level drift mechanism, the detection windows stored in the cigarette pack appearance inspection equipment are monitored throughout the entire process to determine the root cause of configuration deviations in the cigarette pack appearance inspection equipment.

[0122] Based on the above embodiments, optionally, the step of combining a three-level drift mechanism to monitor the detection windows stored in the cigarette pack appearance inspection equipment throughout the entire process in order to determine the root cause of the configuration deviation of the cigarette pack appearance inspection equipment includes the following steps:

[0123] If the hash deviation value is greater than zero, compare the number of detection windows on the cigarette pack appearance inspection equipment to determine whether there is any abnormal addition or deletion of detection windows;

[0124] If the detection window is determined to be normal, then the ID sequence of the detection window is checked to determine whether the ID sequence of the detection window matches.

[0125] If the ID sequence of the detection window is determined to be mismatched, the correlation matrix is ​​used to analyze the matching degree between the detection window and the defect type of the cigarette pack to determine whether the detection window and the defect type of the cigarette pack are associated.

[0126] If the detection window is not associated with the defect type of the cigarette pack, or the detection window ID sequence does not match, or the addition / deletion of the detection window is abnormal, a detection window offset monitoring report will be generated. The detection window offset monitoring report includes a report on the number of detection windows added or deleted, a report on the location of detection windows, and a report on the breakpoint associated with the defect of the detection window.

[0127] Based on the detection window offset monitoring report, the root cause of the configuration deviation of the cigarette pack appearance inspection equipment was determined.

[0128] The multi-dimensional configuration self-recovery device of the cigarette pack appearance inspection equipment provided in this embodiment of the invention can execute the cigarette laser perforation ventilation rate prediction method based on multi-channel attention mechanism provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0129] Example 4

[0130] Figure 4 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device 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 can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., 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.

[0131] like Figure 4 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 from storage unit 18 into the RAM 13. The RAM 13 may 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.

[0132] 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.

[0133] 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 laser perforation ventilation rate prediction method based on a multi-channel attention mechanism. In some embodiments, the cigarette laser perforation ventilation rate prediction method based on a multi-channel attention mechanism can 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 can 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 laser perforation ventilation rate prediction method based on a multi-channel attention mechanism described above can be performed. Alternatively, in other embodiments, the processor 11 may be configured by any other suitable means (e.g., by means of firmware) to perform a cigarette laser perforation ventilation rate prediction method based on a multi-channel attention mechanism.

[0134] 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.

[0135] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0136] 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.

[0137] To provide interaction with a user, 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 user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0138] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with 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., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0139] 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.

[0140] 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.

[0141] 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 multi-dimensional configuration self-recovery method for a cigarette pack appearance inspection device, characterized in that: Includes the following steps: Obtain the unique encryption key for the cigarette pack appearance inspection equipment; the unique encryption key for the cigarette pack appearance inspection equipment is a standard configuration of the equipment. Calculate the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment, and determine whether to trigger the automatic configuration recovery strategy of the cigarette pack appearance inspection equipment based on the hash deviation value; If the hash deviation value is greater than zero, the configuration of the cigarette pack appearance inspection equipment will be automatically restored based on the automatic recovery strategy.

2. The multi-dimensional configuration self-recovery method for a cigarette pack appearance inspection device according to claim 1, characterized in that: The process of obtaining the unique encryption key for the cigarette pack appearance inspection device includes the following steps: The configuration of the cigarette pack appearance inspection equipment is structured and sorted using a key generator to obtain the structured and sorted configuration of the cigarette pack appearance inspection equipment. The configuration of the cigarette pack appearance inspection equipment after structured sorting is hashed using the SHA-256 algorithm to obtain the standard configuration of the cigarette pack appearance inspection equipment, i.e., the unique encryption key of the cigarette pack appearance inspection equipment.

3. The multi-dimensional configuration self-recovery method for a cigarette pack appearance inspection device according to claim 1, characterized in that: The calculation of the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment, and the determination of whether to trigger the automatic recovery strategy of the cigarette pack appearance inspection equipment configuration based on the hash deviation value, includes the following steps: The standard configuration of the cigarette pack appearance inspection equipment is stored in a key vault, resulting in a key vault containing the standard configuration of the cigarette pack appearance inspection equipment. The standard configuration of the cigarette pack appearance inspection equipment is retrieved from the key store containing the standard configuration of the cigarette pack appearance inspection equipment, and the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment is calculated by the drift detector. The drift detector determines whether the hash deviation value has reached the preset threshold for triggering the automatic recovery strategy of the cigarette pack appearance inspection device; the preset threshold is a hash deviation value greater than zero.

4. The multi-dimensional configuration self-recovery method for a cigarette pack appearance inspection device according to claim 1, characterized in that: The step of retrieving the standard configuration of the cigarette pack appearance inspection equipment from the key library storing the standard configuration of the cigarette pack appearance inspection equipment, and calculating the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment using a drift detector, is specifically obtained through the following steps: The decision engine is restored to issue a configuration preparation command to the cigarette pack appearance inspection equipment. The cigarette pack appearance inspection equipment responds to the issued configuration preparation command and uploads the current configuration of the cigarette pack appearance inspection equipment to the recovery decision engine; By sending the current configuration of the cigarette pack appearance inspection equipment to the drift detector through the recovery decision engine, the process of calculating the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment is completed.

5. The multi-dimensional configuration self-recovery method for a cigarette pack appearance inspection device according to claim 1, characterized in that: If the hash deviation value is greater than zero, the automatic recovery strategy for automatically recovering the configuration of the cigarette pack appearance inspection equipment is as follows: Step A: When the hash deviation value is greater than zero, the idle period of the cigarette pack production equipment or the preset shutdown period of the cigarette pack production equipment is monitored in real time through the MES cigarette pack production capacity management system; wherein, the idle period of the cigarette pack production equipment is determined by the equipment production speed ≤ N packs / minute and the duration is T minutes based on the MES cigarette pack production capacity feedback. Step B: During the idle period of the cigarette packaging production equipment or during the preset shutdown period of the cigarette packaging production equipment, the recovery decision engine sends a configuration preparation command to the cigarette packaging appearance inspection equipment. The cigarette packaging appearance inspection equipment responds to the sent configuration preparation command and uploads the current configuration of the cigarette packaging appearance inspection equipment to the recovery decision engine. Step C: The recovery decision engine verifies the current configuration of the cigarette pack appearance inspection equipment against its standard configuration; the standard configuration recovery decision engine for the cigarette pack appearance inspection equipment is retrieved from the key library storing the standard configuration of the cigarette pack appearance inspection equipment. Step D: If the verification fails, the standard configuration of the cigarette pack appearance inspection equipment will be injected into the cigarette pack appearance inspection equipment by using buffering technology through the recovery decision engine. Step E: The cigarette pack appearance inspection equipment responds to the standard configuration of the cigarette pack appearance inspection and sends the newly generated cigarette pack appearance inspection equipment configuration to the recovery decision engine; Step F: The recovery decision engine makes a judgment based on the hash value between the newly generated cigarette pack appearance inspection equipment configuration and the standard configuration of the cigarette pack appearance inspection equipment; wherein, the hash value between the newly generated cigarette pack appearance inspection equipment configuration and the standard configuration of the cigarette pack appearance inspection equipment is the deviation between the newly generated cigarette pack appearance inspection equipment configuration and the standard configuration of the cigarette pack appearance inspection equipment. Step G: If the hash value is zero, the newly generated cigarette pack appearance inspection equipment configuration is a complete match with the cigarette pack appearance inspection equipment. At the same time, the recovery decision engine sends a confirmation command to the cigarette pack appearance inspection equipment and an automatic recovery success log to the MES cigarette pack production capacity management system. The confirmation command confirms that the cigarette pack appearance inspection equipment configuration has been successfully automatically recovered. The automatic recovery success log includes the ID information of the recovered cigarette pack appearance inspection equipment, the recovery time period of the recovered cigarette pack appearance inspection equipment, the configuration version of the recovered cigarette pack appearance inspection equipment, and the operator ID of the operator who recovered the cigarette pack appearance inspection equipment configuration. Step H: If the hash value is greater than zero, repeat steps B through G.

6. The multi-dimensional configuration self-recovery method for a cigarette pack appearance inspection device according to claim 5, characterized in that: Step A, when the hash deviation value is greater than zero, further includes: By combining a three-level drift mechanism, the detection windows stored in the cigarette pack appearance inspection equipment are monitored throughout the entire process to determine the root cause of configuration deviations in the cigarette pack appearance inspection equipment.

7. The multi-dimensional configuration self-recovery method for a cigarette pack appearance inspection device according to claim 6, characterized in that: The method, which combines a three-level drift mechanism, monitors the entire process of the detection windows stored in the cigarette pack appearance inspection equipment to determine the root cause of configuration deviations in the equipment. This includes the following steps: If the hash deviation value is greater than zero, compare the number of detection windows on the cigarette pack appearance inspection equipment to determine whether there is any abnormal addition or deletion of detection windows; If the detection window is determined to be normal, then the ID sequence of the detection window is checked to determine whether the ID sequence of the detection window matches. If the ID sequence of the detection window is determined to be mismatched, the correlation matrix is ​​used to analyze the matching degree between the detection window and the defect type of the cigarette pack to determine whether the detection window and the defect type of the cigarette pack are associated. If the detection window is not associated with the defect type of the cigarette pack, or the detection window ID sequence does not match, or the addition / deletion of the detection window is abnormal, a detection window offset monitoring report will be generated. The detection window offset monitoring report includes a report on the number of detection windows added or deleted, a report on the location of detection windows, and a report on the breakpoint associated with the defect of the detection window. Based on the detection window offset monitoring report, the root cause of the configuration deviation of the cigarette pack appearance inspection equipment was determined.

8. The multi-dimensional configuration self-recovery method for a cigarette pack appearance inspection device according to claim 1, characterized in that: Also includes: Before operating the inspection window of the cigarette pack appearance inspection equipment, the scope of operation of the inspection window of the cigarette pack appearance inspection equipment by different operators is restricted based on the employee number factor verification.

9. A multi-dimensional configuration self-recovery device for a cigarette pack appearance inspection equipment, characterized in that: include: The standard configuration acquisition module is used to acquire the unique encryption key of the cigarette pack appearance inspection equipment; the unique encryption key of the cigarette pack appearance inspection equipment is a standard configuration of the cigarette pack appearance inspection equipment. The configuration recovery judgment module is used to calculate the hash deviation value between the current configuration of the cigarette pack appearance inspection equipment and the standard configuration of the cigarette pack appearance inspection equipment, and to determine whether to trigger the automatic configuration recovery strategy of the cigarette pack appearance inspection equipment based on the hash deviation value; The configuration recovery module is used to automatically restore the configuration of the cigarette pack appearance inspection equipment based on the automatic recovery strategy when the hash deviation value is greater than zero.

10. An electronic device, characterized in that, The electronic device includes: One or more processors; A memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement a multi-dimensional configuration self-recovery method for a cigarette pack appearance inspection device as described in any one of claims 1-7.