A visual inspection method for injection mold polishing quality

By analyzing the continuous and roughness of the grayscale extension of the injection mold grayscale image, combining the degree of wear marks and the significance of wear marks in the area, the problem of wear mark detection is solved, and the production quality and grinding efficiency of the injection mold are improved.

CN118552536BActive Publication Date: 2024-12-03ZHANGJIAGANG RUIXIN PRECISION MOULD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411018055.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-12-03
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

During the grinding process of injection molds, there are cases where the wear marks caused by uneven pressures acting on the mold surface of the abrasive material cannot be detected, which reduces the production quality and grinding efficiency of the mold.

Method used

By acquiring the grayscale image of the injection mold, analyzing the continuous and roughness of the grayscale extension in the local mold area, combining the degree of wear marks and the significance of wear marks in the area, adaptive combination and detection are carried out to improve the identification accuracy of wear mark defects.

Benefits of technology

The detection accuracy of wear mark defects is improved, the similar characteristics between wear mark defects and normal surfaces are reduced, the distinctive characteristics of wear mark defects are enhanced, and the production quality and grinding efficiency of injection molds are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552536B_ABST
    Figure CN118552536B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of injection molded parts measurement technology, and specifically to a method for visually inspecting the polishing quality of an injection mold, comprising: comparing the difference in grayscale stable changes between different directions in the same local mold area to obtain the grayscale extension continuity; analyzing the extreme grayscale changes in the local mold area, and combining the grayscale extension continuity to obtain the roughness; obtaining the regional wear scar degree according to the grayscale extension continuity and the roughness; obtaining the initial merged wear scar area according to the regional wear scar degree; comparing the difference in regional wear scar degree between the initial merged wear scar area and the surrounding local mold area, as well as the change in distribution direction, to obtain the wear scar significance; and visually inspecting the grayscale image of the injection mold according to the wear scar significance. The present invention improves the accuracy of wear scar detection and improves the production quality of the injection mold.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of injection molded parts measurement, and in particular to a method for visually inspecting the polishing quality of an injection mold. Background Art

[0002] In the process of polishing the injection mold, in order to ensure that the surface finish and precision of the mold meet the polishing inspection requirements, the existing technology usually uses a high-resolution camera to capture the image of the injection mold surface, uses image processing technology to analyze the polishing quality of the mold, and automatically identifies surface defects. The system will evaluate the test results according to the preset quality standards, and promptly feedback to the operator or directly connect to the production line control system to adjust the polishing process parameters in time or eliminate unqualified products, thereby ensuring the production quality of the injection mold and improving production efficiency.

[0003] However, during the grinding process of the injection mold, the pressure of the abrasive on the surface of the injection mold is not uniform, which may cause linear marks, i.e. wear marks, to form on the surface of the injection mold during grinding. However, since these wear marks have certain similarities with the surface of the injection mold, they cannot be detected, which reduces the production quality of the injection mold and the grinding efficiency of the injection mold. Summary of the invention

[0004] The present invention provides a method for visually inspecting the polishing quality of an injection mold to solve the existing problem that wear marks generated by uneven pressure of an abrasive acting on the surface of an injection mold cannot be detected due to certain similarities between the surface and the surface of the injection mold, thereby reducing the production quality of the injection mold and the polishing efficiency of the injection mold.

[0005] A method for visually inspecting the polishing quality of an injection mold of the present invention adopts the following technical solution:

[0006] The following steps are involved:

[0007] Acquire a grayscale image of an injection mold, wherein the grayscale image of the injection mold includes a plurality of local mold areas;

[0008] Compare the differences in grayscale stability changes between different directions in the same local mold area to obtain the grayscale extension continuity of each pixel; analyze the extreme changes in grayscale in the local mold area, and combine the grayscale extension continuity to obtain the roughness of each local mold area;

