A method for visual inspection of hydration degree of recycled pellets
By performing sub-region segmentation and feature analysis on the grayscale image of recycled refractory materials, regional consistency and crack confidence are constructed, and the image is adaptively enhanced to solve the problem of false detection in the existing technology and improve the accuracy of hydration degree assessment. .
Patent Information
- Application Number
- CN202410841817.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-27
AI Technical Summary
Existing image detection technology is difficult to accurately assess the degree of hydration when detecting recycled refractory materials. It is easy to cause low volume density and surface crack defects due to misdetection, which affects the quality of recycled pellets.
By obtaining the grayscale image of the recycled refractory material, segment it into sub-regions, combine the grayscale value difference, the number of corner points and edge dispersion to construct regional consistency and crack existence confidence, adaptively adjust the threshold for image enhancement, and improve detection accuracy. .
It improves the accuracy of surface crack detection of recycled refractory materials, enables accurate assessment of the hydration degree of recycled granular materials, and reduces the false detection rate.
Smart Images

Figure CN118379301B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image detection technology, and in particular to a method for detecting the appearance of the hydration degree of recycled granular materials. Background Art
[0002] In the traditional refractory service model, used refractory materials are generally piled up or landfilled by steel mills as waste, and are not recycled, resulting in social problems such as waste of resources and environmental pollution. As the concept of sustainable development becomes more and more popular, the recycling technology of refractory materials is also receiving more and more attention. Recycled magnesium-carbon raw materials are a kind of renewable granular material. The raw materials of recycled magnesium-carbon raw materials are refractory materials (such as magnesium-carbon bricks) used by steel mills. After process treatment, they can replace part of the refractory raw materials and be put back into use, which can effectively reduce the cost of brick products and save the amount of raw materials used. However, there are still some problems in the process of process treatment and recycling of recycled magnesium-carbon raw materials. For example, the components of the recycled magnesium-carbon raw materials will produce chemical reactions at high temperatures. and ,in At high temperatures, it will react with the water produced by the binder. The removal effect is not good, which will result in a low volume density of the recycled refractory material (such as recycled magnesia-carbon bricks) when the recycled magnesia-carbon raw material is used to prepare the recycled refractory material, and crack defects are likely to appear on the surface.
[0003] Therefore, the hydration effect of the recycled granular material can be evaluated by defect detection on the appearance of the recycled refractory material. When the existing image detection technology detects cracks on the surface of the recycled refractory material, it usually only detects based on simple texture and grayscale differences. It does not take into account the low overall grayscale value of the recycled refractory material and the similarity between the edge pixel features of the recycled magnesium carbon material and the crack, which can easily lead to false detection problems, thus affecting the evaluation of the hydration degree of the recycled granular material. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a method for appearance detection of the hydration degree of recycled granular materials to solve the existing problems.
[0005] A method for appearance detection of hydration degree of recycled pellets in the present application adopts the following technical solution:
[0006] An embodiment of the present application provides a method for appearance detection of hydration degree of recycled pellets, the method comprising the following steps:
[0007] Acquire a grayscale image of the recycled refractory material, and divide the grayscale image of the recycled refractory material into a plurality of sub-regions;
[0008] The regional consistency of each sub-region is determined based on the difference between the grayscale value in each sub-region and the average grayscale level of the grayscale image, the difference between the grayscale dispersion degree in each sub-region and the grayscale dispersion degree of the grayscale image, and the difference between the number of corner points in each sub-region and the average level of the number of corner points in all sub-regions;
[0009] Based on the discrete degree of the local gradient direction distribution of each edge pixel point in each sub-region and the distance relationship between the edge line pixels in each sub-region, the edge connection process of each sub-region is searched. The number of edge pixels in the edge connection process determines the connectivity index, and then the edge discreteness of each sub-region is constructed;
[0010] Based on the corner point information in each sub-region, the deviation of the gray value of the edge pixel point and the edge discreteness, the confidence level of the crack existence in each sub-region is constructed;
[0011] Determining the degree of enhancement of each sub-region based on the regional consistency and the confidence level of the crack existence;
[0012] Based on the enhancement degree of each sub-region, the limit threshold of each sub-region is adaptively determined, each sub-region is enhanced, the comparison result of the confidence of crack existence in each sub-region after enhancement and the preset threshold is analyzed, and the surface of the recycled refractory material is detected.
[0013] Preferably, the method for determining the regional consistency of each sub-region is:
[0014] Analyze the difference between the grayscale mean of all pixels in each sub-region and the grayscale mean of all pixels in the grayscale image of the recycled refractory material, and record it as the grayscale difference of each sub-region;
[0015] Analyze the difference between the discrete degree of the grayscale values of all pixels in the grayscale image of the recycled refractory material and the discrete degree of the grayscale values of all pixels in each sub-region, and record it as the grayscale discrete difference of each sub-region;
[0016] Analyze the difference between the mean number of corner points in all sub-regions of the grayscale image of the recycled refractory material and the number of corner points in each sub-region, and record it as the corner point significance of each sub-region;
[0017] The grayscale difference, grayscale discrete difference and corner point significance are forward fused to obtain the regional consistency of each sub-region.
[0018] Preferably, the method for determining the edge discreteness of each sub-region is:
[0019] Extract edge pixels of each sub-region and construct a square window with each edge pixel as the center;
[0020] Constructing a gradient direction histogram of the window of each edge pixel point, and determining the direction consistency of the edge pixel points at the center of each window based on the distribution of the gradient direction histogram of each window;
[0021] The edge connection process in each sub-region is defined based on the distance relationship between the edge pixels in each sub-region;
[0022] All edge pixel points in each edge connection process are recorded as driving points, and the number of driving points in each edge connection process is recorded as the connectivity index of each edge connection process;
[0023] The discrete degree of the direction consistency of all driving points in each edge connection process is taken as the direction trend consistency of each edge connection process;
[0024] Determine a connection index for each edge connection process in each sub-region based on the connectivity index and directional trend consistency of each edge connection process in each sub-region, wherein the connectivity index is positively correlated with the connectivity index and negatively correlated with the directional trend consistency;
[0025] The extreme results of the connection index of all edge connection processes in each sub-region are taken as the edge dispersion of each sub-region.
[0026] Preferably, the method for determining the directional consistency is:
[0027] The bin corresponding to the highest peak in the gradient direction histogram of each window is recorded as the maximum direction range of the edge pixel points at the center of each window; if multiple highest peaks in the gradient direction histogram are the same, the direction corresponding to the highest peak with the largest number of edge pixels is recorded as the maximum direction range of the edge pixel points at the center of each window;
[0028] The proportion of the count value of the bin with the maximum direction range in all bin count values is taken as the direction consistency of the edge pixel points at the center of the window.
[0029] Preferably, the edge connection process in each sub-area is defined as follows:
[0030] Select a starting point from the edge pixels in each sub-region, and in each sub-region, start from the starting point and use the maximum direction range of the starting point as the search range to obtain the next edge pixel point closest to the starting point. If there are multiple edge pixels with the same metric distance to the starting point within the maximum direction range, the edge pixel point with the largest gradient value is recorded as the next edge pixel point of the starting point.
[0031] The next edge pixel point is updated as a new starting point, and the next edge pixel point of the new starting point is obtained, and so on, until there is no next edge pixel point in the maximum direction range or the next edge pixel point has been the starting point, and the edge pixel point corresponding to the stop is recorded as the end point;
[0032] The process from the starting point to the end point is recorded as an edge connection process of the sub-region;
[0033] Accordingly, the starting point is reselected from the edge pixels in each sub-region that have not been used as the starting point, and the edge connection process of each sub-region is iteratively obtained.
[0034] Preferably, the method for determining the confidence level of crack existence in each sub-region is:
[0035] The edge connection process with the largest connection index in each sub-region is recorded as the process to be detected in each sub-region, and each driving point in the process to be detected is fitted with a straight line, and the line segment corresponding to the process to be detected is evenly divided into three equal parts; the area with fewer corner points in the two end areas is recorded as the tail end area;
[0036] The difference in the number of corner points between the middle area and the tail area after equal division is determined as the first cracking trend of each sub-area;
[0037] The second cracking trend of each sub-region is determined based on the distance relationship between the corner points and the fitting straight line in the middle region and the tail end region after equal division;
[0038] The difference between the discrete degree of the grayscale values of all edge pixels in the middle area after equal division and the discrete degree of the grayscale values of all edge pixels in the tail area is determined as the third cracking trend of each sub-area;
[0039] The first cracking trend, the second cracking trend, the third cracking trend and the edge discreteness are forwardly fused to obtain the confidence level of crack existence in each sub-region.
[0040] Preferably, the method for determining the second cracking trend of each sub-region is:
[0041] Calculate the average value of the closest distance between each corner point and the fitting line in the tail region, and record it as the tail corner line distance; record the average value of the closest distance between each corner point and the fitting line in the middle region as the middle corner line distance;
[0042] The difference between the middle angle line distance and the tail end angle line distance is recorded as the second cracking trend of each sub-region.
[0043] Preferably, the degree of enhancement of each sub-region is obtained by calculating the normalized value of the crack existence confidence of each sub-region and the regional consistency, wherein the degree of enhancement is positively correlated with the normalized value and negatively correlated with the regional consistency.
[0044] Preferably, the restriction threshold of each sub-region is the product of the enhancement weight of each sub-region and a preset initial restriction threshold.
[0045] Preferably, the enhancement weight of each sub-region is the proportion of the enhancement degree of each sub-region in the enhancement degrees of all sub-regions.
[0046] This application has at least the following beneficial effects:
[0047] This application analyzes the appearance characteristics of recycled refractory materials, constructs regional consistency, edge discreteness, and confidence in the presence of cracks, and calculates the enhancement weights of sub-regions, thereby improving the enhancement effect of the CLAHE algorithm on the image of recycled refractory materials, thereby further improving the accuracy of crack detection and achieving an accurate assessment of the degree of hydration of recycled granular materials. Among them, regional consistency is constructed based on the characteristics of uniform grayscale distribution on the surface of the material, which achieves a preliminary assessment of the degree of enhancement of the sub-region; the construction of edge discreteness takes into account that the edge characteristics of granular materials and cracks are relatively similar, so it is constructed through the method of directional histogram to achieve the distinction between the categories to which edge pixels belong; the appearance of recycled refractory materials is accurately detected by the confidence in the presence of cracks in each sub-region after enhancement. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0049] Figure 1 A flowchart of the steps of a method for appearance detection of hydration degree of recycled pellets provided in this application;
[0050] Figure 2 It is a schematic diagram of the appearance inspection process for the hydration degree of recycled pellets;
[0051] Figure 3 Extract flow charts for regional consistency of each sub-region;
[0052] Figure 4 The flow chart of edge dispersion analysis for each sub-region;
[0053] Figure 5Flowchart of crack existence confidence analysis for each sub-region. DETAILED DESCRIPTION
[0054] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a hydration degree appearance detection method for recycled pellets proposed in the present application, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0055] Unless otherwise defined, terms such as "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a circuit structure, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such articles or devices. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the article or device comprising the element. In addition, the term "and\or" used herein includes any and all combinations of one or more related listed items. All technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present application belongs.
[0056] The following is a detailed description of a specific scheme of a method for appearance detection of hydration degree of recycled granular materials provided by the present application in conjunction with the accompanying drawings.
[0057] An embodiment of the present application provides a method for visual inspection of the hydration degree of recycled pellets. Specifically, the following method for visual inspection of the hydration degree of recycled pellets is provided. Figure 1 ; For the schematic diagram of the appearance inspection process for the hydration degree of recycled pellets, please refer to Figure 2 The method comprises the following steps:
[0058] Step 1: Use a CCD camera to photograph the recycled refractory material and pre-process the collected image.
[0059] The surface of the regenerated refractory material (such as regenerated magnesium carbon bricks, this application takes regenerated magnesium carbon bricks as an example for analysis) prepared from regenerated magnesium carbon raw materials is photographed by a CCD camera, and the acquired image is preprocessed. Due to the inevitable interference noise in the process of shooting and transmitting the picture. Therefore, this application uses median filtering to perform denoising operations on the captured image. The image of the regenerated refractory material after noise removal is converted into a grayscale image, recorded as grayscale image A. Then, the Canny edge detection algorithm and the Harris corner detection algorithm are used to perform edge detection and corner detection on the grayscale image A to complete the preprocessing operation of the image. Median filtering, Canny edge detection algorithm and Harris corner detection algorithm are well-known technologies and will not be repeated here.
[0060] Step 2: By regenerating the overall surface uniformity characteristics of the refractory material, regional consistency is constructed to evaluate the degree of enhancement to be achieved in the sub-region.
[0061] Regenerated magnesium carbon raw material is a kind of renewable granular material made from the original refractory material after use, and its color is gray-black. Before the hydration treatment, the recycled magnesium granular material will be rolled first, and its volume is small; therefore, although the surface of the recycled refractory material prepared by the recycled magnesium carbon raw material is relatively smooth, many edge contours of the recycled magnesium carbon raw material can be found, and its surface texture shows complex and irregular characteristics. At the same time, although the surface of the recycled refractory material is also gray-black as a whole, the color distribution is relatively uniform, and the gray value is low, there is still a certain gray difference between the color of the recycled magnesium carbon raw material and the background color of the material surface.
[0062] Since the surface color of recycled refractory materials is usually gray-black and the overall grayscale value is low, even if there are cracks on the surface of recycled refractory materials, the grayscale value difference between the cracks and the good surface of recycled refractory materials is not large. At this time, if the image is directly cracked, there may be a problem of false detection, which will affect the evaluation of the hydration degree of recycled granular materials. Therefore, it is necessary to enhance the existing image to improve the contrast between the cracks and the good surface area and improve the accuracy of crack detection. The limited contrast adaptive histogram equalization (CLAHE) algorithm is an algorithm widely used to improve image contrast. However, due to the gray-black surface characteristics of recycled refractory materials, when using the CLAHE algorithm for image enhancement, if the initial contrast limit threshold is not set appropriately, it is still possible to cause edge information that does not exist in the image, resulting in "pseudo defects", especially in the low grayscale value part, thereby affecting the subsequent crack detection results. Therefore, it is necessary to adjust the setting of the limit threshold according to the characteristics of different sub-areas.
[0063] The grayscale image A is divided into t sub-regions using a watershed segmentation algorithm so that the details inside the sub-regions can be better processed. Among them, the embodiment value of t is 128, and the watershed segmentation algorithm is a well-known technology and will not be repeated here. Considering the overall uniform color distribution and relatively smooth surface of the recycled refractory material, the degree of light reflection on the surface is relatively consistent when the image is taken; and if a crack defect occurs, when the image is taken by the camera, the crack area will cause a sudden change in the local grayscale value due to different light reflection or light absorption, thereby increasing the difference between the grayscale values of the pixels in the sub-region. Take the i-th sub-region as an example for analysis.
[0064] Analyze the difference between the grayscale mean of all pixels in each sub-region and the grayscale mean of all pixels in the grayscale image of the recycled refractory material, and record it as the grayscale difference of each sub-region;
[0065] Analyze the difference between the discrete degree of the grayscale values of all pixels in the grayscale image of the recycled refractory material and the discrete degree of the grayscale values of all pixels in each sub-region, and record it as the grayscale discrete difference of each sub-region;
[0066] Analyze the difference between the mean number of corner points in all sub-regions of the grayscale image of the recycled refractory material and the number of corner points in each sub-region, and record it as the corner point significance of each sub-region;
[0067] The grayscale difference, grayscale discrete difference and corner point significance are forward fused to obtain the regional consistency of each sub-region. The regional consistency is used to evaluate the consistency between the grayscale change in the sub-region and the grayscale change in the grayscale image.
[0068] It should be noted that the forward fusion may be a multiplication relationship or an addition relationship, and the specific relationship is determined by the implementer according to the actual application scenario.
[0069] Specifically, as an embodiment of the present application, the regional consistency calculation formula is: , the smaller the difference between the grayscale mean of the sub-region and the grayscale mean of the grayscale image A, the smaller the difference between the discrete degree of the grayscale value in the sub-region and the discrete degree of the grayscale value in the grayscale image, and the smaller the difference between the number of corner points in the sub-region and the mean number of corner points in all sub-regions in the grayscale image, the greater the regional consistency of the corresponding sub-region. Among them, is the regional consistency of the i-th sub-region; is the mean gray value of all pixels in the i-th sub-region; is the mean gray value of all pixels in the gray image A; is the normalization function, which means that the input value is normalized. The purpose of normalization here is to take into account and , The numerical differences between them may be large, which will weaken the influence of factors with smaller values, so normalization is performed. When the value is less than 0, it means that the overall grayscale mean of sub-region i is low, so it is necessary to further enhance the brightness and improve the contrast.
[0070] in, is the grayscale discreteness of all pixels in the i-th sub-region; is the mean value of the grayscale discreteness of all sub-regions in the grayscale image A. When the value is less than 0, it means that compared with other sub-regions, the change degree of the grayscale value of the pixels in sub-region i is relatively drastic, so the higher the degree of enhancement is needed, the higher the contrast is, so as to detect whether a crack defect occurs.
[0071] It should be noted that the grayscale discreteness is used to characterize the discreteness of the grayscale values of pixels in the sub-region. The discreteness can be obtained by standard deviation, variance, coefficient of variation, etc. This embodiment uses variance to characterize it. As other implementation methods, implementers can choose them at their own discretion, and this application does not impose any special restrictions.
[0072] in, is the number of corner points in the i-th sub-region; is the mean number of corner points in all sub-regions of the grayscale image A. When the value is less than 0, it means that there are more corner points in the i-th sub-region than in other sub-regions, the possibility of cracks is greater, and the regional consistency of the sub-region is smaller. The smaller the value of , the greater the degree to which the i-th sub-region needs to be enhanced.
[0073] It can be understood that by analyzing the characteristics of relatively uniform color and relatively consistent light reflection on the surface of the recycled refractory material, the grayscale changes of pixels and the distribution of corner points in the ith sub-region are analyzed, and regional consistency is established to achieve the evaluation of the degree of enhancement of the ith sub-region.
[0074] For details, please refer to the flowchart of regional consistency extraction for each sub-region. Figure 3 .
[0075] Step 3: According to the characteristics of the regenerated magnesium carbon material and the crack edge pixels, the edge discreteness is constructed to distinguish the categories to which the edge pixels belong.
[0076] On the surface of the regenerated refractory material prepared from the regenerated magnesium-carbon raw material, it can be found that there are a lot of edge contour information of the regenerated magnesium-carbon raw material. Since the regenerated magnesium-carbon raw material has been processed by the rolling process before the hydration treatment, the edge of the regenerated magnesium-carbon raw material is irregular. After Canny edge detection and Harris corner point detection, a large number of edge pixels and corner points of the granular material will be detected in sub-region i. At the same time, since cracks will also produce a large number of edge pixels and corner points, and the edges are irregularly distributed, if only the local features at the edge pixels are calculated, the edge of the regenerated magnesium-carbon raw material may be mistakenly detected as a crack edge. Therefore, further processing is required to verify whether cracks appear in sub-region i to evaluate the subsequent degree of sub-region enhancement.
[0077] Specifically: First, all edge pixels in sub-region i are taken as input, and the Sobel operator is used to obtain the gradient value of each edge pixel. Then, a 5×5 pixel window is constructed with each edge pixel in sub-region i as the center. The window size is set by the implementer. At the same time, the gradient direction histogram of each window is constructed. Evenly divided into 9 bins, each bin represents angular range (with the first pixel in the lower left corner of the image as the origin, construct a rectangular coordinate system). Then, for each pixel in the window, use the Sobel operator to calculate its gradient direction, and assign all gradient directions to the directional histogram, count the number of pixel points in the window in the direction of each bin, and use it as the count value of each bin to obtain the directional histogram of the window. It should be noted that the construction of the directional histogram is the same as the construction method of the grayscale histogram in the prior art. The specific statistics and construction process are prior art, and this application will not be described in detail. Among them, the bin where the highest peak value in the gradient directional histogram is located represents the directional range with the most occurrences in the gradient direction of the pixel points in the window, which is recorded as the maximum directional range of the edge pixel points in the center of the window (wherein, if there are multiple identical highest peak values in the gradient directional histogram, then in the window, the direction with the largest number of edge pixel points in the direction corresponding to the highest peak value is recorded as the maximum directional range). The proportion of the count value of the bin with the maximum directional range in the count values of all bins, that is, the ratio of the number of pixels in the bin with the highest peak value to the sum of the number of pixels in all bins, is recorded as the directional consistency of the pixel points at the center edge of the window. The larger the value of the directional consistency, the more consistent the direction in the window is.
[0078] Further: a starting point is selected from the edge pixels in sub-region i, and the next edge pixel is searched from the starting point according to the maximum direction range of the starting point. The search rule is as follows: in the maximum direction range, the next edge pixel with the closest metric distance to the starting point is searched (the metric distance can be obtained by Euclidean distance, Mahalanobis distance, Manhattan distance, etc.), if there are multiple edge pixels with the same metric distance to the starting point in the maximum direction range, then the edge pixel with the largest gradient value is recorded as the next edge pixel of the starting point. Similarly, the next edge pixel is used as a new starting point, and the next edge pixel of the new starting point is obtained in the maximum direction range of the new starting point. This operation is repeated until there is no next edge pixel in the maximum direction range or the next edge pixel has been the starting point. At this time, the edge pixel corresponding to the stop is recorded as the end point. The process from the starting point to the end point is recorded as an edge connection process. A starting point is selected again from the edge pixels that have not been the starting point in sub-region i, and the above process is repeated iteratively to obtain all edge connection processes of each sub-region.
[0079] Furthermore, all edge pixel points in the edge connection process are recorded as driving points, and the number of driving points in each edge connection process is recorded as the connectivity index of each edge connection process. The discrete degree of the direction consistency corresponding to all driving points in each edge connection process is calculated and recorded as the direction trend consistency of each edge connection process.
[0080] Specific: Order .in, is the connection index of the rth edge connection process in the i-th sub-region; is the connectivity index of the rth edge connection process; is the directional trend consistency of the rth edge connection process; is the parameter adjustment factor. In order to avoid the denominator being 0, an empirical value of 0.001 is taken.
[0081] Furthermore, the connection index of each edge connection process is calculated in sub-region i and the range is calculated, and the range result is recorded as the edge dispersion of sub-region i.
[0082] For details, please refer to the flow chart of edge dispersion analysis of each sub-region. Figure 4 .
[0083] Since the regenerated magnesium-carbon raw material has been rolled, its edge force is not fixed; therefore, if the starting point in the r-th edge connection process is the edge pixel of the regenerated magnesium-carbon raw material, the direction consistency between different driving points is low, and the direction trend consistency is large; at the same time, since the volume of the regenerated magnesium-carbon raw material is small, the edge contour is a small granular contour, so its connectivity index is also low. At this time, if the value of the connectivity index is smaller, it means that the edge pixel point in this edge connection process is more likely to be the edge pixel point of the regenerated magnesium-carbon raw material. According to the energy law of crack generation and expansion, the force in the middle area of the crack is the largest, and then the force extends from the middle to the two ends, and the extension direction is fixed, so the gradient direction of the edge pixel point of the crack has greater consistency; at the same time, since the crack presents a long straight line feature, its length is much longer than the contour length of the regenerated magnesium-carbon raw material, so its connectivity index value is also large. At this time, if the value of the connectivity index is larger, the possibility that the edge pixel point in the r-th edge connection process is the edge pixel point of the crack is greater. Since the connection index between the recycled magnesium carbon material and the crack is quite different, if the value of the edge discreteness of sub-region i is larger, it means that the possibility of cracks in the i-th sub-region is greater, and image enhancement is more needed to improve the contrast.
[0084] Step 4: Construct the confidence level of crack existence in each sub-region to evaluate the possibility of crack existence in the sub-region.
[0085] Furthermore, the edge connection process with the largest connection index in sub-region i (recorded as the process to be detected) is analyzed to verify the possibility that the edge pixel points belong to the crack edge pixel points. Since the force energy in the middle area and the two end areas of the crack is different, the force energy in the middle area is larger, so the crack width and bending degree are larger, and there are more corner points; with the loss of energy, when it reaches the two end areas (this application takes the crack with an overall vertical feature as an example for analysis, and the two end areas are the upper end and the lower end), the crack width and bending degree become smaller, so there are fewer corner points.
[0086] The coordinates of each driving point in the process to be detected are used as the input of the least square method to fit a straight line. The straight line is evenly divided into three equal parts according to the degree of straightness, and the driving points are divided according to the vertical coordinate range of the straight line after three equal parts. The driving points in the middle position are recorded as the middle driving points, and the driving points at the two ends are recorded as the two end driving points. Considering that the image has been segmented, if only part of the crack can be displayed in the i-th sub-region, and the rest of the crack is in other sub-regions, the crack characteristics in the i-th sub-region will change. However, even if it changes, according to the energy loss law of the crack, the crack cracking degree in the middle region must be greater than the cracking degree at one end. Further, the number of corner points in the middle region is recorded as the number of middle corner points, the number of corner points in the upper region is recorded as the number of upper corner points, and the number of corner points in the lower region is recorded as the number of lower corner points. The number of corner points in the two end regions is compared, and the region with fewer corner points is recorded as the tail region.
[0087] Furthermore, the difference between the number of corner points in the middle and the number of corner points in the tail region is recorded as the first cracking trend of the corresponding sub-region. Since the edges of the granular material are only irregularly distributed, the number of corner points in the tail region is not necessarily less than that in the middle region. Therefore, the larger the value of the first cracking trend, the more corner points there are in the middle region compared to the tail region, and the more the corner point distribution conforms to the characteristics of crack initiation.
[0088] Furthermore, the closest distance between each corner point and the fitting line in the tail end region is calculated, and the average of the closest distances obtained by all corner points in the tail end region is calculated, which is recorded as the tail end corner line distance. Similarly, the average of the closest distances between each corner point and the fitting line in the middle region is recorded as the middle corner line distance. The difference between the middle corner line distance and the tail end corner line distance is recorded as the second cracking trend of the corresponding sub-region.
[0089] It can be understood that the larger the value of the second cracking trend is, the larger the average distance between the corner points and the fitting straight line in the middle area is compared with the upper area, and the more the corner point distribution conforms to the crack initiation characteristics.
[0090] Furthermore, the difference between the discrete degree of the grayscale values of all edge pixels in the middle area and the discrete degree of the grayscale values of all edge pixels in the tail area is taken as the third cracking trend of the corresponding sub-area, wherein the discrete degree can be the variance, standard deviation, etc. of the grayscale values of the edge pixels, which can be selected by the implementer in the actual application scenario.
[0091] It can be understood that since the degree of cracking in the middle area of the crack is large and the degree of cracking at the tail end is small, the discrete degree of the grayscale value of the edge pixel points in the middle area is greater than that in the tail end area; since the edge reflection degree of the granular material is relatively consistent, the larger the value of the third cracking trend, the greater the possibility that the edge pixel points belong to cracks.
[0092] The first cracking trend, the second cracking trend, the third cracking trend and the edge discreteness are forwardly fused to obtain the confidence level of crack existence in each sub-region.
[0093] Specifically, as an embodiment of the present application, the product of the edge discreteness, the first cracking trend, the second cracking trend and the third cracking trend of each sub-region is used as the confidence level of the crack existence of each sub-region.
[0094] It can be understood that the greater the value of the crack existence confidence level is, the higher the possibility that a crack exists in the corresponding sub-region is.
[0095] For details, please refer to the flow chart of crack existence confidence analysis for each sub-area. Figure 5 .
[0096] Step 5: Based on the confidence of crack existence and regional consistency, construct the enhancement degree of each sub-region.
[0097] The enhancement degree of each sub-region is obtained by calculating the normalized value of the crack existence confidence of each sub-region and the regional consistency, wherein the enhancement degree is positively correlated with the normalized value and negatively correlated with the regional consistency.
[0098] Specifically, as an embodiment of the present application, the ratio of the normalized value of the crack existence confidence to the regional consistency is recorded as the enhancement degree of the i-th sub-region.
[0099] It can be understood that, the greater the value of the enhancement degree is, the higher the degree of image enhancement required for the i-th sub-region is.
[0100] Step 6: Adaptively analyze the enhancement weight of each sub-region, perform image enhancement on each sub-region, analyze the confidence level of cracks in each sub-region, and thus evaluate the hydration degree of the recycled pellets.
[0101] Calculate the enhancement degree of each sub-region and sum them up, and record the result as the overall enhancement degree. The ratio of the enhancement degree of the sub-region to the overall enhancement degree is recorded as the enhancement weight of the sub-region. When using the CLAHE algorithm, the enhancement weight corresponding to the sub-region is multiplied by the initial limit threshold as the limit threshold of the sub-region in the CLAHE algorithm during image enhancement.
[0102] It can be understood that for sub-regions with smaller color mutation, smaller number of corner points, and lower confidence in the existence of cracks, the corresponding limiting threshold is smaller to avoid enhancing noise; for sub-regions with higher color mutation, larger number of corner points, and higher confidence in the existence of cracks, the corresponding limiting threshold is larger to improve contrast and ensure image enhancement effect.
[0103] After image enhancement, the above process of the embodiment of the present application is used to recalculate the confidence of crack existence in all sub-areas and normalize them. If the normalized confidence of crack existence in a sub-area is greater than the empirical threshold of 0.5, it is determined that crack defects have appeared on the surface of the regenerated refractory material, and the hydration degree of the corresponding regenerated magnesium-carbon material is not good, and it needs to be processed again.
[0104] At this point, according to the above process of the embodiment of the present application, the appearance detection of the hydration degree of the recycled granular material can be realized.
[0105] It is worth noting that the positive correlation and negative correlation in the present application specification are used to characterize the correlation between variables. Positive correlation means that the changing trends between the variables are the same, and the independent variable increases (decreases) as the dependent variable increases (decreases). It can be multiplication, addition, etc.; negative correlation means that the changing trends between the variables are opposite, and the independent variable decreases (increases) as the dependent variable increases (decreases). It can be the reciprocal, opposite number, negative exponential function, etc., which is selected according to the actual application scenario, and this application does not impose any special restrictions on comparison.
[0106] It is understood that references to "one embodiment" or "some embodiments" etc. described in the specification of the present application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, if "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appear in different places in this specification, they do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0107] It should be noted that the sequence of the above-mentioned embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. And the above-mentioned specific embodiments of this specification are described. In addition, the process depicted in the accompanying drawings does not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multi-tasking and parallel processing are also possible or may be advantageous. At the same time, the size of the sequence number of each step in the embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments in this specification.
[0108] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for detecting the hydration degree of recycled pellets, characterized in that: The method comprises the following steps: Acquire a grayscale image of the recycled refractory material, and divide the grayscale image of the recycled refractory material into a plurality of sub-regions; The regional consistency of each sub-region is determined based on the difference between the grayscale value in each sub-region and the average grayscale level of the grayscale image, the difference between the grayscale dispersion degree in each sub-region and the grayscale dispersion degree of the grayscale image, and the difference between the number of corner points in each sub-region and the average level of the number of corner points in all sub-regions; Based on the discrete degree of the local gradient direction distribution of each edge pixel point in each sub-region and the distance relationship between the edge line pixels in each sub-region, the edge connection process of each sub-region is searched. The number of edge pixels in the edge connection process determines the connectivity index, and then the edge discreteness of each sub-region is constructed; Based on the corner point information in each sub-region, the deviation of the gray value of the edge pixel point and the edge discreteness, the confidence level of the crack existence in each sub-region is constructed; Determining the degree of enhancement of each sub-region based on the regional consistency and the confidence level of the crack existence; Based on the enhancement degree of each sub-region, the limiting threshold of each sub-region is adaptively determined, each sub-region is enhanced, and the comparison result between the confidence degree of crack existence in each sub-region after enhancement and the preset threshold is analyzed to detect the surface of the recycled refractory material; The method for determining the edge discreteness of each sub-region is: Extract edge pixels of each sub-region and construct a square window with each edge pixel as the center; A gradient direction histogram of the window of each edge pixel point is constructed according to the gradient directions of all pixels in the window of each edge pixel point, and the direction consistency of the edge pixel point at the center of each window is determined based on the distribution of the gradient direction histogram of each window; The edge connection process in each sub-region is defined based on the distance relationship between the edge pixels in each sub-region; All edge pixel points in each edge connection process are recorded as driving points, and the number of driving points in each edge connection process is recorded as the connectivity index of each edge connection process; The discrete degree of the direction consistency of all driving points in each edge connection process is taken as the direction trend consistency of each edge connection process; Determine a connection index for each edge connection process in each sub-region based on the connectivity index and directional trend consistency of each edge connection process in each sub-region, wherein the connectivity index is positively correlated with the connectivity index and negatively correlated with the directional trend consistency; The extreme results of the connection index of all edge connection processes in each sub-region are taken as the edge dispersion of each sub-region; The method for determining the confidence level of crack existence in each sub-region is as follows: The edge connection process with the largest connection index in each sub-region is recorded as the process to be detected in each sub-region, and each driving point in the process to be detected is fitted with a straight line, and the line segment corresponding to the process to be detected is evenly divided into three equal parts; the area with fewer corner points in the two end areas is recorded as the tail end area; The difference in the number of corner points between the middle area and the tail area after equal division is determined as the first cracking trend of each sub-area; The second cracking trend of each sub-area is determined based on the distance relationship between the corner points and the fitting straight line in the middle area and the tail end area after equal division; The difference between the discrete degree of the grayscale values of all edge pixels in the middle area after equal division and the discrete degree of the grayscale values of all edge pixels in the tail area is determined as the third cracking trend of each sub-area; The first cracking trend, the second cracking trend, the third cracking trend and the edge discreteness are forwardly fused to obtain the confidence level of crack existence in each sub-region.
2. A method for detecting the hydration degree of recycled pellets according to claim 1, characterized in that: The method for determining the regional consistency of each sub-region is: Analyze the difference between the grayscale mean of all pixels in each sub-region and the grayscale mean of all pixels in the grayscale image of the recycled refractory material, and record it as the grayscale difference of each sub-region; Analyze the difference between the discrete degree of the grayscale values of all pixels in the grayscale image of the recycled refractory material and the discrete degree of the grayscale values of all pixels in each sub-region, and record it as the grayscale discrete difference of each sub-region; Analyze the difference between the mean number of corner points in all sub-regions of the grayscale image of the recycled refractory material and the number of corner points in each sub-region, and record it as the corner point significance of each sub-region; The grayscale difference, grayscale discrete difference and corner point significance are forward fused to obtain the regional consistency of each sub-region.
3. The method for detecting the hydration degree of recycled pellets according to claim 1, characterized in that: The method for determining the directional consistency is: The bin corresponding to the highest peak in the gradient direction histogram of each window is recorded as the maximum direction range of the edge pixel points at the center of each window; if multiple highest peaks in the gradient direction histogram are the same, the direction corresponding to the highest peak with the largest number of edge pixels is recorded as the maximum direction range of the edge pixel points at the center of each window; The proportion of the count value of the bin with the maximum direction range in all bin count values is taken as the direction consistency of the edge pixel points at the center of the window.
4. A method for detecting the hydration degree of recycled pellets according to claim 3, characterized in that: The edge connection process in each sub-area is defined as follows: Select a starting point from the edge pixels in each sub-region, and in each sub-region, start from the starting point and use the maximum direction range of the starting point as the search range to obtain the next edge pixel point closest to the starting point. If there are multiple edge pixels with the same metric distance to the starting point within the maximum direction range, the edge pixel point with the largest gradient value is recorded as the next edge pixel point of the starting point. The next edge pixel point is updated as a new starting point, and the next edge pixel point of the new starting point is obtained, and so on, until there is no next edge pixel point in the maximum direction range or the next edge pixel point has been the starting point, and the edge pixel point corresponding to the stop is recorded as the end point; The process from the starting point to the end point is recorded as an edge connection process of the sub-region; Accordingly, the starting point is reselected from the edge pixels in each sub-region that have not been used as the starting point, and the edge connection process of each sub-region is iteratively obtained.
5. The method for detecting the hydration degree of recycled pellets according to claim 1, characterized in that: The method for determining the second cracking trend of each sub-region is: Calculate the average value of the closest distance between each corner point and the fitting line in the tail region, and record it as the tail corner line distance; record the average value of the closest distance between each corner point and the fitting line in the middle region as the middle corner line distance; The difference between the middle angle line distance and the tail end angle line distance is recorded as the second cracking trend of each sub-region.
6. A method for detecting the hydration degree of recycled pellets according to claim 1, characterized in that: The enhancement degree of each sub-region is obtained by calculating the normalized value of the crack existence confidence of each sub-region and the regional consistency, wherein the enhancement degree is positively correlated with the normalized value and negatively correlated with the regional consistency.
7. A method for detecting the hydration degree of recycled pellets according to claim 1, characterized in that: The restriction threshold of each sub-region is the product of the enhancement weight of each sub-region and the preset initial restriction threshold, and the enhancement weight of each sub-region is the proportion of the enhancement degree of each sub-region in the enhancement degrees of all sub-regions.
Citation Information
Patent Citations
Stereoscopic vision navigation method based on green crop feature extraction invariance
CN110232389A
Image processing method for microscopic amplification of fracturing propping agent
CN112950659A
Crack defect detection method used in industrial welding seam X-ray image
CN113436168A
Pavement crack detection system based on emulsified high-viscosity asphalt
CN116934748A
Steel pipe defect intelligent detection method based on image enhancement
CN117173180A
