Automobile part production detection method and system based on machine learning

By chunking processing and gradient difference analysis of the hub image, the degree of characteristic deviation of pixel points is calculated and grayscale enhancement is performed, the problem of dirt detection caused by texture or gradient surface on the hub is solved, and accurate dirt area detection is achieved and improve detection efficiency.

CN118967678AInactive Publication Date: 2024-11-15WUHAN UNIQUE AUTOMATIC SYST ENG CO LTD

Patent Information

Application Number
CN202411441752.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

There is a texture or gradient curve on the hub, so that the dirty grayscale changes with the texture, resulting in the inability to accurately divide the dirty positions on the hub, reducing detection efficiency.

Method used

By collecting the hub image and preprocessing, dividing the blocks, calculating the gradient difference and position distance between each pixel point and other pixel points, obtaining the relevant sequence and approximate region sequence, calculating the characteristic deviation degree of pixel points, and performing grayscale enhancement Highlight potential defect areas and achieve accurate detection of dirty areas.

Benefits of technology

It improves the accuracy and efficiency of defect detection in hub images, and can work stably under different lighting and environmental conditions to ensure accurate identification of dirty areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118967678A_ABST
    Figure CN118967678A_ABST
Patent Text Reader

Abstract

The invention relates to the field of image processing, in particular to an automobile part production detection method and system based on machine learning, and the method comprises the steps: collecting and preprocessing a hub image, dividing the preprocessed hub image into a plurality of blocks, and obtaining the hub feature quantity of each block; obtaining a correlation sequence of the blocks and an approximate region sequence of each pixel point according to gradient differences and position distances between each pixel point and all pixel points in the blocks and between each pixel point and pixel points in a neighborhood; according to the gradient difference between the correlation sequence and the approximate region sequence and the wheel hub characteristic quantity, calculating the correlation characteristic of each pixel point to obtain the characteristic deviation degree of the pixel points; and calculating the defect degree of the hub according to the characteristic deviation degree, carrying out gray enhancement to obtain an enhanced image, and carrying out dirty area detection according to the enhanced image. According to the method, the hub gray level image is enhanced through the hub defect degree, so that the accurate dirty position is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing, and more specifically, to a method and system for detecting automobile parts production based on machine learning. Background Art

[0002] The production inspection method of automobile parts based on machine learning can play an important role in many aspects, and can improve the accuracy and efficiency of quality inspection. The machine learning model can be trained to identify normal and abnormal features of parts, such as surface defects, dimensional deviations, etc., so as to detect problems more accurately than traditional methods. The automated inspection process can greatly improve the efficiency of inspection, reduce the need for manual inspection, and avoid problems caused by human misjudgment.

[0003] The existing Chinese patent application document with publication number CN116205919A discloses a hardware parts production quality inspection method and system based on artificial intelligence, including: collecting standard images and gear area images under different lighting angles; obtaining the target area and non-target area in each image block, further obtaining the lighting influence grayscale distribution curve, obtaining the lighting influence area according to the lighting influence grayscale distribution curve, and further obtaining the influence degree of the lighting angle; obtaining the grayscale trend distribution curve according to the grayscale distribution in the target area of ​​the image block under different lighting angles, and further obtaining the characteristic influencing factor of the significance value of the image block; obtaining the regional difference value through the characteristic influencing factor, and further obtaining the significance image; identifying the shortage defect according to the significance image to realize the production quality inspection of hardware parts.

[0004] In the above scheme, the brightness of the oil stains in the image block is adjusted to reduce the impact of machine misjudgment. However, after the image brightness is adjusted, the wheel image still needs to be segmented. Otsu's threshold segmentation is usually used. Because there are textures or gradient surfaces on the wheel, the grayscale of the dirt changes with the texture, resulting in the inability to accurately segment the dirt position on the wheel, which greatly reduces the efficiency of detection. Summary of the invention

[0005] In order to solve the problem that when there is texture or gradient curved surface on the wheel hub, the grayscale of dirt changes with the texture, resulting in the inability to accurately segment the dirt position on the wheel hub, the present invention provides solutions in the following aspects.