[0009] Analyze the regional change difference between the local mold area and the ideal area, and combine the grayscale extension continuity and roughness to obtain the regional wear scar degree of each local mold area; according to the regional wear scar degree, adaptively merge different local mold areas to obtain several initial merged wear scar areas; compare the difference in regional wear scar degree between the initial merged wear scar area and the surrounding local mold areas, as well as the change in distribution direction, to obtain the wear scar significance of each initial merged wear scar area;

[0010] According to the degree of wear mark significance, the grayscale image of the injection mold is visually inspected for quality.

[0011] Preferably, the method for obtaining the grayscale extension continuity is:

[0012] Take any pixel as the target pixel and obtain the extension directions of several eight-neighborhoods of the target pixel;

[0013] Analyze the grayscale change stability of the target pixel in each eight-neighborhood extension direction, and obtain the grayscale stability value of the target pixel in each eight-neighborhood extension direction;

[0014] By comparing the differences in the grayscale stability values ​​of the target pixel in different eight-neighborhood extension directions, the grayscale extension continuity of the target pixel is obtained.

[0015] Preferably, the method for acquiring the extension direction of the eight neighborhoods is:

[0016] In the eight-neighborhood of the target pixel, several eight-neighborhood extension directions of the target pixel are obtained according to the directional distribution of the target pixel and other pixels.

[0017] Preferably, the method for obtaining the roughness is:

[0018] For any local mold area, the maximum difference between the grayscale values ​​of different pixels in the local mold area is analyzed to obtain the grayscale extreme change value of the local mold area;

[0019] The roughness of each local mold area is obtained according to the grayscale extreme change value and the grayscale extension continuity; the roughness is negatively correlated with the grayscale extension continuity.

[0020] Preferably, the method for obtaining the degree of wear scar in the region is:

[0021] For any local mold area, the change of the regional morphology between the local mold area and the ideal area is analyzed to obtain the morphological similarity of the defective area of ​​the local mold area;

[0022] According to the grayscale extension continuity, roughness, and defect area morphology similarity, the regional wear scar degree of the local mold area is obtained; the regional wear scar degree is negatively correlated with the grayscale extension continuity and negatively correlated with the defect area morphology similarity.

[0023] Preferably, the method for obtaining the morphological similarity of the defect area is:

[0024] By comparing the area difference between the local mold area and the ideal area, the morphological similarity of the defect area in the local mold area is obtained.

[0025] Preferably, the method for obtaining the initial merged wear scar area is:

[0026] An arbitrary local mold area is taken as a target local mold area; in the neighborhood around the target local mold area, the size of the wear scar between the target local mold area and the adjacent local mold areas is analyzed to screen out several local mold areas to be merged; the target local mold area is merged with the local mold area to be merged to obtain an initial merged wear scar area.

[0027] Preferably, the method for obtaining the wear mark significance is:

[0028] For any initial merged wear scar area, within the surrounding neighborhood of the initial merged wear scar area, the change of the main distribution direction between the initial merged wear scar area and other local mold areas is analyzed to obtain the regional neighborhood direction change degree of the initial merged wear scar area;

[0029] In the surrounding neighborhood of the initial merged wear scar area, the difference in regional wear scar degree between the initial merged wear scar area and other local mold areas is compared to obtain the difference degree of wear scar in the neighborhood of the initial merged wear scar area;

[0030] According to the change degree of the neighborhood direction and the difference degree of the neighborhood wear scars, the wear scar significance of the initial merged wear scar area is obtained.

[0031] Preferably, the method for obtaining the degree of change in the direction of the regional neighborhood is:

[0032] Obtain the main extension direction degree of each local mold area;

[0033] Combining the main extension direction degrees of all local mold areas in the same initial merged wear scar area, obtaining the main extension direction degree of each initial merged wear scar area;

[0034] By comparing the difference in the main extension direction degrees between the initial merged wear scar area and other local mold areas, the regional neighborhood direction change degree of the initial merged wear scar area is obtained.

[0035] Preferably, the method for obtaining the degree of the main extension direction is:

