Search

CN-122023370-A - Particle detection method for particle filter stick and program product

CN122023370ACN 122023370 ACN122023370 ACN 122023370ACN-122023370-A

Abstract

The invention discloses a particle detection method and a program product of a particle filter rod, wherein the method comprises the steps of obtaining an image of an axial section of the particle filter rod as a first image, conducting edge detection to obtain a target image area corresponding to the axial section in the first image, wherein the particle filter rod comprises additive particles and filter rod matrixes, conducting binarization processing on pixel points in the target image area according to a gray threshold value to obtain a second image, distinguishing display particle pixels and matrix pixels, wherein the particle pixels are used for indicating the pixel points corresponding to the additive particles, the matrix pixels are used for indicating the pixel points corresponding to the filter rod matrixes, conducting morphological closing operation on the pixel points in the target image area in the second image according to a preset shape area to obtain a third image, and determining a particle area ratio corresponding to the axial section according to the total number of the pixel points in the target image area and the total number of the particle pixels in the third image so as to achieve accurate detection of particle distribution states.

Inventors

  • YANG JIE
  • LONG CONGYUN
  • LI HONG
  • ZHENG HAIWEI
  • Kang jinling
  • FAN ZIZHONG
  • LIU YUGAN
  • HE LINLIN
  • TANG FANGLI
  • LU YANHONG
  • Mo Ziliu

Assignees

  • 广西中烟工业有限责任公司

Dates

Publication Date
20260512
Application Date
20260209

Claims (10)

  1. 1. A particle detection method for a particle filter rod, comprising: acquiring an image of an axial section of a particle filter rod as a first image, and performing edge detection on the first image to obtain a target image area corresponding to the axial section in the first image, wherein the particle filter rod comprises additive particles and a filter rod matrix; Performing binarization processing on pixel points in the target image area according to a gray threshold value to obtain a second image, wherein the second image is used for distinguishing display particle pixels and matrix pixels, the particle pixels are used for indicating the pixel points corresponding to the additive particles, and the matrix pixels are used for indicating the pixel points corresponding to the filter stick matrix; And carrying out morphological closing operation on pixel points in a target image area in the second image according to a preset shape area to obtain a third image, and determining a particle area ratio corresponding to the axial section according to the total number of the pixel points in the target image area and the total number of the particle pixels in the third image, wherein the size of the preset shape area is related to the size of the additive particles.
  2. 2. The particle detection method of a particle filter rod according to claim 1, wherein the binarizing processing is performed on the pixel points in the target image area according to a gray threshold value to obtain a second image, comprising: Determining a sub-region to be processed in the target image region according to a preset sliding window, and determining a gray threshold corresponding to the sub-region to be processed according to gray values of a plurality of pixel points in the sub-region to be processed; and carrying out binarization processing on the sub-region to be processed according to the gray threshold corresponding to the sub-region to be processed so as to obtain a binarized sub-region, and determining a second image according to the binarized sub-region.
  3. 3. The particle detection method of a particle filter rod according to claim 2, wherein the determining the gray threshold corresponding to the sub-region to be processed according to the gray values of the plurality of pixel points in the sub-region to be processed includes: Determining particle average gray values of a plurality of particle pixels and matrix average gray values of a plurality of matrix pixels in the to-be-processed sub-region according to first gray values of first pixel points in the to-be-processed sub-region, wherein the first pixel points are pixel points in which the first gray values are in a first gray interval in the to-be-processed sub-region; And respectively determining an inter-class variance corresponding to each second gray value in a second gray interval according to the particle average gray value and the matrix average gray value, and determining the second gray value corresponding to the maximum value in the inter-class variances as a gray threshold corresponding to the sub-region to be processed.
  4. 4. The method for detecting particles of a particle filter rod according to claim 1, wherein the morphological closing operation includes an expansion process and a corrosion process, and the performing the morphological closing operation on the pixel points in the target image area in the second image according to the preset shape area to obtain a third image includes: expanding at least part of pixel points in the target image area in the second image according to a preset shape area to obtain a fourth image; and etching at least part of pixel points in the target image area in the fourth image according to the preset shape area to obtain a third image.
  5. 5. The method for detecting particles in a particle filter rod according to claim 4, wherein the expanding at least some pixels in the target image area in the second image according to the preset shape area to obtain a fourth image includes: Determining a plurality of third pixel points corresponding to the second pixel points according to a preset shape area aiming at least part of the second pixel points in the target image area in the second image, wherein the preset shape area and the second pixel points form a preset position relation, and the third pixel points at least comprise pixel points in the coverage range of the preset shape area; Determining the second pixel point as the particle pixel in response to the second pixel point and the corresponding plurality of third pixel points comprising the particle pixel; and determining the second pixel point as the matrix pixel in response to the second pixel point and the corresponding plurality of third pixel points not including the particle pixel.
  6. 6. The method for detecting particles in a particle filter rod according to claim 4, wherein the etching at least part of the pixels in the target image area in the fourth image according to the preset shape area to obtain a third image includes: Determining a plurality of fifth pixel points corresponding to the fourth pixel points according to a preset shape area aiming at least part of the fourth pixel points in the target image area in the fourth image, wherein the preset shape area and the fourth pixel points are in a preset position relation, and the fifth pixel points at least comprise pixel points in the coverage range of the preset shape area; determining the fourth pixel point as a matrix pixel in response to the fourth pixel point and a plurality of corresponding fifth pixel points comprising the matrix pixel; and determining the fourth pixel point as the particle pixel in response to the fourth pixel point and the corresponding plurality of fifth pixel points not including the matrix pixel.
  7. 7. The particle detection method of a particle filter rod according to claim 1, characterized by comprising, after the determining the particle area ratio corresponding to the axial cross section from the total number of pixel points within the target image area and the total number of particle pixels in the third image: Dividing the target image area into a plurality of radial subareas along the radial direction according to the size of the additive particles, and dividing each radial subarea into a plurality of sector-shaped subareas along the circumferential direction; And determining the particle area occupation ratio corresponding to the fan-shaped subarea according to the total number of pixel points in the fan-shaped subarea and the total number of particle pixels.
  8. 8. The particle detection method of a particle filter rod according to claim 7, further comprising, after the determining the particle area ratio corresponding to the axial cross section from the total number of pixel points within the target image area and the total number of particle pixels in the third image: Determining average particle area occupation ratios corresponding to the fan-shaped subareas according to the particle area occupation ratios corresponding to the fan-shaped subareas and the total number of the fan-shaped subareas; And determining a first index corresponding to an axial section according to the particle area occupied ratio and the average particle area occupied ratio corresponding to the fan-shaped subareas, wherein the first index comprises the distribution uniformity degree of the additive particles in the radial direction and/or the distribution uniformity degree of the additive particles in the circumferential direction in the radial subareas.
  9. 9. The particle detection method of a particle filter rod according to claim 8, further comprising, after the determining the particle area ratio corresponding to the axial cross section from the total number of pixel points within the target image area and the total number of particle pixels in the third image: determining a single-section fluctuation coefficient corresponding to the axial section according to the particle area occupation ratio of the axial section and the particle area occupation ratios of a plurality of sector-shaped subareas in the axial section; determining a second index of the particle filter stick according to single-section fluctuation coefficients corresponding to the axial sections, wherein the second index is used for indicating the distribution uniformity degree of the additive particles in the axial direction of the particle filter stick; And determining the overall particle distribution uniformity index of the particle filter stick according to the first index and the second index.
  10. 10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements a particle detection method of a particle filter rod according to any one of claims 1-9.

