High-temperature melt phase fraction detection method and system based on computer vision

Through computer vision technology, high-temperature melt crystallization video is preprocessed and edge detection, and the outline is extracted to calculate the crystal area, which solves the problem of subjective analysis and real-time monitoring in the existing technology, and realizes accurate and accurate detection of the phase fraction of high-temperature melt, improving Research efficiency and result accuracy.

CN118887178APending Publication Date: 2024-11-01CENT SOUTH UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410921618.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The prior art has subjective analysis in the detection of high-temperature melt phase fractions, and it is impossible to observe the changes in phase fractions in real time, which increases the difficulty and inaccuracy of researchers.

Method used

Using a computer vision-based method, the high-temperature melt crystallization videos were collected during continuous casting, pre-processing, edge detection, profile extraction and crystallization area calculation were performed, and the crystallization fractions were analyzed in real time, using median filtering, Canny edge detection and non-polarization Techniques such as large-value suppression algorithms improve detection accuracy and real-time.

Benefits of technology

Accurate and timely monitoring of crystallization fractions during high-temperature melt crystallization is achieved, reducing the difficulty of the researchers' work and improving the accuracy and convenience of the detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887178A_ABST
    Figure CN118887178A_ABST
Patent Text Reader

Abstract

The invention relates to a high-temperature melt phase fraction detection method and system based on computer vision, and the method comprises the steps: collecting a high-temperature melt crystallization process video in a crystallizer in a continuous casting process, carrying out the preprocessing of the high-temperature melt crystallization process video, and enabling the high-temperature melt crystallization process video to comprise a plurality of frames of to-be-detected images; judging a real edge in the to-be-detected image by adopting an edge detection algorithm; target contours of the liquid casting powder and the crystals are extracted and drawn according to the real edges; calculating the crystallization area of each frame of the to-be-measured image according to the target contour; and according to the crystallization areas of all the to-be-measured images, calculating to obtain the crystallization fraction of the high-temperature melt changing along with time. The high-temperature melt crystallization detection result accuracy is effectively improved, convenience is provided for high-temperature melt crystallization research, and the working difficulty of researchers is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the research field of mold protection slag in continuous casting process, and in particular relates to a high-temperature melt phase fraction detection method and system based on computer vision. Background Art

[0002] In the continuous casting process, the crystallization behavior of the slag film in the crystallizer is very important because it plays an important role in heat preservation, oxidation prevention, slag inclusion absorption, lubrication of the ingot and control of heat transfer in the crystallizer, which is of great significance to improving the surface quality of the ingot. In the research field related to protective slag, single and double wire thermocouple technology is widely used. Among them, the single thermocouple technology (SHTT) can use thermocouples to measure the temperature of the protective slag sample when the sample is heated or cooled, and is often used to study the melting or cooling process of the protective slag. Placing the sample on the top of the thermocouple can achieve rapid heating or cooling, or it can be stored under isothermal conditions. Through an external image capture device, the melting and solidification of the protective slag can be observed in situ under different thermal conditions. In addition, SHTT can also draw a continuous cooling transformation diagram (CCT) or a time-temperature transformation diagram (TTT) to compare different slag systems, so as to have a basic understanding of the transformation dynamics.

[0003] The existing technology mainly calculates the phase fraction at a certain moment through image processing software. For example, in the study of the crystallization performance of the new continuous casting mold powder for high aluminum steel, Photoshop was used to calculate the ratio of the slag sample crystal area to the total area to obtain the crystallization rate of the powder. However, this method indirectly leads to subjective analysis in the selection of the solid phase area, which in turn affects the accuracy of the results to a certain extent, and it is impossible to observe the changes in the phase fraction in real time, which increases the difficulty of researchers' work. Summary of the invention

[0004] In order to make up for the defects of the prior art, the present invention provides a high-temperature melt phase fraction detection method and system based on computer vision.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0006] In a first aspect, a method for detecting phase fraction of a high-temperature melt based on computer vision is provided, comprising:

[0007] Collecting a video of a high-temperature melt crystallization process in a crystallizer during continuous casting, and preprocessing the video of the high-temperature melt crystallization process, wherein the video of the high-temperature melt crystallization process includes multiple frames of images to be tested;

[0008] Use edge detection algorithm to determine the real edge in the image to be tested;