[0036] For any local mold area, the angle between the length of the minimum circumscribed rectangle of the local mold area and the horizontal line is analyzed to obtain the main extension direction degree of the local mold area.

[0037] The beneficial effects of the technical solution of the present invention are: comparing the difference in grayscale stable changes between different directions in the same local mold area to obtain the grayscale extension continuity; wherein the grayscale extension continuity degree more clearly reflects the continuous texture distribution between pixel points; analyzing the extreme grayscale changes in the local mold area, and combining the grayscale extension continuity degree to obtain the roughness; wherein the roughness is used to describe the roughness of the injection mold surface after polishing, reducing the possibility of wear mark defects not being identified; analyzing the regional change difference between the local mold area and the ideal area, and combining the grayscale extension continuity degree with the roughness to obtain the regional wear mark degree; wherein the regional wear mark degree is used to describe the degree to which the local mold area as a whole belongs to the wear mark defect, improving the local mold The matching accuracy of the mold area and the wear scar defect morphology is improved; the initial merged wear scar area is obtained according to the regional wear scar degree, and the difference in regional wear scar degree between the initial merged wear scar area and the surrounding local mold area, as well as the change in distribution direction, is compared to obtain the wear scar significance; wherein the wear scar significance is used to describe the obvious degree of wear scar characteristics in the initial merged wear scar area, and enhances the distinguishing features of wear scar defects compared to other normal areas; the present invention analyzes the distinguishing features between the injection mold surface and the wear scar defects, reduces the similar features between the wear scar defects and the normal surface of the injection mold, increases the distinguishing features between the wear scar defects and the normal surface of the injection mold, thereby improving the accuracy of wear scar detection, improving the production quality of the injection mold, and improving the grinding efficiency of the injection mold. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] 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.

[0039] Figure 1 The present invention is a flowchart of the steps of a method for visually inspecting the polishing quality of an injection mold. DETAILED DESCRIPTION

[0040] 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 specific implementation method, structure, features and effects of a visual inspection method for the polishing quality of an injection mold proposed according to the present invention 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.

[0041] 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.

[0042] The specific scheme of the method for visual inspection of injection mold polishing quality provided by the present invention is described in detail below with reference to the accompanying drawings.

[0043] See also Figure 1 , which shows a flowchart of a method for visually inspecting the polishing quality of an injection mold provided by an embodiment of the present invention, the method comprising the following steps:

[0044] Step S001: Acquire a grayscale image of an injection mold.

[0045] It should be noted that during the grinding process of the injection mold, the pressure of the abrasive on the surface of the injection mold is not uniform, which may cause linear marks, i.e. wear marks, to form on the surface of the injection mold during grinding. However, since these wear marks have certain similarities with the surface of the injection mold, they cannot be detected, which reduces the production quality of the injection mold and the grinding efficiency of the injection mold.

[0046] In a specific implementation of an embodiment of the present invention, a method for acquiring a grayscale image of an injection mold and a local mold area is as follows: an industrial camera is used to vertically shoot an image of the injection mold after polishing, and the image is grayscaled to obtain a number of grayscale images of the injection mold; each grayscale image of the injection mold is superpixel segmented to obtain a number of superpixel blocks, and each superpixel block is used as a local mold area.

[0047] It is particularly noted that grayscale processing is a well-known technology, and the process of performing superpixel segmentation on an image is a well-known content of the superpixel segmentation algorithm, which will not be described in detail in this embodiment.

[0048] So far, the grayscale image of the injection mold is obtained through the above method.

[0049] Step S002: Compare the differences in grayscale stability changes between different directions in the same local mold area to obtain the grayscale extension continuity of each pixel; analyze the extreme changes in grayscale in the local mold area, and combine the grayscale extension continuity to obtain the roughness of each local mold area.

