A method for monitoring the quality of motor stator and rotor cores

Through the processing and texture analysis of the grayscale image of the core surface, the wear area on the core surface is distinguished, which solves the problem of inaccurate detection in the existing technology and achieves a more accurate assessment of the quality of the motor stator and rotor core.

CN118396993BActive Publication Date: 2024-10-22JIANGYIN CITY HAIDA ELECTROMOTOR RINSE PIECES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410831282.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-22
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

The existing motor stator and rotor core quality inspection methods only rely on grayscale changes on the core surface and cannot accurately distinguish iron wire grooves and wear areas, resulting in inaccurate detection, especially when local wear and global wear have a greater impact.

Method used

By obtaining the grayscale image of the iron core surface, using the edge of the iron wire trough to divide the local area, calculate the wear coefficient in the high grayscale interval, screen the texture connected domain, and combine the gradient changes and grayscale differences of the pixels to distinguish local and non-local areas. Wear area, calculate the wear area, and then evaluate the core quality.

Benefits of technology

It improves the accuracy of quality detection of the motor stator and rotor core, reduces the interference of iron wire troughs, enables more accurate analysis of wear conditions, and enhances the assessment of core quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118396993B_ABST
    Figure CN118396993B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image processing technology, and in particular to a method for monitoring the quality of a motor stator and rotor core, comprising: obtaining a grayscale image of the core surface; screening a number of local wear texture connected domains and a number of non-local wear texture connected domains; obtaining the wear area of ​​all local wear texture connected domains according to the gradient change and grayscale value of the pixel points in the local wear texture connected domain; obtaining the wear area of ​​all non-local wear texture connected domains according to the grayscale value of the pixel points in the non-local wear texture connected domain; and obtaining the quality grade of the stator and rotor core according to the total wear area. The present invention reduces the interference of the iron wire grooves on the surface of the core on the quality detection of the motor stator and rotor core, as well as the influence of different wear degrees on the quality detection, thereby improving the accuracy of the quality detection of the motor stator and rotor core.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a method for monitoring the quality of a motor stator and rotor core. Background Art

[0002] The quality inspection of the motor stator and rotor core is an important part of the motor manufacturing process, and its purpose is to ensure the performance and reliability of the motor. The stator and rotor core is one of the core components of the motor, and its quality directly affects the efficiency, stability and service life of the motor.

[0003] At present, the quality inspection of the stator and rotor cores of motors only uses the grayscale changes of pixels in the grayscale image of the core surface to detect the quality of the core. Since there are iron wire grooves on the core surface, the existence of the iron wire grooves will interfere with the wear detection of the core surface. If they are not distinguished, the final quality inspection of the core will be inaccurate. In addition, when the core is worn, the degree of wear is different. Some areas will experience local wear, and some areas will experience complete wear. The two have different effects on the inspection. If the inspection is directly performed without distinguishing the wear, the final quality inspection of the core will also be inaccurate. Summary of the invention

[0004] In order to solve the above problems, the present invention provides a method for monitoring the quality of a motor stator and rotor core.

[0005] A motor stator and rotor core quality monitoring method of the present invention adopts the following technical solution:

[0006] An embodiment of the present invention provides a method for monitoring the quality of a motor stator and rotor core, the method comprising the following steps:

[0007] Obtain a grayscale image of the core surface;

[0008] Acquire several wire groove edges in the grayscale image of the core surface; divide the core surface grayscale image according to the wire groove edges to obtain several core surface local areas; obtain the high grayscale interval of each core surface local area; obtain several core surface wear areas according to the aggregation situation and aggregation position of the grayscale values ​​in the core surface local area within the high grayscale interval;

[0009] Acquire several texture connected domains in the wear area on the surface of each core; select several local wear texture connected domains and several non-local wear texture connected domains according to the grayscale difference fluctuations between the pixels in the texture connected domain and the gradient changes of the pixels in the line segment passing through the centroid of the texture connected domain;

[0010] According to the gradient change and grayscale value of the pixel points in the connected domain of the local wear texture, the wear area of ​​all the connected domains of the local wear texture is obtained; according to the grayscale value of the pixel points in the connected domain of the non-local wear texture, the wear area of ​​all the connected domains of the non-local wear texture is obtained; according to the wear area of ​​all the connected domains of the local wear texture and the wear area of ​​all the connected domains of the non-local wear texture, the quality grade of the stator and rotor core is obtained.

[0011] Furthermore, the step of obtaining the high gray level interval of the local area on the surface of each core includes the following specific steps:

[0012] Get the Grayscale histogram of the local area on the surface of the core; The local area of ​​the core surface is segmented by Otsu threshold to obtain the The optimal segmentation threshold for the local area of ​​the core surface; The optimal segmentation threshold of the local area of ​​the core surface is denoted as , will The gray level in the gray level histogram of the local area on the surface of the iron core is The gray level range is denoted as A high gray level interval in a local area on the surface of the core.