[0009] Extract and draw the target contours of liquid mold slag and crystal according to the real edge;

[0010] Calculate the crystal area of ​​each frame of the image to be tested according to the target contour;

[0011] According to the crystallization area of ​​all the images to be tested, the crystallization fraction of the high-temperature melt varying with time is calculated.

[0012] Furthermore, the high temperature melt crystallization process video is preprocessed, including:

[0013] Each frame of the image to be tested in the video of the high-temperature melt crystallization process is subjected to image smoothing, grayscale processing and binarization processing.

[0014] Furthermore, each frame of the image to be tested in the video of the high-temperature melt crystallization process is subjected to image smoothing, grayscale processing and binarization processing, including:

[0015] The median filter algorithm is used for image smoothing. The pixel values ​​of all pixels in each frame of the image to be tested are sorted according to size to obtain a pixel sequence. The median pixel value in the pixel sequence replaces the original pixel value to obtain a median filtered image to be tested. The principle is as follows:

[0016]

[0017] Where y is the sequence x1, x2, x3, ..., x n The median value of

[0018] Perform equalization processing on the three components of R, G and B on the median filtered image to obtain a single color channel image;

[0019] The single color channel image with 256 brightness levels is selected by a preset brightness threshold to obtain a binary image.

[0020] Furthermore, an edge detection algorithm is used to determine the real edge in the image to be tested, including:

[0021] Calculate the pixel gradient intensity of all pixels in the image to be tested, and find possible edges based on the pixel gradient intensity;

[0022] The possible edges are judged through non-maximum suppression algorithm, double threshold detection and edge connection operation to obtain the real edge.

[0023] Furthermore, the pixel gradient strength of all pixels in the image to be tested is calculated, and possible edges that may exist are found based on the pixel gradient strength, including:

[0024] Use the Sobel operator to convolve each pixel in the image to be tested to obtain the first-order gradient matrix of each pixel; the matrix of the Sobel operator is:

[0025]

[0026] S x and S y They are the vertical and horizontal directions of the Sobel operator respectively;

[0027] The vertical and horizontal gradient distributions of the Sobel operator are:

[0028]

[0029] The gradient amplitude A(x, y) and gradient direction θ(x, y) at the pixel point (x, y) are:

[0030]

[0031] According to the gradient amplitude and gradient direction of all pixels, the pixel gradient intensity of all pixels is calculated;

[0032] Find the pixel points whose pixel gradient intensity changes exceed the preset change threshold as possible pixel points, and connect the possible pixel points to obtain possible edges.

[0033] Furthermore, the non-maximum suppression algorithm includes:

[0034] The pixel gradient strength of the possible pixel point is compared with the pixel gradient strength of the pixel point in the positive gradient direction and the negative gradient direction respectively; the calculation formula is:

[0035]

[0036] G p1 and G p2 are the pixel gradient intensities of pixel point P1 and pixel point P2, respectively, and E, S, and W represent directions;

[0037] If the pixel gradient strength of the possible pixel point (x, y) is greater than G p1 and G p2 , then retain the possible pixel point (x, y); if the pixel gradient intensity of the possible pixel point (x, y) is not greater than G p1 or G p2 , then the possible pixel point (x, y) is set to not be displayed.

[0038] Furthermore, the dual threshold detection includes:

[0039] Set the maximum pixel value threshold Max Val and the minimum pixel value threshold Min Val;

[0040] Define the possibility edge higher than Max Val as a strong edge, and take the strong edge as the true edge;

[0041] The possibility edge that is lower than Max Val and higher than Min Val is defined as a weak edge;

[0042] If a weak edge is connected to a strong edge, the weak edge is taken as the true edge;

[0043] If the weak edge is not connected to the strong edge, the weak edge is treated as a non-edge;

[0044] Remove the possibility edge below Min Val.

[0045] Furthermore, the edge connection operation includes:

[0046] If the edge line of the real edge is broken, the broken edge lines in the real edge are connected to form a complete edge line.

[0047] Furthermore, the target contours of the liquid mold slag and the crystal are extracted and drawn according to the real edge, including:

[0048] Use a loop statement to compare all the real edges one by one to get the maximum contour among the real edges;

