Detection Method, System, Equipment and Storage Medium for Internal Structure Characteristics of Cigarettes
By detecting the internal structural characteristics of cigarettes, especially extracting the boundaries between tobacco and cigarette paper, and calculating the relevant pixel area and parameters, the accuracy of the detection of internal structural characteristics of cigarettes is solved, the prediction and regulation of cigarette support absorption resistance is improved, and the stability and consistency of cigarette products are ensured.
Patent Information
- Application Number
- CN202111306025.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-05
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2041-11-05
AI Technical Summary
The prior art cannot accurately obtain the internal structural characteristics of cigarettes, resulting in unstable smoking resistance of cigarettes and affecting the stability and consistency of sensory quality of cigarette products.
By obtaining the internal structure image of the cigarette, the boundary between the tobacco and cigarette paper is extracted after pre-processing, the total pixel area of the tobacco cross-section, the pixel area of the tobacco cross-section and the pixel area of the cigarette paper cross-section, and the characteristic parameters of the internal structure of the cigarette branch, such as the circumference of the cigarette branch, the number of pixels in the circumference of the cigarette section, and the porosity of the cross-section of the cigarette section.
It effectively improves the prediction and regulation ability of cigarette support suction resistance, establishes a correlation model between the internal structural parameters of cigarette support and suction resistance, and forms a technical solution to regulate cigarette support suction resistance.
Smart Images

