CN111524143B - Foam adhesion image region segmentation processing method - Google Patents

Foam adhesion image region segmentation processing method Download PDF

Info

Publication number
CN111524143B
CN111524143B CN202010227708.6A CN202010227708A CN111524143B CN 111524143 B CN111524143 B CN 111524143B CN 202010227708 A CN202010227708 A CN 202010227708A CN 111524143 B CN111524143 B CN 111524143B
Authority
CN
China
Prior art keywords
foam
image
segmentation
area
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010227708.6A
Other languages
Chinese (zh)
Other versions
CN111524143A (en
Inventor
马连铭
刘俊
赵虎
弯勇
李文博
田振华
杜自彬
柴俊峰
李客
郭迈迈
谭文才
袁龙
高源�
朱成睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Citic Corp Of China
CITIC Heavy Industries Co Ltd
Original Assignee
CITIC Heavy Industries Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CITIC Heavy Industries Co Ltd filed Critical CITIC Heavy Industries Co Ltd
Priority to CN202010227708.6A priority Critical patent/CN111524143B/en
Publication of CN111524143A publication Critical patent/CN111524143A/en
Application granted granted Critical
Publication of CN111524143B publication Critical patent/CN111524143B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/155Segmentation; Edge detection involving morphological operators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/187Segmentation; Edge detection involving region growing; involving region merging; involving connected component labelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention provides a method for processing the regional segmentation of foam adhesion images, which analyzes the motion modes of the foams such as mineral flotation and sewage treatment, extracts the characteristic information such as bright spot, foam flooding edge and the like of the foam images, respectively uses the characteristic information as a target starting point and a boundary limiting point of image segmentation, well overcomes the defects of inaccurate boundary segmentation, easy over-segmentation or under-segmentation and the like of the traditional watershed segmentation algorithm, ensures that the segmentation among the adhesion foams is more accurate, improves the detection accuracy of the related information of the statistical diameters of the adhesion foams, greatly promotes the automation degree of the related process through the analysis and the treatment of the foam images in the mineral flotation and sewage treatment processes, improves the detection accuracy of the statistical diameters of the foams, further avoids the subjective factors of operators and improves the working environment of operators.

Description

Foam adhesion image region segmentation processing method
Technical Field
The invention relates to the technical field of production detection in a flotation process, in particular to a processing method for partitioning foam adhesion image areas.
Background
In the process of generating a large amount of foam for mineral flotation, sewage treatment and the like, detecting the statistical diameter of the large amount of foam is an important parameter for measuring the process performance to control and regulate. However, the process still mainly depends on the naked eyes of experienced operators to observe and judge, the labor intensity is high, accurate detection is difficult to achieve, and no standard, standardized and measurable basis exists due to the difference of subjective judgment of the operators.
In the existing beneficiation and sewage treatment technology, because the detection method of manual observation is mainly adopted, time and labor are wasted, the detection result has large uncertainty and no unified measurement standard, and the working site environment is bad, so that adverse effects can be generated on the health and safety of operators.
Disclosure of Invention
The invention aims to provide a foam adhesion image region segmentation processing method, which can greatly promote the automation degree of related processes through analyzing and processing foam images in mineral flotation and sewage treatment processes, can improve the detection accuracy of foam statistical diameters, further avoids subjective factors of operators and improves the working environment of operators.
In order to achieve the above purpose, the technical scheme adopted by the invention is as follows: a processing method for segmentation of foam adhesion image areas comprises the following steps:
s1, carrying out threshold segmentation on each acquired frame of foam image, and segmenting a foam dark area and a foam highlight area to obtain a highlight foam facula image;
s2, defining a valley edge type pixel as a pixel point with a gray value smaller than the gray value of adjacent pixels at two sides along a certain direction, then comparing the pixel point with the gray value of the neighborhood of the pixel point by scanning the foam image, extracting the valley edge type pixel, taking the valley edge type pixel and the surrounding area thereof as an inter-foam edge area in the foam image, and generating an inter-foam edge area image;
s3, performing distance transformation on the obtained image of the edge area between the foams to generate a corresponding distance image;
s4, taking the obtained distance image as an image to be segmented, taking a foam facula image as a seed point image, and carrying out image segmentation by using a segmentation algorithm to obtain corresponding areas of each foam;
and S5, counting the pixel area of each foam corresponding area, and converting the pixel area into an equivalent diameter to obtain the diameter of each foam in the foam image.
Further, the segmentation algorithm in the step S4 is a marker-based watershed segmentation algorithm.
Compared with the prior art, the invention has the beneficial effects that: according to the invention, the automation degree of mineral flotation and sewage treatment processes is greatly improved by processing the adhesion foam image, and the method improves the detection accuracy of the statistical diameter of the foam image, so that subjective uncertain factors of operation of operators are avoided.
Drawings
FIG. 1 is a flow chart of a method of processing foam adhesion image region segmentation;
FIG. 2 is a schematic illustration of a valley edge detection template defined in the present invention;
FIG. 3 is a schematic diagram of a distance transform convolution template of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all, embodiments of the present invention, and all other embodiments obtained by those skilled in the art without making any inventive effort based on the embodiments of the present invention are within the scope of protection of the present invention.
A processing method for partitioning foam adhesion image areas is shown in fig. 1, and comprises the following steps:
s1, carrying out threshold segmentation on each acquired frame of foam image, and segmenting a foam dark area and a foam highlight area to obtain a highlight foam facula image;
in this embodiment, by installing the bracket and the camera at a proper distance right above the moving foam and configuring the light source, continuous shooting of foam images is performed, shielding is given to the housing around the light source, and light scattering is avoided. Each frame of foam image captured by the camera causes a highlight spot area on the top of the foam due to the light illumination, while other foam areas exhibit significantly lower brightness. The gray level difference of the two is obvious, a segmentation threshold value can be obtained by adopting any method, and a foam image is segmented into a foam dark area and a foam highlight area; if the gray level is achieved, each frame of foam image is converted from an RGB image to a gray level image, then a proper morphological operation element is selected according to the size of a light spot, top cap operation is carried out on the gray level image, the foreground of the gray level image is extracted, and threshold segmentation is carried out on the foreground by using an OTSU method, so that a foam highlight light spot area can be obtained.
S2, defining a valley edge type pixel as a pixel point with a gray value smaller than the gray value of adjacent pixels at two sides along a certain direction, then comparing the pixel point with the gray value of the neighborhood of the pixel point by scanning the foam image, extracting the valley edge type pixel, taking the valley edge type pixel and the surrounding area thereof as an inter-foam edge area in the foam image, and generating an inter-foam edge area image;
in this embodiment, as shown in FIG. 2, a boundary detection template X is defined, and a square matrix is formed by 3*3 sub-templates XmThe arrangement is formed, and X0 is positioned in the geometric center of the sub-template. Each sub-template consists of k x k pixels. Let f (i, j) denote the gray value of the original image pixel at point (i, j), g0 (i, j) denote the eigenvalue of f (i, j) in the horizontal direction at (i, j), g45 (i, j) denote the eigenvalue of f (i, j) in the 45 ° direction at (i, j), g90 (i, j) denote the eigenvalue in the 90 ° direction, and g135 (i, j) denote the eigenvalue in the 135 ° direction. Fm represents the average gray level of k x k pixels in the mth sub-template Xm, and P is a given threshold. If the pixel average value of the sub-template X0
Figure BDA0002428251420000041
Satisfy->
Figure BDA0002428251420000042
G0 (i, j) =1, otherwise g0 (i, j) =0; if it meets->
Figure BDA0002428251420000043
G45 (i, j) =1, otherwise g45 (i, j) =0; if it meets
Figure BDA0002428251420000044
G90 (i, j) =1, otherwise g90 (i, j) =0; if it meets->
Figure BDA0002428251420000045
G135 (i, j) =1, otherwise g135 (i, j) =0; g (i, j) = u [ g0 (i, j), g45 (i, j), g90 (i, j), g135 (i, j)]. The resulting g (i, j) is the extracted edge region, in this example k=5, p=2.
S3, performing distance transformation on the obtained image of the edge area between the foams to generate a corresponding distance image;
in this embodiment, according to the obtained binary image representing the edge area between foams, a 5*5 array mask is used, as shown in fig. 3, each point in the array defines a distance from a point at a specific position relative to the center of the mask, and a gray image representing the distance is obtained by convolving the mask with the binary image.
S4, taking the obtained distance image as an image to be segmented, taking a foam facula image as a seed point image, and carrying out image segmentation by using a watershed segmentation algorithm based on marks to obtain corresponding areas of each foam;
in this embodiment, a foam facula image is set as a seed point to be segmented, a local minimum value is set, a distance gray level image is set as a gradient information image, a communication region of the image is searched, a water collecting basin is formed by expanding from the local minimum value to a surrounding region through simulating flood irrigation, the water potential rises along with the increase of the gray level value, the water collecting basin is gradually expanded, and a junction of the water collecting basin is a watershed and represents a segmentation boundary of each foam region.
And S5, counting the pixel area of each foam corresponding area, and converting the pixel area into an equivalent diameter to obtain the diameter of each foam in the foam image.
In this embodiment, each foam region is labeled with the same value, and different regions are labeled with different values. And counting the occurrence times of the numerical values in the image to obtain the area of each foam region. And then according to the formula:
Figure BDA0002428251420000051
the equivalent diameter of each foam region can be calculated. And obtaining statistical information such as distribution ratio, average diameter, standard deviation and the like of each interval of the whole foam based on the diameter of each foam.
According to the analysis processing method provided by the embodiment of the invention, aiming at the characteristic that the edge of the foam image is not clear, the edge information of the foam image is enhanced by extracting the valley edge area in the image, so that the segmentation boundary of the foam image is better attached to the real edge of the foam. Aiming at the problem that the watershed algorithm is easy to generate under-segmentation and over-segmentation in the segmentation process, the number of segmentation of the foam image and the central position of each segmentation area are better controlled by extracting the highlight foam facula area, so that the under-segmentation and over-segmentation problems are solved to a certain extent. The method improves the detection precision of the statistical diameter of the foam image, and has guiding significance for automatic detection and optimization control of production processes such as mineral flotation, sewage treatment and the like.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (2)

1. The processing method for the segmentation of the foam adhesion image area is characterized by comprising the following steps:
s1, carrying out threshold segmentation on each acquired frame of foam image, and segmenting a foam dark area and a foam highlight area to obtain a highlight foam facula image;
s2, defining a valley edge type pixel as a pixel point with a gray value smaller than the gray value of adjacent pixels at two sides along a certain direction, then comparing the pixel point with the gray value of the neighborhood of the pixel point by scanning the foam image, extracting the valley edge type pixel, taking the valley edge type pixel and the surrounding area thereof as an inter-foam edge area in the foam image, and generating an inter-foam edge area image;
s3, performing distance transformation on the obtained image of the edge area between the foams to generate a corresponding distance image;
s4, taking the obtained distance image as an image to be segmented, taking a foam facula image as a seed point image, and carrying out image segmentation by using a segmentation algorithm to obtain corresponding areas of each foam;
and S5, counting the pixel area of each foam corresponding area, and converting the pixel area into an equivalent diameter to obtain the diameter of each foam in the foam image.
2. The method for processing the segmentation of the foam adhesion image area according to claim 1, wherein the method comprises the following steps: the segmentation algorithm in the step S4 is a watershed segmentation algorithm based on a mark.
CN202010227708.6A 2020-03-27 2020-03-27 Foam adhesion image region segmentation processing method Active CN111524143B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010227708.6A CN111524143B (en) 2020-03-27 2020-03-27 Foam adhesion image region segmentation processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010227708.6A CN111524143B (en) 2020-03-27 2020-03-27 Foam adhesion image region segmentation processing method

Publications (2)

Publication Number Publication Date
CN111524143A CN111524143A (en) 2020-08-11
CN111524143B true CN111524143B (en) 2023-04-25

Family

ID=71901583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010227708.6A Active CN111524143B (en) 2020-03-27 2020-03-27 Foam adhesion image region segmentation processing method

Country Status (1)

Country Link
CN (1) CN111524143B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113096180A (en) * 2021-04-02 2021-07-09 青岛丰禾星普科技有限公司 Method for monitoring foam in aquaculture, terminal equipment and readable storage medium
CN112967349A (en) * 2021-04-02 2021-06-15 青岛丰禾星普科技有限公司 Foam-based aquaculture monitoring and early warning method, terminal equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104851105A (en) * 2015-05-25 2015-08-19 邵阳学院 Improved foam image segmentation method based on watershed transformation
CN110689020A (en) * 2019-10-10 2020-01-14 湖南师范大学 Segmentation method of mineral flotation froth image and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10818011B2 (en) * 2017-12-29 2020-10-27 Shenzhen Institutes Of Advanced Technology Chinese Academy Of Sciences Carpal segmentation and recognition method and system, terminal and readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104851105A (en) * 2015-05-25 2015-08-19 邵阳学院 Improved foam image segmentation method based on watershed transformation
CN110689020A (en) * 2019-10-10 2020-01-14 湖南师范大学 Segmentation method of mineral flotation froth image and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李建奇 ; 阳春华 ; 曹斌芳 ; 朱红求 ; 刘金平 ; .面向参数测量的改进分水岭浮选泡沫图像分割方法.仪器仪表学报.2013,(06),全文. *

Also Published As

Publication number Publication date
CN111524143A (en) 2020-08-11

Similar Documents

Publication Publication Date Title
CN112766274B (en) Water gauge image water level automatic reading method and system based on Mask RCNN algorithm
CN107506798B (en) Water level monitoring method based on image recognition
CN113469177B (en) Deep learning-based drainage pipeline defect detection method and system
CN101799434B (en) Printing image defect detection method
CN111524143B (en) Foam adhesion image region segmentation processing method
CN103985108B (en) Method for multi-focus image fusion through boundary detection and multi-scale morphology definition measurement
CN106056118A (en) Recognition and counting method for cells
CN104700071B (en) A kind of extracting method of panorama sketch road profile
CN103499303A (en) Wool fineness automatic measuring method
CN111027446B (en) Coastline automatic extraction method of high-resolution image
CN111539330B (en) Transformer substation digital display instrument identification method based on double-SVM multi-classifier
CN116703931B (en) Surface silver vein detection method for building high polymer material
CN109186706A (en) A method of for the early warning of Urban Storm Flood flooding area
CN112149543A (en) Building raise dust identification system and method based on computer vision
CN106447673A (en) Chip pin extraction method under non-uniform illumination condition
CN112287838B (en) Cloud and fog automatic identification method and system based on static meteorological satellite image sequence
CN116091505B (en) Automatic defect detection and classification method and system for sapphire substrate
CN112378591A (en) Air tightness detection laser pose self-adaptive adjusting method based on computer vision
CN111563410B (en) Foam image movement speed detection processing method
CN110211128B (en) Loess plateau terrace extraction method based on remote sensing image and DEM
CN112862898B (en) Flow velocity measuring method based on computer vision
CN112884731B (en) Water level detection method and river channel monitoring method based on machine vision
Puissant et al. Coastline extraction in VHR imagery using mathematical morphology with spatial and spectral knowledge
CN103093241A (en) Optical remote sensing image non-homogeneous cloud layer discriminating method based on homogenization processing
CN115984360A (en) Method and system for calculating length of dry beach based on image processing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240319

Address after: 471000 No. 206, Jianxi, Luoyang District, Henan, Jianshe Road

Patentee after: CITIC HEAVY INDUSTRIES Co.,Ltd.

Country or region after: Zhong Guo

Patentee after: CITIC Corporation of China

Address before: 471003 No.206 Jianshe Road, Jianxi District, Luoyang City, Henan Province

Patentee before: CITIC HEAVY INDUSTRIES Co.,Ltd.

Country or region before: Zhong Guo