[0049] Perform another comparison cycle to obtain the second largest contour, and use the second largest contour as the target contour of the liquid protective slag and the crystal, and draw the target contour in the image to be tested;

[0050] Compare other edges in the real edge with the preset area threshold. If the area within the edge of the first edge is greater than the preset area threshold, the first edge is drawn in the image to be tested; if the area within the edge of the second edge is less than or equal to the preset area threshold, the second edge is not drawn in the image to be tested.

[0051] In a second aspect, a high temperature melt phase fraction detection system based on computer vision is provided, comprising:

[0052] A video acquisition module is used to acquire a video of a high-temperature melt crystallization process in a crystallizer during continuous casting, and to pre-process the video of the high-temperature melt crystallization process, wherein the video of the high-temperature melt crystallization process includes multiple frames of images to be tested;

[0053] An edge detection module is used to determine the real edge in the image to be tested by using an edge detection algorithm;

[0054] Contour extraction and drawing module, used to extract and draw the target contours of liquid protective slag and crystals according to the real edges;

[0055] A crystal area calculation module is used to calculate the crystal area of ​​each frame of the image to be tested according to the target contour;

[0056] The crystal fraction calculation module is used to calculate the crystal fraction of the high temperature melt that changes with time based on the crystal areas of all the images to be tested.

[0057] The beneficial effects achieved by the present invention are:

[0058] (1) The present invention can analyze the crystallization fractions of different protective slags that change with time during the crystallization process through computer vision technology, and obtain the most suitable denoising method for the high-temperature melt crystallization process by comparing different filtering processing algorithms. There are corresponding contour extraction methods for crystallization processes corresponding to different crystallization mechanisms. The problem of subjective analysis in the process of selecting the solid phase area in traditional technology is solved, and the accuracy of the results is improved.

[0059] (2) By outputting a video showing the change of the crystallization fraction over time, the change of the phase fraction can be understood in real time during the crystallization process, which provides convenience for high-temperature melt crystallization research and reduces the difficulty of researchers' work. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 This is a flow chart of a high-temperature melt phase fraction detection method based on computer vision of the present invention;

[0061] Figure 2 This is a schematic diagram of a real edge according to the first embodiment of the present invention;

[0062] Figure 3 This is a schematic diagram of an image to be measured with a contour according to a first embodiment of the present invention;

[0063] Figure 4 This is a schematic diagram of a real edge according to the second embodiment of the present invention;

[0064] Figure 5 This is a schematic diagram of an image to be tested with a contour according to the second embodiment of the present invention;

[0065] Figure 6 It is a structural diagram of the high-temperature melt phase fraction detection system based on computer vision of the present invention. DETAILED DESCRIPTION

[0066] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

[0067] like Figure 1 As shown, an embodiment of the present invention provides a high-temperature melt phase fraction detection method based on computer vision, comprising:

[0068] 101, collecting a video of a high-temperature melt crystallization process in a crystallizer during a continuous casting process, and preprocessing the video of the high-temperature melt crystallization process, wherein the video of the high-temperature melt crystallization process includes a plurality of frames of images to be tested;

[0069] In this embodiment, the crystallization process of the liquid protective slag is analyzed by computer vision analysis technology based on OpenCV software. The high-temperature melt crystallization process in the crystallizer during the continuous casting process can be observed by the single-wire thermocouple technology SHTT to obtain a video of the high-temperature melt crystallization process. The video may be interfered by electronic noise, which affects subsequent calculations. Therefore, it is necessary to perform image smoothing, graying and binarization processing on each frame of the image to be tested in the video of the high-temperature melt crystallization process.

[0070] The median filter algorithm is used for image smoothing. The pixel values ​​of all pixels in each frame of the image to be tested are sorted according to size to obtain a pixel sequence. The median pixel value in the pixel sequence replaces the original pixel value to obtain a median filtered image to be tested. The principle is as follows:

[0071]

[0072] Where y is the sequence x1,x2,x3,...,x n The median filter algorithm can avoid losing pixel edges to a certain extent, so as to detect possible contour edges and reduce the interference of electronic noise on the image.

[0073] In order to reduce the amount of data and improve processing efficiency, the image is grayed out. Graying is to reduce the color channel. The median filter image to be tested is processed by equalizing the three components of R, G and B to obtain a single color channel image. The area with the largest gray value is displayed as white, and the opposite is black.