Description

Particle detection method for particle filter stick and program product Technical Field The invention relates to the technical field of filter stick performance evaluation, in particular to a particle detection method and a program product of a particle filter stick. Background The particle filter stick is a filter stick product added with functional particles such as active carbon, spice particles and the like, and the distribution uniformity of the functional particles inside the filter stick directly determines the service performance and the product quality of the particle filter stick. The detection of the particle distribution state in the related particle filter stick is mostly dependent on manual observation and analysis, a plurality of cross sections of the filter stick are generally cut at random, parameters such as the number, the distribution position and the like of particles on the cross sections are evaluated by naked eyes or a common optical microscope, and the area occupation ratio of the particles is roughly calculated. However, the manual detection mode has obvious limitations, and can only effectively evaluate the filter rod with clear grain boundaries and good dispersibility, when grains are adhered, closely contacted and the like, the boundaries of the filter rod become blurred and are difficult to accurately identify as independent individuals, and meanwhile, the judgment of the grain boundaries can be interfered by various factors such as tiny burrs generated in the cutting process of the filter rod, reflection differences of the materials, shadow interference caused by detection lighting conditions and the like, so that larger errors appear in the calculation result of the grain area ratio, and the accuracy and the reliability of the quality evaluation of the grain filter rod are seriously influenced. Therefore, a particle detection method of a particle filter stick is needed to realize accurate identification of particles and accurate statistics of particle distribution. Disclosure of Invention The invention provides a particle detection method and a program product of a particle filter stick, which are used for solving the problems that particles are difficult to identify and are easy to interfere due to the fact that the particle area ratio calculation error is large and the reliability of an evaluation result is low in the related technology based on manual observation and analysis of particle distribution states. According to an aspect of the present invention, there is provided a particle detection method of a particle filter rod, the method comprising: acquiring an image of an axial section of a particle filter rod as a first image, and performing edge detection on the first image to obtain a target image area corresponding to the axial section in the first image, wherein the particle filter rod comprises additive particles and a filter rod matrix; Performing binarization processing on pixel points in the target image area according to a gray threshold value to obtain a second image, wherein the second image is used for distinguishing display particle pixels and matrix pixels, the particle pixels are used for indicating the pixel points corresponding to the additive particles, and the matrix pixels are used for indicating the pixel points corresponding to the filter stick matrix; And carrying out morphological closing operation on pixel points in a target image area in the second image according to a preset shape area to obtain a third image, and determining a particle area ratio corresponding to the axial section according to the total number of the pixel points in the target image area and the total number of the particle pixels in the third image, wherein the size of the preset shape area is related to the size of the additive particles. According to another aspect of the present invention, there is provided a particle detection method of a particle filter rod, the apparatus comprising: The device comprises a target image area determining module, a target image area determining module and a processing module, wherein the target image area determining module is used for acquiring an image of an axial section of a particle filter rod as a first image, and performing edge detection on the first image to acquire a target image area corresponding to the axial section in the first image; The second image determining module is used for carrying out binarization processing on the pixel points in the target image area according to the gray threshold value to obtain a second image, wherein the second image is used for distinguishing and displaying particle pixels and matrix pixels, the particle pixels are used for indicating the pixel points corresponding to the additive particles, and the matrix pixels are used for indicating the pixel points corresponding to the filter rod matrix; The particle area occupation ratio determining module is used for carrying out morphological closing