A method, device, equipment and storage medium for detecting the circumference of a cigarette filter rod
By selecting the nearest neighbor relationship between the voltage values of the standard filter rod and the target filter rod, and fitting the voltage value and the circumference value using a linear equation, the problem of inaccurate detection of the filter rod circumference was solved, thus improving the production quality of cigarette filter rods.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-29
- Publication Date
- 2026-03-31
AI Technical Summary
The existing technology does not have accurate enough circumference detection of the filter rod, which leads to quality problems such as air leakage in cigarettes, filter tip detachment, and wrinkles at the splicing points.
By determining the proximity relationship between the voltage values of the standard filter rod and the target filter rod, multiple reference filter rods are selected, and the correlation between the voltage value and the circumference value is fitted using a linear equation, thereby improving the detection accuracy.
This improved the production quality of cigarette filter rods, ensured the accuracy of filter rod circumference detection, and reduced problems such as air leakage and filter tip detachment.
Smart Images

Figure CN115727750B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of tobacco, and in particular to a method, apparatus, device, and storage medium for detecting the circumference of a cigarette filter rod. Background Technology
[0002] In the tobacco industry, the circumference of the filter rod is a physical indicator of cigarette products, and the control of the filter rod circumference is one of the filter rod forming processes.
[0003] To achieve precise control of the filter rod's circumference, the accuracy of the filter rod's circumference detection must first be ensured. Currently, the main methods for filter rod circumference detection are pneumatic and laser. The controller acquires the voltage value of the detector and then converts it into the filter rod's circumference value. The conversion of the voltage value into the circumference value is achieved through a two-point calibration method.
[0004] In actual measurements, the voltage value and the circumference value are not in a standard geometric relationship, which results in the circumference value of the converted filter rod being inaccurate. Excessive fluctuation in the circumference of the filter rod can directly lead to problems such as cigarette leakage, filter tip detachment, and wrinkles at the splicing point. Summary of the Invention
[0005] This invention provides a method, apparatus, equipment, and storage medium for detecting the circumference of cigarette filter rods, in order to solve the problem of how to improve the accuracy of detecting the circumference of filter rods, thereby improving the production quality of cigarette filter rods.
[0006] According to one aspect of the present invention, a method for detecting the circumference of a cigarette filter rod is provided, the method comprising:
[0007] A standard filter rod and a target filter rod are determined. The standard filter rod is a standard filter rod suitable for cigarettes, and the target filter rod is a filter rod suitable for cigarettes and the circumference to be tested. Each standard filter rod has a first circumference value and a first voltage value.
[0008] Query the second voltage value detected on the target filter rod;
[0009] Select a plurality of standard filter rods whose first voltage value is close to the second voltage value as reference filter rods;
[0010] The second circumference value of the target filter rod is detected based on the second voltage value, the first circumference value of the plurality of reference filter rods, and the first voltage value.
[0011] According to another aspect of the present invention, an apparatus for detecting the circumference of a cigarette filter rod is provided, the apparatus comprising:
[0012] A filter rod determination module is used to determine a standard filter rod and a target filter rod. The standard filter rod is a standard filter rod suitable for cigarettes, and the target filter rod is a filter rod suitable for cigarettes with a test circumference. Each standard filter rod has a first circumference value and a first voltage value.
[0013] The voltage value query module is used to query the second voltage value detected on the target filter rod.
[0014] The reference filter rod selection module is used to select a plurality of standard filter rods that are close to the first voltage value and the second voltage value as reference filter rods;
[0015] A circumference value detection module is used to detect the second circumference value of the target filter rod based on the second voltage value, the first circumference value of the plurality of reference filter rods, and the first voltage value.
[0016] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0017] At least one processor; and
[0018] A memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the method described in any embodiment of the present invention.
[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program configured to cause a processor to execute the method described in any embodiment of the present invention.
[0021] In this embodiment, a standard filter rod and a target filter rod are determined. The standard filter rod is a standard filter rod suitable for cigarettes, and the target filter rod is a filter rod suitable for cigarettes with a diameter to be tested. Each standard filter rod has a first circumferential value and a first voltage value. A second voltage value for the target filter rod is retrieved. Multiple standard filter rods whose first and second voltage values are close to each other are selected as reference filter rods. The second circumferential value of the target filter rod is detected based on the second voltage value, the first circumferential value of the multiple reference filter rods, and the first voltage value. When performing filter rod circumferential detection, a segmented filter rod circumferential detection calibration is performed, dividing the calibrated data into a specific number of intervals, and fitting the data in each interval into a linear equation for the circumferential value. Since there is a certain correlation between voltage value and circumference value, multiple standard filter rods with first and second voltage values that are close to each other are selected. Their first circumference value is also close to the second circumference value of the target filter rod. The target filter rod and the reference filter rod have similarity in the relationship between voltage value and circumference value. Using this as a reference to measure the second circumference value of the target filter rod can improve the accuracy of the circumference value of the reference filter rod, which is conducive to improving the production quality of cigarette filter rods.
[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is a flowchart of a method for detecting the circumference of a cigarette filter rod according to Embodiment 1 of the present invention;
[0025] Figure 2 This is a schematic diagram of a device for detecting the circumference of a cigarette filter rod according to Embodiment 2 of the present invention;
[0026] Figure 3 This is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. Detailed Implementation
[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0029] Example 1
[0030] Figure 1 This is a flowchart illustrating a method for detecting the circumference of a cigarette filter rod according to Embodiment 1 of the present invention. This embodiment is applicable to obtaining the optimal circumference value of a cigarette filter rod when calibrating a specific number of cigarette filter rods. The method can be executed by a device, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0031] Step 101: Determine the standard filter rod and the target filter rod.
[0032] In the process of producing cigarettes, the components of a cigarette, in addition to tobacco, include cigarette paper, tipping paper, forming paper, and filter rod. These are collectively referred to as "three papers and one rod".
[0033] Cigarette filter rods are the filter tips of cigarettes. Currently, the most commonly used cigarette filter rods can be classified according to their structure into composite filter rods, grooved filter rods, paper filter rods, coaxial core filter rods, and irregularly shaped filter rods.
[0034] Filter rods are made from tobacco tow and filter rod forming paper, processed, rolled, and slit. On a cigarette rolling machine, cigarettes are attached to both ends of the filter rod with tipping paper, and then it is cut in half to make two cigarettes. The filter rod is the inevitable path for the mainstream smoke entering the mouth. To further reduce harm and improve smoke quality, activated carbon is added to a section of the filter rod to enhance adsorption, and flavor capsules and aroma threads are added to enhance aroma. Various materials are added to the filter rod to increase the catalytic adsorption of specific harmful components. Filter rods are usually brownish-yellow cylinders, but some also have novel appearances and colors.
[0035] When performing circumferential testing on filter rods, a specific number of standard filter rods and target filter rods are determined.
[0036] Online filter rod circumference detection methods mainly include pneumatic and laser types. The controller acquires the detector's voltage value and converts it into a filter rod circumference value. This conversion is achieved through calibration, commonly using a two-point calibration method. This involves using two standard filter rods and obtaining corresponding voltage values from the detector, further deriving a linear equation formula for converting the voltage value into a circumference value. Standard filter rods are manufactured and measured using precision instruments, resulting in high accuracy. However, manufacturing standard filter rods is time-consuming and cannot be widely adopted. A standard filter rod is a standard filter rod suitable for cigarettes, while a target filter rod is a filter rod suitable for cigarettes with a circumference to be detected. Each standard filter rod has a first circumference value and a first voltage value. Step 102: Query the second voltage value detected for the target filter rod.
[0037] The filter rod to be tested is taken as the target filter rod. The voltage value of the target filter rod is detected by an online circumference detector. The voltage value of the detector is obtained by the controller and used as the second voltage value.
[0038] Step 103: Select several standard filter rods whose first voltage value and second voltage value are close to each other as reference filter rods.
[0039] Based on the first voltage value, select multiple standard filter rods that are close to the first voltage value and the second voltage value, and use the obtained multiple standard filter rods as reference filter rods.
[0040] In one embodiment of the present invention, step 103 may include the following steps:
[0041] Step 1031: Sort all the first voltage values according to the first circumference value to obtain the voltage sequence.
[0042] The first circumference value corresponding to each standard filter rod is sorted in ascending or descending order. Furthermore, the first voltage value corresponding to the corresponding number of standard filter rods is measured by an online circumference detector, and the obtained multiple first voltage values are used as a voltage sequence.
[0043] Generally, the first circumference value is positively correlated with the first voltage value; that is, the larger the first circumference value, the higher the first voltage value, and vice versa.
[0044] Therefore, in the voltage sequence, the first voltage value is also sorted in ascending or descending order according to the first circumference value.
[0045] Step 1032: Divide the voltage sequence into multiple voltage segments.
[0046] In this embodiment, multiple values can be determined as segmentation nodes to divide the voltage sequence into multiple voltage segments, each voltage segment containing one or more first voltage values.
[0047] The standard filter rod includes a first filter rod, a second filter rod, a third filter rod, a fourth filter rod, and a fifth filter rod. The first voltage value of the first filter rod, the first voltage value of the second filter rod, the first voltage value of the third filter rod, the first voltage value of the fourth filter rod, and the first voltage value of the fifth filter rod increase sequentially.
[0048] For example, five standard filter rods suitable for cigarettes are selected. The first circumferential value of the five standard filter rods is measured and sorted in ascending order. The sorted first circumferential values are represented by the letters y1, y2, y3, y4, and y5. y1 is the first circumferential value of the first filter rod, y2 is the first circumferential value of the second filter rod, y3 is the first circumferential value of the third filter rod, y4 is the first circumferential value of the fourth filter rod, and y5 is the first circumferential value of the fifth filter rod. The first voltage value corresponding to the five standard rods is measured using an online circumferential detector and recorded as x1, x2, x3, x4, and x5. Here, x1 is the first voltage value of the first filter rod, x2 is the first voltage value of the second filter rod, x3 is the first voltage value of the third filter rod, x4 is the first voltage value of the fourth filter rod, and x5 is the first voltage value of the fifth filter rod. x1, x2, x3, x4, and x5 constitute a voltage sequence.
[0049] The first voltage value of the second filter rod is set as the first cutting node, and the first voltage value of the fourth filter rod is set as the second cutting node.
[0050] Segmentation is performed at the first segmentation node to divide the first voltage value of the first filter rod into a voltage segment, which is designated as the first segment.
[0051] At the second segmentation node, the first voltage value of the second filter rod, the first voltage value of the third filter rod, and the first voltage value of the fourth filter rod are divided into a voltage segment as the second segment, and the first voltage value of the fifth filter rod is divided into a voltage segment as the third segment.
[0052] Furthermore, the first voltage value of the first filter rod is used as the dividing point, and the first segment is the segment whose value is less than the first voltage value of the first filter rod.
[0053] Furthermore, the first voltage values of the second filter rod and the fourth filter rod are used as dividing points. The first voltage values of the second filter rod, the third filter rod, and the fourth filter rod are divided into the same segment. That is, when the voltage value is greater than the first voltage value of the second filter rod and less than and / or equal to the first voltage value of the fourth filter rod, it is the second segment, and the first voltage value of the third filter rod is located in the second segment.
[0054] Furthermore, the first voltage value of the fifth filter rod is used as the dividing point. The first voltage value of the fifth filter rod is divided into the same voltage segment, that is, when the voltage value is greater than the first voltage value of the fifth filter rod, it is the third segment.
[0055] Step 1033: Query the voltage segment into which the second voltage value falls, and use it as the target segment.
[0056] The system queries the voltage segment into which the target filter rod's second voltage value falls, and uses this segment as the target segment. The target segment is used to filter multiple first voltage values that are neighbors of the second voltage value.
[0057] Step 1034: Filter multiple first voltage values that are adjacent to the second voltage value based on the target segment.
[0058] From the voltage segment that the second voltage value falls into, i.e. the target segment, select multiple first voltage values that are adjacent to the second voltage value.
[0059] If the target segment is the first segment, then determine the first voltage value of the first filter rod, the first voltage value of the second filter rod, and the first voltage value of the third filter rod that are adjacent to the second voltage value.
[0060] If the target segment is the second segment, then determine that the first voltage value of the second filter rod, the first voltage value of the third filter rod, and the first voltage value of the fourth filter rod are adjacent to the second voltage value.
[0061] If the target segment is the third segment, then determine that the first voltage value of the third filter rod, the first voltage value of the fourth filter rod, the first voltage value of the fifth filter rod, and the second voltage value are adjacent to each other.
[0062] For example, the letter 'x' represents the second voltage value. If the target segment is the first segment, then x1, x2, and x3 are determined to be the nearest neighbors of the second voltage value 'x'. If the target segment is the second segment, then x2, x3, and x4 are determined to be the nearest neighbors of the second voltage value 'x'. If the target segment is the third segment, then x3, x4, and x5 are determined to be the nearest neighbors of 'x'.
[0063] Step 1035: Set the standard filter rods to which the multiple first voltage values belong as reference filter rods.
[0064] Furthermore, the standard filter rods to which the first voltage values of the first filter rod, the second filter rod, the third filter rod, the fourth filter rod, and the fifth filter rod belong are set as reference filter rods. These reference filter rods are used to detect the second circumferential value of the target filter rod.
[0065] Step 104: Detect the second circumference value of the target filter rod based on the second voltage value, the first circumference value of multiple reference filter rods, and the first voltage value.
[0066] The second circumferential value of the target filter rod is detected based on the second voltage value corresponding to the target filter rod, the first circumferential values of multiple reference filter rods, and the first voltage values. Furthermore, the second voltage value, the first circumferential values of the multiple reference filter rods, and the first voltage values are used to construct a linear equation. The second circumferential value of the target filter rod under the corresponding condition is further solved using the linear equation.
[0067] In one embodiment of the present invention, step 104 may include the following steps:
[0068] Step 1041: Construct the equation of the straight line. The equation of the straight line is that the voltage value is equal to the product of the slope and the circumference value plus the transverse intercept.
[0069] A linear equation about the second circumference value is constructed by combining the second voltage value, the first circumference value of multiple reference filter rods, and the first voltage value. This linear equation is that the voltage value equals the product of the slope and the circumference value plus the transverse intercept.
[0070] Step 1042: Fit the slope and transverse intercept of the first circumferential value and the first voltage value using multiple reference filter rods.
[0071] The slope and transverse intercept are fitted using the first circumferential value and the first voltage value of multiple reference filter rods. Fitting methods include: approximating discrete data using analytical expressions and least squares fitting.
[0072] The least squares fitting method is used to fit the slope and transverse intercept of the first circumference value and the first voltage value using multiple reference filter rods. The least squares method finds the best function match for the data by minimizing the sum of squared errors. It can also be used to easily obtain unknown data while minimizing the sum of squared errors between the obtained data and the actual data.
[0073] When fitting the slope and transverse intercept using the least squares method, the average value of the first circumference value of multiple reference filter rods is calculated as the average circumference value, denoted by the letter […]. This represents the average circumferential value. The average value is calculated by averaging the first voltage values of multiple reference filter rods and is represented by the letter [letter name missing]. This represents the average voltage value.
[0074] Furthermore, the first parameter value is obtained by summing the products of the first circumferential value and the first voltage value for each reference filter rod. The second parameter value is obtained by subtracting N times the product of the average circumferential value and the average voltage value from the first parameter value, where N is the number of all reference filter rods. The third parameter value is obtained by summing the squares of all the first voltage values. The fourth parameter value is obtained by subtracting N times the square of the average voltage value from the third parameter value.
[0075] Calculate the ratio between the second and fourth parameter values to obtain the slope. Subtract the product of the slope and the average voltage value from the average circumference value to obtain the transverse intercept.
[0076] For example, when the target segment is the first segment, the first voltage value of the first filter rod, the first voltage value of the second filter rod, the first voltage value of the third filter rod, and the first circumferential value corresponding to the first filter rod, the second filter rod, and the third filter rod are obtained. Let (x1, y1) represent the first voltage value and the first circumferential value of the first filter rod, (x2, y2) represent the first voltage value and the first circumferential value of the second filter rod, and (x3, y3) represent the first voltage value and the first circumferential value of the third filter rod. Substitute the first voltage values corresponding to the first filter rod, the second filter rod, and the third filter rod into the following formula to calculate the average voltage value of the first voltage values corresponding to the first filter rod, the second filter rod, and the third filter rod.
[0077]
[0078] Substituting the first circumferential values corresponding to the first, second, and third filter rods into the following formula, calculate the average circumferential value of the first circumferential values corresponding to the first, second, and third filter rods.
[0079]
[0080] Substitute (x1, y1), (x2, y2), and (x3, y3) into the following formula to calculate the slope b of the line equation:
[0081]
[0082] The average circumference value of the first circumference value corresponding to the first filter rod, the second filter rod, and the third filter rod. The slope b, the average voltage value of the first voltage value corresponding to the first filter rod, the second filter rod, and the third filter rod. Substitute the values into the following formula to calculate the intercept 'a' in the equation of the line:
[0083]
[0084] For example, when the target segment is the second segment, the first voltage value of the second filter rod, the first voltage value of the third filter rod, and the first voltage value of the fourth filter rod are obtained, as well as the first circumferential value corresponding to the second, third, and fourth filter rods. Let (x4, y4) represent the first voltage value and the first circumferential value of the fourth filter rod. Substituting the first voltage values corresponding to the second, third, and fourth filter rods into the following formula, the average voltage value of the first voltage values corresponding to the second, third, and fourth filter rods is calculated.
[0085]
[0086] Substituting the first circumferential values corresponding to the second, third, and fourth filter rods into the following formula, calculate the average circumferential value of the first circumferential values corresponding to the second, third, and fourth filter rods.
[0087]
[0088] Substitute (x2, y2), (x3, y3), and (x4, y4) into the following formula to calculate the slope b of the line equation:
[0089]
[0090] The average circumference value of the first circumference value corresponding to the second, third, and fourth filter rods. The average voltage value of the first voltage value corresponding to the slope b, the second filter rod, the third filter rod, and the fourth filter rod. Substitute the values into the following formula to calculate the intercept 'a' in the equation of the line:
[0091]
[0092] For example, when the target segment is the third segment, the first voltage value of the third filter rod, the first voltage value of the fourth filter rod, and the first voltage value of the fifth filter rod are obtained, as well as the first circumferential value corresponding to the third, fourth, and fifth filter rods. Let (x5, y5) represent the first voltage value and the first circumferential value of the fifth filter rod. The average voltage value of the first voltage values corresponding to the second, third, and fourth filter rods is calculated by substituting the first voltage values of the third, fourth, and fifth filter rods into the following formula.
[0093]
[0094] Substituting the first circumferential values corresponding to the third, fourth, and fifth filter rods into the following formula, calculate the average circumferential value of the first circumferential values corresponding to the third, fourth, and fifth filter rods.
[0095]
[0096] Substitute (x2, y2), (x3, y3), and (x4, y4) into the following formula to calculate the slope b of the line equation:
[0097]
[0098] The average circumference value of the first circumference value corresponding to the third, fourth, and fifth filter rods. The average voltage value of the first voltage value corresponding to slope b, the third filter rod, the fourth filter rod, and the fifth filter rod. Substitute the values into the following formula to calculate the intercept 'a' in the equation of the line:
[0099]
[0100] Step 1043: If the fitting is complete, substitute the second voltage value into the linear equation for calculation to obtain the second circumferential value of the target filter rod.
[0101] Based on the second voltage value, after fitting the corresponding segment using the least squares method, the intercept and slope of the linear equation are obtained, further leading to the linear equation y = a + bx. Here, a represents the intercept and b represents the slope.
[0102] After completing the process of constructing the linear equation, the second voltage value is substituted into the linear equation to further obtain the second circumferential value corresponding to the second voltage value. That is, the product of the second voltage value and the slope is added to the horizontal intercept to obtain the second circumferential value of the target filter rod.
[0103] For example, the first circumference values of five standard filter rods are obtained in descending order: y1 = 23.60 mm, y2 = 23.80 mm, y3 = 24.00 mm, y4 = 24.20 mm, and y5 = 24.40 mm. The standard filter rods are then placed in an online filter rod circumference detector to obtain the corresponding first voltage values for each first circumference value: x1 = 3215 mV, x2 = 4425 mV, x3 = 5925 mV, x4 = 7423 mV, and x5 = 8652 mV. The second voltage value of the target filter rod is then obtained as x = 7000 mV. It is determined that the second voltage value of the target filter rod falls within the second target segment. Therefore, the intercept and slope of the linear equation converting the second voltage value into the second circumference value are obtained using the three data points (x2, y2), (x3, y3), and (x4, y4) through least squares fitting. Substitute x2, x3, and x4 into the following formula to obtain the average voltage value.
[0104]
[0105] Substitute y2, y3, and y4 into the following formula to obtain the average circumference value.
[0106]
[0107] Substituting (x2,y2), (x3,y3), and (x4,y4) into the following formula, we can calculate the slope value b:
[0108]
[0109] Substituting (x2,y2), (x3,y3), and (x4,y4) into the following formula, the intercept value a is calculated:
[0110] a=24.00-0.0001334×5924=23.21
[0111] Further, the linear equation y = 23.21 + 0.0001334x is obtained. Substituting the second voltage value of the target filter rod into the linear equation, the second circumference value of the target filter rod is obtained, namely 23.21 + 0.0001334 × 7000 = 24.144 mm.
[0112] In this embodiment, a standard filter rod and a target filter rod are determined. The standard filter rod is a standard filter rod suitable for cigarettes, and the target filter rod is a filter rod suitable for cigarettes with a diameter to be tested. Each standard filter rod has a first circumferential value and a first voltage value. A second voltage value for the target filter rod is retrieved. Multiple standard filter rods whose first and second voltage values are close to each other are selected as reference filter rods. The second circumferential value of the target filter rod is detected based on the second voltage value, the first circumferential value of the multiple reference filter rods, and the first voltage value. When performing filter rod circumferential detection, a segmented filter rod circumferential detection calibration is performed, dividing the calibrated data into a specific number of intervals, and fitting the data in each interval into a linear equation for the circumferential value. Since there is a certain correlation between voltage value and circumference value, multiple standard filter rods with first and second voltage values that are close to each other are selected. Their first circumference value is also close to the second circumference value of the target filter rod. The target filter rod and the reference filter rod have similarity in the relationship between voltage value and circumference value. Using this as a reference to measure the second circumference value of the target filter rod can improve the accuracy of the circumference value of the reference filter rod, which is conducive to improving the production quality of cigarette filter rods.
[0113] Example 2
[0114] Figure 2 This is a schematic diagram of the apparatus for detecting the circumference of a cigarette filter rod according to Embodiment 2 of the present invention. Figure 2 As shown, the device includes:
[0115] The filter rod determination module 201 is used to determine a standard filter rod and a target filter rod. The standard filter rod is a standard filter rod that is suitable for cigarettes, and the target filter rod is a filter rod that is suitable for cigarettes and has a circumference to be tested. Each standard filter rod has a first circumference value and a first voltage value.
[0116] Voltage value query module 202 is used to query the second voltage value detected on the target filter rod;
[0117] The reference filter rod selection module 203 is used to select a plurality of standard filter rods that are close to the first voltage value and the second voltage value as reference filter rods;
[0118] The circumference value detection module 204 is used to detect the second circumference value of the target filter rod based on the second voltage value, the first circumference value of the plurality of reference filter rods, and the first voltage value.
[0119] In one embodiment of the present invention, the reference filter rod selection module 203 includes:
[0120] A voltage value sorting module is used to sort all the first voltage values according to the first circumference value to obtain a voltage sequence, wherein the first circumference value is positively correlated with the first voltage value;
[0121] A voltage sequence segmentation module is used to segment the voltage sequence into multiple voltage segments;
[0122] The target segment query module is used to query the voltage segment into which the second voltage value falls, and use it as the target segment.
[0123] The target segment filtering module is used to filter multiple first voltage values that are adjacent to the second voltage value based on the target segment;
[0124] A reference filter rod setting module is used to set multiple standard filter rods to which the first voltage value belongs as reference filter rods.
[0125] In one embodiment of the present invention, the standard filter rod includes a first filter rod, a second filter rod, a third filter rod, a fourth filter rod, and a fifth filter rod, wherein the first voltage value of the first filter rod, the first voltage value of the second filter rod, the first voltage value of the third filter rod, the first voltage value of the fourth filter rod, and the first voltage value of the fifth filter rod increase sequentially.
[0126] The voltage sequence segmentation module includes:
[0127] The node setting module is used to set the first voltage value of the second filter rod as the first cutting node and the first voltage value of the fourth filter rod as the second cutting node, respectively.
[0128] The node segmentation module is used to segment at the first segmentation node to divide the first voltage value of the first filter rod into a voltage segment as the first segment;
[0129] The segment acquisition module is used to perform segmentation at the second segmentation node to divide the first voltage value of the second filter rod, the first voltage value of the third filter rod, and the first voltage value of the fourth filter rod into a voltage segment as a second segment, and to divide the first voltage value of the fifth filter rod into a voltage segment as a third segment.
[0130] In one embodiment of the present invention, the target fragment filtering module includes:
[0131] The first nearest neighbor determination module is used to determine the first voltage value of the first filter rod, the first voltage value of the second filter rod, and the first voltage value of the third filter rod being the nearest neighbor of the second voltage value if the target segment is the first segment.
[0132] The second nearest neighbor determination module is used to determine the first voltage value of the second filter rod, the first voltage value of the third filter rod, and the first voltage value of the fourth filter rod as nearest neighbors to the second voltage value if the target segment is the second segment.
[0133] The third nearest neighbor determination module is used to determine the first voltage value of the third filter rod, the first voltage value of the fourth filter rod, and the first voltage value of the fifth filter rod as nearest neighbors to the second voltage value if the target segment is the third segment.
[0134] In one embodiment of the present invention, the circumference value detection module 204 includes:
[0135] A linear equation construction module is used to construct a linear equation, wherein the linear equation is that the voltage value is equal to the product of the slope and the circumference value plus the x-intercept;
[0136] The transverse intercept and slope fitting module is used to fit the slope and the transverse intercept using the first circumference value and the first voltage value of the multiple reference filter rods; the circumference value acquisition module is used to substitute the second voltage value into the linear equation for calculation if the fitting is completed, to obtain the second circumference value of the target filter rod.
[0137] In one embodiment of the present invention, the transverse intercept and slope fitting module includes:
[0138] The average circumference value acquisition module is used to calculate the average value of the first circumference values of the plurality of reference filter rods as the average circumference value;
[0139] An average voltage value acquisition module is used to calculate the average value of the first voltage values of the plurality of reference filter rods as the average voltage value;
[0140] The first reference value acquisition module is used to sum the product between the first circumference value and the first voltage value of each of the reference filter rods to obtain the first parameter value;
[0141] The second reference value acquisition module is used to subtract N times the product between the average circumference value and the average voltage value from the first parameter value to obtain the second parameter value, where N is the number of all the reference filter rods;
[0142] The third reference value acquisition module is used to sum the squares of all the first voltage values to obtain the third parameter value;
[0143] The fourth reference value acquisition module is used to subtract N times the square of the average voltage value from the third parameter value to obtain the fourth parameter value;
[0144] The numerical calculation module is used to calculate the ratio between the second parameter value and the fourth parameter value, as the numerical value of the slope;
[0145] The transverse intercept calculation module is used to subtract the product between the slope and the average voltage value from the average circumference value to obtain the value of the transverse intercept.
[0146] In one embodiment of the present invention, the circumference value acquisition module includes:
[0147] The voltage value processing module is used to add the horizontal intercept to the product of the second voltage value and the slope to obtain the second circumferential value of the target filter rod.
[0148] The apparatus provided in the embodiments of the present invention can execute the method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method.
[0149] Example 3
[0150] Figure 3 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0151] like Figure 3 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0152] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0153] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as methods.
[0154] In some embodiments, the method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or mounted on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute the method by any other suitable means (e.g., by means of firmware).
[0155] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0156] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0157] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0158] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0159] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0160] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0161] Example 4
[0162] This invention also provides a computer program product comprising a computer program that, when executed by a processor, implements the method provided in any embodiment of this invention.
[0163] In implementing the computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0164] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0165] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method of detecting the circumference of a cigarette filter rod, characterized by, The method comprises the following steps: determining a standard filter rod and a target filter rod, the standard filter rod being a standard filter rod suitable for a cigarette, the target filter rod being a filter rod with a circumference to be detected, each of the standard filter rods having a first circumference value and a first voltage value; inquiring a second voltage value detected for the target filter rod; selecting a plurality of the standard filter rods adjacent to the first voltage value and the second voltage value as reference filter rods; detecting a second circumference value of the target filter rod according to the second voltage value, the first circumference value and the first voltage value of the plurality of the reference filter rods, wherein the first circumference value and the first voltage value of the plurality of the reference filter rods are used to construct a linear equation, and the linear equation is used to solve the second circumference value of the target filter rod corresponding to the second voltage value; wherein the selecting the plurality of the standard filter rods adjacent to the first voltage value and the second voltage value as the reference filter rods comprises: sorting all the first voltage values according to the first circumference value to obtain a voltage sequence, the first circumference value being positively correlated with the first voltage value; dividing the voltage sequence into a plurality of voltage segments; inquiring the voltage segment in which the second voltage value falls as a target segment; screening a plurality of the first voltage values adjacent to the second voltage value based on the target segment; setting the standard filter rods to which the plurality of the first voltage values belong as the reference filter rods.
2. The method of claim 1, wherein, The standard filter rods comprise a first filter rod, a second filter rod, a third filter rod, a fourth filter rod and a fifth filter rod, the first voltage value of the first filter rod, the first voltage value of the second filter rod, the first voltage value of the third filter rod, the first voltage value of the fourth filter rod and the first voltage value of the fifth filter rod increasing in turn; The dividing the voltage sequence into a plurality of voltage segments comprises: respectively setting the first voltage value of the second filter rod as a first division node and the first voltage value of the fourth filter rod as a second division node; performing division at the first division node to divide the first voltage value of the first filter rod into one voltage segment as a first segment; performing division at the second division node to divide the first voltage value of the second filter rod, the first voltage value of the third filter rod and the first voltage value of the fourth filter rod into one voltage segment as a second segment, and divide the first voltage value of the fifth filter rod into one voltage segment as a third segment.
3. The method of claim 2, wherein, The screening a plurality of the first voltage values adjacent to the second voltage value based on the target segment comprises: if the target segment is the first segment, determining that the first voltage value of the first filter rod, the first voltage value of the second filter rod, the first voltage value of the third filter rod and the second voltage value are adjacent; if the target segment is the second segment, determining that the first voltage value of the second filter rod, the first voltage value of the third filter rod, the first voltage value of the fourth filter rod and the second voltage value are adjacent. If the target segment is the third segment, the first voltage value of the third filter rod, the first voltage value of the fourth filter rod, and the first voltage value of the fifth filter rod are determined to be adjacent to the second voltage value.
4. The method according to any one of claims 1 to 3, characterized in that, The second circumference value of the target filter rod is detected according to the second voltage value, the first circumference value and the first voltage value of a plurality of reference filter rods, including: A linear equation is constructed, in which the voltage value is equal to the product of the slope and the circumference value plus the intercept; The slope and the intercept are fitted using the first circumference value and the first voltage value of a plurality of reference filter rods; If the fitting is completed, the second voltage value is substituted into the linear equation to obtain the second circumference value of the target filter rod.
5. The method of claim 4, wherein, The slope and the intercept are fitted using the first circumference value and the first voltage value of a plurality of reference filter rods, including: An average value of the first circumference value of a plurality of reference filter rods is calculated as an average circumference value; An average value of the first voltage value of a plurality of reference filter rods is calculated as an average voltage value; The first parameter value is obtained by summing the product of the first circumference value and the first voltage value of each reference filter rod; The second parameter value is obtained by subtracting N times the product of the average circumference value and the average voltage value from the first parameter value, where N is the number of all reference filter rods; The third parameter value is obtained by summing the square of all first voltage values; The fourth parameter value is obtained by subtracting N times the square of the average voltage value from the third parameter value; The ratio between the second parameter value and the fourth parameter value is calculated as the value of the slope; The value of the intercept is obtained by subtracting the product of the slope and the average voltage value from the average circumference value.
6. The method of claim 4, wherein, The second circumference value of the target filter rod is obtained by substituting the second voltage value into the linear equation, including: The second circumference value of the target filter rod is obtained by adding the product of the second voltage value and the slope to the intercept.
7. Apparatus for detecting the circumference of a cigarette filter rod, characterised in that, Including: A filter rod determination module is configured to determine standard filter rods and a target filter rod, the standard filter rods being standard filter rods suitable for cigarettes, and the target filter rod being a filter rod to be detected, each of the standard filter rods having a first circumference value and a first voltage value; A voltage value query module is configured to query a second voltage value detected for the target filter rod; A reference filter rod selection module is configured to select a plurality of the standard filter rods having the first voltage value and the second voltage value adjacent to each other as reference filter rods; A circumference value detection module is configured to detect a second circumference value of the target filter rod according to the second voltage value, the first circumference value and the first voltage value of a plurality of reference filter rods, wherein the first circumference value and the first voltage value of the plurality of reference filter rods are used to construct a linear equation, and the linear equation is used to solve the second circumference value of the target filter rod corresponding to the second voltage value; The reference filter rod selection module includes: The voltage value sorting module is configured to sort all the first voltage values according to the first circumferential values, and obtain a voltage sequence, wherein the first circumferential values are positively correlated with the first voltage values. The voltage sequence cutting module is configured to cut the voltage sequence into a plurality of voltage segments. The target segment querying module is configured to query the voltage segment where the second voltage value falls into as a target segment. The target segment screening module is configured to screen a plurality of first voltage values that are proximate to the second voltage value based on the target segment. The reference filter rod setting module is configured to set the standard filter rod to which the plurality of first voltage values belong as a reference filter rod.
8. An electronic device, comprising: The electronic device comprises: at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the method for detecting circumferences of filter rods of cigarettes according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is used to enable the processor to implement the method for detecting circumferences of filter rods of cigarettes according to any one of claims 1-6 when executed. The computer readable storage medium stores a computer program, and the computer program is used to enable the processor to implement the method for detecting circumferences of filter rods of cigarettes according to any one of claims 1-6 when executed.
Citation Information
Patent Citations
Cigarette zhi yuanzhou on -line measuring device
CN208140053U