[0074] In order to further simplify the image, we chose to perform a binarization operation on the image. The single color channel image with 256 brightness levels was selected through a preset brightness threshold to obtain a binary image. All pixels with a grayscale greater than or equal to the preset brightness threshold were judged to belong to a specific object, and their grayscale value was 255; otherwise, these pixels were excluded from the object area, and the grayscale value was 0, indicating the background or exceptional object area.

[0075] 102, using an edge detection algorithm to determine a real edge in the image to be tested;

[0076] Among them, the Canny edge detection algorithm detects the places with the strongest pixel change gradient in the image as possible edges and marks them;

[0077] Use the Sobel operator to convolve each pixel in the image to be tested to obtain the first-order gradient matrix of each pixel; the matrix of the Sobel operator is:

[0078]

[0079] S x and S y They are the vertical and horizontal directions of the Sobel operator respectively;

[0080] The vertical and horizontal gradient distributions of the Sobel operator are:

[0081]

[0082] The gradient amplitude A(x, y) and gradient direction θ(x, y) at the pixel point (x, y) are:

[0083]

[0084] According to the gradient amplitude and gradient direction of all pixels, the pixel gradient intensity of all pixels is calculated;

[0085] Find the pixel points whose pixel gradient intensity changes exceed the preset change threshold as possible pixel points, and connect the possible pixel points to obtain possible edges;

[0086] Since the Sobel operator may misjudge edge points because there will be large gradient changes in noisy areas, it is necessary to use the non-maximum suppression method to refine the edge after calculating the gradient intensity, retaining only the points with the local maximum gradient amplitude to form a clear edge and eliminate the possibility of false detection. Specifically:

[0087] The pixel gradient strength of the possible pixel point is compared with the pixel gradient strength of the pixel point in the positive gradient direction and the negative gradient direction respectively; the calculation formula is:

[0088]

[0089] G p1 and G p2 are the pixel gradient intensities of pixel point P1 and pixel point P2, respectively, and E, S, and W represent directions;

[0090] If the pixel gradient strength of the possible pixel point (x, y) is greater than G p1 and G p2 , then retain the possible pixel point (x, y); if the pixel gradient intensity of the possible pixel point (x, y) is not greater than G p1 or G p2, then the possible pixel point (x, y) is set to not be displayed; this can effectively eliminate the misjudged edge points;

[0091] The specific steps for dual threshold detection are:

[0092] Set the maximum pixel value threshold Max Val and the minimum pixel value threshold Min Val;

[0093] Define the possibility edge higher than Max Val as a strong edge, and take the strong edge as the true edge;

[0094] The possibility edge that is lower than Max Val and higher than Min Val is defined as a weak edge;

[0095] If a weak edge is connected to a strong edge, the weak edge is taken as the true edge;

[0096] If the weak edge is not connected to the strong edge, the weak edge is treated as a non-edge;

[0097] Delete the possibility edge below Min Val;

[0098] Edge connection operations include:

[0099] If the edge line of the real edge is broken, the broken edge lines in the real edge are connected to form a complete edge line.

[0100] 103, extracting and drawing the target contours of liquid protective slag and crystal according to the real edge;

[0101] Among them, the specific process of target contour extraction and drawing is:

[0102] Use a loop statement to compare all the real edges one by one to get the maximum contour among the real edges;

[0103] Perform another comparison cycle to obtain the second largest contour, and use the second largest contour as the target contour of the liquid protective slag and the crystal, and draw the target contour in the image to be tested;

[0104] Compare other edges in the real edge with the preset area threshold. If the area within the edge of the first edge is greater than the preset area threshold, the first edge is drawn in the image to be tested; if the area within the edge of the second edge is less than or equal to the preset area threshold, the second edge is not drawn in the image to be tested.

[0105] 104, calculating the crystal area of ​​each frame of the image to be tested according to the target contour;

[0106] The total area when there is no crystallization at the beginning is known. If the target contour is within the liquid protective slag, then the area of ​​the liquid protective slag has been determined. The crystallization area can be obtained by subtracting the area of ​​the liquid protective slag from the total area.

[0107] 105 , calculating the high temperature melt crystallization fraction varying with time according to the crystallization areas of all the images to be tested.