[0050] It should be noted that, for any local mold area, if there is no wear defect inside the local mold area, then the local mold area only contains the polished injection mold, and the grayscale in the area changes stably as a whole; if there is a wear defect inside the local mold area, then the wear defect will destroy the stability of the overall grayscale change in the area; therefore, the difference in grayscale stability changes between different directions within the same local mold area can be compared to obtain the grayscale extension continuity of each pixel; the greater the grayscale extension continuity, the worse the consistency of the grayscale change between the pixel and the surrounding area, reflecting that the pixel is more likely to be a wear defect.

[0051] It should be further explained that, since the grayscale changes on the surface of a normal injection mold after polishing are relatively uniform and the overall fluctuation is small, the larger the maximum range of grayscale changes within the local mold area, the more likely it is that there will be an abnormal image area, i.e., a wear mark defect, in the local mold area; therefore, the extreme changes in grayscale within the local mold area can be analyzed, and the degree of grayscale extension continuity can be combined to obtain the roughness of each local mold area; wherein, if the roughness is greater, it means that the injection mold surface in the local mold area is rougher, reflecting that the possibility of a wear mark defect in the local mold area is greater.

[0052] Preferably, in some implementations of the present invention, the method for obtaining the grayscale extension continuity is: taking any pixel point as the target pixel point, obtaining several eight-neighborhood extension directions of the target pixel point; analyzing the grayscale change stability of the target pixel point in each eight-neighborhood extension direction, obtaining the grayscale stability value of the target pixel point in each eight-neighborhood extension direction; comparing the difference in grayscale stability values ​​of the target pixel point in different eight-neighborhood extension directions, obtaining the grayscale extension continuity of the target pixel point. The specific process is:

[0053] 1. Get the extension direction of the eight-neighborhood.

[0054] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the eight-neighborhood extension direction is: within the eight-neighborhood of the target pixel, according to the directional distribution of the target pixel and other pixels, obtain several eight-neighborhood extension directions of the target pixel. The specific process is as follows:

[0055] All other pixels in the eight neighborhoods of the target pixel are taken as target neighborhood pixels; the direction from the target pixel to each target neighborhood pixel is taken as the extension direction of the eight neighborhoods.

[0056] 2. Get the grayscale stable value.

[0057] Taking any eight-neighborhood extension direction of the target pixel as an example, the inversely proportional normalized value of the variance of the grayscale values ​​of all pixels of the target pixel in the eight-neighborhood extension direction is used as the grayscale stability value of the target pixel in the eight-neighborhood extension direction.

[0058] It is particularly noted that this embodiment adopts Model to present inverse proportional relationship and normalization, As the input of the model, the implementer can choose the inverse proportional function and the normalization function according to the actual situation.

[0059] 3. Obtain the grayscale extension continuity of the target pixel.

[0060] As an example, the grayscale extension continuity can be calculated by the following formula:

[0061]

[0062] In the formula, Indicates the degree of grayscale extension continuity of the target pixel; Represents the average of the grayscale stable values ​​of the target pixel in all eight neighborhood extension directions; Represents the number of extension directions of all eight neighborhoods of the target pixel; Indicates that the target pixel is The extension direction of the eight neighborhoods is The absolute value of the difference between the grayscale stability values ​​in the extension directions of the eight neighborhoods.

[0063] It should be noted that, if the grayscale extension continuity of the target pixel point is greater, it means that the consistency of the grayscale change between the target pixel point and the pixels in the surrounding area is worse, which reflects that the target pixel point is more likely to be a wear mark defect.

[0064] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the roughness is: for any local mold area, the maximum difference between the grayscale values ​​of different pixels in the local mold area is analyzed to obtain the grayscale extreme change value of the local mold area; according to the grayscale extreme change value and the grayscale extension continuity, the roughness of each local mold area is obtained; the roughness is negatively correlated with the grayscale extension continuity. The specific process is as follows:

[0065] 1. Get the grayscale extreme change value.

