1. Technical Field
The present disclosure relates to checking apparatuses, and particularly to a checking apparatus for checking holes position and size in a plate.
2. Description of Related Art
Steel plates with holes are often used in surface mount technology (SMT), and solder paste is applied on the surface of printed circuit boards (PCBs) via the holes. Before using the steel plate the holes need to be checked to ensure proper placement, and size. However, the checking is usually done manually, and when there are a lot of holes the procedure takes too much time and is subject to human error.
Therefore, there is room for improvement in the art.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments of the checking apparatus. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views.
Referring to
The image obtaining unit 21 is used for obtaining an image of the steel plate. The processor 22 is used for determining a target region in the obtained image, according to the position of holes recorded in the predetermined file, and processing the obtained target image to generate image data. In addition, the processor 22 further obtains the number and placement of pixels determined to represent the hole in the target region with a value equal to a predetermined pixel value. The processor 22 compares the obtained number and placement of pixels that represent the hole with the expected number and placement of pixels and generates a comparison. If the comparison is not a match, the processor 22 generates a signal indicating the hole is defective. The predetermined pixel value is also stored in the memory 24, and is used for reflecting the color of holes defined in the steel plate. In the embodiment, the obtained target image is converted to the grayscale digital image with the processor 22. The binary numbers 0 and 1 respectively represent black pixels and white pixels of the obtained image. Because the holes defined in the steel plate are displayed in white in the obtained image, the predetermined pixel value is 1. Therefore, the processor 22 obtains the number and placement of the pixels by scanning the pixels whose pixel value is 1 (white pixel).
The outputting unit 23 is used to output information according to the signal generated by the processor 22. In the embodiment, the outputting unit 23 is a display, the outputting unit 23 displays images.
Referring further to
Referring to
Referring to
At step S400, the image obtaining unit 21 obtains an image of the steel plate.
At step S410, the position determining module 401 determines a target region in the obtained image according to the position of holes recorded in the predetermined file.
At step S420, the image processing module 402 processes the target region to generate image data, in the embodiment, the image processing module 402 processes the target region with the calculated gray level to generate serial image data described in pixel.
At step S430, the scanning module 403 scans the target region processed by the image processing module 402 with gray level to obtain the number and placement of pixels determined to represent the hole in the target region with a value equal to a predetermined pixel value.
At step S440, the comparing module 404 compares the obtained number and placement of pixels determined to represent the hole with the expected number and placement of pixels and generates a comparison if the obtained number and placement of pixels do not match the expected number and placement of pixels.
At step S450, the controlling module 405 generates a signal indicating that holes defined in the target region is defective according to the comparison.
At step S460, the outputting unit 23 generates information according to the signal generated by the controlling module 405.
As described above, by virtue of the checking apparatus 20 for checking holes position and size in a plate and the method applied, thereby, the defective holes defined in the steel plate can be checked.
It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the disclosure or sacrificing all of its material advantages, the examples described merely being preferred or exemplary embodiments of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201010143532.2 | Apr 2010 | CN | national |