[0108] Since the computer reads the video in frames, the time is calculated by reading the current frame number, dividing it by the frames per second (fps) to get the current time (seconds), converting the current time into minutes and seconds, and finally formatting the minutes and seconds into a string for display. Finally, the high-temperature melt crystallization fraction that changes with time is obtained.

[0109] The implementation principle of the embodiment of the present invention is:

[0110] A video of the high-temperature melt crystallization process in a crystallizer during continuous casting is collected, and the video of the high-temperature melt crystallization process is preprocessed, wherein the video of the high-temperature melt crystallization process includes multiple frames of images to be tested; an edge detection algorithm is used to determine the real edge in the image to be tested; the target contours of the liquid protective slag and the crystal body are extracted and drawn according to the real edge; the crystallization area of ​​each frame of the image to be tested is calculated according to the target contour; the high-temperature melt crystallization fraction that changes with time is calculated according to the crystallization areas of all the images to be tested; the beneficial effects of the high-temperature melt phase fraction detection method based on computer vision of the present invention are as follows:

[0111] (1) The present invention can analyze the crystallization fractions of different protective slags that change with time during the crystallization process through computer vision technology, and obtain the most suitable denoising method for the high-temperature melt crystallization process by comparing different filtering processing algorithms. There are corresponding contour extraction methods for crystallization processes corresponding to different crystallization mechanisms. The problem of subjective analysis in the process of selecting the solid phase area in traditional technology is solved, and the accuracy of the results is improved.

[0112] (2) By outputting a video showing the change of the crystallization fraction over time, the change of the phase fraction can be understood in real time during the crystallization process, which provides convenience for high-temperature melt crystallization research and reduces the difficulty of researchers' work.

[0113] The high-temperature melt phase fraction detection method based on computer vision is described below through practical application examples 1 and 2.

[0114] The specific steps of Example 1 are as follows:

[0115] Step 1: Use the median filter algorithm to smooth the image to be tested, and the convolution kernel size is specifically set to 7;

[0116] Step 2: Convert the image to be tested into a grayscale image, and then set the preset brightness threshold to 120 to obtain a binary image. Here, the binarization operation type is cv2.THRESH_BINARY. The maximum value is taken for the part exceeding the preset brightness threshold, otherwise it is taken as 0.

[0117] Step 3: Perform Canny edge detection, where the thresholds Max Val and Min Val are 110 and 40 respectively; the real edge obtained is as follows Figure 2 As shown, the white lines are all true edges;

[0118] Step 4: Extract and draw the target contour. In this embodiment, since small particle crystals are generated inside the outer contour, in order to accurately detect this part of the contour, a restriction condition with a threshold of 100 and a function for storing sub-contours are pre-set. After the system detects the second largest contour, the remaining contours are compared with the restriction condition. Contours greater than the threshold are defined as small particle crystals and stored in the above function. Finally, extraction and drawing are performed. The image to be tested with the contour is as follows: Figure 3 As shown;

[0119] Step 5: Store the crystallization fraction data calculated by the system over time in an Excel table;

[0120] Step 6: Make a curve graph using Origin software.

[0121] The specific steps of Example 2 are as follows:

[0122] Step (1): Use the median filter algorithm to smooth the image to be tested, and the convolution kernel size is set to 5;

[0123] Step (2): Convert the image to be tested into a grayscale image, and then set the preset brightness threshold to 125 to obtain a binary image. Here, the binarization operation type is cv2.THRESH_BINARY. The maximum value is taken for the part exceeding the preset brightness threshold, and 0 is taken for the part otherwise.

[0124] Step (3): Perform Canny edge detection. Here, the thresholds Max Val and Min Val are 115 and 60 respectively. The actual edge is as follows: Figure 4 As shown, the white lines are all true edges;

[0125] Step (4): Extract and draw the target contour. In this embodiment, there is no small particle crystallization inside the outer contour, so the target contour can be directly extracted. The image to be tested with the contour is as follows: Figure 5 As shown;

[0126] Step (5): The crystal fraction data calculated by the system and varying with time are stored in an Excel spreadsheet.

[0127] Step (6): Make a curve graph using Origin software.

[0128] In combination with the high-temperature melt phase fraction detection method based on computer vision described in the above embodiments, a high-temperature melt phase fraction detection system based on computer vision is described below through embodiments.