[0006] In a first aspect, a method for detecting automobile parts production based on machine learning includes: collecting and preprocessing a wheel hub image, dividing the preprocessed wheel hub image into a plurality of blocks, obtaining wheel hub feature quantities of the blocks, wherein the wheel hub feature quantities characterize abnormal texture feature conditions within the blocks; respectively calculating the gradient difference and position distance between each pixel point and all pixels within the blocks and between each pixel point within the blocks and pixels within the neighborhood, so as to obtain a correlation sequence of the blocks and an approximate region sequence of each pixel point within the blocks; obtaining a correlation feature of each pixel point based on the gradient difference between the correlation sequence and the approximate region sequence and the wheel hub feature quantity, and obtaining a feature deviation degree of the pixel point based on the correlation feature; and calculating a wheel hub defect degree based on the feature deviation degree. , where Indicates In the block The wheel hub defect degree of pixels, and Indicates In the block pixels and the centrally symmetrical The pixel points correspond to the first The characteristic deviation degree of each pixel point, and Indicates In the block pixels and the centrally symmetrical The pixel points correspond to the first The position number of the pixel in the approximate region sequence, represents the normalization function, Represents the number of pixels in the approximate region sequence; grayscale enhancement is performed on the hub grayscale image according to the hub defect degree to obtain an enhanced image, and dirty region detection is performed based on the enhanced image.

[0007] The effect is as follows: according to the grayscale value of the pixel points in each block, the wheel feature value of the block is calculated, so as to obtain the texture, brightness, color and other information of the wheel image, and obtain the gradient difference and position distance between each pixel point and other pixel points in the block, which is conducive to identifying the edges and change areas in the wheel image and reflecting the local characteristics of the pixel points; according to the calculated wheel defect degree, the grayscale of the image is enhanced to highlight the potential defective area, and the dirty area is detected through the enhanced image.

[0008] Preferably, obtaining the wheel hub feature quantity of the blocks includes: The center point of the preprocessed wheel hub image is obtained, and the image is divided into blocks according to the preset size of the center point. The variance of the grayscale value and the sum of the grayscale values ​​of the pixels in each block are calculated, and the ratio of the variance of the grayscale value to the sum of the grayscale values ​​is used as the wheel hub feature of the block.

[0009] The effect is that the wheel image is divided into blocks based on the characteristic that the wheel image is a centrally symmetrical image, and the central symmetry is used as the key feature for identification and analysis, so that the wheel can be classified and identified more accurately.

[0010] Preferably, obtaining the relevant sequence of the blocks includes: Taking any block as the target block, any pixel as the target pixel, and the first pixel in the target block as the starting point, the absolute value of the gradient difference and the position distance between the target pixel and all other pixels in the block are calculated in sequence, and the product of the absolute value of the gradient difference and the position distance is used as the approximate correlation value of the target pixel; The pixel point corresponding to the minimum approximate correlation value between the target pixel point is selected as the second pixel point, and this step is repeated to obtain the correlation sequence of the target block.

[0011] The effect is: by calculating the absolute value of the gradient difference, the local changes between the target pixel and other pixels can be highlighted. By introducing the calculation of the position distance, the spatial relationship between pixels can be better analyzed, thereby performing image segmentation. By selecting the pixel corresponding to the smallest approximate correlation value as the next pixel in the sequence, a pixel sequence that is highly correlated with the target pixel can be gradually constructed. In images with complex structures such as wheel images, the wheel contour and feature points can be more accurately identified.

[0012] Preferably, obtaining an approximate region sequence of each pixel point in the block includes: Taking any block as the target block, any pixel as the target pixel, and the first pixel in the target block as the starting point, the absolute value of the gradient difference and the position distance between the target pixel and all other pixels in the neighborhood are calculated in sequence, and the product of the absolute value of the gradient difference and the position distance is used as the approximate correlation value of the target pixel; The pixel corresponding to the smallest approximate correlation value with the target pixel is selected as the second pixel, and this step is repeated to obtain an approximate region sequence of the target pixel.

[0013] The effect is that the method of integrating gradient and position information improves the robustness to noise and image deformation, ensures stable analysis results under different conditions, takes the approximate region sequence as a feature, and can perform image segmentation more clearly by identifying the approximate relationship between pixels.