[0066] In the local mold area, the pixel with the largest grayscale value is taken as the maximum grayscale pixel, and the pixel with the smallest grayscale value is taken as the minimum grayscale pixel; the absolute value of the difference in grayscale value between the maximum grayscale pixel and the minimum grayscale pixel is taken as the grayscale extreme change value of the local mold area.

[0067] 2. Get the roughness.

[0068] The average of the grayscale extension continuity of all pixels in the local mold area is used as the regional grayscale extension continuity of the local mold area; the ratio between the grayscale extreme change value and the regional grayscale extension continuity of the local mold area is used as the roughness of the local mold area.

[0069] It should be noted that, if the roughness is greater, it means that the surface of the injection mold in the local mold area is rougher, which reflects that the possibility of the local mold area containing wear marks defects is greater.

[0070] So far, the roughness of each local mold area is obtained through the above method.

[0071] Step S003: Analyze the regional change difference between the local mold area and the ideal area, and combine the grayscale extension continuity and roughness to obtain the regional wear scar degree of each local mold area; according to the regional wear scar degree, adaptively merge different local mold areas to obtain several initial merged wear scar areas; compare the difference in regional wear scar degree between the initial merged wear scar area and the surrounding local mold areas, as well as the change in distribution direction, to obtain the wear scar significance of each initial merged wear scar area.

[0072] It should be noted that since the injection mold surface after grinding is not completely smooth, although different injection mold surfaces have a certain degree of smoothness, there are still certain differences between them, resulting in different local mold areas. The image information represented is also affected by the surrounding area. There are differences; therefore, the regional change difference between the local mold area and the ideal area can be analyzed, and the grayscale extension continuity and roughness can be combined to obtain the regional wear scar degree of each local mold area; according to the regional wear scar degree, different local mold areas are adaptively merged to obtain several initial merged wear scar areas; the difference in regional wear scar degree between the initial merged wear scar area and the surrounding local mold areas, as well as the change in distribution direction, are compared to obtain the wear scar significance of each initial merged wear scar area. Among them, if the regional wear scar degree is greater, it means that the local mold area is more similar to the wear scar area under the ideal situation, reflecting that the local mold area is more likely to be a scar defect; among them, if the wear scar significance is greater, it means that the characteristics of the wear scar defect in the local mold area are more obvious, reflecting that the quality of the injection mold surface after grinding in the local mold area is worse.

[0073] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the regional wear scar degree is: for any local mold area, analyzing the change in regional morphology between the local mold area and the ideal area, and obtaining the defective regional morphological similarity of the local mold area; obtaining the regional wear scar degree of the local mold area according to the grayscale extension continuity, roughness, and defective regional morphological similarity; the regional wear scar degree is negatively correlated with the grayscale extension continuity, and negatively correlated with the defective regional morphological similarity. The specific process is:

[0074] 1. Obtain the morphological similarity of the defect area.

[0075] It should be noted that the wear scar area on the surface of the injection mold usually exists in the shape of a rectangle. Therefore, under ideal circumstances, the ideal area shape of the wear scar area is a rectangle. Therefore, the change in the regional morphology between the local mold area and the ideal area is analyzed to obtain the morphological similarity of the defective area of ​​the local mold area. Among them, the greater the morphological similarity of the defective area, the less similar the regional shape of the local mold area is to the wear scar area under ideal circumstances.

[0076] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the defect region morphological similarity is: comparing the area difference between the local mold region and the ideal region to obtain the defect region morphological similarity of the local mold region. The specific process is as follows:

[0077] The minimum bounding rectangle of the local mold area is obtained; and the absolute value of the difference between the minimum bounding rectangle and the area of ​​the local mold area is used as the morphological similarity of the defect area of ​​the local mold area.

[0078] 2. Obtain the degree of regional wear.

[0079] The product of the defect area morphology similarity and the regional grayscale extension continuity of the local mold area is taken as the mold smoothness of the local mold area; the normalized value of the ratio between the roughness of the local mold area and the mold smoothness is taken as the regional wear scar degree of the local mold area.

