1. Technical Field
The disclosure relates to label detecting technology and, more particularly, to a label detecting system, a label detecting apparatus and a label detecting method adapted for the label detecting apparatus.
2. Description of Related Art
A circuit board of a computer normally has an identification label adhered to it. In the course of producing the computer, the label is needed on the circuit board, and it should be located in a correct position on the circuit board, the contents of the label should be correct for that particular circuit board, showing, for example, a serial number of the label and other relevant information. In related art, a conventional detecting label method directly compares a circuit board under test with a standard circuit board to investigate a position of a label on the circuit board under test, where the standard circuit board is properly labeled. However, the conventional detecting label method of comparing two whole boards is cursory and inaccurate.
Therefore, what is needed is a label detecting system to overcome the described shortcoming
The storage unit 20 is configured to pre-store a binary image of a standard label, location information of the standard label on a standard circuit board, and two threshold values, wherein a first threshold value is closer to one and a second threshold value is closer to zero. The standard label is adhesively attached in a proper position on the standard circuit board which has a same shape as the circuit board under test. The binary image of the standard label and the location information of the standard label on the standard circuit board may be obtained from other storage devices (not shown).
The binary image of the standard label and the location information of the standard label on the standard circuit board also can be obtained from the label detecting apparatus 2 according to an obtaining method as follows: the capturing unit 10 takes a photo of the standard circuit board, to which the standard label is adhesively attached in the proper position, to obtain an image of the standard circuit board, and the label detecting apparatus 2 performs an image processing function for the obtained image of the standard circuit board to obtain the binary image of the standard label and the location information of the standard label on the standard circuit board. The image processing function includes steps of: acquiring an image of the standard label from the image of the standard circuit board based on a profile algorithm, performing a gray processing function for the image of the standard label to obtain a gray image of the standard label, performing an adaptive binary processing function for the gray image of the standard label to obtain the binary image of the standard label, and performing a gray processing function for the image of the standard circuit board to obtain a gray image of the standard circuit board, performing an adaptive binary processing function for the gray image of the standard circuit board to obtain the binary image of the standard circuit board, and cutting out the standard label based on the binary image of the standard label from the binary image of the standard circuit board to obtain the location information of the standard label on the standard circuit board.
Referring to
The matrix defining module 420 is configured to define a two-dimensional matrix according to the binary image of the circuit board under test and the binary image of the standard label, wherein a column N of the two-dimensional matrix is obtained according to a formula: N=N2−N1+1, where N2 represents a column of the binary image of the circuit board under test and N1 represents a column of the binary image of the standard label, and a row M of the two-dimensional matrix is obtained according to a formula: M=M2−M1+1, where M2 represents a row of the binary image of the circuit board under test and M1 represents a row of the binary image of the standard label.
The scanning module 430 is configured to divide the binary image of the whole circuit board under test into a number of areas each of which has the same size as the standard label in binary form and scan the binary image of the circuit board under test by the binary image of the standard label, such as scanning the circuit board under test from the initial position as shown in
The determination module 460 is configured to determine whether the location information of the area associated with the maximum is similar to the actual location of the standard label in the binary image of the standard circuit board. When the location information of the area associated with the maximum is not similar, the output control module 470 is configured to control the display unit 50 to display a prompt or warning that a label on the circuit board under test is not in a proper position or that the circuit board under test is not labeled at all. When the location information of the area associated with the maximum is similar, the determination module 460 further compares the maximum with the two stored threshold values to detect a result concerning the actual position of the label on the circuit board under test. The output control module 470 further controls the display unit 50 to display the result of the determination.
A scanning process performed by the scanning module 430 includes the steps of: scanning a matrix unit (the dotted lines shown in
The determination module 460 determines whether the location information of the ninth area is similar to that of the standard label. Referring to
That is, a label which is on the ninth area is improperly adhered to the circuit board under test. When the maximum is less than the second threshold value, the result of the determination determined by the determination module 460 is that the circuit board under test is not labeled at all, that is, the circuit board under test does not include a label.
The storage unit 20 is further configured to store a plurality of serial numbers of a set of labels including the standard label. Each serial number corresponds to an individual circuit board under test. When the maximum is greater than the first threshold value, the image processing module 410 is further configured to perform a gray and binary processing function for the image of the label actually on the circuit board under test to obtain a binary image of the label and obtain a serial number of the actual label via a string segmentation algorithm, the determination module 460 is further configured to determine whether the serial number of the actual label has been stored in the storage unit 20, thereby determining whether the label is adhering to the proper circuit board. Therefore, the label detecting system 1 can quickly and correctly detect an incorrect label distribution on the circuit board under test.
In step S420, the matrix defining module 420 defines a two-dimensional matrix according to the binary image of the circuit board under test and the binary image of the standard label.
In step S430, the scanning module 430 divides the binary image of the circuit board under test into a number of areas each of which has the same size as that of the binary image of the standard label and scans the binary image of the circuit board under test in the binary image of the standard label. In step S440, the matching module 440 performs a generalization and correlation analysis between each area after division and the binary image of the standard label to obtain a matching value and distributes all matching values in the defined two-dimensional matrix in order. In step S450, the maximum acquiring module 450 acquires a maximum from all matching values and location information of the particular area associated with the maximum on the circuit board under test.
In step S460, the determination module 460 determines whether the location information of the particular area associated with the maximum is similar to that of the standard label. In step S465, when the location information is not similar to that of the standard label in the binary image of the standard circuit board, the output control module 470 outputs a prompt or warning and controls the display unit 50 to display the prompt stating that the label on the circuit board under test is not adhering in a proper position or that the circuit board under test is not labeled at all. In step S470, when the location information of the area associated with the maximum is similar to that of the standard label, the determination module 460 further compares the maximum with the two threshold values.
In step S472, when the maximum is greater than a first threshold value of the two threshold values, the circuit board under test is determined to be properly labeled and to have a label in the correct location. In step S474, when the maximum is between the two threshold values, the circuit board under test is determined to be improperly labeled. In step S476, when the maximum is less than a second threshold value of the two threshold values, the circuit board under test is determined to be not labeled at all.
In step S500, when the maximum is greater than the first threshold value, the image processing module 410 performs a gray and binary processing function for the image of the label taken from the circuit board under test to obtain a binary image of the label. In step S510, the image processing module 410 determines a serial number of the actual label via a string segmentation algorithm. In step S520, the determination module 460 determines whether the serial number of the actual label has been stored in the storage unit 20. In step S530, if the serial number of the label has been stored in the storage unit 20, the label is deemed to be adhering to the proper circuit board. In step S540, if the serial number of the label has not been stored in the storage unit 20, the label is deemed to be on an improper circuit board.
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 |
|---|---|---|---|
| 201110327676.8 | Oct 2011 | CN | national |