Cigarette filter ventilation rate online test method and device, computer equipment and medium
By acquiring and processing images of the ventilation holes in cigarette filters in real time and calculating the total area of the ventilation holes, the accuracy problem of online testing of ventilation rate of perforated cigarette filters is solved, and real-time monitoring and quality inspection are realized.
Patent Information
- Application Number
- CN202411460601.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-18
- Publication Date
- 2025-01-07
AI Technical Summary
Existing technologies cannot accurately test and monitor the ventilation rate of perforated cigarette filters online in real time, and the number of test samples is small, making it difficult to increase the number of test samples.
By acquiring real-time images of the ventilation holes in cigarette filters, image recognition is performed and the total area of the ventilation holes in cigarette filters is calculated. Based on the total area of the ventilation holes in cigarette filters, the simulated value of the ventilation rate of cigarette filters is obtained. A microscope camera is used to collect images of the ventilation hole morphology and perform binarization processing to calculate the actual side length and number of pixels of the ventilation hole to obtain the accurate ventilation hole area.
It enables accurate online testing and real-time monitoring of the ventilation rate of perforated cigarette filters, improving testing accuracy and providing each cigarette with a unique ventilation rate identifier to ensure production line quality.
Smart Images

Figure CN119269364A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of cigarette ventilation rate calculation, and in particular to an online testing method, device, computer equipment and medium for cigarette filter ventilation rate. Background Art
[0002] Cigarette filter ventilation and dilution technology is an important means of reducing tar and harm in cigarettes. Filter ventilation and dilution technology uses mechanical punching, electrostatic punching, plasma punching or laser punching to open a single row or multiple rows of small holes on the cigarette filter. When the cigarette is inhaled, the air passes through the filter holes and mixes into the mainstream smoke of the cigarette, thereby diluting the smoke and achieving the effect of reducing tar and harm. Online laser punching technology for cigarette filters is currently a widely used filter ventilation and dilution technology. This technology uses a CO2 pulse laser to punch one or more rows of visible holes on the cigarette filter after the package is completed. When inhaling, the outside air can be mixed into the mainstream smoke through the ventilation holes, achieving the purpose of diluting the smoke, reducing tar and harm, reducing inhalation resistance, and reducing smoke temperature. At present, the method of sampling and placing in a comprehensive test bench is mostly used to test the ventilation rate of cigarette filters. The number of test samples is small, and it is difficult to increase the number of test samples. It is impossible to accurately test the ventilation rate of the filter of perforated cigarettes online and monitor it in real time. Summary of the invention
[0003] In view of this, the present invention provides a method, device, computer equipment and medium for online testing of cigarette filter ventilation rate to solve the problem that the filter ventilation rate of perforated cigarettes cannot be accurately tested online and monitored in real time.
[0004] In a first aspect, the present invention provides an online testing method for cigarette filter ventilation rate, the method comprising:
[0005] Acquire in real time the morphological images of ventilation holes of cigarette filters of a preset number of cigarettes;
[0006] Performing image recognition on the cigarette filter ventilation hole morphology image to obtain the cigarette filter ventilation holes, and calculating the total area of the cigarette filter ventilation holes;
[0007] The simulated value of cigarette filter ventilation rate is obtained based on the total area test of cigarette filter ventilation holes.
[0008] The present invention provides an online testing method for cigarette filter ventilation rate, which obtains in real time the morphological images of cigarette filter ventilation holes of a preset number of cigarettes; performs image recognition on the morphological images of cigarette filter ventilation holes to obtain cigarette filter ventilation holes, and calculates the total area of the cigarette filter ventilation holes; obtains a simulation value of the cigarette filter ventilation rate based on the total area test of the cigarette filter ventilation holes, thereby improving the testing accuracy of the cigarette filter ventilation rate, realizing online accurate testing and real-time monitoring of the ventilation rate of perforated cigarette filters, and solving the problem that online accurate testing and real-time monitoring of the ventilation rate of perforated cigarette filters cannot be performed.
[0009] In an optional embodiment, obtaining in real time the morphological images of ventilation holes of cigarette filters of a preset number of cigarettes includes:
[0010] After laser drilling of cigarette filters of a preset number of cigarettes is completed, a microscope camera is used to collect images of the punched parts of each cigarette filter. During the collection, each punched part of the cigarette filter is rotated one circle in front of the external microscope camera lens to obtain the morphology image of the ventilation holes of each cigarette filter.
[0011] The online testing method for cigarette filter ventilation rate provided by the present invention uses an external microscope camera to collect images of the perforated parts of each cigarette filter after laser perforation of cigarette filters of a preset number of cigarettes is completed. During the collection, each perforated part of the cigarette filter is rotated one circle in front of the lens of the external microscope camera, thereby achieving the purpose of accurately obtaining the morphological image of the ventilation holes of each cigarette filter.
[0012] In an optional embodiment, performing image recognition on a preset number of cigarette filter ventilation hole morphology images includes:
[0013] Binarize each cigarette filter ventilation hole morphology image to obtain a corresponding black and white image;
[0014] The black holes are extracted from the black and white image to obtain the ventilation holes of each cigarette filter.
[0015] The online testing method for cigarette filter ventilation rate provided by the present invention obtains corresponding black and white images based on binarized image processing, improves the image quality, enhances the image contrast, and makes it more accurate to extract the black holes from the black and white image to obtain each cigarette filter ventilation hole, thus providing conditions for the subsequent calculation of the total area of the cigarette filter ventilation holes.
[0016] In an optional embodiment, calculating the total area of ventilation holes of the cigarette filter includes:
[0017] Obtain the actual side length of each black-and-white image and the number of pixels of the black-and-white image occupied by each cigarette filter ventilation hole;
[0018] Calculate the individual area of each cigarette filter ventilation hole based on the actual side length and number of pixels;
[0019] The individual areas of all cigarette filter ventilation holes are cumulatively summed to obtain the total area of cigarette filter ventilation holes.
[0020] The cigarette filter ventilation rate online testing method provided by the present invention calculates the individual area of each cigarette filter ventilation hole based on the actual side length and the number of pixels; the individual areas of all cigarette filter ventilation holes are accumulated and summed to achieve the purpose of obtaining the total area of the cigarette filter ventilation holes, and has the advantages of accurate and fast calculation.
[0021] In an optional embodiment, calculating the cigarette filter ventilation rate simulation value based on the total area of cigarette filter ventilation holes includes:
[0022] The simulation value of cigarette filter ventilation rate is obtained based on the total area of cigarette filter ventilation holes and the preset coefficient test.
[0023] In an optional implementation, the preset coefficient is obtained in the following manner:
[0024] Obtaining historical data of simulated value of cigarette filter ventilation rate and historical data of measured cigarette filter ventilation rate;
[0025] The coefficient is calculated based on the historical data of simulated values of cigarette filter ventilation rate and the historical data of measured cigarette filter ventilation rate.
[0026] The cigarette filter ventilation rate online testing method provided by the present invention calculates the coefficient through the historical data of the cigarette filter ventilation rate simulation value and the historical data of the actually measured cigarette filter ventilation rate, and obtains the cigarette filter ventilation rate simulation value based on the total area of the cigarette filter ventilation holes and the coefficient test. The filter ventilation rate of each cigarette produced on the production line can be tested online in real time, which can not only detect the production quality of the production line, but also provide each cigarette with a unique "ventilation rate identity card".
[0027] In an optional embodiment, the cigarette filter ventilation rate online testing method further includes:
[0028] Sampling cigarettes regularly, and obtaining the measured cigarette filter ventilation rates of the smoked cigarettes and the corresponding cigarette filter ventilation rate simulation values;
[0029] Deviations were obtained based on the measured cigarette filter ventilation rate and the calculated cigarette filter ventilation rate;
[0030] When the deviation value exceeds the preset error range, the coefficient is refitted based on the historical data of the simulated value of the cigarette filter ventilation rate and the historical data of the measured cigarette filter ventilation rate;
[0031] Cigarette filter ventilation rates were retested based on the refitted coefficients.
[0032] The cigarette filter ventilation rate online testing method provided by the present invention realizes real-time online regulation of the cigarette filter ventilation rate by measuring the cigarette filter ventilation rate and correcting the deviation coefficient between the cigarette filter ventilation rate and retesting the cigarette filter ventilation rate based on the corrected coefficient.
[0033] In a second aspect, the present invention provides an online testing device for cigarette filter ventilation rate, the device comprising:
[0034] An image acquisition module, used for acquiring in real time the morphological images of ventilation holes of cigarette filters of a preset number of cigarettes;
[0035] An image processing and ventilation hole area calculation module is used to perform image recognition on the cigarette filter ventilation hole morphology image to obtain the cigarette filter ventilation holes and calculate the total area of the cigarette filter ventilation holes;
[0036] The cigarette filter ventilation rate test module is used to obtain the cigarette filter ventilation rate simulation value based on the total area test of the cigarette filter ventilation holes.
[0037] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to execute the online testing method for cigarette filter ventilation rate of the first aspect or any corresponding embodiment thereof.
[0038] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the online testing method for cigarette filter ventilation rate of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 is a schematic flow chart of an online testing method for cigarette filter ventilation rate according to an embodiment of the present invention;
[0041] Figure 2 is a flow chart of another method for online testing ventilation rate of a cigarette filter according to an embodiment of the present invention;
[0042] Figure 3 is a schematic flow chart of another on-line testing method for cigarette filter ventilation rate according to an embodiment of the present invention;
[0043] Figure 4 is a schematic diagram of an online monitoring system for cigarette filter ventilation rate according to an embodiment of the present invention;
[0044] Figure 5 is a structural block diagram of an online testing device for cigarette filter ventilation rate according to an embodiment of the present invention;
[0045] Figure 6 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0047] According to an embodiment of the present invention, an embodiment of a method for online testing the ventilation rate of a cigarette filter is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0048] In this embodiment, a method for online testing of cigarette filter ventilation rate is provided, which can be used in mobile terminals, such as central processing units, tablet computers, servers, etc. (the execution subject is described in combination with actual conditions) Figure 1 : is a flow chart of an online testing method for cigarette filter ventilation rate according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0049] Step S101, acquiring in real time the morphological images of ventilation holes of cigarette filters of a preset number of cigarettes.
[0050] Specifically, Figure 4 As shown, the online monitoring system for ventilation rate of cigarette filter includes a laser puncher, an image recognition data processing module and a ventilation rate data storage module, and the image recognition data processing unit includes an image acquisition unit and an image analysis unit.
[0051] On the online production line, after a preset number of cigarettes are punched with a laser puncher, an image acquisition unit is used to obtain a morphological image of the punched portion of the cigarette filter, which is a morphological image of the ventilation holes of the cigarette filter. The preset number is sampled according to the actual situation and is not specifically limited here. For example, taking 20 cigarettes as an example, each cigarette has 20 filter ventilation holes, and the morphological images of the 20 filter ventilation holes of each cigarette are obtained. The image acquisition unit can use a microscope camera.
[0052] Step S102, performing image recognition on the cigarette filter ventilation hole morphology image to obtain the cigarette filter ventilation holes, and calculating the total area of the cigarette filter ventilation holes.
[0053] Specifically, an image analysis unit is used to perform image recognition on the cigarette filter ventilation hole morphology image to obtain a cigarette filter ventilation hole image with high contrast and quality, and the total area of all cigarette filter ventilation holes in each cigarette is calculated based on the individual area of each cigarette filter ventilation hole image.
[0054] Step S103, obtaining a simulated value of cigarette filter ventilation rate based on a total area test of cigarette filter ventilation holes.
[0055] Specifically, the ventilation rate of cigarettes is usually measured in accordance with the relevant standard: Determination / definition and measurement principle of cigarette ventilation: GB / T 22838.15-2009[S], and can also be simulated and calculated using the computational fluid dynamics (CFD) method according to the principle described in the standard. When the porosity of the cigarette filter and the porous medium resistance are constant, the total ventilation area of the cigarette filter ventilation holes is proportional to the filter ventilation rate. Based on the proportional relationship between the total ventilation area of the cigarette filter ventilation holes and the filter ventilation rate, the cigarette filter ventilation rate simulation value can be obtained and stored in the ventilation rate data storage module.
[0056] The online testing method for cigarette filter ventilation rate provided in the present embodiment obtains in real time the morphological images of cigarette filter ventilation holes of a preset number of cigarettes; performs image recognition on the morphological images of cigarette filter ventilation holes to obtain cigarette filter ventilation holes, and calculates the total area of the cigarette filter ventilation holes; obtains a simulation value of the cigarette filter ventilation rate based on the total area test of the cigarette filter ventilation holes, thereby improving the testing accuracy of the cigarette filter ventilation rate, realizing online accurate testing and real-time monitoring of the ventilation rate of perforated cigarette filters, and solving the problem that the filter ventilation rate of perforated cigarettes cannot be accurately tested online and monitored in real time.
[0057] In this embodiment, a method for online testing of cigarette filter ventilation rate is provided, which can be used in mobile terminals, such as central processing units, tablet computers, servers, etc. Figure 2 : is a flow chart of an online testing method for cigarette filter ventilation rate according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0058] Step S201, acquiring in real time the morphological images of ventilation holes of cigarette filters of a preset number of cigarettes.
[0059] Specifically, the above step S201 includes:
[0060] Step a. After laser drilling of cigarette filters of a preset number of cigarettes is completed, a microscope camera is used to collect images of the perforated parts of each cigarette filter. During the collection, each cigarette filter perforated part is rotated one circle in front of the external microscope camera lens to obtain the morphology image of the ventilation holes of each cigarette filter.
[0061] For example, take the example of a cigarette with 20 ventilation holes on the filter: shooting needs to be paused every time the cigarette rotates 18°. According to the shutter speed of the external microscope camera of 1 / 200 second, shooting of the ventilation holes of a cigarette will be completed within 1 second; the photo should fully capture each ventilation hole of the cigarette filter; the minimum resolution of the photo cannot be less than 500*500 pixels.
[0062] Step S202, performing image recognition on the cigarette filter ventilation hole morphology image to obtain the cigarette filter ventilation holes, and calculating the total area of the cigarette filter ventilation holes.
[0063] Specifically, the above step S202 includes:
[0064] Step S2021, binarizing each cigarette filter ventilation hole topography image to obtain a corresponding black and white image.
[0065] Specifically, the ventilation holes of cigarette filter are black holes with a white edge around them. The filter ventilation hole morphology image is binarized and converted into a black and white image.
[0066] Step S2022: extract black holes from the black and white image to obtain ventilation holes of each cigarette filter.
[0067] Specifically, the black hole portion in the center of the black and white image is the ventilation hole area of the cigarette filter.
[0068] Step S2023, obtaining the actual side length of each black-and-white image and the number of pixels of the black-and-white image occupied by each cigarette filter ventilation hole.
[0069] Specifically, a professional image measurement tool, such as a PS image tool, is used to obtain the actual side length a of each black-and-white image and the number of pixels b of the black-and-white image occupied by each cigarette filter ventilation hole.
[0070] Step S2024, calculating the individual area of each cigarette filter ventilation hole based on the actual side length and the number of pixels.
[0071] Specifically, the individual area of each cigarette filter ventilation hole is calculated using the following formula:
[0072] s i =b*a 2 ;
[0073] Where i = 1, 2, 3, 4, 5, 6, ... n is the ventilation hole number of the cigarette filter, s i The individual area of ventilation holes for each cigarette filter.
[0074] Step S2025, summing up the individual areas of all cigarette filter ventilation holes to obtain the total area of the cigarette filter ventilation holes.
[0075] Specifically, the total area of cigarette filter ventilation holes is expressed by the following formula:
[0076]
[0077] Where n is the total number of holes.
[0078] Step S203, based on the total area test of the ventilation holes of the cigarette filter, obtain the ventilation rate simulation of the cigarette filter. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.
[0079] The online test method for cigarette filter ventilation rate provided in this embodiment uses an external microscopic camera to collect the perforated part of each cigarette filter after the laser perforation of the cigarette filters of a preset number of cigarettes is completed. During the collection, each perforated part of the cigarette filter is rotated in front of the external microscopic camera lens for one circle, so as to achieve the purpose of accurately obtaining the morphological image of the ventilation holes of each cigarette filter. The corresponding black and white image is obtained based on the binary image processing, which improves the image quality and enhances the image contrast, so that the black holes extracted from the black and white image can be used to obtain each cigarette filter ventilation hole more accurately, and the single area of each cigarette filter ventilation hole is calculated based on the actual side length and the number of pixels; the single areas of all cigarette filter ventilation holes are accumulated and summed to achieve the purpose of obtaining the total area of cigarette filter ventilation holes, which has the advantages of accurate and fast calculation.
[0080] In this embodiment, a method for online testing of cigarette filter ventilation rate is provided, which can be used in mobile terminals, such as central processing units, tablet computers, servers, etc. Figure 3 : is a flow chart of an online testing method for cigarette filter ventilation rate according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0081] Step S301, real-time acquisition of ventilation hole morphology images of cigarette filter tips of a preset number of cigarettes. Figure 2 Step S201 of the illustrated embodiment will not be described in detail here.
[0082] Step S302, perform image recognition on the cigarette filter ventilation hole morphology image to obtain the cigarette filter ventilation holes, and calculate the total area of the cigarette filter ventilation holes. Figure 2 Step S202 of the illustrated embodiment will not be described in detail here.
[0083] Step S303, obtaining a simulated value of cigarette filter ventilation rate based on a total area test of cigarette filter ventilation holes.
[0084] Specifically, the above step S303 includes:
[0085] Step b., based on the total area of ventilation holes of the cigarette filter and the preset coefficient test, obtain the simulated value of ventilation rate of the cigarette filter. The preset coefficient is obtained by: obtaining historical data of simulated value of ventilation rate of the cigarette filter and historical data of measured ventilation rate of the cigarette filter; and calculating the coefficient based on historical data of simulated value of ventilation rate of the cigarette filter and historical data of measured ventilation rate of the cigarette filter.
[0086] Specifically, the cigarette filter ventilation rate simulation value is calculated as follows:
[0087] Q = kS;
[0088] Where Q is the ventilation rate, %, k is the coefficient, and S is the total area of ventilation holes in the cigarette filter, in mm 2 .
[0089] Step S304, regularly sampling cigarettes, and obtaining the measured cigarette filter ventilation rate of the smoked cigarettes and the corresponding cigarette filter ventilation rate simulation value; obtaining the deviation based on the measured cigarette filter ventilation rate and the cigarette filter ventilation rate calculation value; when the deviation value exceeds the preset error range, refitting the coefficient based on the cigarette filter ventilation rate simulation value historical data and the measured cigarette filter ventilation rate historical data; and retesting the cigarette filter ventilation rate based on the refitted coefficient.
[0090] Specifically, cigarettes are sampled regularly, and the measured cigarette filter ventilation rate is obtained by using a comprehensive test bench to test and compare with the cigarette filter ventilation rate simulation value obtained by the online test of the cigarette filter ventilation rate provided by the present invention to obtain a deviation. If the deviation is large, it is corrected and the cigarette filter ventilation rate simulation value is recalculated. The comprehensive test bench is a testing device used in cigarette production. Usually, 20 cigarettes are taken out of every 10,000 cigarettes and put into the comprehensive test bench for cigarette filter ventilation rate testing according to relevant standards. For example, the process requirements for cigarette filter ventilation rate of a certain cigarette factory allow an error of ±4%. If the cigarette filter ventilation rate calculated by the online test method provided by the present invention has an error of more than ±4% with the measured cigarette filter ventilation rate sampled by the comprehensive test bench, the coefficient k is refitted using the most recent cigarette filter ventilation rate simulation value historical data and the measured cigarette filter ventilation rate historical data, and the cigarette filter ventilation rate simulation value is recalculated.
[0091] The online testing method for cigarette filter ventilation rate provided in this embodiment calculates the coefficient through the historical data of cigarette filter ventilation rate simulation value and the historical data of measured cigarette filter ventilation rate, and obtains the cigarette filter ventilation rate simulation value based on the total area of cigarette filter ventilation holes and the coefficient test, which can perform online real-time testing on the filter ventilation rate of each cigarette produced on the production line, not only can detect the production quality of the production line, but also can give each cigarette a unique "ventilation rate ID card". By correcting the deviation coefficient between the measured cigarette filter ventilation rate and the cigarette filter ventilation rate, and retesting the cigarette filter ventilation rate based on the corrected coefficient, the online real-time regulation of the cigarette filter ventilation rate is realized. In this embodiment, a cigarette filter ventilation rate online testing device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions that have been made will not be repeated. As used below, the term "module" can realize a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.
[0092] This embodiment provides a device for online testing the ventilation rate of cigarette filters. Figure 5 As shown, including:
[0093] The image acquisition module 501 is used to acquire in real time the morphological images of ventilation holes of cigarette filters of a preset number of cigarettes.
[0094] The image processing and ventilation hole area calculation module 502 is used to perform image recognition on the cigarette filter ventilation hole morphology image to obtain the cigarette filter ventilation holes and calculate the total area of the cigarette filter ventilation holes.
[0095] The cigarette filter ventilation rate testing module 503 is used to obtain a cigarette filter ventilation rate simulation value based on the total area test of the cigarette filter ventilation holes.
[0096] In some optional implementations, the image acquisition module 501 includes:
[0097] The image acquisition unit is used to use a microscope camera to collect images of the perforated parts of the filter of each cigarette after the laser perforation of the cigarette filters of a preset number of cigarettes is completed. During the collection, each perforated part of the cigarette filter is rotated one circle in front of the external microscope camera lens to obtain the morphology image of the ventilation holes of each cigarette filter.
[0098] In some optional implementations, the image processing and ventilation hole area calculation module 502 includes:
[0099] The image analysis unit is used to perform binarization processing on each cigarette filter ventilation hole morphology image to obtain a corresponding black and white image.
[0100] The ventilation hole acquisition unit is used to extract black holes from the black and white image to obtain each cigarette filter ventilation hole. The pixel acquisition unit is used to obtain the actual side length of each black and white image and the number of pixels occupied by each cigarette filter ventilation hole in the black and white image.
[0101] A single area calculation unit is used to calculate the single area of each cigarette filter ventilation hole based on the actual side length and the number of pixels.
[0102] The total area calculation unit is used to accumulate and sum the individual areas of all cigarette filter ventilation holes to obtain the total area of the cigarette filter ventilation holes.
[0103] In some optional embodiments, the cigarette filter ventilation rate testing module 503 includes:
[0104] The cigarette filter ventilation rate simulation value calculation unit is used to obtain the cigarette filter ventilation rate simulation value based on the total area of the cigarette filter ventilation holes and the preset coefficient test.
[0105] In some optional embodiments, the cigarette filter ventilation rate online testing device further comprises:
[0106] The correction module is used to regularly sample cigarettes and obtain the measured cigarette filter ventilation rate of the smoked cigarettes and the corresponding cigarette filter ventilation rate simulation value; obtain the deviation based on the measured cigarette filter ventilation rate and the cigarette filter ventilation rate calculation value; when the deviation value exceeds the preset error range, re-fit the coefficient based on the cigarette filter ventilation rate simulation value historical data and the measured cigarette filter ventilation rate historical data; and re-test the cigarette filter ventilation rate based on the re-fitted coefficient.
[0107] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0108] The cigarette filter ventilation rate online testing device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0109] The embodiment of the present invention also provides a computer device having the above Figure 5 The online testing device for cigarette filter ventilation rate is shown.
[0110] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 6As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.
[0111] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0112] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0113] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0114] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0115] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0116] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0117] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0118] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for online testing of cigarette filter ventilation rate, characterized in that: The method comprises: Acquire in real time the morphological images of ventilation holes of cigarette filters of a preset number of cigarettes; Performing image recognition on the cigarette filter ventilation hole morphology image to obtain the cigarette filter ventilation holes, and calculating the total area of the cigarette filter ventilation holes; The cigarette filter ventilation rate simulation value is obtained based on the total area test of the cigarette filter ventilation holes.
2. The method according to claim 1, characterized in that The real-time acquisition of the cigarette filter ventilation hole morphology images of a preset number of cigarettes comprises: After laser drilling of cigarette filters of a preset number of cigarettes is completed, a microscope camera is used to collect images of the punched parts of each cigarette filter. During the collection, each punched part of the cigarette filter is rotated one circle in front of the external microscope camera lens to obtain the morphology image of the ventilation holes of each cigarette filter.
3. The method according to claim 1, characterized in that Performing image recognition on the preset number of cigarette filter ventilation hole morphology images includes: Binarize each cigarette filter ventilation hole morphology image to obtain a corresponding black and white image; The black holes are extracted from the black and white image to obtain each cigarette filter ventilation hole.
4. The method according to claim 3, characterized in that The calculation of the total area of ventilation holes of cigarette filters includes: Obtain the actual side length of each black-and-white image and the number of pixels of the black-and-white image occupied by each cigarette filter ventilation hole; Calculating a single area of each cigarette filter ventilation hole based on the actual side length and the number of pixels; The individual areas of all cigarette filter ventilation holes are cumulatively summed to obtain the total area of cigarette filter ventilation holes.
5. The method according to claim 1, characterized in that Calculating the simulation value of cigarette filter ventilation rate based on the total area of cigarette filter ventilation holes includes: The simulation value of cigarette filter ventilation rate is obtained based on the total area of cigarette filter ventilation holes and the preset coefficient test.
6. The method according to claim 5, characterized in that The preset coefficient is obtained in the following way: Obtaining historical data of simulated value of cigarette filter ventilation rate and historical data of measured cigarette filter ventilation rate; The coefficient is calculated based on the historical data of the simulated value of the cigarette filter ventilation rate and the historical data of the actually measured cigarette filter ventilation rate.
7. The method according to claim 6, characterized in that The method further comprises: Sampling cigarettes regularly, and obtaining the measured cigarette filter ventilation rates of the smoked cigarettes and the corresponding cigarette filter ventilation rate simulation values; Obtaining a deviation based on the measured cigarette filter ventilation rate and the calculated cigarette filter ventilation rate; When the deviation value exceeds a preset error range, refitting the coefficient based on the historical data of the simulated value of the cigarette filter ventilation rate and the historical data of the measured cigarette filter ventilation rate; The cigarette filter ventilation rate is retested based on the refitted coefficients.
8. An online testing device for cigarette filter ventilation rate, characterized in that: The device comprises: An image acquisition module, used for acquiring in real time the morphological images of ventilation holes of cigarette filters of a preset number of cigarettes; An image processing and ventilation hole area calculation module, used for performing image recognition on the cigarette filter ventilation hole morphology image to obtain the cigarette filter ventilation holes, and calculating the total area of the cigarette filter ventilation holes; The cigarette filter ventilation rate testing module is used to obtain a cigarette filter ventilation rate simulation value based on the total area test of the cigarette filter ventilation holes.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are connected to each other for communication, the memory stores computer instructions, and the processor executes the online testing method for cigarette filter ventilation rate according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the online testing method for cigarette filter ventilation rate according to any one of claims 1 to 7.