[0080] It is particularly noted that this embodiment uses a linear normalization function as an example for normalization processing, wherein the normalization function may be determined according to specific implementation conditions.

[0081] It should be noted that if the degree of regional wear scar is greater, it means that the local mold area is more similar to the wear scar area under ideal conditions, which reflects that the local mold area is more likely to be a scar defect.

[0082] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the initial merged wear scar region is: taking any local mold region as the target local mold region; analyzing the size of the wear scar between the target local mold region and the adjacent local mold regions in the neighborhood around the target local mold region, and selecting a number of local mold regions to be merged; merging the target local mold region with the local mold region to be merged to obtain the initial merged wear scar region. The specific process is as follows:

[0083] Preset a regional wear threshold , in the eight neighborhoods centered on the target local mold area, the wear scar degree of the area greater than The local mold area of ​​the target local mold area is used as the local mold area to be merged; all the local mold areas to be merged of the target local mold area are obtained; the target local mold area is merged with all the local mold areas to be merged, and the merged image area is used as the initial merged wear mark area. This example is described as an example, and this embodiment is not specifically limited. It may depend on the specific implementation situation.

[0084] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the wear scar significance is as follows: for any initial merged wear scar area, within the surrounding neighborhood of the initial merged wear scar area, analyze the changes in the main distribution direction between the initial merged wear scar area and other local mold areas to obtain the regional neighborhood direction change degree of the initial merged wear scar area; within the surrounding neighborhood of the initial merged wear scar area, compare the difference in regional wear scar degree between the initial merged wear scar area and other local mold areas to obtain the neighborhood wear scar difference degree of the initial merged wear scar area; obtain the wear scar significance degree of the initial merged wear scar area according to the regional neighborhood direction change degree and the neighborhood wear scar difference degree. The specific process is:

[0085] 1. Get the degree of change in the direction of the regional neighborhood.

[0086] It should be noted that, under normal circumstances, since the wear scar area is usually formed by the friction of the abrasive along a certain direction, the wear scar area itself will be distributed and extended along a certain direction, and the merged initial merged wear scar area is more likely to have a complete wear scar defect than other areas; therefore, the changes in the main distribution directions between the initial merged wear scar area and other local mold areas can be analyzed within the surrounding neighborhood of the initial merged wear scar area to obtain the regional neighborhood direction change degree of the initial merged wear scar area; wherein, the greater the regional neighborhood direction change degree, it means that the extension direction of the initial merged wear scar area is more easily affected by the external area.

[0087] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the degree of change in the direction of the regional neighborhood is: obtaining the degree of the main extension direction of each local mold area; combining the degrees of the main extension directions of all local mold areas in the same initial merged wear scar area to obtain the degree of the main extension direction of each initial merged wear scar area; comparing the difference in the degrees of the main extension directions between the initial merged wear scar area and other local mold areas to obtain the degree of change in the direction of the regional neighborhood of the initial merged wear scar area. The specific process is:

[0088] 1.1 Obtain the main extension direction of the local mold area.

[0089] Preferably, in some implementations of the present invention, the method for obtaining the degree of the main extension direction is: for any local mold area, the degree of the angle between the length of the minimum circumscribed rectangle of the local mold area and the horizontal line is analyzed to obtain the degree of the main extension direction of the local mold area. The specific process is as follows:

[0090] Taking any long side of the minimum circumscribed rectangle of the local mold area as an example, the angle between the long side and the horizontal line is taken as the main extension direction degree of the local mold area.

[0091] 1.2. Obtain the main extension direction of the initial merged wear scar area.

[0092] Taking any initial merged wear scar region as an example, the average of the main extension direction degrees of all local mold regions in the initial merged wear scar region is taken as the main extension direction degree of the initial merged wear scar region.