[0013] Furthermore, the method of obtaining a plurality of core surface wear regions according to the aggregation conditions and aggregation positions of gray values ​​in a local region of the core surface in a high gray level interval includes the following specific steps:

[0014] For The local area on the surface of the iron core is recorded as the pixel point with gray value in the high gray level range in the local area. High grayscale pixel points in the local area of ​​the core surface;

[0015]

[0016] In the formula, For the The kurtosis of the grayscale values ​​of all high grayscale pixels in the local area of ​​the core surface is For the The gray level with the largest number of pixels in the high gray level interval of the local area on the surface of the core is For the The wear coefficient of a local area on the core surface is is the sigmoid function;

[0017] Several core surface wear areas are obtained based on the wear coefficient.

[0018] Furthermore, the obtaining of a plurality of core surface wear areas according to the wear coefficient comprises the following specific steps:

[0019] A first threshold is preset. The wear coefficient of the local area on the surface of the core is less than the first threshold. A local area on the core surface is regarded as a core surface wear area.

[0020] Furthermore, the step of obtaining a plurality of texture connected domains in the wear area on the surface of each core includes the following specific steps:

[0021] For The Sobel operator is used to detect the edges of the worn areas on the core surface, and the connected domain surrounded by all closed edges is obtained, which is recorded as The initial texture connected domain of the core surface wear area is obtained The first area of ​​the core surface wear The grayscale mean of the initial texture connected domain is obtained The best segmentation threshold obtained by Otsu threshold segmentation of the core surface wear area is recorded as the first best segmentation threshold. The grayscale mean of the initial texture connected domain is greater than the first optimal segmentation threshold. The initial texture connected domain is used as the A texture connected domain in the worn area on the core surface.

[0022] Furthermore, the method of screening a number of local wear texture connected domains and a number of non-local wear texture connected domains according to the grayscale difference fluctuations between the pixels in the texture connected domain and the gradient changes of the pixels in the line segment passing through the centroid of the texture connected domain includes the following specific steps:

[0023]

[0024] In the formula, For the The variance of the grayscale value difference between all pixels in a texture connected domain, wherein the grayscale value difference is the absolute value of the grayscale value difference between the pixels; For the The average value of the gradient values ​​of all pixels in the first line segment of the texture connected domain, The specific method for obtaining the first line segment of a texture connected domain is as follows: The centroid of the texture connected domain is obtained The two pixels farthest from the centroid in the texture connected domain are the line segments determined by the two pixels as The first line segment of a texture connected domain; For the The possibility that a texture connected domain is a local wear texture connected domain, is the sigmoid function;

[0025] According to the possibility that the texture connected domain is local wear, several local wear texture connected domains and several non-local wear texture connected domains are screened.

[0026] Furthermore, the method of screening a number of local wear texture connected domains and a number of non-local wear texture connected domains based on the possibility that the texture connected domain is local wear includes the following specific steps:

[0027] A second threshold is preset. The probability that the texture connected domain is a local wear texture connected domain is greater than the second threshold. texture connected domain is regarded as a local wear texture connected domain. The probability that the texture connected domain is a local wear texture connected domain is less than or equal to the second threshold. The texture connected domain is regarded as a non-local wear texture connected domain.

[0028] Furthermore, the wear area of ​​all local wear texture connected domains is obtained according to the gradient change and gray value of the pixel points in the local wear texture connected domain, and the specific steps include the following:

[0029] Get the The gradient value of each pixel in the first line segment of the local wear texture connected domain is The acute angle between the first line segment of the local wear texture connected domain and the horizontal line is recorded as the first angle. The gradient values ​​of all pixels in the first line segment of the connected domain of the local wear texture are arranged according to the direction of the pixels along the first angle to obtain the first The gradient sequence of the connected domain of the local wear texture, if the The gradient sequence of the connected domain of the local wear texture is The gradient value and The absolute value of the difference between the gradient values ​​is greater than the third threshold. The gradient value is taken as A gradient mutation value of the gradient sequence of the connected domain of the local wear texture is obtained. All the gradient mutation values ​​of the gradient sequence of the local wear texture connected domain are calculated, and all the gradient mutation values ​​in the first The pixel points corresponding to the connected domain of the local wear texture are recorded as mutation pixels. The perpendicular line of the first line segment of the local wear texture connected domain is The local wear texture connected domain is divided into several regions, denoted as A sub-region of the connected domain of the local wear texture;

[0030] According to the grayscale mean of the pixels in the sub-region, the wear area of ​​all the connected domains of the local wear textures is obtained.

[0031] Furthermore, the method of obtaining the wear area of ​​all connected domains of local wear textures according to the grayscale mean of the pixels in the sub-region includes the following specific steps:

