A method for detecting corrosion resistance of watch parts
Calculating the corrosion coefficient of watch parts through image analysis solves the problem in the existing technology that it is difficult to detect the corrosion resistance of watch parts quickly and quantitatively, and improves the detection efficiency and quality.
Patent Information
- Application Number
- CN202411074156.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-08-07
AI Technical Summary
Existing anti-corrosion performance testing methods for watch parts cannot detect performance quickly and quantitatively, making it difficult for staff to control product quality in a timely manner.
By acquiring images of the surface of watch parts, the corrosion coefficient is calculated based on the preliminary corrosion area threshold and image area, the anti-corrosion performance value is obtained based on the acquisition time, and compared with the preset performance threshold to obtain the detection result.
It achieves rapid and quantitative testing of the corrosion resistance of watch parts, improves testing efficiency and quality, and helps staff control product quality in a timely manner.
Smart Images

Figure CN118608522B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of image analysis, and in particular to a method for detecting the corrosion resistance of watch parts and accessories. Background Art
[0002] With the rapid development of computer vision technology, visual inspection has been applied in various fields and industries, and visual inspection has a good detection effect on product performance. The corrosion resistance of watch parts is an important indicator to ensure the quality and durability of watches. During the use of watch parts, they will inevitably be exposed to various environmental factors that may cause corrosion, such as sweat, salt water, moisture, etc.; these corrosive media may cause damage to the parts. The corrosion phenomenon not only affects the appearance of watch parts, but also damages their mechanical properties, thereby affecting the accuracy and service life of the watch. Therefore, it is of great practical significance to test the corrosion resistance of watch parts.
[0003] For consumers, watch parts with good corrosion resistance are of great reference significance in the process of choosing watches. However, the existing detection method accelerates the corrosion process by simulating the seawater salt spray environment, and then manually observes the corrosion performance. Manual observation is highly subjective and cannot provide quantitative corrosion rate data. As a result, the existing detection method cannot quickly help staff detect the performance of watch parts, and staff cannot control product quality in a timely manner. Summary of the invention
[0004] In order to solve the technical problem that the existing detection method cannot quickly help the staff detect the performance of watch parts and components, so that the staff cannot control the product quality in time, the purpose of the present invention is to provide a method for detecting the corrosion resistance of watch parts and components, and the technical scheme adopted is as follows:
[0005] A method for detecting the corrosion resistance of watch parts and accessories, the method comprising:
[0006] Obtain each image, image area and acquisition time of the watch parts surface at each moment within a certain period of time;
[0007] According to a preset preliminary corrosion area threshold and each image, confirming a preliminary corrosion area of each image;
[0008] Based on the preliminary corrosion area of each image, a preset corrosion area threshold and the image area, obtaining a corrosion coefficient of each image;
[0009] Based on the corrosion coefficient of each image, a preset coefficient threshold and acquisition time, the corrosion resistance value of the watch parts is obtained;
[0010] The corrosion resistance value of the watch parts and accessories is compared with a preset performance threshold to obtain a test result of the corrosion resistance performance of the watch parts and accessories.
[0011] Preferably, the specific step of confirming the preliminary corrosion area of each image according to the preset preliminary corrosion area threshold and each image comprises:
[0012] Based on each of the images, obtaining a judgment value of each corrosion area in each of the images;
[0013] The corrosion region judgment value of each edge region in each image is compared with a preset corrosion region threshold to obtain a preliminary corrosion region of each image.
[0014] Preferably, based on each image, the specific steps of obtaining the judgment value of each corrosion area in each image include:
[0015] Performing edge detection on each of the images to obtain each pixel point located in the edge area of each image;
[0016] Based on each pixel point located in the edge area of each image, a judgment value of each corrosion area in each image is obtained.
[0017] Preferably, the specific steps of obtaining the judgment value of each corrosion area in each image based on each pixel point located in the edge area of each image include:
[0018] Based on each pixel point located in the edge area of each image, obtaining a change value of each pixel point located at the edge of each image;
[0019] According to the change value of each pixel point located at the edge of each image, the judgment value of each corrosion area in each image is obtained.
[0020] Preferably, the specific steps of obtaining the judgment value of each corrosion area in each image according to the change value of each pixel point located at the edge of each image include:
[0021] According to the change value of each pixel point located at the edge of each image, determining the maximum change value and the minimum change value of each pixel point located at the edge of each image;
[0022] Based on the maximum change value and the minimum change value of each pixel point located at the edge of each image, the judgment value of each corrosion area in each image is obtained.
[0023] Preferably, the specific steps of obtaining the corrosiveness coefficient of each image based on the preliminary corrosive area of each image, the preset corrosive area threshold and the image area include:
[0024] Obtaining a corrosion area based on the preliminary corrosion area of each image and a preset corrosion area threshold;
[0025] According to the corrosion region and the image area, the corrosion coefficient of each image is obtained.
[0026] Preferably, based on the preliminary corrosion area of each image and a preset corrosion area threshold, the specific steps of obtaining the corrosion area include:
[0027] Based on the preliminary corrosion area of each image, obtaining a judgment value of the corrosion area;
[0028] The judgment value of the corrosion area is compared with a preset judgment threshold to obtain the corrosion area.
[0029] Preferably, based on the preliminary corrosion area of each image, the specific steps of obtaining the judgment value of the corrosion area include:
[0030] Based on the preliminary erosion area of each image, obtaining each pixel point in the preliminary erosion area of each image, and the distance and angle change value between each pixel point;
[0031] The judgment value of the corrosion area is obtained based on the corrosion area judgment value of each edge area in each image, the change value of each pixel point located at the edge of each image, each pixel point in the preliminary corrosion area of each image, the distance between each pixel point and the corrosion area threshold.
[0032] Preferably, the specific steps of obtaining the corrosion resistance value of the watch parts based on the corrosion coefficient of each image, the preset coefficient threshold and the acquisition time include:
[0033] According to the corrosiveness coefficient of each image and the preset coefficient threshold, determining the time difference between the time when the corrosiveness coefficient of each image appears and the time when the preset coefficient threshold appears;
[0034] Based on the corrosion coefficient of each image, the time difference and the acquisition time, the corrosion resistance value of the watch parts is obtained.
[0035] Preferably, the preset coefficient threshold includes a first preset coefficient threshold and a second preset coefficient threshold, and the first preset coefficient threshold is smaller than the second preset coefficient threshold.
[0036] The present invention has the following beneficial effects:
[0037] The present invention confirms the preliminary corrosion area of each image through a preset preliminary corrosion area threshold and each image; obtains the corrosion coefficient of each image through the preliminary corrosion area of each image, the preset corrosion area threshold and the image area; obtains the corrosion resistance value of the watch parts through the corrosion coefficient of each image, the preset coefficient threshold and the acquisition time; compares the corrosion resistance value of the watch parts with the preset performance threshold to obtain the detection result of the corrosion resistance of the watch parts. The present invention analyzes the collected surface images of the watch parts to obtain the corrosion coefficient at each time point, and then obtains the corrosion resistance of the watch parts, so as to quickly detect the corrosion resistance of the watch parts, thereby helping the staff to further control the product quality, and also improving the efficiency and quality of the detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A flowchart of a method for detecting the corrosion resistance of watch parts and accessories provided by one embodiment of the present invention. 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 anti-corrosion performance detection method of watch parts and accessories 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.
[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] During the use of watch parts, they will inevitably come into contact with various environmental factors that may cause corrosion, such as sweat, salt water, moisture and other corrosive media. Corrosive media may damage the parts and affect the overall performance and service life of the watch. In order to help the factory staff control the product quality of watch parts and components, help the staff to have a more specific understanding of the anti-corrosion performance of watch parts and components, and help the manufacturers adjust the production line and improve the quality.
[0043] The specific scheme of the method for detecting the corrosion resistance of watch parts and accessories provided by the present invention is described in detail below in conjunction with the accompanying drawings.
[0044] See also Figure 1 , which shows a flow chart of a method for detecting the corrosion resistance of watch parts and accessories provided by an embodiment of the present invention. The method for detecting the corrosion resistance of watch parts and accessories provided by the present invention comprises the following steps:
[0045] S100, obtaining each image, image area and acquisition time of the watch parts surface at each moment within a certain time period. The present invention continuously acquires each image of the watch parts surface through a camera. Specifically, the time period in the present invention is the same as the acquisition time; the certain time period selected in the present invention is one month; each moment is half a day.
[0046] S200: confirming a preliminary corrosion region of each image according to a preset preliminary corrosion region threshold and each image.
[0047] S300: Obtain a corrosivity coefficient of each image based on the preliminary corrosive region of each image, a preset corrosive region threshold and an image area.
[0048] S400: Obtain the corrosion resistance value of the watch parts based on the corrosion coefficient of each image, a preset coefficient threshold and acquisition time.
[0049] S500: Compare the corrosion resistance value of the watch parts and accessories with a preset performance threshold to obtain a test result of the corrosion resistance of the watch parts and accessories.
[0050] The present invention confirms the preliminary corrosion area of each image through a preset preliminary corrosion area threshold and each image; obtains the corrosion coefficient of each image through the preliminary corrosion area of each image, the preset corrosion area threshold and the image area; obtains the corrosion resistance value of the watch parts through the corrosion coefficient of each image, the preset coefficient threshold and the acquisition time; compares the corrosion resistance value of the watch parts with the preset performance threshold to obtain the detection result of the corrosion resistance of the watch parts. The present invention analyzes the collected surface images of the watch parts to obtain the corrosion coefficient at each time point, and then obtains the corrosion resistance of the watch parts, so as to quickly detect the corrosion resistance of the watch parts, thereby helping the staff to further control the product quality, and also improving the efficiency and quality of the detection.
[0051] Based on the above embodiments, when a watch part is corroded, a corroded area with pits and pits will appear on its surface. The corroded area has a more obvious edge than the normal area on the surface of the part. However, there may be some designed areas on the surface of the watch part, and it is necessary to initially distinguish the corroded area from the designed area. In this embodiment, the specific steps of S200 include:
[0052] Based on each image, a judgment value of each corrosion area in each image is obtained. This step specifically includes: performing edge detection on each image to obtain each pixel point located in the edge area of each image. Specifically, performing edge detection on each image to obtain each image after edge detection. Then, a coordinate axis is constructed on each image obtained after edge detection to obtain each pixel point located in the edge area of each image.
[0053] Based on each pixel point located in the edge area of each image, a judgment value of each corrosion area in each image is obtained. Wherein, this step includes obtaining the change value of each pixel point located at the edge of each image based on each pixel point located in the edge area of each image. Wherein, for the pixel points on the edge area detected on each image, it may be a pixel point on the edge of the normal design area, or it may be a pixel point on the edge of the corrosion area. Specifically, compared with the edge of the corrosion area, the edge of the normal design area appears smoother, and the edge of the corrosion area is relatively rough. In this embodiment, the smoothness of the edge of the area can be analyzed based on the angle between consecutive pixel points on the edge of the area. The specific analysis is as follows:
[0054] Based on each image after edge detection, the gradient value of each pixel in each image is confirmed, and the gradient value of each pixel is constructed into a gradient value data sequence in descending order. The gradient value data sequence is as follows:
[0055] ;
[0056] in, For an image The gradient value of a pixel.
[0057] Select the pixel with the largest gradient value as the starting pixel, connect the pixel closest to it, and so on, to obtain the angle between each connecting straight line and the X-axis. The edge angle on the edge of the normal design area changes less, while the edge angle on the edge of the corrosion area changes more. The angle between the edges With The angle between the edges The change value of the edge area between :
[0058] ;
[0059] When the initial pixel is calculated during the calculation process, it means that the calculation of this area is finished, the calculated pixel is marked as 1, and the data sequence of the change value is constructed in order from large to small. The data sequence of the change value is as follows:
[0060] ;
[0061] According to the change value of each pixel point located at the edge of each image, the judgment value of each corrosion area in each image is obtained.
[0062] Based on the maximum change value and the minimum change value of each pixel located at the edge of each image, the judgment value of each corrosion area in each image is obtained. At the same time, this step specifically includes: according to the change value of each pixel located at the edge of each image, the maximum change value and the minimum change value of each pixel located at the edge of each image are confirmed.
[0063] Specifically, according to the data sequence of the edge angle change value constructed in each edge area, the judgment value of each corrosion area in each image is confirmed:
[0064] ;
[0065] in, is the maximum change value in the data sequence, is the minimum change value in the data sequence, For each image The corrosion area judgment value of the edge area.
[0066] The corrosion region judgment value of each edge region in each image is compared with the preset corrosion region threshold to obtain the preliminary corrosion region of each image. In this embodiment, the preset corrosion region threshold is set .
[0067] when , indicating the The smoothness of the edge of each region is good, so The edge area is the normal design area. , indicating the There is a large angle change on the edge of the area, and the edge smoothness is poor. The edge area is the initial corrosion area.
[0068] In this embodiment, the specific steps of S300 include:
[0069] Based on the preliminary corrosion area of each image and the preset corrosion area threshold, the corrosion area is obtained. This step specifically includes: based on the preliminary corrosion area of each image, a judgment value of the corrosion area is obtained. Wherein, based on the preliminary corrosion area of each image, each pixel point in the preliminary corrosion area of each image, the distance between each pixel point and the angle change value are obtained.
[0070] Based on the corrosion area judgment value of each edge area in each image, the change value of each pixel located at the edge of each image, each pixel in the preliminary corrosion area of each image, the distance between each pixel and the corrosion area threshold, the corrosion area judgment value is obtained. That is, according to each pixel in the edge area of each image, the variance of the distance between each pixel is obtained, and the corrosion area judgment value is as follows:
[0071] ;
[0072] in, Indicates The judgment value of the corrosion area of the edge area, Indicates The variance of the distance between each pixel in the edge region, Indicates The total number of all pixels in the edge area minus one, Indicates edge line adjacent to edge line The change value of Represents a normalized function. When it is initially determined that the distance variance between pixels in the eroded area is large, and the gradient direction angles of adjacent pixels vary greatly, it means that the edge lines of this area are more irregular and are more likely to be eroded areas.
[0073] Compare the judgment value of the corrosion area with the preset judgment threshold to obtain the corrosion area. Set the preset judgment threshold ,when , indicating the If the edge area is indeed a corrosion area, , it means that the judgment is wrong and this edge area should be the normal design area.
[0074] According to the corrosion area and the image area, the corrosion coefficient of each image is obtained. Based on all the corrosion areas in each image, the number of all corrosion areas, the area of each corrosion area, and the average distance between each corrosion area and other corrosion areas are determined. Specifically, the corrosion coefficient formula is as follows:
[0075] ;
[0076] in, express The corrosiveness coefficient at the time, Indicates The area of the corrosion zone, Represents the image area of watch parts, Indicates The average distance between a corrosion area and other corrosion areas, represents the number of eroded regions in each image, Represents the normalization function.
[0077] When the area of the corrosion area accounts for a large proportion and the distance between the corrosion areas is far, it means that there are many corrosion areas and the degree of corrosion is large, which means that the corrosion coefficient shown in the surface image of the watch parts is large.
[0078] Specifically, the specific steps of S400 include:
[0079] According to the corrosivity coefficient of each image and the preset coefficient threshold, the time difference between the time when the corrosivity coefficient of each image appears and the time when the preset coefficient threshold appears is determined.
[0080] Based on the corrosion coefficient of each image, the time difference and the acquisition time, the corrosion resistance value of the watch parts is obtained.
[0081] The preset coefficient threshold includes a first preset coefficient threshold and a second preset coefficient threshold, and the first preset coefficient threshold is smaller than the second preset coefficient threshold.
[0082] In this embodiment, based on the corrosion coefficient of the surface of the watch parts at various times, the corrosion coefficient is analyzed over time to obtain the corrosion resistance of the watch parts. The details are as follows:
[0083] The data series of the corrosion coefficient of the watch parts surface at all times are as follows:
[0084] ;
[0085] In this embodiment, the first preset coefficient threshold , the second preset coefficient threshold ,when When When the watch is worn, the surface of the watch parts is severely corroded.
[0086] According to the corrosion performance of the watch parts surface, the corrosion resistance of the watch parts is obtained. The corrosion resistance value formula of the watch parts is as follows:
[0087] ;
[0088] in, Indicates the corrosion resistance value of watch parts. express The corrosiveness coefficient at the time, , Indicates the first appearance of the corrosive coefficient from 0 to the surface of the watch parts The time difference between the moments, Indicates the first appearance of the corrosion coefficient on the surface of watch parts The moment to the first appearance The time difference of the moment represents the acquisition time, where >0; Represents the normalization function.
[0089] Used to indicate corrosion performance, in the present invention represents the product of the time from the beginning of corrosion detection using watch parts and the time until the corrosion becomes serious, and Indicates the inverse of corrosion performance. The later the watch parts begin to corrode, the later the serious corrosion occurs, and the smaller the corrosion difference at each time, the better the corrosion resistance of the watch parts.
[0090] The performance threshold preset by the present invention , when the corrosion resistance of watch parts is , indicating that the watch parts have good corrosion resistance. There may be errors in the measurement of a single product of the same type. By measuring multiple products of the same type, the measurement results are more accurate, which is convenient for staff to further control product quality and improve inspection efficiency.
[0091] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0092] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A method for detecting the corrosion resistance of watch parts, characterized in that: The method comprises: Obtain each image, image area and acquisition time of the watch parts surface at each moment within a certain period of time; According to a preset preliminary corrosion area threshold and each image, confirming a preliminary corrosion area of each image; Based on the preliminary corrosion area of each image, a preset corrosion area threshold and the image area, obtaining a corrosion coefficient of each image; Based on the corrosion coefficient of each image, a preset coefficient threshold and acquisition time, the corrosion resistance value of the watch parts is obtained; Comparing the corrosion resistance value of the watch parts with a preset performance threshold to obtain a test result of the corrosion resistance of the watch parts; The specific step of confirming the preliminary corrosion area of each image according to the preset preliminary corrosion area threshold and each image comprises: Based on each of the images, obtaining a judgment value of each corrosion area in each of the images; Compare the corrosion area judgment value of each edge area in each image with the preset corrosion area threshold to obtain the preliminary corrosion area of each image; Based on each image, the specific steps of obtaining the judgment value of each corrosion area in each image include: Performing edge detection on each of the images to obtain each pixel point located in the edge area of each image; Based on each pixel point located in the edge area of each image, obtaining a judgment value of each corrosion area in each image; Based on each pixel point located in the edge area of each image, the specific steps of obtaining the judgment value of each corrosion area in each image include: Based on each pixel point located in the edge area of each image, obtaining a change value of each pixel point located at the edge of each image; Obtaining a judgment value of each corrosion area in each image according to a change value of each pixel point located at the edge of each image; The specific steps of obtaining the judgment value of each corrosion area in each image according to the change value of each pixel point located at the edge of each image include: According to the change value of each pixel point located at the edge of each image, determining the maximum change value and the minimum change value of each pixel point located at the edge of each image; Based on the maximum change value and the minimum change value of each pixel point located at the edge of each image, the judgment value of each corrosion area in each image is obtained.
2. The method for detecting the corrosion resistance of watch parts according to claim 1, characterized in that: The specific steps of obtaining the corrosivity coefficient of each image based on the preliminary corrosive area of each image, the preset corrosive area threshold and the image area include: Obtaining a corrosion area based on the preliminary corrosion area of each image and a preset corrosion area threshold; According to the corrosion region and the image area, the corrosion coefficient of each image is obtained.
3. The method for detecting the corrosion resistance of watch parts according to claim 2, characterized in that: Based on the preliminary corrosion area of each image and the preset corrosion area threshold, the specific steps of obtaining the corrosion area include: Based on the preliminary corrosion area of each image, obtaining a judgment value of the corrosion area; The judgment value of the corrosion area is compared with a preset judgment threshold to obtain the corrosion area.
4. The method for detecting the corrosion resistance of watch parts according to claim 3, characterized in that: Based on the preliminary corrosion area of each image, the specific steps of obtaining the judgment value of the corrosion area include: Based on the preliminary erosion area of each image, obtaining each pixel point in the preliminary erosion area of each image, and the distance and angle change value between each pixel point; The judgment value of the corrosion area is obtained based on the corrosion area judgment value of each edge area in each image, the change value of each pixel point located at the edge of each image, each pixel point in the preliminary corrosion area of each image, the distance between each pixel point and the corrosion area threshold.
5. The method for detecting the corrosion resistance of watch parts according to claim 1, characterized in that: The specific steps of obtaining the corrosion resistance value of the watch parts based on the corrosion coefficient of each image, the preset coefficient threshold and the acquisition time include: According to the corrosiveness coefficient of each image and the preset coefficient threshold, determining the time difference between the time when the corrosiveness coefficient of each image appears and the time when the preset coefficient threshold appears; Based on the corrosion coefficient of each image, the time difference and the acquisition time, the corrosion resistance value of the watch parts is obtained.
6. The method for detecting the corrosion resistance of watch parts according to claim 1 or 5, characterized in that: The preset coefficient threshold includes a first preset coefficient threshold and a second preset coefficient threshold, and the first preset coefficient threshold is smaller than the second preset coefficient threshold.