[0093] Furthermore, taking any local mold area within the eight-neighborhood centered on the initial merged wear scar area as an example; the absolute value of the difference in the main extension direction degrees between the initial merged wear scar area and the local mold area is taken as the comparative directional degree change value between the initial merged wear scar area and the local mold area; within the eight-neighborhood centered on the initial merged wear scar area, the average of the comparative directional degree change values ​​between the initial merged wear scar area and all local mold areas is taken as the regional neighborhood directional change degree of the initial merged wear scar area.

[0094] 2. Obtain the degree of difference in neighborhood wear scars.

[0095] Referring to the method of obtaining the regional neighborhood direction variation degree of the initial merged wear scar area, the main extension direction degree is replaced by the regional wear scar degree, and the obtained result is used as the neighborhood wear scar difference degree of the initial merged wear scar area.

[0096] 3. Obtain the significance of wear marks.

[0097] The product of the regional neighborhood direction change degree of the initial merged wear scar area and the degree of neighborhood wear scar difference is taken as the wear scar feature obviousness degree of the initial merged wear scar area; the normalized value of the ratio between the regional wear scar degree and the wear scar feature obviousness degree of the initial merged wear scar area is taken as the wear scar significance degree of the initial merged wear scar area.

[0098] It should be noted that if the wear mark is more significant, it means that the characteristics of the wear mark defects in the local mold area are more obvious, which reflects that the quality of the injection mold surface after grinding in the local mold area is worse.

[0099] So far, the wear scar significance of each initial merged wear scar area is obtained by the above method.

[0100] Step S004: Perform visual quality inspection on the grayscale image of the injection mold according to the degree of wear mark significance.

[0101] In a specific implementation of the embodiment of the present invention, the process of visual quality inspection is as follows: a threshold value of the wear mark significance is preset. , the wear scar is more significant than The initial merged wear mark area is used as the injection mold wear mark area; if the injection mold grayscale image has an injection mold wear mark area, the polished injection mold corresponding to the injection mold grayscale image is evaluated as an unqualified injection mold, and the injection mold wear mark area is re-polished; if the injection mold grayscale image does not have an injection mold wear mark area, the polished injection mold corresponding to the injection mold grayscale image is evaluated as a qualified injection mold.

