Image scanning method and image scanning system for metal surface
Through the combination of far-infrared light and photosensitive elements, the image scanning system is used to detect metal surface defects, which solves the problem of low manual detection efficiency and achieves efficient and accurate surface defect detection and identification.
Patent Information
- Application Number
- CN201910987373.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-17
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2039-10-17
AI Technical Summary
Existing defect detection methods rely on manual observation or touch, are inefficient and prone to misjudgment, and cannot effectively control product yield.
A metal surface image scanning method and system is adopted, which uses far-infrared light and a light incident angle less than or equal to 90 degrees to illuminate the metal surface, combines the photosensitive element to collect the image, and adjusts the light wavelength and light incident angle by driving the component to displace the surface area. Achieve efficient detection of metal surface defects.
It achieves efficient detection of metal surface attachments, reduces human misjudgment, improves detection efficiency, and performs deep learning on detection images through an artificial neural network system to improve the accuracy and efficiency of identifying surface defects.
Smart Images

Figure CN112683921B_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an image scanning method for the surface of an object and an image scanning system thereof, and more particularly to an image scanning method for the surface of a metal object with attachments and an image scanning system thereof. [Background technology]
[0002] Product defect detection is an extremely important part of the industrial production process. Defective products cannot be sold, or if defective intermediate products are sold to other manufacturers for processing, the final product will not work. One of the existing defect detection methods is to manually observe the product to be inspected with the naked eye or touch it with both hands to determine whether the product has defects, such as pits, scratches, color differences, defects, etc. However, the efficiency of manually detecting whether a product has defects is poor, and it is very easy to make a misjudgment, which will cause the problem of uncontrollable product yield. [Summary of the invention]
[0003] The present invention provides an image scanning method for a metal surface, comprising sequentially displacing one of a plurality of surface blocks of a metal surface of an object to a detection position, providing a far-infrared light with a light source component facing the detection position, wherein a wavelength value of the far-infrared light is related to the object and a forward normal line of the surface block relative to the detection position, irradiating the detection position with a light incident angle less than or equal to 90 degrees, and capturing a detection image of each surface block sequentially located at the detection position according to the far-infrared light with a photosensitive element, wherein the photosensitive element faces the detection position and a photosensitive axis of the photosensitive element is parallel to the forward normal line.
[0004] The present case provides an image scanning system for metal surfaces, comprising a driving component, a light source component and a photosensitive element. The driving component carries an object, the metal surface of the object is divided into a plurality of surface blocks along an extension direction, and the driving component is also used to sequentially displace one of the plurality of surface blocks to a detection position. The light source component is arranged facing the detection position, providing a far-infrared light to illuminate the detection position, wherein a light wavelength value of the far-infrared light is related to the object, and a light incident angle of the far-infrared light is less than or equal to 90 degrees relative to a forward normal of the surface block located at the detection position. The photosensitive element is arranged facing the detection position, capturing a detection image of each surface block sequentially located at the detection position, wherein a photosensitive axis of the photosensitive element is parallel to the forward normal.
Brief Description of the Drawings
[0005] Figure 1 FIG. 4 is a schematic diagram of an embodiment of an image scanning system for metal surface according to the present invention.
[0006] Figure 2 for Figure 1A functional block diagram of an embodiment of an image scanning system for metal surfaces.
[0007] Figure 3 for Figure 1 A schematic diagram of an embodiment of the optical relative positions of an object, a light source assembly and a photosensitive element.
[0008] Figure 4 for Figure 1 A schematic diagram of another embodiment of the optical relative positions of an object, a light source assembly and a photosensitive element.
[0009] Figure 5 FIG. 4 is a flow chart of an embodiment of an image scanning method for a metal surface according to the present invention.
[0010] Figure 6 Corresponding to Figure 1 A schematic diagram of an embodiment of a predetermined surface of an object.
[0011] Figure 7 FIG. 4 is a schematic diagram of another embodiment of an image scanning system for metal surfaces.
[0012] Figure 8 for Figure 6 A schematic diagram of an embodiment of the optical relative positions of an object, a light source assembly and a photosensitive element.
[0013] Fig. 9 for Figure 6 A schematic diagram of another embodiment of the optical relative positions of an object, a light source assembly and a photosensitive element.
[0014] Fig.10 FIG. 4 is a flow chart of another embodiment of the image scanning method for metal surface according to the present invention.
[0015] Fig.11 It is a schematic diagram of an embodiment in which an object image includes sub-object images.
[0016] Fig.12 for Fig.11 A schematic diagram of an embodiment of an object image of FIG. [Specific implementation method]
[0017] Figure 1 FIG. 1 is a schematic diagram of an embodiment of an image scanning system for metal surface according to the present invention. Figure 1, the image scanning system for metal surface is suitable for scanning object 2 to obtain at least one detection image of object 2. In some embodiments, object 2 includes a body and an attachment, wherein the body has a metal surface, and the attachment is located on the metal surface of the body. In some embodiments, the attachment may be oil stains, stains, paint, etc. In some embodiments, the metal surface 21 of object 2 may have at least one surface defect, and the corresponding detection image will also present an image block of the surface defect. Here, the surface defect is a three-dimensional structure. Here, the three-dimensional structure is a millimeter (mm) size to a micrometer (μm) size.
[0018] The image scanning system for metal surface includes a driving component 11, a light source component 12 and a photosensitive element 13. Please refer to Figures 1 to 4 , Figure 2 for Figure 1 A functional block diagram of an embodiment of an image scanning system for metal surfaces, Figure 3 and Figure 4 They are Figure 1 Schematic diagrams of two embodiments of the optical relative positions of the object 2, the light source assembly 12 and the photosensitive element 13. The light source assembly 12 and the photosensitive element 13 face a detection position 14 on the driving assembly 11. The driving assembly 11 carries the object 2 to be detected. The object 2 has a metal surface 21, and an attachment is attached to the metal surface 21. The metal surface 21 of the object 2 is divided into a plurality of surface blocks along an extension direction D1 of the metal surface 21 of the object 2. Here, Figure 3 , 4 Taking the metal surface 21 of the object 2 as being divided into nine surface blocks and marking three of the surface blocks 21A-21C as an example, the present invention is not limited thereto, and the metal surface 21 of the object 2 may also be divided into other numbers of blocks.
[0019] Please combine references Figures 1 to 5 , Figure 52 is a flow chart of an embodiment of an image scanning method for a metal surface 21 according to the present invention. The image scanning system can execute a detection procedure, through which, for a metal surface 21 of an object 2 with surface attachments, the image scanning system can obtain a detection image of the metal surface 21 with good penetration of the surface attachments. The driving component 11 sequentially moves one of the surface blocks 21A-21C on the metal surface 21 of the object 2 to the detection position 14 (step S01) during the detection process, and the light source component 12 emits a far-infrared light L1 toward each surface block 21A-21C located at the detection position 14 during the detection process, wherein a wavelength value of the far-infrared light is related to the object 2 (step S02). Specifically, the object 2 includes a body having a metal surface 21 and an attachment located on the metal surface 21 of the body, and the wavelength value of the far-infrared light L1 is greater than the thickness value of the attachment; for example, the wavelength of the far-infrared light is, for example but not limited to, greater than 3.5 μm, which can image surface defects on the metal surface 21 at the micrometer (μm) level in the detection image. Figure 3 and Figure 4 As shown, the angle θ (hereinafter referred to as the light incident angle θ) between the incident direction of the far-infrared light L1 and the forward normal 14A of each surface block 21A-21C located at the detection position 14 is greater than 0 degree and less than or equal to 90 degrees, that is, relative to the forward normal 14A, the far-infrared light L1 irradiates the detection position 14 at a light incident angle θ greater than 0 degree and less than or equal to 90 degrees (step S03), so that the surface blocks 21A-21C are sequentially irradiated by the far-infrared light L1 from the side or oblique direction at the detection position 14, and the surface blocks 21A-21C sequentially face the photosensitive element 13. In some embodiments, the photosensitive axis 13A of the photosensitive element 13 is parallel to the positive normal line 14A, and the photosensitive element 13 receives diffuse far-infrared light generated by the surface blocks 21A-21C receiving light. The photosensitive element 13 captures the detection images of each surface block 21A-21C sequentially located at the detection position 14 according to the diffuse far-infrared light (step S04). The processor 15 receives the detection image and performs defect detection based on it, that is, determines whether the metal surface 21 has surface defects (step S06).
[0020] For example, taking the case where the driving component 11 first displaces the surface block 21A to the detection position 14 in step S01, the far-infrared light L1 provided by the light source component 12 irradiates the surface block 21A, and the photosensitive element 13 captures the detection image of the surface block 21A in step S04. The driving component 11 then displaces the object 2, and the driving component 11 further displaces the surface block 21B to the detection position 14 in step S01, and the photosensitive element 13 captures the detection image of the surface block 21B in step S04. The driving component 11 then displaces the object 2, and the driving component 11 further displaces the surface block 21C to the detection position 14 in step S01, and the photosensitive element 13 captures the detection image of the surface block 21C in step S04.
[0021] Therefore, according to the thickness of the attached matter on the metal surface 21 of the object 2, the wavelength of the far-infrared light L1 is adjusted, and the far-infrared light L1 can diffract or penetrate the attached matter on the metal surface 21 and irradiate the metal surface 21. In this way, the photosensitive element 13 or the inspector can capture the far-infrared light L1 reflected or diffused by the metal surface 21 to generate a detection image, so that the surface defects on the metal surface 21 with a millimeter level can be imaged in the detection image, and it can be judged whether the metal surface 21 has surface defects.
[0022] In addition, the wavelength of the far-infrared light L1 can be adjusted according to the thickness of the attachment to be penetrated, and can also be used to filter the image of the micron (μm) structure according to the surface morphology of the object to be tested. For example, if there are 1μm to 3μm long and thin micro-scratches or sand holes on the surface of the sample, but such phenomena do not affect the product quality, the quality control personnel are concerned about structural defects above 10μm. In this way, the wavelength of the far-infrared light L1 can be selected to be in the middle (such as: 4μm) to obtain the best image microstructure filtering effect and low-noise image quality, without affecting the detection of larger scale defects.
[0023] Please refer to Figure 1 and Figure 2 In this embodiment, the image scanning system may further include a light source adjustment component 16 , and the light source adjustment component 16 is coupled to the light source component 12 .
[0024] In one embodiment, the light source adjustment component 16 can adjust the light intensity of the far infrared light L1 emitted by the light source component 12, and improve the glare phenomenon by adjusting the light intensity of the far infrared light L1, thereby improving the quality of the detection image. For example, the light source adjustment component 16 can reduce the light intensity so that the photosensitive element 13 obtains a detection image with less glare.
[0025] In another embodiment, according to different light incident angles θ, surface defects with different depths present different brightness in the detection image, and the glare intensity generated by the far-infrared light L1 will change accordingly. In other words, by adjusting the light incident angle θ of the far-infrared light L1 emitted by the light source component 12 through the light source adjustment component 16, the glare can also be effectively reduced to improve the detection image quality.
[0026] In another embodiment, the light source adjustment component 16 can determine the polarization direction of the far-infrared light L1 emitted by the light source component 12, that is, control the light source component 12 to output polarized detection far-infrared light L1 to effectively reduce glare and improve detection image quality.
[0027] In one embodiment, the image scanning system may further selectively include a polarizer 130, and the polarizer 130 is disposed on the optical axis of the photosensitive element 13 and between the photosensitive element 13 and the detection position 14. In this way, the polarized far-infrared light L1 emitted by the light source assembly 12 can be polarized and filtered by the polarizer 130 after passing through the surface of the object 2, so as to effectively avoid the saturation glare caused by the strong infrared light to the sensor 13, thereby improving the detection image quality.
[0028] In some embodiments, according to the light incident angle θ greater than 0 degrees and less than or equal to 90 degrees, that is, according to the far-infrared light L1 incident laterally or obliquely, if the metal surface 21 of the object 2 includes a surface defect in the shape of a groove or a hole, the far-infrared light L1 cannot irradiate the bottom of the surface defect, and the surface defect appears as a shadow in the detection image of the surface block 21A-21C. In this way, a detection image with a clear contrast between the metal surface 21 and the surface defect can be formed. The image scanning system or the detector can determine whether the metal surface 21 has a surface defect based on whether the detection image has a shadow, and thus determine whether the surface of the object 2 has a surface defect. This will greatly improve the efficiency of surface detection and reduce the possibility of human misjudgment.
[0029] In one embodiment, according to different light incident angles θ, surface defects with different depths appear with different brightness in the inspection image. Figure 4 As shown in FIG. 1 , when the light incident angle θ is equal to 90 degrees, the incident direction of the far-infrared light L1 is perpendicular to the depth direction D2 of the surface defect. Regardless of the depth of the surface defect, the surface defect on the metal surface 21 is not irradiated by the far-infrared light L1 due to the concave surface and does not generate reflected far-infrared light and diffused far-infrared light. The surface defects with deeper or shallower depths appear as shadows in the detection image, and the detection image has a poor contrast, or is close to no contrast; as shown in FIG. Figure 3As shown, when the light incident angle θ is less than 90 degrees, the incident direction of the far-infrared light L1 is not perpendicular to the depth direction D2 of the surface defect, and the far-infrared light L1 irradiates the partial area of the surface defect under the metal surface 21. The partial area of the surface defect is irradiated by the far-infrared light L1 to produce reflected far-infrared light and diffused far-infrared light. The photosensitive element 13 receives the reflected far-infrared light and diffused far-infrared light from the partial area of the surface defect. The surface defect appears as an image with a brighter boundary (such as a convex defect) or a darker boundary (such as a concave defect) in the detection image, and the detection image has a better contrast.
[0030] Moreover, in the case of the same light incident angle θ being less than 90 degrees, the photosensitive element 13 receives more reflected far-infrared light and diffused far-infrared light from shallower surface defects than from deeper surface defects, and compared with surface defects with a larger depth / width ratio, shallower surface defects present brighter images in the detection image. Further, in the case of the light incident angle θ being less than 90 degrees, if the light incident angle θ is smaller, the surface defect generates more reflected far-infrared light and diffused far-infrared light, and the surface defect presents a brighter image in the detection image, and the brightness of the shallower surface defect in the detection image is also greater than the brightness of the deeper surface defect in the detection image. For example, a light incident angle θ of 30 degrees is smaller than a light incident angle θ of 60 degrees. Compared with a detection image corresponding to a light incident angle θ of 60 degrees, a surface defect appears higher in a detection image corresponding to a light incident angle θ of 30 degrees. Also, in a detection image corresponding to a light incident angle θ of 30 degrees, a shallower surface defect appears higher in a detection image than a deeper surface defect.
[0031] Based on this, there is a negative correlation between the size of the light incident angle θ and the brightness of the surface defects in the inspection image. If the light incident angle θ is smaller, the shallower surface defects will appear brighter in the inspection image, that is, the image scanning system or the inspector will find it less likely to identify shallower surface defects when the light incident angle θ is smaller, and the image scanning system or the inspector will find it easier to identify deeper surface defects based on darker images; conversely, if the light incident angle θ is larger, both shallower and deeper surface defects will appear darker in the inspection image, that is, the image scanning system or the inspector will be able to identify all surface defects when the light incident angle θ is larger.
[0032] Therefore, the image scanning system or the inspector can set the corresponding light incident angle θ according to the preset hole depth d of the preset surface defect to be inspected based on the aforementioned negative correlation, such as Figure 1 and Figure 2As shown, the image scanning system further includes a light source adjustment component 16, which is coupled to the light source component 12. If it is desired to detect a deeper preset surface defect instead of a shallower preset surface defect, the light source adjustment component 16 can adjust the position of the light source component 12 according to the light incident angle θ calculated by the aforementioned negative correlation relationship and set a smaller light incident angle θ in step S03, and the light source adjustment component 16 drives the light source component 12 to output far-infrared light L1, so that the shallower preset surface defect appears as a brighter image in the detection image and the deeper preset surface defect appears as a darker image in the detection image; if it is desired to detect both the shallower and deeper preset surface defects, the light source adjustment component 16 can adjust the position of the light source component 12 according to the light incident angle θ calculated by the aforementioned negative correlation relationship and set a larger (for example, 90 degrees) light incident angle θ in step S03, and the light source adjustment component 16 drives the light source component 12 to output far-infrared light L1, so that both the shallower and deeper preset surface defects appear as shadows in the detection image.
[0033] For example, assuming that the object 2 is a spindle used in a safety belt assembly of an automobile, the surface defects mentioned above may be sand holes or air holes caused by dust or air during the manufacturing process of the object 2, or bump marks or scratches. Among them, the depth of sand holes or air holes is greater than that of collision marks or scratches. If it is desired to detect whether the object 2 has sand holes or air holes but not whether the object 2 has collision marks or scratches, the light source adjustment component 16 can adjust the position of the light source component 12 according to the light incident angle θ calculated by the aforementioned negative correlation in step S03 and set a smaller light incident angle θ, so that the sand holes or air holes appear at a lower brightness in the detection image, while the collision marks or scratches appear at a higher brightness in the detection image, and the image scanning system or the detector can quickly identify whether the object 2 has sand holes or air holes; if it is desired to detect whether the object 2 has collision marks, scratches, sand holes and air holes, the light source adjustment component 16 can adjust the position of the light source component 12 according to the light incident angle θ calculated by the aforementioned negative correlation in step S03 and set a larger light incident angle θ, so that the collision marks, scratches, sand holes and air holes all appear as shadows in the detection image.
[0034] In one embodiment, the light incident angle θ is related to a predetermined depth ratio of a predetermined surface defect to be detected. Figure 6As shown, taking the preset surface defect including the preset hole depth d and the preset hole radius r as an example, the preset hole radius r is the distance between any side surface in the preset surface defect and the positive normal 14A, and the ratio (r / d) between the preset hole radius r and the preset hole depth d is the aforementioned depth ratio (r / d), and the light incident angle θ is the arctangent (r / d). Based on this, the light source adjustment component 16 can adjust the position of the light source component 12 according to the depth ratio (r / d) of the preset surface defect to be detected in step S03 and set the critical angle of the light incident angle θ to the arctangent (r / d). The light incident angle θ must meet the conditions of being equal to or greater than the arctangent (r / d) and less than or equal to 90 degrees. After adjusting the position of the light source component 12, the light source adjustment component 16 drives the light source component 12 to output the far-infrared light L1. In some embodiments, the preset hole radius r can be pre-set according to the size of the surface defect of the object 2 to be detected.
[0035] In one embodiment, if Figure 1 and Figure 2 As shown, the image scanning system further includes a processor 15, which is coupled to the driving component 11, the light source component 12, the photosensitive element 13 and the light source adjustment component 16. The processor 15 is used to control the operation of each component (such as the driving component 11, the light source component 12, the photosensitive element 13 and the light source adjustment component 16).
[0036] In some embodiments, the processor 15 can calculate the light incident angle θ according to the aforementioned negative correlation and the inverse tangent (r / d), and then the processor 15 drives the light source adjustment component 16 to adjust the position of the light source component 12 according to the calculated light incident angle θ.
[0037] In one embodiment, if Figure 1 , Figure 3 and Figure 4 As shown, the object 2 has a cylindrical shape, and the metal surface 21 of the object 2 can be the side surface of the object 2, that is, the metal surface 21 is a cylindrical surface, and the metal surface 21 has a radian of 2π. Figure 1 and Figure 2 As shown, the driving assembly 11 includes a bearing element 111 and a stepper motor 112 connected to the bearing element 111. The bearing element 111 carries the object 2. In step S01, the stepper motor 112 can rotate in a clockwise direction or a counterclockwise direction. The stepper motor 112 drives the bearing element 111 to rotate to drive the object 2 to rotate. For example, the metal surface 21 includes surface blocks 21A-21C. The stepper motor 112 can rotate 120 degrees at a time to move each surface block 21A-21C to the detection position 14. In another embodiment, as Figures 7 to 9As shown, the object 2 has a rectangular parallelepiped or a cube shape, and the metal surface 21 of the object 2 may be a non-curved surface with a curvature equal to or close to zero. Here, along an extension direction D1 of the metal surface 21 of the object 2, the metal surface 21 may be divided into surface blocks 21A-21C. In step S01, the stepper motor 112 may drive the carrier element 111 to move parallel to the aforementioned extension direction D1 perpendicular to the positive normal line 14A, so as to move each surface block 21A-21C to the detection position 14.
[0038] In some embodiments, the aforementioned extension direction D1 may be, for example, Figure 1 The object 2 is rotated in the counterclockwise direction or clockwise direction with the central axis of the object 2 as the rotation axis. Figure 7 The major axis direction of the object 2 is shown.
[0039] In one embodiment, if Figure 1 and Figure 7 As shown, the light source assembly 12 may include a light emitting element. In another embodiment, as shown in FIG. Figure 3 , 4 , 8, and 9, the light source assembly 12 may include two light emitting elements 121 and 122, and the two light emitting elements 121 and 122 are symmetrically arranged on opposite sides of the object 2 relative to the forward normal line 14A. The two light emitting elements 121 and 122 respectively illuminate the detection position 14, and the metal surface 21 is illuminated by the symmetrical far-infrared light L1 to generate symmetrical diffuse far-infrared light. The photosensitive element 13 sequentially captures the detection images of each surface block 21A-21C located at the detection position 14 according to the symmetrical diffuse far-infrared light, so that the imaging quality of the detection image can be improved. In some embodiments, the light emitting elements 121 and 122 can be implemented by one or more light emitting diodes (LEDs); in some embodiments, each light emitting element 121 and 122 can be implemented by a laser light source.
[0040] In one embodiment, the image scanning system further includes a test procedure and an alignment procedure. The image scanning system sequentially executes the test procedure, the alignment procedure and the aforementioned detection procedure. The photosensitive element 13 captures a test image according to a test light (i.e., far-infrared light) in the test procedure. In the alignment procedure, the object 2 has a preset reference point, and the driving component 11 moves the object 2 to align the preset reference point of the object 2 to the detection position 14. After the preset reference point of the object 2 is aligned to the detection position 14, the driving component 11 sequentially moves each surface block 21A-21C to the detection position 14 with the preset reference point of the object 2 as the starting position.
[0041] For details, please refer to Figure 1 , 2, 7, 10, the processor 15 is coupled between the photosensitive element 13 and the driving component 11. In the test procedure, the photosensitive element 13 captures a test image (step S07), the processor 15 receives the test image captured by the photosensitive element 13, and the processor 15 determines whether the test image is normal (step S08), and decides whether to drive the driving component 11 to execute the alignment procedure accordingly. If the test image is normal, it means that the photosensitive element 13 can capture a normal test image in step S04 of the detection procedure. The processor 15 generates a positioning signal after determining that the test image is normal (the judgment result is "yes"). The driving component 11 receives the positioning signal from the processor 15. The driving component 11 displaces the object 2 according to the positioning signal to align the object 2 to the detection position 14 (step S09). After the object 2 is aligned to the detection position 14, the image scanning system enters the detection procedure. The driving component 11 sequentially displaces each surface block 21A-21C to the detection position 14 in the detection procedure (step S01). The light source component 12 provides far-infrared light L1 to irradiate the detection position 14 in the detection procedure (steps S02 and S03). The photosensitive element 13 sequentially captures the detection image of each surface block 21A-21C located at the detection position 14 (step S04). No further details are given here.
[0042] In one embodiment, if Figure 2 As shown, the processor 15 is coupled to the stepper motor 112 . In step S09 , the processor 15 may send a positioning signal to control the stepper motor 112 , so that the stepper motor 112 rotates to drive the supporting element 111 to move or rotate, so as to position the object 2 to the detection position 14 .
[0043] In one embodiment, the photosensitive element 13 can be implemented as a linear image sensor or a surface image sensor. For example, the light source assembly 12 is a linear far-infrared light source to provide a linear far-infrared light as the far-infrared light L1. After the photosensitive element 13 captures the detection images of each surface block 21A-21C, the processor 15 receives the detection images of the surface blocks 21A-21C from the photosensitive element 13. The processor 15 splices the detection images of the surface blocks 21A-21C into an object image (step S10). The image scanning system or the inspector can determine whether the entire metal surface 21 of the object 2 contains surface defects based on the spliced object image.
[0044] In one embodiment, referring to Figure 7, a single photosensitive element 13 may be provided for the image scanning system for the metal surface, and the photosensitive element 13 may capture images of multiple surface blocks 21A to 21C to obtain multiple detection images corresponding to the surface blocks 21A to 21C respectively. Then, the processor 15 splices the detection images of the surface blocks 21A-21C into an object image. In some embodiments, if the object 2 is cylindrical, the single photosensitive element 13 may capture images of multiple surface blocks 21A to 21C of the middle section of the object 2 to obtain multiple detection images corresponding to the surface blocks 21A to 21C respectively, and then the processor 15 splices the detection images of the surface blocks 21A-21C into an object image 23, such as Fig.12 As shown, Fig.12 The detection images 231 , 232 , and 233 of three surface blocks 21A- 21C are also illustrated.
[0045] In one embodiment, if Figure 1 As shown, the image scanning system for metal surface can be provided with a plurality of photosensitive elements 13, and these photosensitive elements 13 respectively capture the detection images of the surface of the object 2 located at different sections of the detection position 14. For example, taking the object 2 as a spindle, as shown in FIG. Figure 1 As shown, one end of the object 2 has a relatively narrow structure, and the number of the photosensitive elements 13 can be three. The processor 15 splices the object image of the object 2 according to the detection images captured by the three photosensitive elements 13, such as Fig.11 The object image includes a sub-object image 22 ( Fig.11 The sub-object image 23 ( Fig.11 The sub-object image 24 ( Fig.11 (the lower part of the object image in ).
[0046] In one embodiment, the processor 15 can automatically determine whether the metal surface 21 of the object 2 includes a surface defect based on the object image generated after splicing. In detail, the processor 15 includes an artificial neural network system, and the artificial neural network system has a learning phase and a prediction phase. In the learning phase, the object image input into the artificial neural network system is a known surface defect. After the object image with a known surface defect is input, the artificial neural network system performs deep learning based on the known surface defect and the surface defect category of the known surface defect (hereinafter referred to as the preset surface defect category) to establish a prediction model (i.e., composed of a number of hidden layers connected in sequence, each hidden layer has one or more neurons, and each neuron performs a judgment item). In other words, in the learning phase, the object image with a known surface defect is used to generate the judgment item of each neuron and / or adjust the weight of the connection between any two neurons, so that the prediction result of each object image (i.e., the output preset surface defect category) is consistent with its known surface defect.
[0047] For example, taking the aforementioned surface defects as sand holes or pores, bumps or scratches as an example, the image blocks showing different surface morphologies may be image blocks with sand holes of different depths, or image blocks with bumps or scratches but without sand holes, or image blocks with different surface roughness, or image blocks with no surface defects, or image blocks with different depth ratios of surface defects produced by irradiating the surface blocks 21A-21C with far-infrared light L1 of different wavelength values to produce different contrasts. Here, the artificial neural network system performs deep learning based on the aforementioned object images of various different surface morphologies to establish a prediction model for identifying various surface morphologies. Moreover, the artificial neural network system can classify the object images with different surface morphologies and pre-generate different preset surface defect categories. Therefore, in the prediction stage, after the object image is generated and input into the artificial neural network system, the artificial neural network system executes the aforementioned prediction model based on the spliced object image to identify the object image (such as Fig.10 In step S11 of the embodiment, the object image is classified by the prediction model, that is, the artificial neural network system classifies the object image of the surface morphology of the object 2 according to a plurality of preset surface defect categories (such as Fig.10 At the output end, the object image is predicted by percentage according to the preset surface defect categories, that is, the percentage that it may fall into each category.
[0048] For example, taking the surface blocks 21A-21C as an example, the artificial neural network system executes the aforementioned prediction model according to the object image of the spliced surface blocks 21A-21C. The artificial neural network system can use the object image of the object 2 to identify that the surface block 21A includes sand holes and bumps, the surface block 21B has no surface defects, the surface block 21C only includes sand holes, and the surface roughness of the surface block 21A is greater than the surface roughness of the surface block 21C; then, the surface defect categories including sand holes or pores, scratches or bumps, roughness Taking the five categories of high roughness, low roughness and no surface defects as examples, the artificial neural network system can classify the detection image of surface block 21A into the preset categories of sand holes or pores and scratches or bumps, and classify the detection image of surface block 21B into the preset category of no surface defects, and classify the detection image of surface block 21C into the preset category of sand holes or pores, and classify the detection image of surface block 21A into the preset category of high roughness, and classify the detection images of surface blocks 21B and 21C into the preset category of low roughness. Based on this, the efficiency of surface detection will be greatly improved by identifying different surface morphologies through the artificial neural network system, and the chance of manual misjudgment can be reduced.
[0049] In one embodiment, the deep learning performed by the aforementioned artificial neural network system may be implemented by a convolutional neural network (CNN) algorithm, but the present invention is not limited thereto.
[0050] In one embodiment, the photosensitive element 13 is the aforementioned linear image sensor, and the linear image sensor has a field of vision (FOV) close to 0 degrees. After the processor 15 receives the detection images of the surface blocks 21A-21C captured by the photosensitive element 13, in step S10, the processor 15 does not need to perform image processing based on the detection images of the surface blocks 21A-21C. The processor 15 can directly splice the detection images of each surface block 21A-21C into an object image.
[0051] In another embodiment, the photosensitive element 13 is the aforementioned area image sensor, which has a field of view of about 5 degrees to 30 degrees. In the two-dimensional image of the surface blocks 21A-21C captured by the photosensitive element 13 to obtain the detection image, relative to the short side of each detection image, the middle section area of each detection image has a better imaging quality than other areas outside the middle section area. Based on this, after receiving the detection images of the surface blocks 21A-21C captured by the photosensitive element 13, the processor 15 captures the middle section area of each detection image based on the short side of each detection image in step S10. In detail, in step S10, the processor 15 can capture the middle area of each detection image according to a preset viewing angle within the field of view of the area image sensor. For example, the preset viewing angle can be 1 degree. The processor 15 captures the middle area of each detection image corresponding to the preset viewing angle of 1 degree, such as a middle area with a width of one pixel. The processor 15 then splices the middle areas of each detection image into an object image to avoid incorporating other areas with poor imaging quality in the detection image into the object image, thereby improving the accuracy of the artificial neural network system in identifying the surface morphology of the object 2.
[0052] In one embodiment, in step S07, the photosensitive element 13 can capture an image of any surface block 21A-21C as a test image, and the processor 15 can compare the average brightness of the test image to determine whether it meets a preset brightness in step S08 to determine whether the test image is normal. If the average brightness of the test image does not meet the preset brightness (the judgment result is "no"), it means that the test image is abnormal, that is, the light incident angle θ set by the light source adjustment component 16 cannot correctly reflect the preset hole depth d of the preset surface defect to be detected. At this time, the image scanning system executes a calibration procedure (step S05), and the processor 15 controls the light source adjustment component 16 to readjust the position of the light source component 12 according to the aforementioned negative correlation or inverse tangent (r / d) in the calibration procedure to reset the light incident angle θ. After re-adjusting the position of the light source assembly 12, the light source adjustment component 16 drives the light source assembly 12 to emit another test far-infrared light with a different light incident angle θ, so that the photosensitive element 13 captures an image of any surface block 21A-21C according to the other test far-infrared light (step S07) to generate another test image. The processor 15 can then compare whether the average brightness of the other test image meets the aforementioned preset brightness (step S08). If the average brightness of the other test image still does not meet the preset brightness (the judgment result is "no"), the processor 15 controls the light source adjustment component 16 to re-adjust the position of the light source assembly 12 and re-adjust the light incident angle θ (step S05) until the average brightness of the test image captured by the photosensitive element 13 meets the preset brightness. When the average brightness of the test image meets the preset brightness, the processor 15 determines in step S08 that the test image is normal (the judgment result is "yes"), and the image scanning system then executes the subsequent step S09 to perform the aforementioned alignment procedure and detection procedure.
[0053] In summary, according to the embodiment of the image scanning method for metal surface and the image scanning system thereof of the present case, a detection image of the metal surface 21 of the object 2 with surface attachments can be generated for subsequent surface detection of the object 2. In this way, the inspector does not need to remove the attachments on the metal surface 21 of the object to determine whether the metal surface 21 of the object 2 has surface defects, so as to avoid performing surface-damaging cleaning procedures, thereby greatly improving the efficiency of surface detection and reducing the cost of the pre-procedures required for detection. In some embodiments, according to the image scanning method for metal surface and the image scanning system thereof of the present case, the light intensity, light incident angle θ, light wave polarization direction and other parameters of the far-infrared light L1 emitted by the light source component 12 can also be adjusted so that the photosensitive element 13 can obtain a low-disturbance detection image. In some embodiments, according to the image scanning method for metal surfaces and the image scanning system thereof of the present case, an artificial neural network system can also be used to perform deep learning based on the object image spliced from the detection images to establish a prediction model for identifying the surface morphology of the object, and then the prediction model can be used to identify and classify the different surface morphologies of the object 2, which will greatly improve the efficiency of object detection and reduce the chance of manual misjudgment.
[0054] Although the present invention has been disclosed as above by way of embodiments, it is not intended to limit the present invention. Any person having ordinary knowledge in the technical field may make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the scope of the patent application attached hereto.
Claims
1. A method for scanning an image of a metal surface, characterized in that: Include: Sequentially displacing one of a plurality of surface areas of a metal surface of an object to a detection position; A light source assembly facing the detection position provides a far-infrared light, wherein a wavelength of the far-infrared light is related to the object, the wavelength of the far-infrared light is adjusted according to the thickness of the attachment on the metal surface, the far-infrared light is sufficient to diffract or penetrate the attachment on the metal surface and irradiate the metal surface, and the wavelength of the far-infrared light is greater than 3.5 μm; The far-infrared light irradiates the detection position at a light incident angle less than or equal to 90 degrees relative to a forward normal of the surface block located at the detection position; and A photosensitive element is used to capture a detection image of each of the surface blocks sequentially located at the detection position according to the far-infrared light, wherein the photosensitive element faces the detection position and a photosensitive axis of the photosensitive element is parallel to the positive normal line.
2. The image scanning method for a metal surface as claimed in claim 1, characterized in that: The object comprises a body with the metal surface and the attachment located on the metal surface of the body, and the wavelength value of the far-infrared light is greater than the thickness value of the attachment.
3. The image scanning method for metal surface as claimed in claim 1, characterized in that: The step of providing the far-infrared light with the light source assembly facing the detection position includes: providing a linear far-infrared light.
4. The image scanning method for a metal surface as claimed in claim 1, characterized in that: The step of sequentially displacing the plurality of surface blocks to the detection position includes: rotating the object along a clockwise direction or a counterclockwise direction to displace the plurality of surface blocks to the detection position.
5. The image scanning method for metal surface as claimed in claim 1, characterized in that: The method also includes polarizing the far infrared light.
6. The image scanning method for metal surface as claimed in claim 1, characterized in that: The method also includes: adjusting the incident angle of the light.
7. The image scanning method for a metal surface as claimed in claim 1, characterized in that: The method also includes: adjusting the light intensity of the far infrared light.
8. The image scanning method for a metal surface as claimed in claim 1, characterized in that: The step of capturing the detection image of each of the surface blocks sequentially located at the detection position according to the far-infrared light by the photosensitive element includes: capturing a two-dimensional image of the surface block to obtain the detection image.
9. The image scanning method for a metal surface as claimed in claim 8, characterized in that: The method further includes: receiving the plurality of detection images of the plurality of surface blocks, capturing a middle section area of each detection image based on a short side of each detection image, and splicing the plurality of middle sections into an object image.
10. The image scanning method for a metal surface as claimed in claim 9, characterized in that: The method further comprises: executing a prediction procedure according to the object image to identify a region image presenting the surface structure of the object in the object image.
11. The image scanning method for a metal surface as claimed in claim 1, characterized in that: The step of capturing the detection images of the surface blocks sequentially located at the detection position by the photosensitive element according to the far-infrared light includes: receiving the detection images of the surface blocks and splicing the detection images into an object image.
12. The image scanning method for a metal surface as claimed in claim 11, characterized in that: The method further comprises: executing a prediction procedure according to the object image to identify a region image presenting the surface structure of the object in the object image.
13. An image scanning system for metal surfaces, characterized in that: Include: A driving assembly carries an object, wherein a metal surface of the object is divided into a plurality of surface blocks along an extension direction, and the driving assembly is further used to sequentially displace one of the plurality of surface blocks to a detection position; a light source assembly disposed facing the detection position, providing a far-infrared light to illuminate the detection position, wherein a light wavelength of the far-infrared light is related to the object, the light wavelength of the far-infrared light is adjusted according to the thickness of the attachment on the metal surface, the far-infrared light is sufficient to diffract or penetrate the attachment on the metal surface and illuminate the metal surface, a light incident angle of the far-infrared light relative to a forward normal of the surface block located at the detection position is less than or equal to 90 degrees, and the light wavelength of the far-infrared light is greater than 3.5 μm; and A photosensitive element is arranged facing the detection position to capture a detection image of each surface block sequentially located at the detection position, wherein a photosensitive axis of the photosensitive element is parallel to the positive normal line.
14. The image scanning system for metal surface as claimed in claim 13, characterized in that: The object comprises a body with the metal surface and the attachment located on the metal surface of the body, and the wavelength value of the far-infrared light is greater than the thickness value of the attachment.
15. The image scanning system for metal surface as claimed in claim 13, characterized in that: The light source assembly is a linear far-infrared light source.
16. The image scanning system for metal surface as claimed in claim 13, characterized in that: The photosensitive element is a linear image sensor.
17. The image scanning system for metal surface as claimed in claim 13, characterized in that: The drive assembly includes: a supporting element for supporting the object; and The stepping motor is connected to the supporting element and rotates the supporting element in a clockwise direction or a counterclockwise direction relative to the photosensitive element to drive the object to rotate.
18. The image scanning system for metal surface as claimed in claim 13, characterized in that: Also includes: A polarizer is located on the optical axis of the photosensitive element and is disposed between the photosensitive element and the detection position.
19. The image scanning system for metal surface as claimed in claim 13, characterized in that: Also includes: A light source adjustment component is connected to the light source component and is used to adjust the incident angle of the light.
20. The image scanning system for metal surface as claimed in claim 13, characterized in that: Also includes: A light source adjustment component is connected to the light source component and is used for adjusting the light intensity of the far infrared light.
21. The image scanning system for metal surface as claimed in claim 13, characterized in that: The photosensitive element is a surface type image sensor.
22. The image scanning system for metal surface as claimed in claim 21, characterized in that: Also includes: A processor is coupled to the photosensitive element, receives the plurality of detection images of the plurality of surface blocks, captures the middle section area of each detection image based on the short side of each detection image, and splices the plurality of middle sections into an object image.
23. The image scanning system for metal surface as claimed in claim 22, characterized in that: The processor also includes an artificial neural network system for executing a prediction process according to the object image to identify a region image presenting the surface structure of the object in the object image.
24. The image scanning system for metal surface as claimed in claim 13, characterized in that: Also includes: A processor is coupled to the photosensitive element, receives the plurality of detection images of the plurality of surface blocks, and splices the plurality of detection images into an object image.
25. The image scanning system for metal surface as claimed in claim 13, characterized in that: Also includes: A processor is coupled to the photosensitive element. The processor also includes an artificial neural network system for executing a prediction program according to the object image to identify the area image in the object image that presents the surface structure of the object.