[0032] Get the The grayscale mean of all pixels in each sub-region of the local wear texture connected domain is obtained. The grayscale mean of all pixels in the connected domain of the local wear texture. The grayscale mean of all pixels in the sub-region is greater than The grayscale mean of all pixels in the connected domain of the local wear texture is The sub-region is A local wear area of ​​a local wear texture connected domain is obtained, and the area of ​​all local wear areas of all local wear texture connected domains is obtained, which is recorded as the wear area of ​​all local wear texture connected domains.

[0033] Furthermore, the method of obtaining the wear area of ​​all connected domains of non-local wear textures according to the grayscale values ​​of the pixels in the connected domains of non-local wear textures includes the following specific steps:

[0034] Get the The grayscale mean of all pixels in the connected domain of the non-local wear texture is recorded as The first grayscale mean of the connected domain of non-local wear texture is obtained, the first grayscale mean of all the connected domains of non-local wear texture is obtained, K-means clustering is performed on all the first grayscale means, the distance measurement uses the absolute value of the difference between the first grayscale means to obtain two clusters, the mean of all the first grayscale means in each of the two clusters is obtained, recorded as the second grayscale mean, the cluster corresponding to the maximum value of the second grayscale mean is recorded as the wear cluster, and the area of ​​the non-local wear texture connected domain corresponding to all the first grayscale means in the wear cluster is recorded as the wear area of ​​all non-local wear texture connected domains.

[0035] The beneficial effect of the technical solution of the present invention is as follows: after obtaining the grayscale image of the core surface, the present invention divides the grayscale image of the core surface by using the edge of the wire groove to obtain several local areas of the core surface, so as to reduce the interference of the wire groove on the detection of the wear of the core surface, and facilitate the subsequent more accurate analysis of the wear of the core. The grayscale value kurtosis of the pixel points in the high grayscale interval in the local area and the grayscale with the largest number of pixels in the high grayscale interval are used to obtain several core surface wear areas. When obtaining the core surface wear area, the kurtosis change of the histogram when wear occurs and the grayscale corresponding to the peak are used to preliminarily judge that there is a large area of ​​wear, and then the wear area of ​​all local wear texture connected domains is obtained by the gradient change and grayscale value of the pixel points in the local wear texture connected domain, and the wear area of ​​all non-local wear texture connected domains is obtained by the grayscale value of the pixel points in the non-local wear texture connected domain. Finally, the quality grade of the stator and rotor core is obtained by the wear area of ​​all local wear texture connected domains and the wear area of ​​all non-local wear texture connected domains, thereby improving the accuracy of the quality detection of the stator and rotor core of the motor. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 A flowchart of a method for monitoring the quality of a motor stator and rotor core provided by an embodiment of the present invention;

[0038] Figure 2 A flow chart for obtaining the quality grade of a stator and rotor core provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the motor stator and rotor core quality monitoring method proposed by the present invention, its specific implementation method, structure, features and effects, 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.

[0040] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0041] The specific scheme of the motor stator and rotor core quality monitoring method provided by the present invention is described in detail below with reference to the accompanying drawings.

[0042] See also Figure 1 and Figure 2 , which shows a flowchart of the steps of a method for monitoring the quality of a motor stator and rotor core and a flowchart of obtaining the quality grade of the stator and rotor core provided by an embodiment of the present invention, the method comprising the following steps:

[0043] Step S001, obtaining a grayscale image of the core surface.

[0044] It should be noted that this embodiment mainly analyzes the surface wear of the motor stator and rotor core. The collected surface images of the motor stator and rotor core are analyzed by image processing methods. The overall wear and local wear that may occur on the surface of the motor stator and rotor core during rotation are analyzed to obtain the degree of wear of the motor stator and rotor core, and then obtain the detection result of the quality of the motor stator and rotor core. Before starting the analysis, relevant images are first collected.

[0045] Specifically, the grayscale image of the core surface is obtained as follows:

[0046] The surface image of the motor stator and rotor core is obtained, and grayscale processing and adaptive histogram equalization (AHE) processing are performed on the surface image of the motor stator and rotor core. The obtained image is simply referred to as the core surface grayscale image.

[0047] It should be noted that obtaining the surface image of the motor stator and rotor core is an existing method and will not be described in detail in this embodiment. The surface image of the motor stator and rotor core is an RGB image. Since the metal on the surface of the core has strong reflection during image acquisition, it will interfere with the subsequent image recognition and analysis. Therefore, adaptive histogram equalization is performed after the image is grayed to reduce the impact of the reflection. The motor stator and rotor core includes a textured area on the core surface and a number of iron wire grooves.

[0048] At this point, a grayscale image of the core surface is obtained.

[0049] Step S002, obtaining a plurality of wire groove edges in the grayscale image of the core surface; dividing the core surface grayscale image according to the wire groove edges to obtain a plurality of local areas of the core surface.