[0129] like Figure 6 As shown, an embodiment of the present invention provides a high-temperature melt phase fraction detection system based on computer vision, comprising:

[0130] The video acquisition module 601 is used to acquire a video of a high-temperature melt crystallization process in a crystallizer during a continuous casting process, and pre-process the video of the high-temperature melt crystallization process, wherein the video of the high-temperature melt crystallization process includes a plurality of frames of images to be measured;

[0131] The edge detection module 602 is used to determine the real edge in the image to be detected by using an edge detection algorithm;

[0132] The contour extraction and drawing module 603 is used to extract and draw the target contours of the liquid mold slag and the crystal according to the real edge;

[0133] The crystal area calculation module 604 is used to calculate the crystal area of ​​each frame of the image to be tested according to the target contour;

[0134] The crystal fraction calculation module 605 is used to calculate the crystal fraction of the high temperature melt that changes with time according to the crystal areas of all the images to be tested.

[0135] The implementation principle of the embodiment of the present invention is:

[0136] The video acquisition module 601 acquires the video of the high-temperature melt crystallization process in the crystallizer during the continuous casting process, and pre-processes the video of the high-temperature melt crystallization process, which includes multiple frames of images to be tested; the edge detection module 602 uses the edge detection algorithm to determine the real edge in the image to be tested; the contour extraction and drawing module 603 extracts and draws the target contours of the liquid protective slag and the crystal according to the real edge; the crystallization area calculation module 604 calculates the crystallization area of ​​each frame of the image to be tested according to the target contour; the crystallization score calculation module 605 calculates the high-temperature melt crystallization score that changes with time according to the crystallization area of ​​all the images to be tested. It effectively improves the accuracy of the results of detecting the crystallization of the high-temperature melt, provides convenience for the research of the crystallization of the high-temperature melt, and reduces the difficulty of the researchers' work.

[0137] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0138] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0139] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0140] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0141] The above are merely embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are included in the scope of the claims of the present invention to be approved.

Claims

1. A high temperature melt phase fraction detection method based on computer vision, characterized in that: include: Collecting a video of a high-temperature melt crystallization process in a crystallizer during a continuous casting process, and preprocessing the video of the high-temperature melt crystallization process, wherein the video of the high-temperature melt crystallization process includes a plurality of frames of images to be tested; Using an edge detection algorithm to determine the real edge in the image to be tested; Extracting and drawing target contours of liquid mold slag and crystals according to the real edge; Calculating the crystal area of ​​each frame of the image to be tested according to the target contour; The high temperature melt crystallization fraction varying with time is calculated based on the crystallization areas of all the images to be measured.

2. The high temperature melt phase fraction detection method based on computer vision according to claim 1, characterized in that: The preprocessing of the high temperature melt crystallization process video includes: Each frame of the image to be tested in the high-temperature melt crystallization process video is subjected to image smoothing, grayscale processing and binarization processing.

3. The high temperature melt phase fraction detection method based on computer vision according to claim 2, characterized in that: The step of performing image smoothing, grayscale processing and binarization processing on each frame of the image to be tested in the high-temperature melt crystallization process video comprises: The median filter algorithm is used for image smoothing. The pixel values ​​of all pixels in each frame of the image to be tested are sorted according to size to obtain a pixel sequence. The median pixel value in the pixel sequence replaces the original pixel value to obtain a median filtered image to be tested. The principle is as follows: Wherein, y is the sequence x1,x2,x3,...,x n The median value of Performing equalization processing on the three components of R, G and B on the median filtered image to be tested to obtain a single color channel image; The single color channel image with 256 brightness levels is selected through a preset brightness threshold to obtain a binary image.

4. The high temperature melt phase fraction detection method based on computer vision according to claim 3, characterized in that: The step of using an edge detection algorithm to determine the real edge in the image to be detected includes: Calculating the pixel gradient strength of all pixels in the image to be tested, and finding possible edges that may exist according to the pixel gradient strength; The possible edge is judged by a non-maximum suppression algorithm, a double threshold detection and an edge connection operation to obtain a real edge.

