1. Technical Field
The present disclosure relates to positioning devices and positioning methods and, particularly, to a positioning device capable of automatically positioning a target test spot of an object and a positioning method thereof.
2. Description of Related Art
A discharging unit is employed to perform an electrostatic discharge (ESD) test of each test spot of an object, to test the static electricity that the object can stand. However, the discharging unit is usually manually positioned to aim at the test spot. This manual action may cause the discharging unit to be departed from the test spot, thus the precision of the ESD test may decrease.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views.
The embodiments of the present disclosure are described with reference to the drawings.
In this embodiment, the positioning device 1 includes a supporting member 11, an input unit 12, a capturing unit 13, a storage unit 14, a distance detection unit 15, a driving device 16, and a processor 17. The discharging unit 5 is movably arranged on the supporting member 11 and can be moved to aim at the target test spot 4. The capturing unit 13 is fixed to the supporting member 11 and configured to capture an image of the product 2. In the embodiment, the product 2 is placed on a fixed position of the platform 3, thus in a X-Y-Z coordinate system, a distance between the label 6 and the discharging unit 5 along the Z-axis is a fixed value, and the distance between the capturing unit 13 and the label 6 along the Z-axis is a fixed value, accordingly a ratio of the image size of the object in the captured image to real-life size of the object (hereinafter, ratio) is a fixed value. The storage unit 14 stores the ratio and the distance between the label 6 and the discharging unit 5 along the Z-axis. The distance detection unit 15 is configured to detect a distance between the capturing unit 13 and the discharging unit 5 along the Y-axis. The driving device 16 is configured to drive the discharging unit 5 to move in an X-Y-Z coordinate system. The processor 17 is configured to control the capturing unit 13 to capture an image of the product 2 in response to a user operation on the input unit 12, and determine the label 6 in the captured image. The processor 17 is further to determine an actual distance along the X-axis and an actual distance along the Y-axis between the discharging unit 5 and the label 6, and control the driving device 16 to drive the discharging unit 5 to move the determined actual distance along the X-axis in the X direction, the determined actual distance along the Y-axis in the Y direction, and the stored distance between the label 6 and the discharging unit 5 in the Z direction. The detail method of how to determine the above-mentioned distances will be described below. In the embodiment, the processor 17 is further configured to control the discharging unit 5 to discharge a preset number.
The control module 171 is configured to control the capturing unit 13 to capture an image of the product 2 in response to the user operation on the input unit 12.
The image analyzing module 172 is configured to determine the label 6 in the captured image. In the embodiment, the color of the label 6 is a special color which is different from the color of the product 2 and the platform 3. The image analyzing module 172 identifies the special color in the image to determine the label 6. In other embodiments, the storage unit 14 further stores the shape template of the label 6 which is different from the shape of the product 2 and the platform 3. The image analyzing module 172 determines that an object in the image whose shape is the same as the stored shape template is the label 6.
The calculating module 173 is configured to determine the actual distance along the X-axis and the actual distance along the Y-axis between the discharging unit 5 and the label 6.
In detail, a center point of the captured image is considered as a center of the projected area of the capturing unit 13 in the image. A two-dimensional Cartesian coordinate system is established and the center of the captured image is set to be the origin or zero point of the Cartesian coordinate system. The calculating module 173 determines a set of coordinate of the label 6 in the image, determines a virtual distance along the X-axis and a virtual distance along the Y-axis between the center point of the captured image and the label 6 in the captured image, and determines an actual distance along the X-axis and an actual distance along the Y-axis between the capturing unit 13 and the label 6 in the real-life according to the stored ratio, the determined virtual distance along the X-axis, and the determined virtual distance along the Y-axis. The calculating module 173 further determines the determined actual distance along the X-axis between the capturing unit 13 and the label 6 is the actual distance along the X-axis between the discharging unit 5 and the label 6, obtains the distance between the capturing unit 13 and the discharging unit 5 along the Y-axis detected by the distance detection unit 15, and determines that the actual distance along the Y-axis between the capturing unit 13 and the label 6 subtracting the distance between the capturing unit 13 and the discharging unit 5 along the Y-axis is the actual distance along the Y-axis between the discharging unit 5 and the label 6.
The driving module 174 is configured to control the driving device 16 to drive the discharging unit 5 to move in the X direction the determined actual distance along the X-axis between the discharging unit 5 and the label 6, move in the Y direction the determined actual distance along the Y-axis between the discharging unit 5 and the label 6, and move in the Z direction the stored distance between the label 6 and the discharging unit 5 along the Z-axis. Thus the discharging unit 5 can be moved to aim at the label 6, and accordingly aim at the target test spot 4.
In the embodiment, the processor 17 further includes an executing module 175 configured to control the discharging unit 5 to discharge a preset number.
In the embodiment, the driving device 16 includes a first driving unit 161, a second driving unit 162, and a third driving unit 163. The driving units 161, 162, 163 may be motors. The first driving unit 161 and the second driving unit 162 are fixed in the base 111. The third driving unit 163 is attached to another end of the extending arm 114 away from the discharging unit 5. The positioning device 1 further includes a transmission device 18. The transmission device 18 includes a first transmission unit 181, a second transmission unit 182, and a third transmission unit 183. The transmission units 181, 182, 183 may be gear sets or fixed pulleys and lines. The first transmission unit 181 is arranged in the base 111, the second transmission unit 182 is arranged in the supporting arm 112 and fixed to the sliding block 113, and the third transmission unit 183 is arranged in the extending arm 114 and fixed to the discharging unit 5. The first transmission unit 181 is configured to transmit the drive of the first driving unit 161 to the movement of the base 111 in the X direction, transmit the drive of the second driving unit 162 to the movement of the discharging unit 5 in the Y direction, and transmit the drive of the third driving unit 163 to the movement of the discharging unit 5 in the Z direction.
In step S401, the control module 171 controls the capturing unit 13 to capture an image of the product 2 in response to a user operation.
In step S402, the image analyzing module 172 determines the label 6 in the captured image. In the embodiment, the color of the label 6 is a special color which is different from the color of the product 2 and the platform 3. The image analyzing module 172 identifies the special color in the image to determine the label 6. In other embodiments, the storage unit 14 further stores a shape template of the label 6 which is different from the shape of the product 2 and the platform 3. The image analyzing module 172 determines that an object in the image whose shape is the same as the stored shape template of the label 6 is the label 6.
In step S403, the calculating module 173 determines an actual distance along a X-axis and an actual distance along a Y-axis between the discharging unit 5 and the label 6.
In detail, the center point of the captured image is considered as a center of the projected area of the capturing unit 13 in the image. A two-dimensional Cartesian coordinate system is established and the center of the captured image is set to be the origin or zero point of the Cartesian coordinate system. The calculating module 173 determines a virtual distance along the X-axis and a virtual distance along the Y-axis between the center point of the captured image and the label 6 in the captured image, and determines an actual distance along the X-axis and an actual distance along Y-axis between the capturing unit 13 and the label 6 in the real-life according to the stored ratio, and the determined virtual distance along the X-axis and the determined virtual distance along the Y-axis. The calculating module 173 further determines the determined actual distance along the X-axis between the capturing unit 13 and the label 6 is the actual X-axis difference between the discharging unit 5 and the label 6, obtains the distance between the capturing unit 13 and the discharging unit 5 along the Y-axis detected by the distance detection unit 15, and determines that the actual distance along the Y-axis between the discharging unit 5 and the label 6 is equal to the actual distance along the Y-axis between the capturing unit 13 and the label 6 subtracting the distance between the capturing unit 13 and the discharging unit 5 along the Y-axis.
In step S404, the driving module 174 controls the driving device 16 to drive the discharging unit 5 to move the determined actual distance along the X-axis between the discharging unit 5 and the label 6 in the X direction, move the determined actual distance along the Y-axis between the discharging unit 5 and the label 6 in the Y direction, and move the stored distance between the label 6 and the discharging unit 5 along the Z-axis in the Z direction.
In the embodiment, the method of controlling the discharging unit 5 to discharge is executed after the method of controlling the driving device 16 to drive the discharging unit 5 to move.
In detail, the executing module 175 controls the discharging unit 5 to discharge a preset number.
Although the present disclosure has been specifically described on the basis of the exemplary embodiment thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment without departing from the scope and spirit of the disclosure.
| Number | Date | Country | Kind |
|---|---|---|---|
| 2012105783259 | Dec 2012 | CN | national |