[0050] It should be noted that in order to accurately determine the degree of wear on the surface of the motor stator and rotor core, the texture of the core surface must first be analyzed. Since the texture on the surface of the stator and rotor core is regularly distributed concave and convex lines, and the raised texture area on the rotor surface appears as a highlighted area under light, and the concave texture area appears as a low-volume area under light, the concave and convex texture on the surface of the motor stator and rotor core is distributed alternately. There are also several iron wire grooves on the surface of the motor stator and rotor core, which divide the concave and convex texture on the surface of the motor stator and rotor core into multiple areas of similar area. When the core rotates, excessive vibration or resonance will cause friction or collision between the mechanical parts and the core surface, resulting in wear. Since the wire grooves divide the concave and convex textures on the surface of the motor stator and rotor core into multiple areas of similar area, and the edges of these wire grooves separate the corresponding high grayscale value and low grayscale value areas, it is impossible to obtain the worn area and normal area through simple edge segmentation. Therefore, the grayscale image of the core surface is segmented according to the edges corresponding to the wire grooves, and the segmented areas are analyzed and processed separately to determine the possibility of wear in the corresponding areas.

[0051] Specifically, several iron wire slot edges in the grayscale image of the iron core surface are obtained as follows:

[0052] The Sobel operator is used to perform edge detection on the grayscale image of the core surface to obtain several wire groove edges in the grayscale image of the core surface. It should be noted that when the Sobel operator is used to obtain the wire groove edge, the gradient threshold of the edge detection is preset to 51 in this embodiment to ensure that the obtained edge is the wire groove edge.

[0053] Furthermore, the core surface grayscale image is divided according to the wire groove edge to obtain several core surface local areas. It should be noted that the wire groove edge can completely divide the core surface grayscale image; dividing the core surface grayscale image by the wire groove edge can better retain the texture area in the core surface grayscale image and reduce the interference of the wire groove edge on the texture edge.

[0054] At this point, several local areas of the core surface are obtained.

[0055] Step S003, obtaining a high gray level interval of each local area on the surface of the core; and obtaining a number of core surface wear areas according to the aggregation situation and aggregation position of gray values ​​in the local area on the surface of the core within the high gray level interval.

[0056] It should be noted that, due to the presence of regular concave-convex texture areas in the local area of ​​the core surface, the convex texture area is shown as a long strip area with a higher grayscale value in the grayscale image of the core surface, and the concave texture area is shown as a long strip area with a lower grayscale value. The local area of ​​the core surface is shown as a double peak in the grayscale histogram. When the local area of ​​the core surface is worn, the convex texture area increases its brightness due to wear, that is, the grayscale value of the convex texture area increases, and the concave texture area does not change its grayscale value because it is not worn. For the grayscale histogram of the local area of ​​the core surface with wear, its high grayscale value kurtosis is compared with the grayscale histogram of the local area of ​​the core surface without wear, and the number of pixels corresponding to its high grayscale value increases and the overall shape becomes lower. Therefore, through the characteristics reflected in the grayscale histogram, it is analyzed whether the local area of ​​the core surface is worn.

[0057] Specifically, the high gray level interval of the local area on the surface of each core is obtained, as follows:

[0058] Get the Grayscale histogram of the local area on the surface of the core; The local area of ​​the core surface is segmented by Otsu threshold to obtain the The optimal segmentation threshold for the local area of ​​the core surface; The optimal segmentation threshold of the local area of ​​the core surface is denoted as , will The gray level in the gray level histogram of the local area on the surface of the iron core is The gray level range is denoted as The high gray level interval of the local area on the surface of the core; It should be noted that the gray level range of the gray level histogram in this embodiment is .

[0059] Further, according to the aggregation situation and aggregation position of the grayscale values ​​in the high grayscale interval in the local area of ​​the core surface, a number of core surface wear areas are obtained, including the steps of:

[0060] Firstly, the wear coefficient of each local area on the core surface is obtained according to the aggregation condition and aggregation position of the grayscale values ​​in the high grayscale interval in the local area on the core surface.

[0061] Secondly, several core surface wear areas are obtained based on the wear coefficient.

[0062] Specifically, according to the aggregation situation and aggregation position of the grayscale values ​​in the local area of ​​the core surface in the high grayscale range, the wear coefficient of each local area on the core surface is obtained. As an embodiment, the specific calculation method is as follows:

[0063] For The local area on the surface of the iron core is recorded as the pixel point with gray value in the high gray level range in the local area. High grayscale pixels in a local area on the surface of the core.

[0064]

[0065] In the formula, For the The kurtosis of the grayscale values ​​of all high grayscale pixels in the local area of ​​the core surface is For the The gray level with the largest number of pixels in the high gray level interval of the local area on the surface of the core is For the The wear coefficient of a local area on the core surface is is the sigmoid function, used for normalization.