[0014] Preferably, obtaining relevant features of each pixel includes: Taking any block as the target block and any pixel point as the target pixel point, the gradient value and gradient angle between the target pixel point in the target block and other pixels in the neighborhood are calculated, and normalized. The hub feature of the target block is used as the weight of the sum of the normalized gradient values ​​and gradient angles of the target pixel point in the block and other pixels in the neighborhood, and the relevant feature values ​​of the target pixel point in the target block and other pixels in the neighborhood are obtained.

[0015] The effect is that the gradient value and gradient angle provide the grayscale change intensity and direction information of the local area of ​​the pixel point. In the defect detection of the wheel hub, the relevant feature values ​​can help identify potential cracks, dents or other defects.

[0016] Preferably, obtaining the degree of feature deviation based on the related features of adjacent pixels includes: Taking any block as the target block and any pixel point as the target pixel point, calculate the absolute value cumulative sum of the relevant features of each pixel point in the approximate region sequence of the target pixel point in the target block and the absolute value cumulative sum of the relevant feature differences between the two adjacent pixel points in the target pixel point in the relevant sequence and the pixel points in the approximate region sequence corresponding to the target pixel point in the target block, and use the absolute value cumulative sum as the feature deviation degree of the target pixel point.

[0017] Preferably, the gray value of each pixel in the hub gray image is enhanced according to the hub defect degree to obtain an enhanced image, including: A new grayscale value of each pixel after enhancement is obtained according to the product of the hub defect and the original grayscale value of the pixel, the contrast between the dirty area and other areas of the enhanced image is adjusted, and the enhanced image is segmented to obtain the dirty area.

[0018] In a second aspect, a system for producing and inspecting automobile parts based on machine learning is provided, comprising: a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the above-mentioned method for producing and inspecting automobile parts based on machine learning is implemented.

[0019] The present invention has the following effects: 1. The present invention analyzes the wheel hub features, obtains the wheel hub defect degree of the pixel point according to the feature deviation degree of the pixel point and the position number of the approximate area sequence corresponding to the pixel point, and then enhances the grayscale value of each pixel point in the wheel hub grayscale image according to the wheel hub defect degree to obtain an enhanced image, and finally performs dirty area detection through the enhanced image to obtain the precise dirty position.

[0020] 2. The present invention preprocesses and blocks the wheel image, and combines the gradient and position distance analysis of the pixel points. The method can effectively identify tiny defects in the wheel image and improve the detection accuracy. It uses multi-dimensional information such as gradient difference, position distance and wheel feature quantity to enhance the expression of the wheel surface features, making the features richer and more distinctive. Through image enhancement and grayscale adjustment technology, it can work stably under different lighting and environmental conditions. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein: Figure 1 It is a method flow chart of steps S1 to S4 in a method for automobile parts production detection based on machine learning in an embodiment of the present invention.

[0022] Figure 2 It is a structural block diagram of an automobile parts production detection system based on machine learning according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0024] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0025] Reference Figure 1 , a method for automobile parts production detection based on machine learning includes steps S1 to S4, which are as follows: S1: collecting and preprocessing the wheel hub image, dividing the preprocessed wheel hub image into a plurality of blocks, obtaining wheel hub feature quantities of the blocks, and the wheel hub feature quantities characterize abnormalities of texture features within the blocks.

[0026] On this basis, since the grayscale value of the area where the wheel hub surface is dirty is low and the dirt is random, the grayscale value of the pixel points in the dirty area is relatively chaotic. Therefore, the wheel hub feature value of each block is obtained based on the grayscale mean and variance of the pixel points in each area to indicate the possibility of dirt influence in the block. The specific analysis is as follows: The center point of the preprocessed wheel image is obtained, and the image is divided into blocks according to the preset size of the center point. The variance and the sum of the grayscale values ​​of the pixels in each block are calculated, and the ratio of the variance of the grayscale value to the sum of the grayscale values ​​is used as the wheel feature.

[0027] That is to say, since the texture of the wheel hub is centrally symmetrical, when dividing the image into blocks, the center point of the wheel hub is used as the symmetry point and the blocks are divided into 9×9 blocks.

[0028] Specifically, the wheel hub characteristic quantity satisfies the following relationship: ; In the formula, Indicates The wheel hub feature quantity of each block, Indicates In the block The gray value of a pixel, Indicates The gray value variance of all pixels in a block is Indicates the number of pixels in the block, Represents the normalization function.

