Cigarette color film detection method, system and equipment and storage medium
By using dual-color sensors to collect color data from the front and side of the cigarette pack detection system and performing fusion analysis, the problem of insufficient accuracy in the detection of cigarette pack color films in the prior art has been solved, and efficient and accurate color film anomaly detection has been achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA TOBACCO GUANGDONG IND
- Filing Date
- 2026-01-23
- Publication Date
- 2026-04-21
AI Technical Summary
In existing technologies, the detection of colored film on cigarette packs suffers from insufficient accuracy and requires manual re-inspection, resulting in low efficiency and a high risk of errors.
A dual-color sensor is used to collect color data of the smoke film from multiple angles. By fusing and analyzing the color data from multiple angles, the detection accuracy is improved.
It improves the accuracy of cigarette film detection, reduces the need for manual re-inspection, and enhances detection efficiency and accuracy.
Smart Images

Figure CN121899145A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of cigarette detection technology, and in particular to a method, system, device and storage medium for detecting the color film of cigarette packs. Background Technology
[0002] The transparent film on a carton of medium-length cigarettes (colored film version) is a pre-printed transparent film with a specific colored pattern, in addition to the standard specifications of ordinary transparent translucent film; this is simply called colored film. During production, the colored film is unfolded by an unfolding roller, then conveyed to a fixed length, cut, wrapped, and heat-sealed to ultimately form a qualified carton (colored film version). When the colored film is wrapped abnormally, the colored pattern often deviates from its normal position; that is, the translucent film markings mentioned in this article are offset, which constitutes a defective product.
[0003] Current technology for detecting colored films on cigarette packs involves using a single camera to photograph the pack and then analyzing the image data. However, the image data from a single cigarette pack cannot effectively reflect color anomalies in the film, and undetected packs require manual re-inspection, resulting in inefficiency and a high risk of errors. Summary of the Invention
[0004] This invention provides a method, system, device, and storage medium for detecting colored films on cigarette packs, which can improve the accuracy of cigarette pack colored film detection.
[0005] In a first aspect, embodiments of the present invention provide a method for detecting colored film on cigarette packs, applied to a cigarette pack colored film detection system, wherein the cigarette pack colored film detection system includes: a first color sensor and a second color sensor, the first color sensor being disposed on the front side of the cigarette pack channel, and the second color sensor being disposed on the side side of the cigarette pack channel, the method comprising:
[0006] Based on the first color sensor, the front color data of the target cigarette pack is acquired, and the first color filter detection result of the target cigarette pack is determined based on the front color data; based on the second color sensor, the side color data of the target cigarette pack is acquired, and the second color filter detection result of the target cigarette pack is determined based on the front color data; based on the first color filter detection result and the second color filter detection result, the target color filter detection result of the target cigarette pack is determined.
[0007] Secondly, embodiments of the present invention provide a cigarette pack color film detection system, the cigarette pack color film detection system comprising: a first color sensor and a second color sensor, the first color sensor being disposed on the front side of the cigarette pack channel, and the second color sensor being disposed on the side side of the cigarette pack channel, the system comprising:
[0008] The front color filter detection module is used to acquire the front color data of the target cigarette pack based on the first color sensor, and determine the first color filter detection result of the target cigarette pack based on the front color data; the side color filter detection module is used to acquire the side color data of the target cigarette pack based on the second color sensor, and determine the second color filter detection result of the target cigarette pack based on the front color data; the target color filter detection module is used to determine the target color filter detection result of the target cigarette pack based on the first color filter detection result and the second color filter detection result.
[0009] Thirdly, embodiments of the present invention provide a computer device, the computer device comprising:
[0010] One or more processors;
[0011] Memory, used to store one or more programs;
[0012] When the one or more programs are executed by the one or more processors, the one or more processors implement the smoke film detection method of any embodiment.
[0013] Fourthly, embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the smoke film detection method described in any embodiment.
[0014] The technical solution provided by this invention involves acquiring frontal color data of a target cigarette pack based on a first color sensor, determining a first color filter detection result based on the frontal color data, acquiring side color data of the target cigarette pack based on a second color sensor, determining a second color filter detection result based on the frontal color data, and finally determining a target color filter detection result based on the first and second color filter detection results. This invention solves the problem of insufficient detection accuracy in existing technologies that use image data captured by a single camera for color filter anomaly analysis. It improves the accuracy of cigarette color filter detection by acquiring color data from multiple angles using dual color sensors and then fusing and analyzing the multi-angle color data. Attached Figure Description
[0015] Figure 1 This is a flowchart of a method for detecting colored film on cigarette strips provided in an embodiment of the present invention;
[0016] Figure 2 This is a flowchart of another method for detecting colored film on cigarette strips provided in an embodiment of the present invention;
[0017] Figure 3 This is a schematic diagram of a color filter detection result provided in an embodiment of the present invention;
[0018] Figure 4 This is a schematic diagram of a device for detecting colored film on cigarette strips provided in an embodiment of the present invention;
[0019] Figure 5 This is a schematic diagram of the structure of a cigarette bar color film detection system provided in an embodiment of the present invention;
[0020] Figure 6 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention. The acquisition, storage, use, and processing of data in the technical solutions of the embodiments of the present invention all comply with the relevant provisions of national laws and regulations.
[0022] Figure 1 This is a flowchart of a cigarette color film detection method provided by an embodiment of the present invention. The embodiment of the present invention can be applied to scenarios where abnormalities are detected in the color film of cigarette packs, and can be applied to a cigarette color film detection system. The cigarette color film detection system includes: a first color sensor and a second color sensor. The first color sensor is disposed on the front of the cigarette pack channel, and the second color sensor is disposed on the side of the cigarette pack channel. The method can be executed by the cigarette color film detection system, which can be implemented by software and / or hardware.
[0023] like Figure 1 As shown, the method for detecting colored film on cigarette packs includes the following steps:
[0024] S110. Obtain the front color data of the target cigarette pack based on the first color sensor, and determine the first color film detection result of the target cigarette pack based on the front color data.
[0025] In this invention, the first color sensor can be located on the front of the cigarette pack channel, and the second color sensor can be located on the side of the cigarette pack channel. The first color sensor can collect color data of the colored film of the cigarette pack passing through the channel from the front angle, and the second color sensor can collect color data of the colored film of the cigarette pack passing through the channel from the side angle. This technical solution utilizes the first and second color sensors to collect color data from multiple angles (front and side), and then performs fusion analysis based on the multi-angle color data to improve the accuracy of colored film detection. Furthermore, by analyzing the color data of the cigarette pack colored film, abnormalities can be detected directly from a color perspective, avoiding the intermediate step of color recognition required through image data, thus improving the accuracy of colored film anomaly analysis.
[0026] Furthermore, the target cigarette pack can be a cigarette pack that requires color filter detection. Specifically, each cigarette pack passing through the cigarette pack channel can be considered a target cigarette pack. For example, a pusher can be set at one end of the cigarette pack channel to stably push the target cigarette pack on the cigarette pack channel to the detection area corresponding to the color sensor. The front color data is the color data collected by the first color sensor from the front angle of the target cigarette pack. The first color filter detection result can be the anomaly detection result of the color filter of the target cigarette pack from the front angle. Specifically, color difference and color distribution can be detected on the front color data to determine the first color filter detection result.
[0027] S120. Obtain the side color data of the target cigarette pack based on the second color sensor, and determine the second color film detection result of the target cigarette pack based on the front color data.
[0028] The side color data refers to the color data collected by the second color sensor from the side angle of the target cigarette pack. The second color filter detection result can be the anomaly detection result of the color filter of the target cigarette pack from the side angle. Specifically, color difference and color distribution can be detected on the side color data to determine the second color filter detection result.
[0029] S130. Based on the first color filter detection result and the second color filter detection result, determine the target color filter detection result of the target cigarette pack.
[0030] The target color filter detection result can be the final detection result of the color filter of the target cigarette pack. Specifically, the first color filter detection result and the second color filter detection result can be fused and analyzed to obtain the target color filter detection result. For example, if either the first color filter detection result or the second color filter detection result is a color anomaly detection result, the target color filter detection result can be determined to be a color filter anomaly detection result; if both the first color filter detection result and the second color filter detection result are color normal detection results, the target color filter detection result can be determined to be a color filter normal detection result.
[0031] The technical solution provided by this invention involves acquiring frontal color data of a target cigarette pack based on a first color sensor, determining the first color filter detection result based on the frontal color data, acquiring side color data of the target cigarette pack based on a second color sensor, determining the second color filter detection result based on the frontal color data, and finally determining the target color filter detection result based on the first and second color filter detection results. This invention solves the problem of insufficient detection accuracy in existing technologies that use image data captured by a single camera for color filter anomaly analysis. It improves the accuracy of cigarette color filter detection by acquiring color data from multiple angles using dual color sensors and then fusing and analyzing the multi-angle color data.
[0032] Figure 2 This is a flowchart of another cigarette color film detection method provided by an embodiment of the present invention. This embodiment is applicable to scenarios involving anomaly detection of the color film of cigarette cartons, and is applied to a cigarette color film detection system. The cigarette color film detection system includes: a first color sensor and a second color sensor. The first color sensor is disposed on the front of the cigarette cart channel, and the second color sensor is disposed on the side of the cigarette cart channel. Based on the above embodiments, this embodiment further explains how to determine the first color film detection result of the target cigarette cart based on the front color data; and how to determine the second color film detection result of the target cigarette cart based on the front color data. This system can be implemented by software and / or hardware and integrated into a computer device with application development capabilities.
[0033] like Figure 2 As shown, the method for detecting colored film on cigarette packs includes the following steps:
[0034] S210. Obtain the front color data of the target cigarette pack based on the first color sensor, and filter out the front color sub-data of the front cigarette pack area from the front color data.
[0035] The target cigarette pack can be any cigarette pack that requires color filter detection. Specifically, each cigarette pack passing through the cigarette pack channel can be considered a target cigarette pack. For example, a pusher can be installed at one end of the cigarette pack channel to stably push the target cigarette pack on the channel into the detection area corresponding to the color sensor.
[0036] The frontal color data refers to the color data collected by the first color sensor from the frontal angle of the target cigarette pack.
[0037] The frontal smoke strip area can be the region where color filter inspection needs to be performed from the front angle of the target smoke strip. Specifically, the frontal smoke strip area can be an area with important identifying colors. Therefore, during the color filter anomaly detection process, in addition to detecting the color of the filter itself, it is also necessary to detect whether the position of the important identifying color area on the filter has shifted. Thus, the frontal smoke strip area can be a fixed area that is artificially set to facilitate comprehensive detection of the color data itself and the shift information of the important color positions within the frontal smoke strip area. The frontal color sub-data can be the color data corresponding to the frontal smoke strip area. Specifically, the color data corresponding to the frontal smoke strip area can be selected from the frontal color data as the frontal color sub-data.
[0038] S220. Compare the frontal color sub-data with the first reference color data, and determine the first color filter detection result based on the comparison result.
[0039] The first reference color data can be used to evaluate the frontal color sub-data. Specifically, users can set the first reference color data based on the brand type of the cigarette pack to be tested. The first color film detection result can be the anomaly detection result of the color film of the target cigarette pack from the front angle. The first color film detection result can include: color anomaly detection result and color normal detection result. The color anomaly detection result can be further divided into color anomaly detection result and color position anomaly detection result. Specifically, the frontal color sub-data can be compared with the first reference color data to analyze whether there is a color difference between the two and whether the color distribution of the two is the same. If the color values of the two are greater than a preset color difference threshold, it is a color anomaly detection result; if the color position deviation value of the two is greater than a preset deviation threshold, it is a color position anomaly detection result; and if the color values of the two are less than the preset color difference threshold and the color position deviation value of the two is less than the preset deviation threshold, it is a color normal detection result.
[0040] S230. Obtain the side color data of the target cigarette pack based on the second color sensor, and filter out the side color sub-data of the side cigarette pack area from the side color data.
[0041] The side smoke strip area can be the region on the side of the target smoke strip that needs to be inspected for color filter effects. Specifically, this area can be a region with important identifying colors. Therefore, during color filter anomaly detection, in addition to detecting the color of the filter itself, it is also necessary to detect whether the position of the important identifying color area on the filter has shifted. Thus, the side smoke strip area can be a fixed, artificially set area to facilitate comprehensive detection of the color data itself and the shift information of important colors within the side smoke strip area. The side color sub-data can be the color data corresponding to the side smoke strip area. Specifically, the color data corresponding to the side smoke strip area can be selected from the side color data as the side color sub-data.
[0042] S240. Compare the side color sub-data with the second reference color data, and determine the second color filter detection result based on the comparison result.
[0043] The second reference color data can be used to evaluate the side color sub-data. Specifically, users can set the second reference color data based on the brand type of cigarettes to be detected. The second color film detection result can be the anomaly detection result of the color film of the target cigarette from the side angle. The second color film detection result can include: color anomaly detection result and color side anomaly detection result. The color anomaly detection result can be further divided into color anomaly detection result and color position anomaly detection result. Specifically, the side color sub-data can be compared with the second reference color data to analyze whether there is a color difference between the two and whether the color distribution of the two is the same. If the color values of the two are greater than the preset color difference threshold, it is a color anomaly detection result; if the color position deviation value of the two is greater than the preset deviation threshold, it is a color position anomaly detection result; and if the color values of the two are less than the preset color difference threshold and the color position deviation value of the two is less than the preset deviation threshold, it is a color side anomaly detection result.
[0044] Optionally, determining the first reference color data and the second reference color data includes: displaying a list of candidate cigarette packs on a preset interactive interface; determining a target cigarette pack type in response to an interactive operation for any candidate cigarette pack type in the candidate cigarette pack list; and determining the first reference color data and the second reference color data based on the target cigarette pack type.
[0045] The candidate cigarette list includes multiple selectable cigarette types. The target cigarette type can be the final determined cigarette type used for color filter detection. Specifically, any candidate cigarette type can be chosen as the target cigarette type. Subsequently, reference color data corresponding to the front and side angles of the target cigarette type can be matched from the parameter color data. The reference color data from the front angle can be used as the first reference color data, and the reference color data from the side angle can be used as the second reference color data.
[0046] For example, Figure 3 This is a schematic diagram of a color filter detection result provided in an embodiment of the present invention. Figure 3 As shown, when the color film is wrapped abnormally, the colored pattern of the color film often deviates from the normal position, that is, the color film markings of the cigarette pack described in this article are offset, which is a defective product.
[0047] S250. Based on the first color filter detection result and the second color filter detection result, determine the target color filter detection result of the target cigarette pack.
[0048] Optionally, if the first color filter detection result or the second color filter detection result is a color abnormality detection result, a cigarette rejection instruction is sent to the cigarette rejection machine so that the cigarette rejection machine rejects the target cigarette to the preset cigarette recycling channel.
[0049] The cigarette rejection instruction can be a control command that requires the rejection of a target cigarette pack. If the first or second color filter detection result indicates a color anomaly, it means that the color filter of the target cigarette pack is abnormal at the front or side angle. Therefore, a cigarette rejection instruction can be sent to the cigarette rejection machine to reject the target cigarette pack for re-inspection and subsequent recycling. The preset cigarette recycling channel can be a pre-defined channel for recycling cigarette packs with abnormal color filters. For example, the preset cigarette recycling channel can be located below the cigarette pack channel. After receiving the cigarette rejection instruction, the cigarette rejection machine can open a flap on the cigarette pack channel, allowing the target cigarette pack to automatically slide into the preset cigarette recycling channel.
[0050] Optionally, the system can also count the number of normal cigarette packs that pass the color filter detection and the number of abnormal cigarette packs that fail the color filter detection; determine the dynamic production curve based on the number of normal cigarette packs and the number of abnormal cigarette packs, and display the dynamic production curve on the preset interactive interface.
[0051] The number of normal cigarette packs can be the number of cigarette packs for which the target color filter test result is normal. The number of abnormal cigarette packs can be the number of cigarette packs for which the target color filter test result is abnormal. The dynamic production curve can be a dynamic curve reflecting the overall test results of the cigarette pack color filter. Specifically, the ratio of the number of abnormal cigarette packs to the number of normal cigarette packs can be used as the ordinate, and a preset coordinate system can be constructed with this ratio as the ordinate and time as the abscissa. A dynamic curve of this ratio relative to time can be constructed on this coordinate system, and this dynamic curve can be used as the dynamic production curve and displayed on a preset interactive interface. By displaying the dynamic production curve on the preset interactive interface, the detection status during the production process can be intuitively displayed, helping users to identify problems in production in a timely manner.
[0052] Optionally, upon receiving a query request instruction, a query condition input box can be displayed on a preset interactive interface; the target query condition can be determined in response to the fill operation of the query condition input box, and the historical cigarette detection data corresponding to the target query condition can be determined from the historical database based on the target query condition.
[0053] The query request command can be a request command to query historical cigarette film detection information. Specifically, a query request control can be set on the preset interactive interface, and the user can click on the query request control to issue a query request command. Furthermore, the query condition input box can be an input box for filling in query conditions. Users can enter the query conditions they want to query in this input box; the input method for the query conditions is not limited here. The target query condition can be the condition information corresponding to the historical cigarette film detection information to be queried. Specifically, the query keywords can be determined based on the content filled in by the user in the query condition input box, and then combined according to preset condition logic based on the query keywords to obtain the target query condition.
[0054] Furthermore, the historical database can be used to store inspection-related information for cigarette cartons that have undergone color filter inspection. For example, after each historical cigarette carton undergoes the aforementioned color filter inspection, the historical database can store the identification information, front and side color data, and the corresponding color filter inspection results as a set of data. The historical cigarette carton inspection data can be the color filter inspection data of historical cigarette cartons matched based on target query conditions. Specifically, based on target query conditions, at least one historical cigarette carton that the user wants to query can be matched from the historical database, and then the information related to the color filter inspection of the historical cigarette carton can be used as the historical cigarette carton inspection data.
[0055] For example, in order to better understand the technical solution provided by the present invention, specific embodiments are described below: Figure 4 This is a schematic diagram of a device for detecting colored film on cigarette strips provided in an embodiment of the present invention. Figure 4 As shown, the cigarette wrapping detection device includes a first color sensor (located on the front of the cigarette wrapping channel), a second color sensor (located on the side of the cigarette wrapping channel), a push rod, and a flip-up rejection mechanism. The workflow for detecting cigarette wrapping includes the following steps:
[0056] (1) 1. When the cigarette packs produced by the cigarette pack machine reach a certain machine phase, the cigarette packs wrapped with colored film will stably appear at a certain channel position of the equipment and enter the detection area. A proximity switch is used at the push rod as the detection element for the machine phase and outputs a signal.
[0057] 2. The first color sensor detects the colored film markings on the front of the cigarette pack and outputs a signal.
[0058] 3. The second color sensor detects the colored film markings on the side of the cigarette pack and outputs a signal.
[0059] By combining two sensors, the accuracy and reliability of the detection are greatly improved.
[0060] (2) When an abnormality is detected in the position of the colored film mark on the cigarette pack, the system will immediately send a signal to control the rejection mechanism to remove the abnormal product from the production line. The rejection mechanism is installed on the bottom surface of the cigarette pack conveyor line.
[0061] (3) Touchscreen Data Display and Query Module: The system is equipped with a touchscreen that can display information such as the number of cigarette film tests, the number of normal tests, the number of abnormal tests, and the production time in real time. It also supports historical data query functions, allowing users to input query conditions such as date range and product model to query test data within a specific time period. Furthermore, the system can generate production curves to intuitively display the testing status during the production process, helping users to promptly identify problems in production.
[0062] This comprehensive inspection equipment, integrating dual-sensor detection, automatic rejection of defective products, and touchscreen data display and statistical query, can reduce material consumption, promptly identify substandard products, and improve equipment efficiency. It can quickly and accurately detect the position of the colored film markings on cigarette packs, automatically rejecting products with abnormal positions. The touchscreen displays real-time information such as the number of items detected, the number of normal items, the number of abnormal items, and the production time. It also supports historical data query and production curve analysis, providing strong data support for production management.
[0063] The technical solution provided by this invention involves acquiring frontal color data of the target cigarette pack based on a first color sensor, filtering out frontal color sub-data of the frontal cigarette pack area from the frontal color data, comparing the frontal color sub-data with first reference color data, and determining the first color filter detection result based on the comparison result; acquiring side color data of the target cigarette pack based on a second color sensor, filtering out side color sub-data of the side cigarette pack area from the side color data, comparing the side color sub-data with second reference color data, and determining the second color filter detection result based on the comparison result; and determining the target color filter detection result of the target cigarette pack based on the first color filter detection result and the second color filter detection result. This invention solves the problem of insufficient detection accuracy in existing technologies that use image data captured by a single camera for color filter anomaly analysis. It can acquire color data of the cigarette pack color filter from multiple angles based on dual color sensors, and then improve the accuracy of cigarette pack color filter detection by fusing and analyzing the multi-angle color data.
[0064] Figure 5 This is a schematic diagram of a cigarette color film detection system provided in an embodiment of the present invention. The embodiment of the present invention can be applied to scenarios where abnormalities are detected in the color film of cigarette packs. The cigarette color film detection system includes: a first color sensor and a second color sensor. The first color sensor is disposed on the front of the cigarette pack channel, and the second color sensor is disposed on the side of the cigarette pack channel. The system can be implemented by software and / or hardware and integrated into a computer device with application development capabilities.
[0065] like Figure 5 As shown, the cigarette color film detection system includes: a front color film detection module 310, a side color film detection module 320, and a target color film detection module 330.
[0066] The front color filter detection module 310 is used to acquire the front color data of the target cigarette pack based on the first color sensor, and determine the first color filter detection result of the target cigarette pack based on the front color data; the side color filter detection module 320 is used to acquire the side color data of the target cigarette pack based on the second color sensor, and determine the second color filter detection result of the target cigarette pack based on the front color data; the target color filter detection module 330 is used to determine the target color filter detection result of the target cigarette pack based on the first color filter detection result and the second color filter detection result.
[0067] The technical solution provided by this invention involves acquiring frontal color data of a target cigarette pack based on a first color sensor, determining a first color filter detection result based on the frontal color data, acquiring side color data of the target cigarette pack based on a second color sensor, determining a second color filter detection result based on the frontal color data, and finally determining a target color filter detection result based on the first and second color filter detection results. This invention solves the problem of insufficient detection accuracy in existing technologies that use image data captured by a single camera for color filter anomaly analysis. It improves the accuracy of cigarette color filter detection by acquiring color data from multiple angles using dual color sensors and then fusing and analyzing the multi-angle color data.
[0068] In one optional implementation, the front color filter detection module 310 includes: a front color analysis unit, configured to: filter out front color sub-data of the front cigarette strip area from the front color data; compare the front color sub-data with the first reference color data, and determine the first color filter detection result based on the comparison result.
[0069] In one optional implementation, the side color film detection module 320 includes: a side color analysis unit, used to: filter out side color sub-data of the side smoke strip area from the side color data;
[0070] The side color sub-data is compared with the second reference color data, and the second color filter detection result is determined based on the comparison result.
[0071] In one optional implementation, the cigarette color film detection system further includes: a reference color data determination module, configured to: display a candidate cigarette list on a preset interactive interface; determine a target cigarette type in response to an interactive operation for any candidate cigarette type in the candidate cigarette list; and determine the first reference color data and the second reference color data based on the target cigarette type.
[0072] In an optional embodiment, the cigarette filter detection system further includes a cigarette rejection module, configured to send a cigarette rejection instruction to a cigarette rejection machine when the first filter detection result or the second filter detection result is a color abnormality detection result, so that the cigarette rejection machine rejects the target cigarette to a preset cigarette recycling channel.
[0073] In one optional implementation, the cigarette color film detection system further includes a dynamic production feedback module, used to: count the number of normal cigarettes that pass the color film detection and the number of abnormal cigarettes that fail the color film detection; determine a dynamic production curve based on the number of normal cigarettes and the number of abnormal cigarettes, and display the dynamic production curve on a preset interactive interface.
[0074] In an optional implementation, the cigarette film detection system further includes a historical cigarette query module, configured to: upon receiving a query request instruction, display a query condition input box on a preset interactive interface; determine a target query condition in response to a fill operation on the query condition input box; and determine the historical cigarette detection data corresponding to the target query condition from a historical database based on the target query condition.
[0075] The cigarette film detection system provided in this embodiment of the invention can execute the cigarette film detection method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0076] Figure 6 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Figure 6 A block diagram of an exemplary computer device 12 suitable for implementing embodiments of the present invention is shown. Figure 6 The computer device 12 shown is merely an example and should not be construed as limiting the functionality or scope of the embodiments of the present invention. The computer device 12 can be any terminal device with computing capabilities and can be configured in a smoke film detection device.
[0077] like Figure 6 As shown, the computer device 12 is represented in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and bus 18 connecting different system components (including system memory 28 and processing unit 16).
[0078] Bus 18 can be one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0079] Computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0080] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache 32. Computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (… Figure 6 Not shown; usually referred to as a "hard drive"). Although Figure 6 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.
[0081] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of the present invention.
[0082] Computer device 12 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with the computer device 12, and / or with any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed through input / output (I / O) interface 22. Furthermore, computer device 12 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 20. Figure 6 As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be understood that, although... Figure 6As not shown, it can be used in conjunction with computer device 12 with other hardware and / or software modules, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0083] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the cigarette color film detection method provided in this embodiment of the invention, applied to a cigarette color film detection system, wherein the cigarette color film detection system includes: a first color sensor and a second color sensor, the first color sensor being disposed on the front of the cigarette channel, and the second color sensor being disposed on the side of the cigarette channel, the method including:
[0084] Based on the first color sensor, the front color data of the target cigarette pack is acquired, and the first color filter detection result of the target cigarette pack is determined based on the front color data; based on the second color sensor, the side color data of the target cigarette pack is acquired, and the second color filter detection result of the target cigarette pack is determined based on the front color data; based on the first color filter detection result and the second color filter detection result, the target color filter detection result of the target cigarette pack is determined.
[0085] This embodiment provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the cigarette bar color film detection method provided in any embodiment of the present invention, applied to a cigarette bar color film detection system. The cigarette bar color film detection system includes: a first color sensor and a second color sensor, the first color sensor being disposed on the front side of the cigarette bar channel, and the second color sensor being disposed on the side side of the cigarette bar channel.
[0086] Based on the first color sensor, the front color data of the target cigarette pack is acquired, and the first color filter detection result of the target cigarette pack is determined based on the front color data; based on the second color sensor, the side color data of the target cigarette pack is acquired, and the second color filter detection result of the target cigarette pack is determined based on the front color data; based on the first color filter detection result and the second color filter detection result, the target color filter detection result of the target cigarette pack is determined.
[0087] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, system, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system, or device.
[0088] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, system, or device.
[0089] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0090] 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 C, Java, Smalltalk, C++, C#, and Python, as well as conventional procedural programming languages such as the "C" language or similar programming 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 it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0091] Those skilled in the art will understand that the modules or steps of the present invention described above can be implemented using a general-purpose computing system. They can be centralized on a single computing system or distributed across a network of multiple computing systems. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage system for execution by the computing system, or fabricating them separately as individual integrated circuit modules, or fabricating multiple modules or steps into a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0092] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.
Claims
1. A method for detecting the colored film of cigarette packs, applied to a cigarette pack colored film detection system, wherein, The cigarette strip color film detection system includes: a first color sensor and a second color sensor, wherein the first color sensor is disposed on the front of the cigarette strip channel, and the second color sensor is disposed on the side of the cigarette strip channel, characterized in that the method includes: The frontal color data of the target cigarette pack is acquired based on the first color sensor, and the first color film detection result of the target cigarette pack is determined based on the frontal color data. The side color data of the target cigarette pack is acquired based on the second color sensor, and the second color film detection result of the target cigarette pack is determined based on the front color data. Based on the first color filter detection result and the second color filter detection result, the target color filter detection result of the target cigarette pack is determined.
2. The method according to claim 1, characterized in that, The step of acquiring the frontal color data of the target cigarette pack based on the first color sensor, and determining the first color filter detection result of the target cigarette pack based on the frontal color data, includes: Filter out the frontal color sub-data of the frontal cigarette strip area from the aforementioned frontal color data; The frontal color sub-data is compared with the first reference color data, and the first color filter detection result is determined based on the comparison result.
3. The method according to claim 2, characterized in that, The step of acquiring the side color data of the target cigarette pack based on the second color sensor, and determining the second color filter detection result of the target cigarette pack based on the front color data, includes: Filter out the side color sub-data of the side cigarette strip area from the side color data; The side color sub-data is compared with the second reference color data, and the second color filter detection result is determined based on the comparison result.
4. The method according to claim 3, characterized in that, Determining the first reference color data and the second reference color data includes: A list of candidate cigarette packs is displayed on a preset interactive interface, and the target cigarette pack type is determined in response to an interactive operation on any candidate cigarette pack type in the candidate cigarette pack list. The first reference color data and the second reference color data are determined based on the target cigarette type.
5. The method according to claim 1, characterized in that, The method further includes: If the first color filter detection result or the second color filter detection result is a color abnormality detection result, a cigarette rejection instruction is sent to the cigarette rejection machine so that the cigarette rejection machine rejects the target cigarette pack to the preset cigarette recycling channel.
6. The method according to claim 1, characterized in that, The method further includes: The number of normal cigarette packs that passed the color filter inspection and the number of abnormal cigarette packs that failed the color filter inspection were counted. A dynamic production curve is determined based on the number of normal cigarette packs and the number of abnormal cigarette packs, and the dynamic production curve is displayed on a preset interactive interface.
7. The method according to claim 1, characterized in that, The method further includes: Upon receiving a query request instruction, a query condition input box is displayed on the preset interactive interface; In response to the fill operation of the query condition input box, the target query condition is determined, and the historical cigarette detection data corresponding to the target query condition is determined from the historical database based on the target query condition.
8. A cigarette strip color film detection system, wherein, The cigarette strip color film detection system includes: a first color sensor and a second color sensor, wherein the first color sensor is disposed on the front of the cigarette strip channel, and the second color sensor is disposed on the side of the cigarette strip channel, characterized in that the system includes: The front color filter detection module is used to acquire the front color data of the target cigarette pack based on the first color sensor, and determine the first color filter detection result of the target cigarette pack based on the front color data; The side color filter detection module is used to acquire the side color data of the target cigarette pack based on the second color sensor, and to determine the second color filter detection result of the target cigarette pack based on the front color data; The target color filter detection module is used to determine the target color filter detection result of the target cigarette pack based on the first color filter detection result and the second color filter detection result.
9. A computer device, characterized in that, The computer device includes: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the smoke film detection method as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the smoke film detection method as described in any one of claims 1-7.