[0066] It should be noted that the kurtosis calculation is an existing method and will not be described in detail in this embodiment. Indicates The kurtosis of the high gray level interval in the gray level histogram of the local area on the surface of the core, The smaller it is, the lower the peak of the high gray level interval in the gray level histogram is, the worse the aggregation of the high gray level interval is, and the greater the probability of wear in the corresponding local area, conversely, the smaller the probability of wear in the local area; Indicates The peak gray level corresponding to the high gray level interval of the local area on the surface of the core in the gray level histogram is the gathering position. The larger the The gray value of the pixel point in the convex texture area in the local area of ​​the core surface is larger, and the probability of wear in the local area is greater; combining the two, we can get The wear coefficient of the local area on the surface of the core is smaller, indicating that the The greater the possibility of wear on local areas of the core surface.

[0067] Furthermore, several core surface wear areas are obtained based on the wear coefficient, as follows:

[0068] A first threshold is preset. In this embodiment, the first threshold is described as 0.2. The wear coefficient of the local area on the surface of the core is less than the first threshold. A local area on the core surface is regarded as a core surface wear area. If the The wear coefficient of the local area on the surface of the core is greater than or equal to the first threshold, and the first A local area on the core surface is regarded as a core surface wear area.

[0069] So far, several core surface wear areas are obtained.

[0070] Step S004, obtaining a number of texture connected domains in the wear area on the surface of each core; screening a number of local wear texture connected domains and a number of non-local wear texture connected domains according to the grayscale difference fluctuations between the pixels in the texture connected domain and the gradient changes of the pixels in the line segment passing through the centroid of the texture connected domain.

[0071] It should be noted that the above-mentioned acquisition of several core surface wear areas requires further analysis of the core surface wear areas to determine the wear condition of the convex texture areas in the core surface wear areas, whether the convex texture areas are locally worn or overall worn, thereby determining the specific area of ​​wear, so as to better analyze the degree of wear on the core surface in the future.

[0072] Specifically, several texture connected domains of the wear area on the surface of each core are obtained, as follows:

[0073] For The Sobel operator is used to detect the edges of the worn areas on the core surface, and the connected domain surrounded by all closed edges is obtained, which is recorded as The initial texture connected domain of the core surface wear area is obtained The first area of ​​the core surface wear The grayscale mean of the initial texture connected domain is obtained The best segmentation threshold obtained by Otsu threshold segmentation of the core surface wear area is recorded as the first best segmentation threshold. The grayscale mean of the initial texture connected domain is greater than the first optimal segmentation threshold. The initial texture connected domain is used as the A texture connected domain in the worn area on the core surface.

[0074] It should be noted that several texture connected domains in the wear area on the core surface are convex texture connected domains, and only the convex textures are worn more obviously.

[0075] Specifically, according to the grayscale difference fluctuations between pixels in the texture connected domain and the gradient changes of pixels in the line segment passing through the centroid of the texture connected domain, a number of local wear texture connected domains and a number of non-local wear texture connected domains are screened, including the following steps:

[0076] Firstly, according to the grayscale difference fluctuations between pixels in the texture connected domain and the gradient changes of pixels along the line segment passing through the centroid of the texture connected domain, the possibility of each texture connected domain being local wear is obtained.

[0077] Secondly, according to the possibility that the texture connected domain is local wear, several local wear texture connected domains and several non-local wear texture connected domains are screened.

[0078] Specifically, according to the grayscale difference fluctuations between pixels in the texture connected domain and the gradient changes of pixels in the line segment passing through the centroid of the texture connected domain, the possibility of each texture connected domain being locally worn is obtained. As an embodiment, the specific calculation method is as follows:

[0079]

[0080] In the formula, For the The variance of the grayscale value difference between all pixels in a texture connected domain, wherein the grayscale value difference is the absolute value of the grayscale value difference between the pixels; For the The average value of the gradient values ​​of all pixels in the first line segment of the texture connected domain, The specific method for obtaining the first line segment of a texture connected domain is as follows: The centroid of the texture connected domain is obtained The two pixels farthest from the centroid in the texture connected domain are the line segments determined by the two pixels as The first line segment of a texture connected domain; For the The possibility that a texture connected domain is a local wear texture connected domain, is the sigmoid function, used for normalization.

[0081] It should be noted that Indicates The grayscale difference between all pixels in a texture connected domain fluctuates. When there is local wear in the texture connected domain, The grayscale difference fluctuation between pixels in a texture connected domain will increase, so To reflect the The possibility that a texture connected domain is a local wear texture connected domain; Indicates The gradient change of a texture connected domain along a line segment is The larger the The gradient change of the pixels in the first line segment of the texture connected domain is more obvious. The more likely the texture connected domain is the local wear texture connected domain, the greater the probability; combining the two, we can get the The possibility that a texture connected domain is a local wear texture connected domain; this embodiment obtains the gradient value of the pixel point through the Sobel operator, and the specific acquisition method is the existing method, which will not be repeated in this embodiment.