[0029] It should be noted that when the gray value sum of all pixels in a block is smaller and the gray value variance of all pixels in a block is larger, the wheel hub feature value of the block is larger, and the possibility of dirt in the block is greater. The wheel hub feature value of the pixel in the block is the wheel hub feature value of the block.

[0030] In addition, in another feasible embodiment, the wheel hub feature quantity of the block is obtained by calculating the image entropy in the block, and the specific steps are as follows: Traverse the probability of gray level occurrence of each pixel in the block; ; In the formula, Indicates The wheel hub feature quantity of each block, Indicates The gray level in each block is The probability of occurrence, Indicates The number of gray levels in a block, Represents the base 2 logarithmic function.

[0031] That is, the wheel feature quantity The higher the value, the more complex the texture in the block and the greater the amount of information; The lower the entropy value, the simpler the texture in the block and the smaller the amount of information. Dirt or wear on the wheel surface may increase the texture information, thereby increasing the entropy value. By monitoring the change in the entropy value, changes in the condition of the wheel surface can be discovered in time.

[0032] On this basis, since not all pixels in a block are necessarily dirty pixels, and the grayscale conditions of pixels in the area affected by dirt are also different, the degree of feature deviation is then obtained based on the correlation of pixels in the block. Because when there is no dirt, the grayscale states of each pixel are similar, and the similarity of the neighboring pixels of the pixel is the highest. When there is dirt, the dirt will destroy the approximate features of the pixel. Because there is a certain texture on the wheel hub, when there is no dirt, the more similar the gradient values ​​of the pixels in the block, the closer the pixel positions, and the more similar the corresponding texture features.

[0033] S2: Calculate the gradient difference and position distance between each pixel and all pixels in the block and between each pixel in the block and pixels in the neighborhood, so as to obtain the relevant sequence of the block and the approximate region sequence of each pixel in the block.

[0034] That is to say, the pixel neighborhood is to take any pixel in the block as the target pixel, obtain the 8 neighboring pixels of the target pixel, and mark the area consisting of the target pixel and the 8 neighboring pixels as the approximate area of ​​the target pixel. In the following analysis, the pixels in the neighborhood are the 8 neighboring pixels.

[0035] The process of obtaining the relevant sequence of the blocks includes the following steps: Taking any block as the target block, any pixel as the target pixel, and the first pixel in the target block as the starting point, the absolute value of the gradient difference and the position distance between the target pixel and all other pixels in the block are calculated in sequence, and the product of the absolute value of the gradient difference and the position distance is taken as the approximate correlation value of the target pixel; The pixel point corresponding to the minimum approximate correlation value between the target pixel point is selected as the second pixel point, and this step is repeated to obtain the correlation sequence of the target block.

[0036] The process of obtaining the approximate region sequence of each pixel in the block includes the following steps: Taking any block as the target block, any pixel as the target pixel, and the first pixel in the target block as the starting point, the absolute value of the gradient difference and the position distance between the target pixel and all other pixels in the neighborhood are calculated in sequence, and the product of the absolute value of the gradient difference and the position distance is taken as the approximate correlation value of the target pixel; The pixel corresponding to the smallest approximate correlation value with the target pixel is selected as the second pixel, and this step is repeated to obtain an approximate region sequence of the target pixel.

[0037] S3: According to the gradient difference between the correlation sequence and the approximate region sequence and the hub feature quantity, the correlation feature of each pixel is obtained, and the degree of feature deviation is obtained based on the correlation features of adjacent pixels.

[0038] Taking any block as the target block and any pixel point as the target pixel point, the gradient value and gradient angle between the target pixel point in the target block and other pixels in the neighborhood are calculated, and normalized. The hub feature of the target block is used as the weight of the sum of the normalized gradient values ​​and gradient angles of the target pixel point in the block and other pixels in the neighborhood, and the relevant feature values ​​of the target pixel point in the target block and other pixels in the neighborhood are obtained.

[0039] Specifically, the relevant eigenvalues ​​satisfy the following relationship: ; In the formula, Indicates In the block The first pixel in the approximate region sequence The relevant feature value of pixels, Indicates In the block The first pixel in the approximate region sequence The gradient value of a pixel, Indicates In the block The first pixel in the approximate region sequence The gradient angle of each pixel, Indicates In the block The first pixel in the approximate region sequence The pixel points correspond to the wheel feature quantity of the block, Represents the normalization function.

