The present invention relates to a system for detecting a surface pattern of an object and an artificial neural network-based method for detecting a surface pattern of an object, and particularly, to a system capable of learning and automatically detecting various surface types such as slots, cracks, bumps and textures of an object, and a neural network training system thereof.
Various safety protection measures are consisted of numerous small structural elements, such as safety belts. If these small structural elements have insufficient strength or other defects, safety concerns of the safety protection measures can be resulted.
Due to various reasons during a manufacturing process, such as unintentional impacts or mold defects, minute slots, cracks, bumps and patterns can be resulted on surfaces of these small or miniature structural elements, and these minute defects cannot be easily observed. In one conventional defect detection method, a product under detection is observed by the naked eyes or touched by hands. However, inspecting by such manual detection method to determine whether a product is defective has poor efficiency and is susceptible to misjudgment.
In view of the above, a system for detecting a surface pattern of an object and an artificial neural network-based method for detecting a surface pattern of an object of the present invention perform training by multi-angle imaging (i.e., different lighting directions) and preprocessing of multi-dimensional superimposition, so as to enhance distinguishability of a stereoscopic structural feature of an object without increasing computation time.
In one embodiment, an artificial neural network-based method for detecting a surface pattern of an object includes: receiving a plurality of object images of a plurality of objects, wherein the plurality of object images of each of the objects are images of the object captured based on light of a plurality of lighting directions and the plurality of lighting directions are different from one another; superimposing the plurality of object images of each of the objects into an initial image; and performing deep learning by using the plurality of initial images of the plurality of objects to build a predictive model for identifying the surface pattern of the object.
In one embodiment, a system for detecting a surface pattern of an object includes a driver component, a plurality of lighting source components and a photosensitive element. The driver component carries an object, a surface of the object is divided along a first direction into a plurality of areas, and the driver component is further for sequentially moving one of the plurality of areas to a detection position. The plurality of light source components are configured to face the detection position according to a plurality of different lighting directions, respectively, and provide light to illuminate the detection position, respectively, wherein a light incident angle of the light provided by each of the light source components relative to a normal line of the area located at the detection position is less than or equal to 90 degrees. The photosensitive element is configured to face the detection position, and sequentially captures the detection image of each of the areas when the light illuminates the detection position with the lighting directions.
In conclusion, the system for detecting a surface pattern of an object and an artificial neural network-based method for detecting a surface pattern of an object according to an embodiment of the present invention are capable of providing object images of different imaging effects for the same object by controlling various different incident angles of imaging light sources, thereby enhancing stereoscopic distinguishability in space for various surface patterns of an object under image detection. In the system for detecting a surface pattern of an object and an artificial neural network-based method for detecting a surface pattern of an object according to an embodiment of the present invention, object images under different lighting directions can be integrated by performing multi-dimensional superimposition on the object images, so as to improve identification of a surface pattern of an object and to further obtain an optimal resolution of the surface pattern of the object. In the system for detecting a surface pattern of an object and an artificial neural network-based method for detecting a surface pattern of an object according to an embodiment of the present invention, surface images of multiple spectra can also be integrated, so as to improve identification of a surface pattern of an object, further obtaining an optimal resolution of the surface pattern of the object. In the system for detecting a surface pattern of an object and an artificial neural network-based method for detecting a surface pattern of an object according to an embodiment of the present invention, surface images of multi-spectrum can be integrated to enhance the identification of a surface pattern of an object. In the system for detecting a surface pattern of an object and an artificial neural network-based method for detecting a surface pattern of an object according to an embodiment of the present invention, a surface pattern of an object can be independently determined by an artificial neural network system such that an inspector is not required to observe the object by the naked eyes or touch the object by hands, hence significantly improving the efficiency of identifying surface patterns as well as reducing human misjudgment.
Refer to
The system 1 for detecting a surface pattern of an object includes a processor 30, a driver component 20, a plurality of light source components 501, 502, 503 and 504, and a photosensitive element 40. The processor 30 is coupled to the driver component 20, the plurality of light source components 501, 502, 503 and 504, and the photosensitive element 40. The driver component 20 is for carrying an object 10, and is configured with a detection position. The plurality of light source components 501, 502, 503 and 504 and the photosensitive element 40 are configured to face the detection position from different angles, and the plurality of light source components 501, 502, 503 and 504 provide light from different lighting directions toward an imaging target position (i.e., the detection position) to be detected. In other words, the plurality of light source components 501, 502, 503 and 504 face the detection position and are configured in a plurality of different lighting directions toward the detection position. Thus, the system 1 for detecting a surface pattern of an object can obtain object images having optimal spatial information of surface features. In one embodiment, the plurality of lighting directions at least include the front side of the detection position, the rear side of the detection position, the left side of the detection position and the right side of the detection position, as shown in
In one embodiment, light L provided by the light source components is visible light, so as to form an image of a surface pattern in a scale of submicron (μm) on the surface of the object 10 in the detection image. In one embodiment, the optical wavelength of the light L can range between 380 nm and 780 nm, and can be determined according to requirements of material properties and spectral reflectance of the surface of an inspected object. In some embodiments, the visible light is, for example, any one of white light, violet light, blue light, green light, yellow light, orange light and red light. For example, the light L can be white light having a wavelength ranging between 380 nm and 780 nm, blue light having a wavelength ranging between 450 nm and 475 nm, green light having a wavelength ranging between 495 nm and 570 nm, or red light having a wavelength ranging between 620 nm and 750 nm.
Refer to
In one embodiment, the plurality of light source components of the system 1 for detecting a surface pattern of an object provide light with the same light incident angle. In one embodiment, the photosensitive axis of the photosensitive element 40 is parallel to the normal line C.
Again refer to
In one embodiment, the photosensitive element 40 is configured to face the detection position, and sequentially captures a detection image of each of the areas 10a, 10b and 10c when the light L sequentially illuminates the detection position with each of the lighting directions. For example, during a detection procedure, the driver component 20 first moves the area 10a to the detection position, and as the area 10a is illuminated by the detection light provided by the light source component 501, the photosensitive element 40 captures the detection image of the area 10a. Next, as the area 10b is illuminated by the detection light provided by the light source component 502, the photosensitive element 40 captures the detection image of the area 10a. Then, as the area 10a is illuminated by the detection light provided by the light source component 503, the photosensitive element 40 captures the detection image of the area 10a. The above is repeated similarly until the detection images of the area 10a under all the different lighting directions have been captured. The driver component 20 then moves the object 10 such that the area 10b becomes located at the detection position, and as the area 10b is illuminated by the detection light provided by the light source component 501, the photosensitive element 40 then captures the detection image of the area 10b. The above is repeated similarly until the detection images of the area 10b under all the different lighting directions have been captured. Thus, the detection images of all the areas under all the different lighting directions can be obtained.
In one embodiment, the photosensitive element 40 is configured to face the detection position; when the areas 10a, 10b and 10c of the object 10 sequentially arrive at the detection position as the light L in one lighting direction illuminates the detection position, the photosensitive element 40 sequentially captures the detection images of the areas 10a, 10b and 10c. For example, as the light source component 501 provides the light L to the detection position, when the areas 10a, 10b and 10c sequentially arrive at the detection position, the photosensitive element 40 also sequentially captures the detection images of the area 10b, the area 10b and the area 10c of the object 10 located at the detection position. As the light source component 502 provides the light L to the detection position, when the areas 10a, 10b and 10c sequentially arrive at the detection position, the photosensitive element 40 also sequentially captures the detection images of the area 10b, the area 10b and the area 10c of the object 10 located at the detection position. The above is repeated similarly so as to obtain the detection images of each of the areas under different lighting directions.
In one embodiment, between the optical axes of any two adjacent light source components among the plurality of light source components is the same predetermined included angle. As shown in
Refer to
In some embodiments, the photosensitive component 40 can include a movement component 460, and the movement component 460 is coupled to the spectroscopic component 46 and the processor 30. During the operation of the system 1 for detecting a surface pattern of an object, under the control of the processor 30, the movement component 460 sequentially moves one of the filter regions 462, 464 and 466 of the spectroscopic component 46 to the photosensitive axis D of the photosensitive element 40.
Refer to
Refer to
In some embodiments, the optical waveband of spectra of the multi-spectrum light provided by the light source component 50 can be between 380 nm and 750 nm, and the optical wavebands individually allowed to pass through the multiple filter regions 462, 464, 466, 562, 564 and 566 of the spectroscopic components 46 and 56 are respectively any non-overlapping sections between 380 nm and 750 nm. Herein, the optical wavebands individually allowed to pass through the multiple filter regions 462, 464, 466, 562, 564 and 566 of the spectroscopic components 46 and 56 can be continuous or discontinuous. For example, assuming that the optical waveband of the multi-spectrum light is between 380 nm and 750 nm, the optical wavebands individually allowed to pass through the multiple filter regions of the spectroscopic components 46 and 56 can be 380 nm to 450 nm, 450 nm to 475 nm, 475 nm to 495 nm, 495 nm to 570 nm, 570 nm to 590 nm, 590 nm to 620 nm, and 620 nm to 750 nm, respectively. In another example, assuming that the optical waveband of the multi-spectrum light is between 380 nm and 750 nm, the optical wavebands individually allowed to pass through the multiple filter regions 462, 464, 466, 562, 564 and 566 of the spectroscopic components 46 and 56 can be 380 nm to 450 nm, 495 nm to 570 nm, and 620 nm to 750 nm, respectively.
In one embodiment, the plurality of object images of each of the objects 10 can be images of the objects 10 captured based on another light of a plurality of lighting directions, wherein the spectrum of the another light is different from the spectrum of the original light.
In a first example, during the operation of the system 1 for detecting a surface pattern of an object, as the light source components of different lighting directions sequentially emit first light to illuminate the detection position, the photosensitive element 40 sequentially captures the detection images of the areas 10a, 10b and 10c under the different lighting directions; as the light source components of different lighting directions sequentially emit second light to illuminate the detection position, the photosensitive element 40 sequentially captures the detection images of the areas 10a, 10b and 10c, wherein the first light and the second light have different spectra.
In a second example, as the light source components 50 of different lighting directions sequentially emit multi-spectrum light to illuminate the detection position, the photosensitive element 40 captures the detection images of the areas 10a, 10b and 10c while the filter region 562 is moved to the photosensitive axis, and the photosensitive element 40 captures the detection images of the areas 10a, 10b and 10c while the filter region 564 is moved to the photosensitive axis, thus obtaining multiple detection images corresponding to the spectra of the filter regions 562 and 564.
In the first example and the second example, the system 1 for detecting a surface pattern of an object is similarly capable of obtaining detection images of different spectra under different lighting directions by using different operation processes, thereby enhancing stereoscopic distinguishability in space for various surface patterns of an object under image detection.
Again refer to
Again refer to
In one embodiment, the driver component 20 includes the carrier element 22 and the driver motor 24. The driver motor 24 is connected to the carrier element 22. During the operation of the system for detecting a surface pattern of an object, the carrier element 22 carries the object 10, and the driver motor 24 rotates the carrier element 22 so as to drive the object 10 to rotate and sequentially move the plurality of areas to the detection position.
In one example, the carrier element 22 can be two rollers spaced by a predetermined distance, and the driver motor 24 is coupled to rotating shafts of the two rollers. Herein, the predetermined distance is less than the diameter of the object 10 (the minimum diameter of the body). Thus, the object 10 can be movably arranged between the two rollers. Furthermore, while the driver motor 24 rotates the two rollers, the object 10 is driven and hence rotated due to the surface frictional force between the object 10 and the two rollers.
In another example, the carrier element 22 can be a rotating shaft, and the driver motor 24 is coupled to one end of the rotating shaft. At this point, the other end of the rotating shaft is provided with an embedding member (e.g., an insertion slot). At this point, the object 10 can be detachably embedded in the embedding member. Furthermore, while the driver motor 24 rotates the rotating shaft, the object 10 is driven and hence rotated by the rotating shaft.
Refer to
In one embodiment, the photosensitive element 40 can be a linear photosensitive element; the linear photosensitive element can be implemented by a linear image sensor. At this point, the detection images 100 captured by the photosensitive element 40 can be combined without cropping by the processor 30.
In another embodiment, the photosensitive element 40 is a two-dimensional photosensitive element; the two-dimensional photosensitive element can be implemented by a planar image sensor. At this point, upon capturing the detection images 100 of all the areas 10a to 10c of the same lighting direction by the photosensitive element 40, the processor 30 captures, based on the short sides of the detection images 100, middle regions of the detection images 100. Then, the processor 30 combines the middle regions corresponding to all the areas 10a to 10c into the object image M.
In one embodiment, referring to
Refer to
Refer to
In the learning phase, the artificial neural network system receives a plurality of object images of a plurality of objects (step S01). Herein, the plurality of object images of each of the objects are images of the objects captured based on the light from a plurality of lighting directions, wherein the lighting directions are different from one another. For example, the plurality of object images can be a plurality of the object images M obtained by the system 1 for detecting a surface pattern of an object, as illustrated in
Next, the artificial neural network system superimposes the plurality of object images of each of the objects into an initial image (step S02). Then, the artificial neural network system performs deep learning by using the plurality of initial images of the plurality of objects to build a predictive model for identifying a surface pattern of an object (step S03). In some embodiments, the deep learning can be implemented by a convolutional neural network (CNN) algorithm; however, the present invention is not limited to the above example.
Refer to
Refer to
That is to say, with respect to the artificial neural network system stored in the processor 30, the artificial neural network system in the learning phase can receive initial images obtained by superimposing object images of different lighting directions of multiple objects. Taking the foregoing system for detecting a surface pattern of an object for example, images of different surface patterns can be images having different defects, images without defects, images having different levels of surface roughness, or images of defects presenting different levels of brightness and contrast produced by illuminating areas on a surface with light of different lighting directions, and the artificial neural network system can perform deep learning according to the images of various surface patterns so as to build a predictive procedure for identifying various surface patterns. In other words, by using imaging with multi-angle light sources and preprocessing of superimposing images, the distinguishability for features of stereoscopic defects can be significantly enhanced without vastly increasing computation time of the CNN algorithm, providing better outcome than conventional optical algorithms.
Refer to
Refer to
In one embodiment, the artificial neural network-based method for detecting a surface pattern of an object further includes transforming the initial image of each of the objects into a matrix (step S31), and performing the deep learning by using the plurality of matrices to build the predictive model for identifying a surface pattern of an object (step S32). That is to say, different initial images are transformed into information such as length, width, pixel type, pixel depth and channel value in data matrices, so as to facilitate subsequent processing, wherein the channel value represents an imaging condition of a corresponding object image. Herein, an artificial neural network (e.g., implemented by a deep learning program) in the artificial neural network system includes a plurality of image matrix input channels for inputting corresponding matrices, and the image matrix input channels respectively represent imaging conditions of a plurality of spectra. In other words, in step S31, a data format of the initial image is transformed to a format (e.g., an image matrix) supported by the input channel of the artificial neural network.
In some embodiments, in the learning phase, the object images received by the artificial neural network system are known surface patterns, and surface defect types outputted by the artificial neural network system are also set in advance. In other words, the object images used for deep learning are all marked with existing object types. For instance, in one example, if an object is an unqualified object, the surface of the object has one or more surface patterns that the artificial neural network system has already learned and attempts to capture, such that the artificial neural network system then selects these surface patterns; conversely, if an object is a qualified object, the surface of the object does not possess any surface patterns that have been recorded and are used for triggering the selection action of the artificial neural network. At this point, some of the object images received by the artificial neural network system have labels of one or more surface patterns, and others have labels without any surface patterns. Furthermore, the output of the artificial neural network system sets in advance a plurality of surface pattern categories according to these surface patterns. In another example, if an object is an unqualified object, the surface of the object has one or more first-type surface patterns; conversely, if an object is a qualified object, the surface of the object has one or more second-type surface patterns. At this point, some of the object images received by the artificial neural network system have labels of one or more first-type surface patterns, and others have labels of one or more second-type surface patterns. Furthermore, the output of the artificial neural network system sets in advance a plurality of surface pattern categories according to these surface patterns.
In some embodiments, in the learning phase, the artificial neural network system performs training by using object images with known surface defects so as to generate determination items of the neurons in a predictive model and/or to adjust a weighting connecting any two neurons, such that a prediction result (i.e., the surface defect type outputted) of each object image conforms to the known and labeled as learned surface defects, and a predictive model for identifying a surface pattern of an object can be built. In the prediction phase, the artificial neural network system performs category prediction on object images of unknown surface patterns by using the predictive model built. In some embodiments, the artificial neural network system performs percentile prediction on the object image according to surface pattern categories, i.e., determining the percentage of possibility that each object image falls within the individual surface pattern categories.
In some embodiments, the artificial neural network system includes an input layer and a multiple layers of hidden layers. The input layer is coupled to the hidden layers. The input layer is for performing operations of steps S01 and S02 (and steps S11 and S21) above. The hidden layers are for performing step S03 above.
In some other embodiments, the artificial neural network system includes a preprocessing unit and a neural network unit. The preprocessing unit is coupled to the neural network unit. The preprocessing unit is for performing steps S01 and S02 (and steps S11 and S21) above. The neural network unit is for performing step S03 above. The neural network unit includes an input layer and multiple layers of hidden layers, and the input layer is coupled to the hidden layers.
Refer to
In some embodiments, the processor 30 can include the foregoing artificial neural network system, so as to automatically perform surface pattern categorization according to a combined image, thereby automatically determining the surface pattern of the surface of the object 10. In other words, in the learning phase, the object image generated by the processor 30 can be subsequently used for training by the artificial neural network system, so as to build a predictive model for identifying a surface pattern of an object. In the prediction phase, the object image generated by the processor 30 can be subsequently used for prediction by the artificial neural network system, so as to perform category prediction of an object image by the predictive model.
In some embodiments, the object image generated by the processor 30 can be fed into another processor having the foregoing artificial neural network system, so as to have the artificial neural network system automatically categorize a surface pattern according to the combined object image, thereby automatically determining the surface pattern of the surface of the object 10. In other words, the artificial neural network system automatically performs training or prediction with respect to the object image fed thereto.
In one example of step S02 or S21, the object images of the same object can have the same spectrum. In another example of step S02 or S21, the object images of the same object can have different spectra. That is to say, multiple object images of the same object include an image of the object captured based on light of a spectrum of different lighting directions, and an image of the object captured based on light of another spectrum of different lighting directions. Furthermore, the two spectra are different from each other.
In some embodiments, the artificial neural network-based method for detecting a surface pattern of an object of the present invention can be implemented by a computer program product, such that the artificial neural network-based method for detecting a surface pattern of an object according to any one of the embodiments of the present invention can be completed when a computer (i.e., a processor) loads and executes the program. In some embodiments, the computer program product is a non-transitory computer-readable recording medium, and the program above is stored in the non-transitory computer-readable recording medium and to be loaded by a computer (i.e., a processor). In some embodiments, the program above itself can be a computer program product, and is transmitted by a wired or wireless means into a computer.
In conclusion of the above description, the system for detecting a surface pattern of an object and the artificial neural network-based method for detecting a surface pattern of an object according to an embodiment of the present invention are capable of providing object images of different imaging effects for the same object by controlling various different incident angles of imaging light sources so as to perform image capturing, thereby enhancing stereoscopic distinguishability in space for various surface patterns of an object under image detection. In the system for detecting a surface pattern of an object and an artificial neural network-based method for detecting a surface pattern of an object according to an embodiment of the present invention, object images under different lighting directions can be integrated by performing multi-dimensional superimposition on the object images, so as to improve identification of a surface pattern of an object and to further obtain an optimal resolution of the surface pattern of the object. In the system for detecting a surface pattern of an object and an artificial neural network-based method for detecting a surface pattern of an object according to an embodiment of the present invention, surface images of multiple spectra can also be integrated, so as to improve identification of a surface pattern of an object. In the system for detecting a surface pattern of an object and an artificial neural network-based method for detecting a surface pattern of an object according to an embodiment of the present invention, a surface pattern of an object can be independently determined by an artificial neural network system such that an inspector is not required to observe the object by the naked eyes or touch the object by hands, hence significantly improving the efficiency of identifying surface patterns as well as reducing human misjudgment.
The present disclosure is explained by way of the disclosed embodiments that are not to be construed as limitations to the present disclosure. Without departing from the spirit and purview of the present disclosure, a person of ordinary skill in the art could make slight modifications and changes. Therefore, the legal protection of the present disclosure shall be defined by the appended claims.
This application claims priority from U.S. Patent Application Ser. No. 62/848,216, filed on May 15, 2019, the entire disclosure of which is hereby incorporated by reference.
| Number | Date | Country | |
|---|---|---|---|
| 62848216 | May 2019 | US |