[0082] Furthermore, according to the possibility that the texture connected domain is local wear, several local wear texture connected domains and several non-local wear texture connected domains are selected, as follows:

[0083] A second threshold is preset. In this embodiment, the second threshold is described as 0.8. The probability that the texture connected domain is a local wear texture connected domain is greater than the second threshold. texture connected domain is regarded as a local wear texture connected domain. The probability that the texture connected domain is a local wear texture connected domain is less than or equal to the second threshold. The texture connected domain is regarded as a non-local wear texture connected domain.

[0084] At this point, several local wear texture connected domains and several non-local wear texture connected domains are screened.

[0085] Step S005, according to the gradient change and gray value of the pixel points in the local wear texture connected domain, the wear area of ​​all the local wear texture connected domains is obtained; according to the gray value of the pixel points in the non-local wear texture connected domain, the wear area of ​​all the non-local wear texture connected domains is obtained; and then the quality grade of the stator and rotor core is obtained.

[0086] It should be noted that the above-mentioned acquisitions include several local wear texture connected domains and several non-local wear texture connected domains. In order to measure the wear degree of the motor stator and rotor cores, it is necessary to calculate the wear area of ​​the local wear texture connected domain. Since there is partial wear and partial non-wear in the local wear texture connected domain, and the grayscale value of the worn part is large, the wear area and normal area corresponding to the local wear texture connected domain are determined by the gradient change of the pixel points in the line segment passing through the centroid of the local wear texture connected domain, and then the area of ​​the local wear area is obtained.

[0087] Specifically, according to the gradient change and gray value of the pixel points in the local wear texture connected domain, the wear area of ​​all the local wear texture connected domains is obtained, which includes the following steps:

[0088] Firstly, the sub-region of each local wear texture connected domain is obtained according to the gradient change of the pixel points along the line segment passing through the centroid of the local wear texture connected domain.

[0089] Secondly, the wear area of ​​all connected domains of local wear textures is obtained according to the grayscale mean of the pixels in the sub-region.

[0090] Specifically, according to the gradient change of the pixel points in the line segment passing through the centroid of the local wear texture connected domain, the sub-region of each local wear texture connected domain is obtained, as follows:

[0091] Get the The gradient value of each pixel in the first line segment of the local wear texture connected domain is The acute angle between the first line segment of the local wear texture connected domain and the horizontal line is recorded as the first angle. The gradient values ​​of all pixels in the first line segment of the connected domain of the local wear texture are arranged according to the direction of the pixels along the first angle to obtain the first The gradient sequence of the connected domain of the local wear texture, if the The gradient sequence of the connected domain of the local wear texture is The gradient value and The absolute value of the difference between the gradient values ​​is greater than the third threshold. The gradient value is taken as A gradient mutation value of the gradient sequence of the connected domain of the local wear texture, otherwise, it is not used as a gradient mutation value, and the first All the gradient mutation values ​​of the gradient sequence of the local wear texture connected domain are calculated, and all the gradient mutation values ​​in the first The pixel points corresponding to the connected domain of the local wear texture are recorded as mutation pixels. The perpendicular line of the first line segment of the local wear texture connected domain is The local wear texture connected domain is divided into several regions, denoted as A sub-region of a connected domain of a local wear texture.

[0092] Furthermore, according to the grayscale mean of the pixels in the sub-region, the wear area of ​​all the connected domains of the local wear textures is obtained, as follows:

[0093] Get the The grayscale mean of all pixels in each sub-region of the local wear texture connected domain is obtained. The grayscale mean of all pixels in the connected domain of the local wear texture. The grayscale mean of all pixels in the sub-region is greater than The grayscale mean of all pixels in the connected domain of the local wear texture is The sub-region is A local wear area of ​​a local wear texture connected domain is obtained, and the area of ​​all local wear areas of all local wear texture connected domains is obtained, which is recorded as the wear area of ​​all local wear texture connected domains.

[0094] It should be noted that obtaining the The first line segment of the local wear texture connected domain and the first The method for obtaining the first line segment of each texture connected domain is the same as that for the first line segment of each texture connected domain, which will not be described in detail in this embodiment.

[0095] It should be noted that the local wear area of ​​the core surface is obtained based on the local wear texture connected domain. Next, the wear area corresponding to the non-local wear texture connected domain on the core surface is obtained. The non-local wear texture connected domain may be completely worn or not worn. The non-local wear texture connected domain with complete wear has a relatively higher internal grayscale value than the non-local wear texture connected domain with no wear. Therefore, by analyzing the size of the grayscale value in the non-local wear texture connected domain, the non-local wear texture connected domain with complete wear is obtained, and then the area of ​​complete wear is obtained, and finally the overall wear area on the core surface is obtained, including local wear and overall wear.