[0040] It should be noted that the gradient value Usually indicates the degree of change in the gray value of the pixel in the image, the gradient angle It provides the directional information of the grayscale change of the pixel point, which is used for applications such as image texture analysis, feature extraction and image segmentation. Especially in wheel image detection, it helps to identify different texture features and possible defects on the wheel surface.

[0041] Taking any block as the target block and any pixel as the target pixel, calculate the absolute value cumulative sum of the relevant features of each pixel in the approximate region sequence of the target pixel in the target block and the absolute value cumulative sum of the relevant feature differences between the two adjacent pixels in the target pixel in the relevant sequence corresponding to the approximate region sequence of the target pixel in the target block, and take the absolute value cumulative sum as the feature deviation degree of the target pixel.

[0042] Specifically, the degree of characteristic deviation satisfies the following polynomial: ; In the formula, Indicates In the block The characteristic deviation degree of each pixel point, Indicates In the block The first pixel in the approximate region sequence The relevant features of pixels, and Indicates In the block The pixel at The first The relevant features of pixels, Represents the number of pixels in the approximate region sequence.

[0043] On this basis, in the above formula, the calculation result is the approximation of the pixel points in each block of the wheel image and the similar pixel points, the degree of feature deviation The larger the value, the greater the possibility of dirt being present. It reflects the deviation between the two corresponding pixels. The larger the value, the greater the possibility of dirtiness.

[0044] S4: Calculate the wheel hub defect degree according to the feature deviation degree, perform grayscale enhancement on the wheel hub grayscale image according to the wheel hub defect degree to obtain an enhanced image, and perform dirty area detection based on the enhanced image.

[0045] Specifically, the hub defect degree satisfies the following relationship: ; In the formula, Indicates In the block The wheel hub defect degree of pixels, and Indicates In the block pixels and the centrally symmetrical The pixel points correspond to the first The characteristic deviation degree of each pixel point, and Indicates In the block pixels and the centrally symmetrical The pixel points correspond to the first The position number of the pixel in the approximate region sequence, represents the normalization function, Represents the number of pixels in the approximate region sequence.

[0046] The new gray value of each pixel after enhancement is obtained according to the product of the wheel hub defect and the original gray value of the pixel. The contrast between the dirty area and other areas of the enhanced image is adjusted, and the enhanced image is segmented to obtain the dirty area.

[0047] The accurate dirty area is obtained by Otsu's threshold segmentation. This technology is well known to those skilled in the art and will not be described in detail.

[0048] At this point, the method of the present invention ends here.

[0049] The present invention also provides an automobile parts production detection system based on machine learning. Figure 2 As shown, the system includes a processor and a memory, the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a method for automobile parts production detection based on machine learning according to the first aspect of the present invention is implemented.

[0050] The system also includes other components familiar to those skilled in the art, such as a communication bus and a communication interface. The configuration and functions of these components are known in the art and will not be described in detail here.

[0051] In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus or device. For example, a computer-readable storage medium may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of a device or accessible or connectable to a device. Any application or module described in the present invention may be implemented using computer-readable / executable instructions that may be stored or otherwise maintained by such a computer-readable medium.

[0052] In the description of this specification, "plurality" or "several" means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.

[0053] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.

Claims

1. A method for automobile parts production detection based on machine learning, characterized in that: include: Collecting and preprocessing the wheel hub image, dividing the preprocessed wheel hub image into a plurality of blocks, and obtaining wheel hub feature quantities of the blocks, wherein the wheel hub feature quantities represent abnormalities of texture features within the blocks; The gradient difference and position distance between each pixel point and all pixels in the block and between each pixel point in the neighborhood are calculated respectively, so as to obtain the related sequence of the block and the approximate region sequence of each pixel point in the block; According to the gradient difference between the correlation sequence and the approximate region sequence and the wheel feature quantity, the correlation feature of each pixel is obtained, and the degree of feature deviation is obtained based on the correlation features of adjacent pixels; The wheel hub defect degree is calculated according to the characteristic deviation degree, , where Indicates In the block The wheel hub defect degree of pixels, and Indicates In the block pixels and the centrally symmetrical The pixel points correspond to the first The characteristic deviation degree of each pixel point, and Indicates In the block pixels and the centrally symmetrical The pixel points correspond to the first The position number of the pixel in the approximate region sequence, represents the normalization function, Represents the number of pixels in the approximate region sequence; The grayscale image of the hub is enhanced according to the hub defect degree to obtain an enhanced image, and the dirty area is detected according to the enhanced image.