Figure CN113962982B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of cigarette detection, and relates to a detection method and system, in particular to a detection method, system, device and storage medium for the internal structure characteristics of cigarettes. Background Art
[0002] At present, during the cigarette production process, the general cigarette quality control mode is cigarette weight control. Except for the detection and rejection of quality defects such as air leakage, the draw resistance of cigarettes is not directly controlled. It has been found in production that even if the cigarette weight remains stable, the draw resistance of cigarettes still distributes in a relatively wide range, affecting the stability and consistency of the sensory quality of cigarette products. When the auxiliary materials and rolling parameters of cigarettes are fixed, the internal structure characteristics of cigarettes (including the tobacco structure and the distribution state of local tobacco) are the main factors affecting the draw resistance of cigarettes.
[0003] Therefore, how to provide a detection method, system, device and storage medium for the internal structure characteristics of cigarettes to solve the defects that the prior art cannot accurately obtain the internal structure characteristics of cigarettes, resulting in the draw resistance of cigarettes being affected, and further affecting the stability and consistency of the sensory quality of cigarette products has actually become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the Invention
[0004] In view of the above-mentioned disadvantages of the prior art, the purpose of the present invention is to provide a detection method, system, device and storage medium for the internal structure characteristics of cigarettes, which is used to solve the problem that the prior art cannot accurately obtain the internal structure characteristics of cigarettes, resulting in the draw resistance of cigarettes being affected, and further affecting the stability and consistency of the sensory quality of cigarette products.
[0005] To achieve the above purpose and other related purposes, on the one hand, the present invention provides a detection method for the internal structure characteristics of cigarettes, including: obtaining an image of the internal structure of a cigarette; preprocessing the image of the internal structure of the cigarette to obtain a preprocessed image of the internal structure of the cigarette; extracting the boundaries of tobacco and / or cigarette paper from the preprocessed image of the internal structure of the cigarette, so as to obtain the total pixel area of the cigarette cross-section, the pixel area of the tobacco cross-section and / or the pixel area of the cigarette paper cross-section according to the boundaries of tobacco and / or cigarette paper; detecting the structural characteristic parameters of the internal structure characteristics of the cigarette through the total pixel area of the cigarette cross-section, the pixel area of the tobacco cross-section and / or the pixel area of the cigarette paper cross-section.
[0006] In an embodiment of the present invention, the preprocessing of the image of the internal structure of the cigarette includes: performing binarization processing on the image of the internal structure of the cigarette to form a binarized image of the internal structure of the cigarette; performing noise reduction and pseudo-point removal on the binarized image of the internal structure of the cigarette to form a noise-reduced image of the internal structure of the cigarette.
[0007] In an embodiment of the present invention, the black color in the denoised internal structure image of the cigarette represents a pixel value of 0, indicating the air and voids in the cigarette, and the white color represents a pixel value of 1, indicating the tobacco and cigarette paper in the cigarette.
[0008] In an embodiment of the present invention, the steps of extracting the boundary of the tobacco and / or cigarette paper from the preprocessed internal structure image of the cigarette to obtain the total pixel area of the cigarette cross-section, the pixel area of the tobacco cross-section, and / or the pixel area of the cigarette paper cross-section based on the boundary of the tobacco and / or cigarette paper include: reading the coordinates of the leftmost pixel point where 1 appears and the rightmost pixel point where 1 appears in each row of the preprocessed internal structure image of the cigarette; calculating the pixel distance between the leftmost pixel point where 1 appears and the rightmost pixel point where 1 appears in each row; and adding up the pixel distances of each row to obtain the total pixel area of the cigarette cross-section.
[0009] In an embodiment of the present invention, the steps of extracting the boundary of the tobacco and / or cigarette paper from the preprocessed internal structure image of the cigarette to obtain the total pixel area of the cigarette cross-section, the pixel area of the tobacco cross-section, and / or the pixel area of the cigarette paper cross-section based on the boundary of the tobacco and / or cigarette paper further include: reading the rows in the preprocessed internal structure image of the cigarette where 1 appears continuously, and adding up the number of pixel points where 1 appears continuously in that row to obtain the pixel area of the tobacco cross-section; reading the number of all pixel points where 1 appears in the preprocessed internal structure image of the cigarette, and subtracting the pixel area of the tobacco cross-section from the number of all pixel points where 1 appears, which is denoted as the pixel area of the cigarette paper cross-section; wherein, the pixel area of the tobacco and cigarette paper cross-section is equal to the sum of the pixel area of the tobacco cross-section and the pixel area of the cigarette paper cross-section. [[ID=८]]
[0010] In an embodiment of the present invention, the structural feature parameters of the internal structure characteristics of the cigarette rod include the circumference of the cigarette rod cross-section, the number of pixel circumferences of the cigarette cross-section, and / or the cross-section porosity.
[0011] In an embodiment of the present invention, the steps of detecting the structural feature parameters of the internal structure characteristics of the cigarette rod through the total pixel area of the cigarette cross-section, the pixel area of the tobacco cross-section, and / or the pixel area of the cigarette paper cross-section include: calculating the circumference of the cigarette rod cross-section, the number of pixel circumferences of the cigarette cross-section, and / or the cross-section porosity; wherein, the formula for calculating the circumference of the cigarette rod cross-section is: the circumference of the cigarette rod cross-section is equal to the total pixel area of the cigarette cross-section multiplied by the pre-stored scanning resolution; the formula for calculating the number of pixel circumferences of the cigarette cross-section is: the number of pixel circumferences of the cigarette cross-section is equal to the pre-stored cigarette paper thickness divided by the pre-stored scanning resolution and then multiplied by the total pixel area of the cigarette cross-section; and / or the formula for calculating the cross-section porosity is: the cross-section porosity is equal to the difference between the pixel area of the tobacco and cigarette paper cross-section and the pixel area of the cigarette paper cross-section divided by the total pixel area of the cigarette cross-section.
[0012] On the other hand, the present invention provides a detection system for the internal structure characteristics of a cigarette, comprising: an acquisition module for acquiring an image of the internal structure of a cigarette; a preprocessing module for preprocessing the image of the internal structure of the cigarette to obtain a preprocessed image of the internal structure of the cigarette; a boundary extraction module for extracting the boundaries of tobacco strands and / or cigarette paper from the preprocessed image of the internal structure of the cigarette, so as to obtain the total pixel area of the cigarette cross-section, the pixel area of the tobacco strand cross-section and / or the pixel area of the cigarette paper cross-section based on the boundaries of the tobacco strands and / or cigarette paper; and a parameter detection module for detecting the structural characteristic parameters of the internal structure characteristics of the cigarette through the total pixel area of the cigarette cross-section, the pixel area of the tobacco strand cross-section and / or the pixel area of the cigarette paper cross-section.
[0013] On another aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the detection method for the internal structure characteristics of the cigarette is implemented.
[0014] Finally, the present invention provides a detection device for the internal structure characteristics of a cigarette, comprising: a processor and a memory; the memory is used for storing a computer program, and the processor is used for executing the computer program stored in the memory, so that the detection device executes the detection method for the internal structure characteristics of the cigarette.
[0015] As described above, the detection method, system, device and storage medium for the internal structure characteristics of the cigarette according to the present invention have the following beneficial effects:
[0016] The detection method, system, device and storage medium for the internal structure characteristics of the cigarette according to the present invention detect the internal structure of the cigarette, quickly extract characteristic parameters such as the porosity inside the cigarette, effectively improve the prediction ability and regulation ability of the cigarette draw resistance, and establish a correlation model between the structural parameters inside the cigarette and the cigarette draw resistance by studying the characterization method of the internal structure characteristics of the cigarette, thereby forming a technical solution for regulating the cigarette draw resistance. Description of the Drawings
[0017] Figure 1 It shows a schematic flowchart of the detection method for the internal structure characteristics of the cigarette according to the present invention in an embodiment.
[0018] Figure 2 It shows an example diagram of an image of the internal structure of a cigarette.
[0019] Figure 3 It shows an example diagram of an image of the internal structure of a cigarette after binarization and noise reduction.
[0020] Figure 4 It shows a data schematic diagram of the cross-sectional porosity.
[0021] Figure 5Schematic diagram of the principle structure of the detection system for the internal structure characteristics of cigarettes according to the present invention in an embodiment.
[0022] Description of component numbers
[0023] 5 Detection system for internal structure characteristics of cigarettes
[0024] 51 Acquisition module
[0025] 52 Preprocessing module
[0026] 53 Boundary extraction module
[0027] 54 Parameter detection module
[0028] 55 Error correction module
[0029] Steps S11 - S15 Specific implementation manner
[0030] The following uses specific specific examples to illustrate the implementation manner of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific implementation manners. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, without conflict, the following embodiments and the features in the embodiments can be combined with each other.
[0031] It should be noted that the diagrams provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner. Therefore, only the components related to the present invention are shown in the diagrams, rather than being drawn according to the number, shape, and size of the components in actual implementation. The type, quantity, and ratio of each component in actual implementation can be arbitrarily changed, and the component layout type may also be more complex.
[0032] Embodiment 1
[0033] This embodiment provides a method for detecting the internal structure characteristics of cigarettes, including:
[0034] Obtain an image of the internal structure of a cigarette;
[0035] Preprocess the image of the internal structure of the cigarette to obtain a preprocessed image of the internal structure of the cigarette;
[0036] Extract the boundaries of the cut tobacco and / or cigarette paper from the preprocessed image of the internal structure of the cigarette, so as to obtain the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section, and / or the pixel area of the cigarette paper cross-section according to the boundaries of the cut tobacco and / or cigarette paper;
[0037] The structural feature parameters for detecting the internal structure features of the cigarette are obtained through the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section, and / or the pixel area of the cigarette paper cross-section.
[0038] The following will describe in detail the method for detecting the internal structure features of the cigarette provided in this embodiment with reference to the drawings. Please refer to Figure 1 , which shows a schematic flowchart of the method for detecting the internal structure features of the cigarette in an embodiment. As Figure 1 shown, the method for detecting the internal structure features of the cigarette specifically includes the following steps:
[0039] S11, Obtain an image of the internal structure of the cigarette.
[0040] In this embodiment, first, use an X-ray CT tomograph to scan the cigarette. Each scan obtains an image of the internal structure of the cigarette at a specific interface. Then, by setting a reasonable detection interval (step size), repeat the X-ray CT tomographic scanning process to obtain an image of the internal structure of the cigarette sample. For example, as Figure 2 shown in the example diagram of the image of the internal structure of the cigarette.
[0041] S12, Preprocess the image of the internal structure of the cigarette to obtain a preprocessed image of the internal structure of the cigarette.
[0042] In this embodiment, S12 specifically includes the following steps:
[0043] S121, Perform binarization processing on the image of the internal structure of the cigarette to form a binary image of the internal structure of the cigarette.
[0044] S122, Denoise and remove false points from the binary image of the internal structure of the cigarette to form a denoised image of the internal structure of the cigarette. As Figure 3 shown in the example diagram of the binary and denoised image of the internal structure of the cigarette, where the black in the denoised image of the internal structure of the cigarette represents a pixel value of 0, indicating air and voids in the cigarette, and the white represents a pixel value of 1, indicating cut tobacco and cigarette paper in the cigarette.
[0045] S13, Extract the boundaries of the cut tobacco and / or the cigarette paper from the preprocessed image of the internal structure of the cigarette, so as to obtain the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section, and / or the pixel area of the cigarette paper cross-section according to the boundaries of the cut tobacco and / or the cigarette paper.
[0046] Among them, the steps for obtaining the total pixel area of the cigarette cross-section include: reading the coordinates of the leftmost pixel point where 1 appears and the rightmost pixel point where 1 appears in each row of the preprocessed image of the internal structure of the cigarette; calculating the pixel distance between the leftmost pixel point where 1 appears and the rightmost pixel point where 1 appears in each row; adding up the pixel distances of each row to obtain the total pixel area of the cigarette cross-section.
[0047] The steps of obtaining the pixel area of the cut tobacco cross-section and / or the pixel area of the cigarette paper cross-section include: reading the rows with continuously appearing 1s in the preprocessed internal structure image of the cigarette, and adding the number of pixel points with continuously appearing 1s in that row to obtain the pixel area of the cut tobacco cross-section; reading the number of all pixel points with 1s appearing in the preprocessed internal structure image of the cigarette, and subtracting the pixel area of the cut tobacco cross-section from the number of all pixel points with 1s appearing, which is denoted as the pixel area of the cigarette paper cross-section; wherein, the pixel areas of the cut tobacco and the cigarette paper cross-section are equal to the sum of the pixel area of the cut tobacco cross-section and the pixel area of the cigarette paper cross-section.
[0048] In this embodiment, the internal structure image of the cigarette after binarization and noise reduction is a matrix composed of 0s and 1s. For example,
[0049]
[0050] wherein, 0 is the pixel value of black, representing the air and voids in the cigarette, and 1 is the pixel value of white, representing the cut tobacco and cigarette paper in the cigarette. The process of obtaining the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section and / or the pixel area of the cigarette paper cross-section is as follows:
[0051] Read the coordinates of the leftmost pixel point with 1 and the rightmost pixel point with 1 in each row of the preprocessed internal structure image of the cigarette, and calculate the pixel distance between the leftmost pixel point with 1 and the rightmost pixel point with 1 in each row; add the pixel distances of each row (that is, also including filling the 0s within the part enclosed by 1s at the boundary into 1s to sum and obtain the total pixel area of the cigarette cross-section), and the obtained total pixel area of the cigarette cross-section is 2 + 4 + 5 + 3 + 1 = 15; read the rows with continuously appearing 1s in the preprocessed internal structure image of the cigarette (such as the 5th row with continuously appearing 1s), and add the number of pixel points with continuously appearing 1s in that row to obtain the pixel area of the cut tobacco cross-section as 3, and the rest is the pixel area of the cigarette paper cross-section, that is, 9.
[0052] S14, detecting the structural feature parameters of the internal structure of the cigarette through the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section and / or the pixel area of the cigarette paper cross-section.
[0053] In this embodiment, the structural feature parameters of the internal structure of the cigarette include the circumference of the cigarette cross-section, the number of pixel circumferences of the cigarette cross-section and / or the cross-section porosity.
[0054] Specifically, the S14 includes calculating the circumference of the cigarette cross-section, the number of pixel circumferences of the cigarette cross-section and / or the cross-section porosity;
[0055] Among them, the calculation formula for the circumference of the cigarette rod cross-section is: the circumference of the cigarette rod cross-section is equal to the total pixel area of the cigarette rod cross-section multiplied by the pre-stored scanning resolution.
[0056] Specifically: the circumference of the cigarette rod cross-section = the total pixel area of the cigarette rod cross-section × the pre-stored scanning resolution.
[0057] The calculation formula for the number of circumference pixels of the cigarette cross-section is: the number of circumference pixels of the cigarette cross-section is equal to the pre-stored cigarette paper thickness divided by the pre-stored scanning resolution and then multiplied by the total pixel area of the cigarette rod cross-section;
[0058] Specifically, the number of circumference pixels of the cigarette cross-section = the total pixel area of the cigarette rod cross-section × (the pre-stored cigarette paper thickness / the pre-stored scanning resolution).
[0059] And / or the calculation formula for the cross-section porosity is: the difference between the pixel areas of the cut tobacco and cigarette paper cross-sections and the pixel area of the cigarette paper is divided by the total pixel area of the cigarette rod cross-section.
[0060] Specifically, the cross-section porosity = (the pixel area of the cut tobacco and cigarette paper cross-sections - the pixel area of the cigarette paper) / the total pixel area of the cigarette rod cross-section.
[0061] S15. Form a parameter matrix with the structural feature parameters of the internal structure features of the cigarette rod and correct them respectively.
[0062] Specifically, for the cigarette rod cross-section circumference, the number of circumference pixels of the cigarette cross-section, and / or the cross-section porosity included in the structural feature parameters of the internal structure features of the cigarette rod, the corresponding parameter matrices are respectively corrected. The correction methods include various methods such as outlier processing and smoothing processing.
[0063] For example, the parameter matrix of the cross-section porosity is {x1, x2,..., xn}, and each parameter xi has m values, then a parameter matrix of m * n is formed. For each parameter, since the cigarette is continuous, the change of the parameter should not be jumpy. Therefore, for any column of parameters x i {x i1 , x i2 ,..., x im} T is statistically analyzed. The values of the parameter xi within the upper and lower quartiles are considered normal values, and the values outside the upper and lower quartiles are considered outliers (for example, as shown in the data schematic diagram of the cross-section porosity in Figure 4 ). The outliers are interpolated by taking the average of the first i values (for example, taking the average of the first 5 values). If x ik is an outlier, then after interpolation:
[0064] The detection method for the internal structural characteristics of cigarettes in this embodiment detects the internal structure of cigarettes, quickly extracts characteristic parameters such as the porosity inside the cigarettes, effectively improves the prediction ability and regulation ability of the cigarette draw resistance, and forms a technical solution for regulating the cigarette draw resistance by studying the characterization method of the internal structural characteristics of cigarette rods and establishing a correlation model between the structural parameters inside the cigarette rods and the cigarette draw resistance.
[0065] This embodiment also provides a storage medium (also known as a computer-readable storage medium) on which a computer program is stored, and when the program is executed by a processor, it implements the Figure 1 detection method as described above.
[0066] At any possible combination level of technical details, the present application can be a system, a method, and / or a computer program product. The computer program product can include a computer-readable storage medium having computer-readable program instructions thereon for causing a processor to implement various aspects of the present application.
[0067] A computer-readable storage medium can be a tangible device that can hold and store instructions for use by an instruction execution device. A computer-readable storage medium can be, for example, (but is not limited to) an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanically encoded device, such as a punched card or raised structure in a groove having instructions stored thereon, and any suitable combination of the above. The computer-readable storage medium used herein is not construed as an instantaneous signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated through a waveguide or other transmission medium (e.g., an optical pulse through an optical fiber cable), or an electrical signal transmitted through a wire.
[0068] The computer-readable programs described herein can be downloaded to various computing / processing devices from a computer-readable storage medium or downloaded to an external computer or external storage device via a network such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device. The computer program instructions for performing the operations of the present application may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, integrated circuit configuration data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., by using an Internet service provider to connect through the Internet). In some embodiments, by using the status information of the computer-readable program instructions to customize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit can execute the computer-readable program instructions to implement various aspects of the present application.
[0069] This embodiment further provides a detection system for the internal structure characteristics of a cigarette, including:
[0070] An acquisition module for acquiring an internal structure image of a cigarette;
[0071] A preprocessing module for preprocessing the internal structure image of the cigarette to obtain a preprocessed internal structure image of the cigarette;
[0072] A boundary extraction module for extracting the boundaries of cut tobacco and / or cigarette paper from the preprocessed internal structure image of the cigarette, so as to obtain the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section, and / or the pixel area of the cigarette paper cross-section according to the boundaries of the cut tobacco and / or cigarette paper;
[0073] The parameter detection module detects the structural feature parameters of the internal structure of the cigarette through the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section, and / or the pixel area of the cigarette paper cross-section.
[0074] The detection system for the internal structure features of a cigarette provided in this embodiment will be described in detail below with reference to the drawings. Please refer to Figure 5 , which shows a schematic diagram of the principle result of the detection system for the internal structure features of a cigarette in an embodiment. As Figure 5 shown, the detection system 5 for the internal structure features of the cigarette includes: an acquisition module 51, a preprocessing module 52, a boundary extraction module 53, a parameter detection module 54, and an error correction module 55.
[0075] The acquisition module 51 is used to acquire the internal structure image of the cigarette.
[0076] The preprocessing module 52 is used to preprocess the internal structure image of the cigarette to obtain the preprocessed internal structure image of the cigarette.
[0077] In this embodiment, the preprocessing module 52 performs binarization processing on the internal structure image of the cigarette to form a binarized image of the internal structure of the cigarette. The binarized image of the internal structure of the cigarette is denoised and pseudo-points are removed to form a denoised internal structure image of the cigarette.
[0078] The boundary extraction module 53 is used to extract the boundaries of the cut tobacco and / or the cigarette paper from the preprocessed internal structure image of the cigarette, so as to obtain the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section, and / or the pixel area of the cigarette paper cross-section according to the boundaries of the cut tobacco and / or the cigarette paper.
[0079] Among them, the process by which the boundary extraction module 53 obtains the total pixel area of the cigarette cross-section includes: the boundary extraction module 53 reads the coordinates of the pixel points where 1 appears at the leftmost side and the pixel points where 1 appears at the rightmost side in each row of the preprocessed internal structure image of the cigarette; calculates the pixel distance between the pixel points where 1 appears at the leftmost side and the pixel points where 1 appears at the rightmost side in each row; and adds up the pixel distances of each row to obtain the total pixel area of the cigarette cross-section.
[0080] The process by which the boundary extraction module 53 obtains the pixel area of the cut tobacco cross-section and / or the pixel area of the cigarette paper cross-section includes: the boundary extraction module 53 reads the rows with consecutive 1s in the preprocessed internal structure image of the cigarette, and adds up the number of pixel points with consecutive 1s in this row to obtain the pixel area of the cut tobacco cross-section; reads the number of all pixel points with 1s in the preprocessed internal structure image of the cigarette, and subtracts the pixel area of the cut tobacco cross-section from the number of all pixel points with 1s, which is denoted as the pixel area of the cigarette paper cross-section; wherein, the pixel areas of the cut tobacco and the cigarette paper cross-section are equal to the sum of the pixel area of the cut tobacco cross-section and the pixel area of the cigarette paper cross-section.
[0081] The parameter detection module 54 is used to detect the structural feature parameters of the internal structure of the cigarette through the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section and / or the pixel area of the cigarette paper cross-section.
[0082] In this embodiment, the structural feature parameters of the internal structure of the cigarette include the circumference of the cigarette cross-section, the number of pixel points in the circumference of the cigarette cross-section and / or the cross-section porosity.
[0083] Specifically, the parameter detection module 54 is used to calculate the circumference of the cigarette cross-section, the number of pixel points in the circumference of the cigarette cross-section and / or the cross-section porosity;
[0084] Among them, the calculation formula for the circumference of the cigarette cross-section is: the circumference of the cigarette cross-section is equal to the total pixel area of the cigarette cross-section multiplied by the pre-stored scanning resolution.
[0085] Specifically: the circumference of the cigarette cross-section = the total pixel area of the cigarette cross-section × the pre-stored scanning resolution.
[0086] The calculation formula for the number of pixel points in the circumference of the cigarette cross-section is: the number of pixel points in the circumference of the cigarette cross-section is equal to the pre-stored cigarette paper thickness divided by the pre-stored scanning resolution and then multiplied by the total pixel area of the cigarette cross-section;
[0087] Specifically, the number of pixel points in the circumference of the cigarette cross-section = the total pixel area of the cigarette cross-section × (the pre-stored cigarette paper thickness / the pre-stored scanning resolution).
[0088] And / or the calculation formula for the cross-section porosity is: the difference between the pixel areas of the cut tobacco and the cigarette paper cross-section and the pixel area of the cigarette paper is divided by the total pixel area of the cigarette cross-section.
[0089] Specifically, the cross-section porosity = (the pixel areas of the cut tobacco and the cigarette paper cross-section - the pixel area of the cigarette paper) / the total pixel area of the cigarette cross-section).
[0090] The error correction module 55 is used to form a parameter matrix with the structural feature parameters of the internal structure of the cigarette and correct them respectively.
[0091] Specifically, the error correction module 55 corrects the structure feature parameters of the internal structure features of the cigarette, including the cigarette cross-sectional circumference, the number of pixel circumferences of the cigarette cross-section, and / or the cross-sectional porosity, respectively, with the corresponding parameter matrices. The error correction methods include various methods such as outlier processing and smoothing processing.
[0092] It should be noted that it should be understood that the division of each module of the above system is only a logical function division. In actual implementation, it can be fully or partially integrated into a physical entity, or physically separated. And these modules can all be implemented in the form of software called by a processing element, or all in the form of hardware, or some modules can be implemented in the form of software called by a processing element, and some modules can be implemented in the form of hardware. For example: The x module can be a separately established processing element, or can be integrated in a certain chip of the above system. In addition, the x module can also be stored in the memory of the above system in the form of program code, and the function of the above x module is called and executed by a certain processing element of the above system. The implementation of other modules is similar. These modules can be integrated together in whole or in part, or can be independently implemented. The processing element mentioned here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules can be completed by the integrated logic circuit in the processor element or the instruction in the form of software. The above modules can be one or more integrated circuits configured to implement the above method, for example: one or more application specific integrated circuits (ASICs), one or more digital signal processors (DSPs), one or more field programmable gate arrays (FPGAs), etc. When a certain module above is implemented in the form of a program code called by a processing element, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code. These modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0093] Embodiment 2
[0094] This embodiment provides a detection device for the internal structure characteristics of a cigarette, comprising: a processor, a memory, a transceiver, a communication interface, or / and a system bus; the memory and the communication interface are connected to the processor and the transceiver through the system bus and complete communication with each other. The memory is used to store computer programs, the communication interface is used to communicate with other devices, and the processor and the transceiver are used to run the computer programs, so that the detection device for the internal structure characteristics of a cigarette executes each step of the detection method for the internal structure characteristics of a cigarette as described in Embodiment 1.
[0095] The above-mentioned system bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This system bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of simplicity, only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize the communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include a Random Access Memory (RAM), and may also include a non-volatile memory, such as at least one disk memory.
[0096] The above-mentioned processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0097] The protection scope of the detection method for the internal structure characteristics of a cigarette described in the present invention is not limited to the execution order of the steps listed in this embodiment. Any solution achieved by adding or deleting steps of the prior art and replacing steps according to the principle of the present invention is included in the protection scope of the present invention.
[0098] The present invention also provides a detection system for the internal structure characteristics of a cigarette. The detection system for the internal structure characteristics of a cigarette can implement the detection method for the internal structure characteristics of a cigarette according to the present invention. However, the implementation device of the detection method for the internal structure characteristics of a cigarette according to the present invention includes, but is not limited to, the structure of the detection system for the internal structure characteristics of a cigarette listed in this embodiment. Any structural deformation and substitution of the prior art made according to the principle of the present invention are included in the protection scope of the present invention.
[0099] In summary, the detection method, system, device and storage medium for the internal structure characteristics of a cigarette according to the present invention detect the internal structure of a cigarette, quickly extract characteristic parameters such as the porosity inside the cigarette, effectively improve the prediction ability and regulation ability of the cigarette draw resistance, and establish a correlation model between the structural parameters inside the cigarette and the cigarette draw resistance by studying the characterization method of the internal structure characteristics of the cigarette, forming a technical solution for regulating the cigarette draw resistance. Therefore, the present invention effectively overcomes various disadvantages in the prior art and has high industrial utilization value.
[0100] The above embodiments are only illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Any person familiar with this technology can modify or change the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by those with ordinary knowledge in the technical field without departing from the spirit and technical idea disclosed by the present invention should still be covered by the claims of the present invention.
Claims
1. A method for detecting the internal structure characteristics of a cigarette, characterized in that, Including: Obtaining an image of the internal structure of a cigarette; Preprocessing the image of the internal structure of the cigarette to obtain a preprocessed image of the internal structure of the cigarette; Extracting the boundaries of the cut tobacco and / or cigarette paper from the preprocessed image of the internal structure of the cigarette, so as to obtain the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section and / or the pixel area of the cigarette paper cross-section according to the boundaries of the cut tobacco and / or cigarette paper; The step of extracting the boundaries of the cut tobacco and / or cigarette paper from the preprocessed image of the internal structure of the cigarette, so as to obtain the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section and / or the pixel area of the cigarette paper cross-section according to the boundaries of the cut tobacco and / or cigarette paper includes: reading the coordinates of the pixel points where 1 appears at the leftmost and rightmost of each row in the preprocessed image of the internal structure of the cigarette; calculating the pixel distance between the pixel points where 1 appears at the leftmost and rightmost of each row; adding up the pixel distances of each row to obtain the total pixel area of the cigarette cross-section; The step of extracting the boundaries of the cut tobacco and / or cigarette paper from the preprocessed image of the internal structure of the cigarette, so as to obtain the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section and / or the pixel area of the cigarette paper cross-section according to the boundaries of the cut tobacco and / or cigarette paper further includes: reading the rows with continuously appearing 1s in the preprocessed image of the internal structure of the cigarette, and adding up the number of pixel points with continuously appearing 1s in this row to obtain the pixel area of the cut tobacco cross-section; reading the number of all pixel points where 1 appears in the preprocessed image of the internal structure of the cigarette, and subtracting the pixel area of the cut tobacco cross-section from the number of all pixel points where 1 appears, which is denoted as the pixel area of the cigarette paper cross-section; wherein, the sum of the pixel areas of the cut tobacco and the cigarette paper cross-section is equal to the sum of the pixel area of the cut tobacco cross-section and the pixel area of the cigarette paper cross-section; Detecting the structural feature parameters of the internal structure features of the cigarette through the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section and / or the pixel area of the cigarette paper cross-section.
2. The detection method for the internal structure characteristics of cigarettes according to claim 1, characterized in that, The preprocessing of the image of the internal structure of the cigarette includes: Performing binarization processing on the image of the internal structure of the cigarette to form a binarized image of the internal structure of the cigarette; Performing noise reduction and pseudo-point removal on the binarized image of the internal structure of the cigarette to form a noise-reduced image of the internal structure of the cigarette.
3. The detection method for the internal structure characteristics of cigarettes according to claim 2, wherein For the noise-reduced image of the internal structure of the cigarette, black is the pixel value 0, representing the air and voids in the cigarette, and white is the pixel value 1, representing the cut tobacco and cigarette paper in the cigarette.
4. The detection method of the internal structure characteristics of a cigarette according to claim 1, characterized in that, The structural feature parameters of the internal structure features of the cigarette include the circumference of the cigarette cross-section, the number of pixel circumferences of the cigarette cross-section and / or the cross-section porosity.
5. The detection method of the internal structure characteristics of a cigarette according to claim 4, characterized in that, The step of detecting the structural feature parameters of the internal structure features of the cigarette through the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section and / or the pixel area of the cigarette paper cross-section includes: Calculating the circumference of the cigarette cross-section, the number of pixel circumferences of the cigarette cross-section and / or the cross-section porosity; Among them, the calculation formula for the circumference of the cigarette cross-section is: the circumference of the cigarette cross-section is equal to the total pixel area of the cigarette cross-section multiplied by the pre-stored scanning resolution; The calculation formula for the number of pixels in the circumference of the cigarette cross-section is: the number of pixels in the circumference of the cigarette cross-section is equal to the pre-stored cigarette paper thickness divided by the pre-stored scanning resolution and then multiplied by the total pixel area of the cigarette cross-section; and / or The calculation formula for the cross-section porosity is: the cross-section porosity is equal to the difference between the pixel areas of the cut tobacco and the cigarette paper cross-sections and the pixel area of the cigarette paper, and then divided by the total pixel area of the cigarette cross-section.
6. A detection system for the internal structure characteristics of a cigarette, characterized in that It includes:[[]] An acquisition module for acquiring an image of the internal structure of a cigarette; A preprocessing module for preprocessing the image of the internal structure of the cigarette to obtain a preprocessed image of the internal structure of the cigarette; A boundary extraction module for extracting the boundaries of the cut tobacco and / or the cigarette paper from the preprocessed image of the internal structure of the cigarette, so as to obtain the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section and / or the pixel area of the cigarette paper cross-section according to the boundaries of the cut tobacco and / or the cigarette paper; The step of extracting the boundaries of the cut tobacco and / or the cigarette paper from the preprocessed image of the internal structure of the cigarette, so as to obtain the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section and / or the pixel area of the cigarette paper cross-section according to the boundaries of the cut tobacco and / or the cigarette paper includes: reading the coordinates of the pixel points where 1 appears at the leftmost side and the pixel points where 1 appears at the rightmost side in each row of the preprocessed image of the internal structure of the cigarette; calculating the pixel distance between the pixel points where 1 appears at the leftmost side and the pixel points where 1 appears at the rightmost side in each row; adding up the pixel distances of each row to obtain the total pixel area of the cigarette cross-section; the step of extracting the boundaries of the cut tobacco and / or the cigarette paper from the preprocessed image of the internal structure of the cigarette, so as to obtain the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section and / or the pixel area of the cigarette paper cross-section according to the boundaries of the cut tobacco and / or the cigarette paper further includes: reading the rows in the preprocessed image of the internal structure of the cigarette where 1 appears continuously, and adding up the number of pixel points where 1 appears continuously in this row to obtain the pixel area of the cut tobacco cross-section; reading the number of all pixel points where 1 appears in the preprocessed image of the internal structure of the cigarette, and subtracting the pixel area of the cut tobacco cross-section from the number of all pixel points where 1 appears, which is denoted as the pixel area of the cigarette paper cross-section; wherein, the pixel areas of the cut tobacco and the cigarette paper cross-sections are equal to the sum of the pixel area of the cut tobacco cross-section and the pixel area of the cigarette paper cross-section; A parameter detection module for detecting the structural feature parameters of the internal structure characteristics of the cigarette through the total pixel area of the cigarette cross-section, the pixel area of the cut tobacco cross-section and / or the pixel area of the cigarette paper cross-section.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, it implements the detection method for the internal structure characteristics of the cigarette according to any one of claims 1 to 5.
8. A detection device for the internal structure characteristics of a cigarette, characterized in that, It includes:[[]] A processor and a memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the detection device executes the detection method for the internal structure characteristics of the cigarette according to any one of claims 1 to 5.
Citation Information
Patent Citations
Cigarette detector based on machine vision technology
CN202935608U