[0096] Specifically, according to the grayscale value of the pixel points in the connected domain of the non-local wear texture, the wear area of ​​all the connected domains of the non-local wear texture is obtained, as follows:

[0097] Get the The grayscale mean of all pixels in the connected domain of the non-local wear texture is recorded as The first grayscale mean of the connected domain of non-local wear texture is obtained, the first grayscale mean of all the connected domains of non-local wear texture is obtained, K-means clustering is performed on all the first grayscale means, the distance measurement uses the absolute value of the difference between the first grayscale means to obtain two clusters, the mean of all the first grayscale means in each of the two clusters is obtained, recorded as the second grayscale mean, the cluster corresponding to the maximum value of the second grayscale mean is recorded as the wear cluster, and the area of ​​the non-local wear texture connected domain corresponding to all the first grayscale means in the wear cluster is recorded as the wear area of ​​all non-local wear texture connected domains.

[0098] It should be noted that the K value of K-means clustering in this implementation is 2, so there are only two clusters in the clustering result.

[0099] Furthermore, according to the wear area of ​​all connected domains of local wear textures and the wear area of ​​all connected domains of non-local wear textures, the quality grade of the stator and rotor cores is obtained, as follows:

[0100] The sum of the wear areas of all local wear texture connected domains and the wear areas of all non-local wear texture connected domains is recorded as the first area value, the area of ​​the grayscale image of the core surface is recorded as the second area value, and the ratio of the first area to the second area is recorded as .

[0101] like , the stator and rotor cores are slightly worn; if , the stator and rotor cores are moderately worn; if , the stator and rotor cores are severely worn, is the preset fourth threshold, is the preset fifth threshold, is the preset sixth threshold value. , , Give a narrative.

[0102] At this point, through the above steps, the motor stator and rotor core quality monitoring is completed.

[0103] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for monitoring the quality of a motor stator and rotor core, characterized in that: The method comprises the following steps: Obtain a grayscale image of the core surface; Acquire several wire groove edges in the grayscale image of the core surface; divide the core surface grayscale image according to the wire groove edges to obtain several core surface local areas; obtain the high grayscale interval of each core surface local area; obtain several core surface wear areas according to the aggregation situation and aggregation position of the grayscale values ​​in the core surface local area within the high grayscale interval; Acquire several texture connected domains in the wear area on the surface of each core; select several local wear texture connected domains and several non-local wear texture connected domains according to the grayscale difference fluctuations between the pixels in the texture connected domain and the gradient changes of the pixels in the line segment passing through the centroid of the texture connected domain; According to the gradient change and gray value of the pixel points in the local wear texture connected domain, the wear area of ​​all the local wear texture connected domains is obtained; according to the gray value of the pixel points in the non-local wear texture connected domain, the wear area of ​​all the non-local wear texture connected domains is obtained; according to the wear area of ​​all the local wear texture connected domains and the wear area of ​​all the non-local wear texture connected domains, the quality grade of the stator and rotor core is obtained; According to the gradient change and gray value of the pixel points in the local wear texture connected domain, the wear area of ​​all local wear texture connected domains is obtained, including the following specific steps: Get the The gradient value of each pixel in the first line segment of the local wear texture connected domain is The acute angle between the first line segment of the local wear texture connected domain and the horizontal line is recorded as the first angle. The gradient values ​​of all pixels in the first line segment of the connected domain of the local wear texture are arranged according to the direction of the pixels along the first angle to obtain the first The gradient sequence of the connected domain of the local wear texture, if the The gradient sequence of the connected domain of the local wear texture is The gradient value and The absolute value of the difference between the gradient values ​​is greater than the third threshold. The gradient value is taken as A gradient mutation value of the gradient sequence of the connected domain of the local wear texture is obtained. All the gradient mutation values ​​of the gradient sequence of the local wear texture connected domain are calculated, and all the gradient mutation values ​​in the first The pixel points corresponding to the connected domain of the local wear texture are recorded as mutation pixels. The perpendicular line of the first line segment of the local wear texture connected domain is The local wear texture connected domain is divided into several regions, denoted as A sub-region of the connected domain of the local wear texture; According to the grayscale mean of the pixels in the sub-region, the wear area of ​​all the connected domains of the local wear textures is obtained; The specific steps of obtaining the wear area of ​​all connected domains of local wear textures according to the grayscale mean of the pixels in the sub-region are as follows: Get the The grayscale mean of all pixels in each sub-region of the local wear texture connected domain is obtained. The grayscale mean of all pixels in the connected domain of the local wear texture. The grayscale mean of all pixels in the sub-region is greater than The grayscale mean of all pixels in the connected domain of the local wear texture is The sub-region is A local wear area of ​​a local wear texture connected domain, obtain the area of ​​all local wear areas of all local wear texture connected domains, and record it as the wear area of ​​all local wear texture connected domains; The method of obtaining the wear areas of all connected domains of non-local wear textures according to the grayscale values ​​of the pixels in the connected domains of the non-local wear textures includes the following specific steps: Get the The grayscale mean of all pixels in the connected domain of the non-local wear texture is recorded as The first grayscale mean of the connected domain of non-local wear texture is obtained, the first grayscale mean of all the connected domains of non-local wear texture is obtained, K-means clustering is performed on all the first grayscale means, the distance measurement uses the absolute value of the difference between the first grayscale means to obtain two clusters, the mean of all the first grayscale means in each of the two clusters is obtained, recorded as the second grayscale mean, the cluster corresponding to the maximum value of the second grayscale mean is recorded as the wear cluster, and the area of ​​the non-local wear texture connected domain corresponding to all the first grayscale means in the wear cluster is recorded as the wear area of ​​all non-local wear texture connected domains.