2. The method for automobile parts production detection based on machine learning according to claim 1, characterized in that: Get the wheel hub feature values ​​of the blocks, including: The center point of the preprocessed wheel hub image is obtained, and the image is divided into blocks according to the preset size of the center point. The variance of the grayscale value and the sum of the grayscale values ​​of the pixels in each block are calculated, and the ratio of the variance of the grayscale value to the sum of the grayscale values ​​is used as the wheel hub feature of the block.

3. The method for automobile parts production detection based on machine learning according to claim 1, characterized in that: Get the relevant sequence of blocks, including: Taking any block as the target block, any pixel as the target pixel, and the first pixel in the target block as the starting point, the absolute value of the gradient difference and the position distance between the target pixel and all other pixels in the block are calculated in sequence, and the product of the absolute value of the gradient difference and the position distance is used as the approximate correlation value of the target pixel; The pixel point corresponding to the minimum approximate correlation value between the target pixel point is selected as the second pixel point, and this step is repeated to obtain the correlation sequence of the target block.

4. The method for automobile parts production detection based on machine learning according to claim 1, characterized in that: Get the approximate region sequence of each pixel in the block, including: Taking any block as the target block, any pixel as the target pixel, and the first pixel in the target block as the starting point, the absolute value of the gradient difference and the position distance between the target pixel and all other pixels in the neighborhood are calculated in sequence, and the product of the absolute value of the gradient difference and the position distance is used as the approximate correlation value of the target pixel; The pixel corresponding to the smallest approximate correlation value with the target pixel is selected as the second pixel, and this step is repeated to obtain an approximate region sequence of the target pixel.

5. The method for automobile parts production detection based on machine learning according to claim 1, characterized in that: Get the relevant features of each pixel, including: Taking any block as the target block and any pixel point as the target pixel point, the gradient value and gradient angle between the target pixel point in the target block and other pixels in the neighborhood are calculated, and normalized. The hub feature of the target block is used as the weight of the sum of the normalized gradient values ​​and gradient angles of the target pixel point in the block and other pixels in the neighborhood, and the relevant feature values ​​of the target pixel point in the target block and other pixels in the neighborhood are obtained.

6. The method for automobile parts production detection based on machine learning according to claim 1, characterized in that: The degree of feature deviation is obtained based on the related features of adjacent pixels, including: Taking any block as the target block and any pixel point as the target pixel point, calculate the absolute value cumulative sum of the relevant features of each pixel point in the approximate region sequence of the target pixel point in the target block and the absolute value cumulative sum of the relevant feature differences between the two adjacent pixel points in the target pixel point in the relevant sequence and the pixel points in the approximate region sequence corresponding to the target pixel point in the target block, and use the absolute value cumulative sum as the feature deviation degree of the target pixel point.

7. The method for automobile parts production detection based on machine learning according to claim 1, characterized in that: According to the wheel hub defect degree, the gray value of each pixel in the wheel hub gray image is enhanced to obtain an enhanced image, including: A new grayscale value of each pixel after enhancement is obtained according to the product of the hub defect and the original grayscale value of the pixel, the contrast between the dirty area and other areas of the enhanced image is adjusted, and the enhanced image is segmented to obtain the dirty area.

8. An automobile parts production detection system based on machine learning, characterized in that: include: A processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the automobile parts production detection method based on machine learning according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Water pump impeller appearance defect detection method and system based on image processing

    CN117437232A

  • Oil seal quality detection method based on image processing

    CN118396999A

  • Image processing device and program

    JP2015131057A

Cited By

  • Cable fire resistance testing method and system based on machine vision

    CN119251224A

  • Visual high-precision detection method and detection device for transporting semitrailer axle

    CN119273678A

  • Method and system for detecting position deviation of electrical pin, and electronic equipment

    CN119437046A