This application claims priority to Chinese Patent Application No. 201510374348.1 filed on Jun. 30, 2015, the contents of which are incorporated by reference herein.
The subject matter herein generally relates to image capturing and controlling.
A testing sample (for example, a sample of a phone) can include surface flaws. Sometimes a surface flaw cannot be clearly or completely imaged under a fixed light source.
Many aspects of the disclosure can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures, and components have not been described in detail so as not to obscure the related relevant feature being described. Also, the description is not to be considered as limiting the scope of the embodiments described herein. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrate details and features of the present disclosure.
The present disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
The term “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules can be embedded in firmware, such as in an EPROM. The modules described herein can be implemented as either software and/or hardware modules and can be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY™, flash memory, and hard disk drives. The term “comprising” means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in a so-described combination, group, series, and the like.
In at least one embodiment, the storage device 13 can include various types of non-transitory computer-readable storage mediums. For example, the storage device 14 can be an internal storage system, such as a flash memory, a random access memory (RAM) for temporary storage of information, and/or a read-only memory (ROM) for permanent storage of information. The storage device 13 can also be an external storage system, such as a hard disk, a storage card, or a data storage medium. In at least one embodiment, the at least one processor 14 can be a central processing unit (CPU), a microprocessor, or other data processor chip that performs functions of the electronic device 1.
In at least one embodiment, the electronic device 1 interacts with a detection device 2 through a data cable (not shown). As shown in
A fixed unit 24 is mounted on the inclination device 23. A sample under test (testing sample 25) is fixed on the fixed unit 24. The camera unit 20 is positioned directly above the testing sample 25. The light source 22 is positioned between the camera unit 20 and the testing sample 25. The testing sample 25 may be a mobile phone or other manufactured object. The horizontal rotation platform 21 includes a driving motor for rotating the horizontal rotation platform 21 and the inclination device 23, to adjust positions of the testing sample 25. The driving motor may be a stepper motor or a servo motor.
The image capturing system 10 can obtain images of the testing sample 25 in various positions as the horizontal rotation platform 21 and the inclination device 23 rotate.
The controlling module 101 can locate the horizontal rotation platform 21 in an initial position, and locate an inclination device 23 of the detection device 2 in a horizontal position. In one embodiment, the initial position is denoted as a zero starting position of the horizontal rotation platform 21, and the horizontal position is denoted as a zero angle position between the horizontal rotation platform 21 and the inclination device 23. When the horizontal rotation platform 21 is located at the initial position, the testing sample 25 is horizontal and fixed on the fixed unit 24.
The driving motor of the controlling module 101 can control the horizontal rotation platform 21 to rotate horizontally and control the inclination device 23 to rotate vertically after activating the camera unit 20 and the light source 22. The driving motor of the controlling module 101 can control the horizontal rotation platform 21 to rotate with a first predetermined angle (e.g., 1 degree), and control the inclination device 23 to rotate with a second predetermined angle (e.g., 70 degrees). For example, the driving motor of the controlling module 101 controls the inclination device 23 to rotate vertically from the horizontal position to the 70 degrees position, and controls the inclination device 23 to rotate vertically from the 70 degrees position to the horizontal position.
In one embodiment, the driving motor of the controlling module 101 can control the horizontal rotation platform 21 to rotate horizontally to a first position with a first predetermined angle (e.g., one degree). When the horizontal rotation platform 21 is in the first position, the driving motor of the controlling module 101 controls the inclination device 23 to rotate vertically from the horizontal position to a second predetermined angle position. When the inclination device 23 is in the second predetermined angle position, the driving motor of the controlling module 101 controls the horizontal rotation platform 21 to rotate horizontally to a second position with the first predetermined angle. When the horizontal rotation platform 21 is in the second position, the driving motor of the controlling module 101 controls the inclination device 23 to rotate vertically from the second predetermined angle position to the horizontal position again. The driving motor of the controlling module 101 repeatedly controls the horizontal rotation platform 21 to rotate horizontally, and controls the inclination device 23 to rotate vertically until the horizontal rotation platform 21 has executed a 360 degree rotation.
The camera unit 20 of the acquisition module 102 can obtain images of the testing sample 25 as the horizontal rotation platform 21 is rotated and the inclination device 23 is rotated. For example, when the horizontal rotation platform 21 is rotated in an increment of one degree, and the inclination device 23 is rotated in an increment of ten degree, the camera unit 20 captures two images of the testing sample 25.
The analysis module 103 can detect a surface flaw of each of the obtained images, and generate a result of detection, indicating a surface flaw or not. In one embodiment, the technology for detecting a surface flaw of each of the obtained images is existing technology, and details need not be given.
The outputting module 104 can output the result of detection to the display device 11, and sort the testing sample 25 according to the result of detection. In one embodiment, if none of the obtained images have any surface flaw the outputting module 104 can output the result that the testing sample 25 has no surface flaw, and sorts the testing sample 25 as a qualified product. The outputting module 104 can display information on the display device 11, for example, a word “Pass”. If one or more obtained images indicate surface flaws, the outputting module 104 can output the result that the testing sample 25 has the surface flaw, and sorts the testing sample 25 as unqualified. The outputting module 104 can display information on the display device 11, for example, a word “Failed.”
In other embodiments, the image capturing system 10 may be in the detection device 2. Alternatively some modules of the image capturing system 10 are run in the detection device 2 and other modules of the image capturing system 10 are run in the electronic device 1. For example, the modules of 101-102 are executed by a microprocessor of the detection device 2, and the modules of 103-104 are executed by the processor 14 of the electronic device 1.
At block 401, a controlling module can control the horizontal rotation platform 21 to be located in an initial position. In one embodiment, the initial position is denoted as a zero starting position of the horizontal rotation platform 21. When the horizontal rotation platform 21 is located at the initial position, the testing sample 25 is positioned horizontally and fixed on the fixed unit 24.
At block 402, the controlling module further can control an inclination device 23 of the detection device 2 to be located horizontally.
At block 403, a driving motor of the controlling module can control the horizontal rotation platform 21 to rotate horizontally. In at least one embodiment, the driving motor of the controlling module can control the horizontal rotation platform 21 to rotate with a first predetermined angle (e.g., 1 degree).
At block 404, the driving motor of the controlling module further can control the inclination device 23 to rotate vertically after activating the camera unit 20 and the light source 22. In at least one embodiment, the driving motor of the controlling module control the inclination device 23 to rotate with a second predetermined angle (e.g., 70 degrees). For example, the driving motor of the controlling module 101 controls the inclination device 23 to rotate vertically from the horizontal position to the 70 degrees position, and controls the inclination device 23 to rotate vertically from the 70 degrees position to the horizontal position.
In one embodiment, the driving motor of the controlling module can control the horizontal rotation platform 21 to rotate horizontally to a first position with a first predetermined angle (e.g., one degree). When the horizontal rotation platform 21 is in the first position, the driving motor of the controlling module controls the inclination device 23 to rotate vertically from the horizontal position to a second predetermined angle position. When the inclination device 23 is in the second predetermined angle position, the driving motor of the controlling module controls the horizontal rotation platform 21 to rotate horizontally to a second position with the first predetermined angle. When the horizontal rotation platform 21 is in the second position, the driving motor of the controlling module controls the inclination device 23 to rotate vertically from the second predetermined angle position to the horizontal position again. The driving motor of the controlling module repeatedly controls the horizontal rotation platform 21 to rotate horizontally, and controls the inclination device 23 to rotate vertically until the horizontal rotation platform 21 has executed a 360 degree rotation.
At block 405, a camera unit 20 of an acquisition module can obtain images of the testing sample 25 as the horizontal rotation platform 21 is rotated and the inclination device 23 is rotated. For example, when the horizontal rotation platform 21 is rotated in an increment of one degree, and the inclination device 23 is rotated in an increment of ten degree, the camera unit 20 captures two images of the testing sample 25.
At block 406, an analysis module can detect a surface flaw of each of the obtained images. In one embodiment, the technology for detecting a surface flaw of each of the obtained images is existing technology, and details need not be given.
At block 407, the analysis module further can generate a result of detection, indicating a surface flaw or not.
At block 408, an outputting module can output the result of detection to the display device 11. In one embodiment, if none of the obtained images have any surface flaw, the outputting module can output the result that the testing sample 25 has no surface flaw. If one or more obtained images indicate surface flaws, the outputting module can output the result that the testing sample 25 has the surface flaw.
At block 409, the outputting module can sort the testing sample 25 according to the result of detection. When the testing sample 25 has no surface flaw, the outputting module can sort the testing sample 25 as a qualified product, and display information on the display device 11, for example, a word “Pass”. When the testing sample 25 has the surface flaw, the outputting module can sort the testing sample 25 as unqualified, and display information on the display device 11, for example, a word “Failed.”
It should be emphasized that the above-described embodiments of the present disclosure, including any particular embodiments, are merely possible examples of implementations, set forth for a clear understanding of the principles of the disclosure. Many variations and modifications can be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
201510374348.1 | Jun 2015 | CN | national |