2. A method for monitoring the quality of a motor stator and rotor core according to claim 1, characterized in that: The specific steps of obtaining the high gray level interval of the local area on the surface of each core are as follows: Get the Grayscale histogram of the local area on the surface of the core; The local area of ​​the core surface is segmented by Otsu threshold to obtain the The optimal segmentation threshold for the local area of ​​the core surface; The optimal segmentation threshold of the local area of ​​the core surface is denoted as , will The gray level in the gray level histogram of the local area on the surface of the iron core is The gray level range is denoted as A high gray level interval in a local area on the surface of the core.

3. A method for monitoring the quality of a motor stator and rotor core according to claim 1, characterized in that: The method of obtaining a plurality of core surface wear regions according to the aggregation situation and aggregation position of gray values ​​in a local region of the core surface in a high gray level range comprises the following specific steps: For The local area on the surface of the iron core is recorded as the pixel point with gray value in the high gray level range in the local area. High grayscale pixel points in the local area of ​​the core surface; In the formula, For the The kurtosis of the grayscale values ​​of all high grayscale pixels in the local area of ​​the core surface is For the The gray level with the largest number of pixels in the high gray level interval of the local area on the surface of the core is For the The wear coefficient of a local area on the core surface is is the sigmoid function; According to the wear coefficient, several wear areas on the core surface are obtained.

4. A method for monitoring the quality of a motor stator and rotor core according to claim 3, characterized in that: The specific steps of obtaining a plurality of core surface wear areas according to the wear coefficient are as follows: A first threshold is preset. The wear coefficient of the local area on the surface of the core is less than the first threshold. A local area on the core surface is regarded as a core surface wear area.

5. The method for monitoring the quality of the stator and rotor cores of a motor according to claim 1, characterized in that: The specific steps of obtaining a plurality of texture connected domains in the wear area on the surface of each core are as follows: For The Sobel operator is used to detect the edges of the worn areas on the core surface, and the connected domain surrounded by all closed edges is obtained, which is recorded as The initial texture connected domain of the core surface wear area is obtained The first area of ​​the core surface wear The grayscale mean of the initial texture connected domain is obtained The best segmentation threshold obtained by Otsu threshold segmentation of the core surface wear area is recorded as the first best segmentation threshold. The grayscale mean of the initial texture connected domain is greater than the first optimal segmentation threshold. The initial texture connected domain is used as the A texture connected domain in the worn area on the core surface.

6. A method for monitoring the quality of a motor stator and rotor core according to claim 1, characterized in that: The method of screening a plurality of local wear texture connected domains and a plurality of non-local wear texture connected domains according to the grayscale difference fluctuations between the pixels in the texture connected domain and the gradient changes of the pixels in the line segment passing through the centroid of the texture connected domain includes the following specific steps: In the formula, For the The variance of the grayscale value difference between all pixels in a texture connected domain, wherein the grayscale value difference is the absolute value of the grayscale value difference between the pixels; For the The average value of the gradient values ​​of all pixels in the first line segment of the texture connected domain, The specific method for obtaining the first line segment of a texture connected domain is as follows: The centroid of the texture connected domain is obtained The two pixels farthest from the centroid in the texture connected domain are the line segments determined by the two pixels as The first line segment of a texture connected domain; For the The possibility that a texture connected domain is a local wear texture connected domain, is the sigmoid function; According to the possibility that the texture connected domain is local wear, several local wear texture connected domains and several non-local wear texture connected domains are screened.

7. A method for monitoring the quality of a motor stator and rotor core according to claim 6, characterized in that: The method of screening a number of local wear texture connected domains and a number of non-local wear texture connected domains based on the possibility that the texture connected domain is local wear includes the following specific steps: A second threshold is preset. The probability that the texture connected domain is a local wear texture connected domain is greater than the second threshold. texture connected domain is regarded as a local wear texture connected domain. The probability that the texture connected domain is a local wear texture connected domain is less than or equal to the second threshold. The texture connected domain is regarded as a non-local wear texture connected domain.