5. The high temperature melt phase fraction detection method based on computer vision according to claim 4, characterized in that: The step of calculating pixel gradient strengths of all pixels in the image to be tested and finding possible edges according to the pixel gradient strengths includes: Use the Sobel operator to convolve each pixel in the image to be tested to obtain the first-order gradient matrix of each pixel; the matrix of the Sobel operator is: The S x and the S y are the vertical direction and horizontal direction of the Sobel operator respectively; The vertical and horizontal gradient distributions of the Sobel operator are: The gradient amplitude A(x,y) and gradient direction θ(x,y) at the pixel point (x,y) are: Calculating pixel gradient strengths of all pixels according to the gradient amplitudes and gradient directions of all pixels; Pixel points whose pixel gradient intensity changes exceeding a preset change threshold are found as possible pixel points, and the possible pixel points are connected to obtain possible edges.

6. The high temperature melt phase fraction detection method based on computer vision according to claim 3, characterized in that: The non-maximum suppression algorithm includes: The pixel gradient strength of the possible pixel point is compared with the pixel gradient strength of the pixel point in the positive gradient direction and the negative gradient direction respectively; the calculation formula is: The G p1 and the G p2 are pixel gradient intensities of pixel point P1 and pixel point P2 respectively, and E, S and W represent directions respectively; If the pixel gradient strength of the possible pixel point (x, y) is greater than the G p1 and the G p2 , then retain the possible pixel point (x, y); if the pixel gradient intensity of the possible pixel point (x, y) is not greater than the G p1 or the G p2 , then the possible pixel point (x, y) is set to not be displayed.

7. The high temperature melt phase fraction detection method based on computer vision according to claim 6, characterized in that: The dual threshold detection includes: Set the maximum pixel value threshold Max Val and the minimum pixel value threshold Min Val; The possible edge higher than the Max Val is defined as a strong edge, and the strong edge is taken as a true edge; The possibility edge that is lower than the Max Val and higher than the Min Val is defined as a weak edge; If the weak edge is connected to the strong edge, the weak edge is regarded as a real edge; If the weak edge is not connected to the strong edge, the weak edge is regarded as a non-edge; The possibility edge below the Min Val is removed.

8. The high temperature melt phase fraction detection method based on computer vision according to claim 7, characterized in that: The edge connection operation includes: If the edge line of the real edge is broken, the broken edge lines in the real edge are connected to form a complete edge line.

9. The high temperature melt phase fraction detection method based on computer vision according to claim 1, characterized in that: The step of extracting and drawing target contours of liquid protective slag and crystals according to the real edge comprises: Use a loop statement to compare all the real edges one by one to obtain the maximum contour among the real edges; Perform another comparison cycle to obtain a second largest contour, use the second largest contour as the target contour of the liquid protective slag and the crystal, and draw the target contour in the image to be measured; Compare other edges in the real edge with the preset area threshold. If the area within the edge of the first edge is greater than the preset area threshold, the first edge is drawn in the image to be tested; if the area within the edge of the second edge is less than or equal to the preset area threshold, the second edge is not drawn in the image to be tested.

10. A high temperature melt phase fraction detection system based on computer vision, characterized in that: include: A video acquisition module, used for acquiring a video of a high-temperature melt crystallization process in a crystallizer during a continuous casting process, and preprocessing the video of the high-temperature melt crystallization process, wherein the video of the high-temperature melt crystallization process includes a plurality of frames of images to be measured; An edge detection module, used to determine the real edge in the image to be detected by using an edge detection algorithm; A contour extraction and drawing module is used to extract and draw the target contours of the liquid protective slag and the crystal according to the real edge; A crystal area calculation module, used to calculate the crystal area of ​​each frame of the image to be tested according to the target contour; The crystal fraction calculation module is used to calculate the crystal fraction of the high temperature melt that changes with time according to the crystal areas of all the images to be tested.

Citation Information

Patent Citations

  • Continuous casting crystallizer protection slag solidification crystallization property test method

    CN104155329A

  • Method for predicting dynamic recrystallization fractions of high-alloy materials under time-varying working conditions

    CN106053754A

  • Pipeline oil-water two-phase flow phase distribution recognition method

    CN108562586A

  • Method for realizing a cube textured, low aspect ratio metal profile with rectangular cross section, as substrate for a superconductor wire, and related product obtained by said method

    WO2015011738A1