[0102] At this point, this embodiment 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 visual inspection of injection mold polishing quality, characterized in that: The method comprises the following steps: Acquire a grayscale image of an injection mold, wherein the grayscale image of the injection mold includes a plurality of local mold areas; Compare the differences in grayscale stability changes between different directions in the same local mold area to obtain the grayscale extension continuity of each pixel; analyze the extreme changes in grayscale in the local mold area, and combine the grayscale extension continuity to obtain the roughness of each local mold area; Analyze the regional change difference between the local mold area and the ideal area, and combine the grayscale extension continuity and roughness to obtain the regional wear scar degree of each local mold area; according to the regional wear scar degree, adaptively merge different local mold areas to obtain several initial merged wear scar areas; compare the difference in regional wear scar degree between the initial merged wear scar area and the surrounding local mold areas, as well as the change in distribution direction, to obtain the wear scar significance of each initial merged wear scar area; Perform visual quality inspection on the grayscale image of the injection mold according to the degree of wear mark significance; The method for obtaining the grayscale extension continuity is: Take any pixel as the target pixel and obtain the extension directions of several eight-neighborhoods of the target pixel; Analyze the grayscale change stability of the target pixel in each eight-neighborhood extension direction, and obtain the grayscale stability value of the target pixel in each eight-neighborhood extension direction; Compare the differences in the grayscale stability values ​​of the target pixel in different eight-neighborhood extension directions to obtain the grayscale extension continuity of the target pixel; The calculation formula of grayscale extension continuity is: In the formula, Indicates the degree of grayscale extension continuity of the target pixel; Represents the average of the grayscale stable values ​​of the target pixel in all eight neighborhood extension directions; Represents the number of extension directions of all eight neighborhoods of the target pixel; Indicates that the target pixel is The extension direction of the eight neighborhoods is The absolute value of the difference between the grayscale stability values ​​in the extension directions of the eight neighborhoods; The method for obtaining the roughness is: For any local mold area, the maximum difference between the grayscale values ​​of different pixels in the local mold area is analyzed to obtain the grayscale extreme change value of the local mold area; According to the grayscale extreme change value and the grayscale extension continuity, the roughness of each local mold area is obtained; the roughness is negatively correlated with the grayscale extension continuity; The average value of the grayscale extension continuity of all pixels in the local mold area is used as the regional grayscale extension continuity of the local mold area; The ratio between the extreme grayscale change value of the local mold area and the grayscale extension continuity of the area is used as the roughness of the local mold area; The method for obtaining the degree of wear scar in the region is: For any local mold area, the change of the regional morphology between the local mold area and the ideal area is analyzed to obtain the morphological similarity of the defective area of ​​the local mold area; According to the grayscale extension continuity, the roughness, and the defect area morphology similarity, the regional wear scar degree of the local mold area is obtained; the regional wear scar degree is negatively correlated with the grayscale extension continuity and negatively correlated with the defect area morphology similarity; The product of the defect area morphology similarity of the local mold area and the degree of regional grayscale extension continuity is taken as the mold smoothness of the local mold area; The normalized value of the ratio between the roughness of the local mold area and the mold smoothness is used as the regional wear scar degree of the local mold area; The method for obtaining the wear scar significance is: For any initial merged wear scar area, within the surrounding neighborhood of the initial merged wear scar area, the change of the main distribution direction between the initial merged wear scar area and other local mold areas is analyzed to obtain the regional neighborhood direction change degree of the initial merged wear scar area; In the surrounding neighborhood of the initial merged wear scar area, the difference in regional wear scar degree between the initial merged wear scar area and other local mold areas is compared to obtain the difference degree of wear scar in the neighborhood of the initial merged wear scar area; According to the change degree of the neighborhood direction and the difference degree of the neighborhood wear scars, the wear scar significance of the initial merged wear scar area is obtained; The method for obtaining the degree of change of the direction of the regional neighborhood is: Obtain the main extension direction degree of each local mold area; Combining the main extension direction degrees of all local mold areas in the same initial merged wear scar area, obtaining the main extension direction degree of each initial merged wear scar area; Compare the difference in the main extension direction between the initial merged wear scar area and other local mold areas to obtain the regional neighborhood direction change degree of the initial merged wear scar area; The method for obtaining the degree of the main extension direction is: For any local mold area, the angle between the length of the minimum circumscribed rectangle of the local mold area and the horizontal line is analyzed to obtain the main extension direction of the local mold area; The product of the regional neighborhood direction change degree of the initial merged wear scar region and the degree of difference of the neighborhood wear scars is taken as the obvious degree of the wear scar characteristics of the initial merged wear scar region; The normalized value of the ratio between the regional wear scar degree and the wear scar feature prominence degree of the initial merged wear scar region is taken as the wear scar prominence degree of the initial merged wear scar region.

2. A method for visually inspecting the polishing quality of an injection mold according to claim 1, characterized in that: The method for obtaining the extension direction of the eight neighborhoods is: In the eight-neighborhood of the target pixel, several eight-neighborhood extension directions of the target pixel are obtained according to the directional distribution of the target pixel and other pixels.

3. A method for visually inspecting the polishing quality of an injection mold according to claim 1, characterized in that: The method for obtaining the morphological similarity of the defect area is: By comparing the area difference between the local mold area and the ideal area, the morphological similarity of the defect area in the local mold area is obtained.

4. A method for visually inspecting the polishing quality of an injection mold according to claim 1, characterized in that: The method for obtaining the initial merged wear scar area is: An arbitrary local mold area is taken as a target local mold area; in the neighborhood around the target local mold area, the size of the wear scar between the target local mold area and the adjacent local mold areas is analyzed to screen out several local mold areas to be merged; the target local mold area is merged with the local mold area to be merged to obtain an initial merged wear scar area.