CN102937595B - Method, device and system for detecting printed circuit board (PCB) - Google Patents

Method, device and system for detecting printed circuit board (PCB) Download PDF

Info

Publication number
CN102937595B
CN102937595B CN201210455022.8A CN201210455022A CN102937595B CN 102937595 B CN102937595 B CN 102937595B CN 201210455022 A CN201210455022 A CN 201210455022A CN 102937595 B CN102937595 B CN 102937595B
Authority
CN
China
Prior art keywords
image
pcb
detected
components
parts
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210455022.8A
Other languages
Chinese (zh)
Other versions
CN102937595A (en
Inventor
李少腾
姚力
胡瑛俊
楼轶
吴幸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Zhejiang Electric Power Co Ltd
Marketing Service Center of State Grid Zhejiang Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Zhejiang Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Zhejiang Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201210455022.8A priority Critical patent/CN102937595B/en
Publication of CN102937595A publication Critical patent/CN102937595A/en
Application granted granted Critical
Publication of CN102937595B publication Critical patent/CN102937595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method, device and system for detecting a printed circuit board (PCB). The method includes: obtaining a PCB image of a PCB to be detected, conducting alignment pre-processing on the PCB image, and matching the pre-processed PCB image with a standard form built in advance. When matching conditions are met, an area to be detected of the pre-processed PCB image is determined, and features of components in the area to be detected are extracted. A support vector machine (SVM) is used for identifying the features of the components, and whether appointed components exist in the area to be detected is judged through a distinguishing result. The method, device and system is simple to achieve, high in detection efficiency and low in false detecting rate and solves the problem in a traditional manual detection method of being low in efficiency, high in omission rate, strong in subjectivity and easy to be subject to external disturbance during detection of a PCB.

Description

A kind of pcb board detection method, Apparatus and system
Technical field
The present invention relates to pcb board detection technique field, particularly relate to a kind of pcb board detection method, Apparatus and system.
Background technology
Intelligent electric energy meter is a kind of novel electronic power meter, has the functions such as electrical energy metering, in real time monitoring, automatically control, information interaction and data interaction, facilitates user accurately promptly to understand the electricity consumption situation of family, formulate energy conservation program.
Printed circuit board (PCB) (Printed Circuit Board, PCB) be the core component forming intelligent electric energy meter, it is the parent carrying various electronic devices and components, each intelligent electric energy meter all has one piece of PCB and a large amount of components and parts, as resistance, electric capacity, inductance, integrated chip etc., these components and parts are mainly welded on pcb board with surface mounting technology (Surface Mount Technology, SMT) and jack type field engineering.
Along with the development of production technology and SMT technology, the density of the components and parts on pcb board is more and more higher, and the size of components and parts is also more and more less, within the pin-pitch of integrated circuit (IC)-components can narrow down to 0.2mm, and for intelligent electric energy meter, PCB pros and cons all has components and parts.The miniaturization of components and parts and densification make PCB in process of production, probably occur the defects such as assembly disappearance, wrong part.In prior art, need the components and parts whether existing defects of manual detection pcb board, but manual detection mode efficiency is low, loss is high, subjectivity is strong, be subject to external interference.
Summary of the invention
In view of this, the invention provides a kind of pcb board detection method, Apparatus and system, existing manual detection mode efficiency is low, loss is high, subjectivity is strong in order to solve, pcb board detects the problem of external interference of being subject to, its technical scheme is as follows:
A kind of pcb board detection method, comprising:
Obtain the PCB image of pcb board to be detected;
Alignment pre-service is carried out to described PCB image;
Pretreated PCB image is mated with the standard form be pre-created, when the match conditions are met, determines the region to be detected of described pretreated PCB image;
Extract the feature of components and parts in described region to be detected;
Utilize the support vector machines that training in advance is good to carry out Classification and Identification to the feature of described components and parts, judge whether described region to be detected exists appointment components and parts by Classification and Identification result.
Preferably, describedly alignment pre-service carried out to described PCB image comprise:
Background difference is utilized to obtain pcb board object described PCB image and the background image constructed in advance;
Described pcb board object binaryzation is obtained foreground object, and Morphological scale-space is carried out to described foreground object;
From the foreground object after carrying out Morphological scale-space, determine edge pixel, and utilize hough transform in conjunction with described edge pixel determination straight line;
Obtain described direct slope, and according to the slope image rotating of described straight line.
Preferably, pretreated PCB image is mated with described standard form, when the match conditions are met, determines that the region to be detected of described pretreated PCB image is specially:
Sequential similarity detection algorithm SSDA is utilized to determine the region to be detected of described pretreated PCB image.
Preferably, the components and parts feature extracting described region to be detected comprises:
Extract the color characteristic of the components and parts in described region to be detected, shape facility and textural characteristics.
Preferably, the shape facility of the components and parts in the described region to be detected of described extraction is specially:
8-neighborhood track algorithm is adopted to extract the profile of components and parts.
Preferably, the textural characteristics of the components and parts in the described region to be detected of described extraction is specially:
Gradation of image and gradient information are combined, from Gray Level-Gradient Co-occurrence Matrix, extracts the textural characteristics of components and parts.
A kind of pcb board pick-up unit, comprising: acquiring unit, pretreatment unit, matching unit, determining unit, extraction unit, taxon and identifying unit;
Described acquiring unit, for obtaining the PCB image of pcb board to be detected;
Described pretreatment unit, carries out alignment pre-service for the PCB image obtained described acquiring unit;
Described matching unit, mates with the standard form be pre-created for described pretreatment unit is carried out pretreated PCB image;
Described determining unit, for when the match conditions are met, determines the region to be detected of described pretreated PCB image;
Described extraction unit, for extracting the feature of components and parts in region to be detected that described determining unit determines;
Described taxon, for utilizing the good support vector machines of training in advance to carry out Classification and Identification to the feature of the components and parts that described extraction unit extracts, obtains Classification and Identification result;
By the Classification and Identification result of described taxon, described identifying unit, for judging whether described region to be detected exists appointment components and parts.
Preferably, described pretreatment unit comprises: first obtain subelement, the first image procossing subelement, determine subelement, second obtain subelement and the second image procossing subelement;
Described first obtains subelement, for utilizing Background difference to obtain described pcb board object described PCB image and the background image constructed in advance;
Described first image procossing subelement, carries out binaryzation for the pcb board object obtaining subelement acquisition to described first, obtains foreground object, carry out Morphological scale-space to described foreground object;
Describedly determining subelement, for determining edge pixel from the foreground object after described first image procossing subelement process, and utilizing hough transform in conjunction with described edge pixel determination straight line;
Described second obtains subelement, for obtaining the described direct slope that subelement is determined of determining;
Described second image procossing subelement, for obtaining the slope image rotating of the straight line that subelement obtains according to described second.
A kind of pcb board detection system, comprises above-mentioned pcb board pick-up unit.
Pcb board detection method provided by the invention, Apparatus and system, by the PCB image through the pretreated pcb board of alignment is mated with the standard form be pre-created, determine region to be detected, then the feature of components and parts in region to be detected is extracted, utilize the support vector machines that training in advance is good to carry out Classification and Identification to the feature of components and parts, judge whether region to be detected exists appointment components and parts by Classification and Identification result.Pcb board detection method provided by the invention, Apparatus and system can all position surveyed area, and can judge whether region to be detected exists appointment components and parts.Pcb board detection method provided by the invention, Apparatus and system realize simply, detection efficiency is high, false drop rate is low, solve the problem that traditional manual detection mode efficiency is low, loss is high, subjectivity is strong, pcb board detection is subject to external interference.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The schematic flow sheet of the pcb board detection method that Fig. 1 provides for the embodiment of the present invention one;
The schematic flow sheet of the pcb board detection method that Fig. 2 provides for the embodiment of the present invention two;
The SVM workflow schematic diagram structural representation that Fig. 3 provides for the embodiment of the present invention two;
The structural representation of the pcb board pick-up unit that Fig. 4 provides for the embodiment of the present invention three.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
The embodiment of the present invention one provides a kind of PCB detection method, and Fig. 1 is the schematic flow sheet of the method, and the method comprises:
S100: the PCB image obtaining pcb board to be detected.
S101: alignment pre-service is carried out to the PCB image obtained.
S102: pretreated PCB image mated with the standard form be pre-created, when the match conditions are met, determines the region to be detected of pretreated PCB image.
S103: the feature extracting components and parts in region to be detected.
S104: utilize the support vector machines that training in advance is good to carry out Classification and Identification to the feature of described components and parts, judge whether region to be detected exists appointment components and parts by Classification and Identification result.
The pcb board detection method that the embodiment of the present invention one provides, can all position surveyed area, and can judge whether region to be detected exists appointment components and parts.Detection method provided by the invention realizes simply, detection efficiency is high, false drop rate is low, solves the problem that traditional manual detection mode efficiency is low, loss is high, subjectivity is strong, pcb board detection is subject to external interference.
Embodiment two
Embodiments provide a kind of pcb board detection method, Fig. 2 is the schematic flow sheet of the method, and the method can comprise:
S200: the PCB image obtaining pcb board to be detected.
S201: alignment pre-service is carried out to PCB image.
When taking the PCB image of pcb board, because a variety of causes causes the pcb board taken all can there is certain inclination on image, sometimes angle of inclination may also can be larger, and the alignment pre-service of image is exactly make the edge of pcb board be in plumbness or horizontality as far as possible, namely consistent with the sample states of standard form.
In the present embodiment, step S201 can comprise:
S201a: utilize Background difference to obtain pcb board object PCB image and the background image constructed in advance.
Wherein, background image can construct in the following manner: in the position for placing pcb board, and shooting 10 images, then to 10 image averagings of shooting, obtain background image continuously.PCB image is poor in gray scale with the background image constructed by the way, pcb board object can be tried to achieve.
S201b: pcb board object binaryzation is obtained foreground object, and Morphological scale-space is carried out to foreground object.
Piece image generally includes: foreground object, background and noise, in the present embodiment, extracting foreground object by image being carried out binary conversion treatment, being specially: a threshold value T is set, the data of image are divided into the pixel group being greater than T and the pixel group being less than T, in the present embodiment, T=100 is set.After image binaryzation, foreground object extracts, but due to the impact of noise, dust etc., foreground object also exists a lot of flaw point, and Morphological scale-space is exactly to address this problem.The fundamental operation of bianry image Morphological scale-space has burn into expansion, opening operation, closed operation, hit with do not hit, skeletal extraction etc.
Corrosion is the most basic a kind of morphology operations, and object boundary point is eliminated in its effect, makes the process that border is internally shunk, can the object removal being less than structural element.Choose the structural element of different size like this, just can remove the object of different size.
The effect of expanding is just contrary with corrosion, and it expands binaryzation object boundary point, is merged in this object by all background dots with object contact, makes the process that border is externally expanded.If the distance between two objects is closer, then dilation operation may be communicated to together two objects, and expanding has effect very much to the cavity in object after filling up Iamge Segmentation.
Two-value morphological dilation can be converted into the logical operation of set with corrosion, and algorithm is simple, is suitable for parallel processing, and is easy to hardware implementing, be suitable for carrying out Iamge Segmentation, refinement, extraction skeleton, edge extracting, shape analysis to bianry image.
In the present embodiment, adopt the structure of 3 × 3, carry out twice expansion of twice burn into, realize the process to binaryzation pcb board object.
S201c: the prospect after carrying out Morphological scale-space determines edge pixel to picture, and utilize hough transform jointing edge pixel determination straight line.
In the present embodiment, consider the linear characteristic at pcb board edge, utilize this feature to realize image alignment pre-service.
S201d: obtain direct slope, and the slope image rotating of foundation straight line.
S202: pretreated PCB image is mated with the standard form be pre-created.
S203: judge whether Satisfying Matching Conditions, if so, then performs step S104 and subsequent step, otherwise, perform step S209.
S204: the region to be detected determining pretreated PCB image.
In the present embodiment, sequential similarity detection algorithm (Similarity SequentialDetection Algorithm can be passed through, SSDA) pretreated PCB image is mated with the standard form be pre-created, namely the location for the treatment of surveyed area is realized by SSDA, concrete: at the random unduplicated select progressively picture dot in each position through the pretreated image of alignment, the difference of pretreated image on this picture dot and accumulated standard template is alignd with process, setting threshold value is greater than if accumulative, then illustrate that this position is non-matching position, stop this computing, carry out the test of next position, until find best match position, best match position is region to be detected.
Introduce the ultimate principle of SSDA below:
SSDA sets the computing method of threshold value T according to the algorithm of adopted coupling related operation, when carrying out the coupling related operation of each search window, in the rational counting period, detects the correlated results of current gained and the comparison of SSDA threshold value T.
SSDA ∫ ∫ | f-t|dxdy is as coupling yardstick, and the non-similarity m (u, v) of the point (u, v) in image f (x, y) calculates with following formula:
m ( u , v ) = Σ k = 1 n Σ l = 1 m | f ( k + u - 1 , l + v - 1 ) - t ( k , l ) |
Wherein, point (u, v) represents the upper left position of standard form.
If there is the pattern consistent with standard form at (u, v) place, then m (u, v) value is very little, and on the contrary, m (u, v) is then very large.Time particularly standard form and image are completely inconsistent, if each pixel in standard form increased down successively with the absolute value of the gray scale difference of image, itself and will sharply increase.Therefore, in the process making addition, if the part of gray scale difference has exceeded a certain setting threshold value, just thought that pattern consistent with standard form on this position does not exist, thus transferred to the calculating that m (u, v) is carried out in next position.Be all plus and minus calculation owing to comprising m (u, v) in interior calculating, and the most midway of this computing stops, and therefore significantly can shorten match time.In actual applications, in order to stop calculating, the position of Stochastic choice pixel the calculating of gray scale difference can be carried out.SSDA algorithmic procedure is as follows:
(1) absolute error is defined:
ϵ ( i , j , m k , n k ) = | S i , j ( m k , n k ) - S i , j ^ ( i , j ) - T ( m k , n k ) + T ^ |
Wherein,
S i , j ^ ( i , j ) = 1 M 2 Σ m = 1 M Σ n = 1 M S i , j ( m , n )
T ^ ( i , j ) = 1 M 2 Σ m = 1 M Σ n = 1 M T ( m , n )
(2) a constant threshold value T is got k.
(3) at subgraph S i, jobject-point is chosen immediately in (m, n).Calculate its error amount with corresponding point in T, then difference of this error and other point added up, when cumulative r time more than T k, then stop cumulative, and write down number of times r, the detection curved surface of definition SSDA is:
I ( i , j ) = { r | min 1 ≤ r ≤ m 2 [ ϵ ( i , j , m k , n k ) ≥ T k ] }
(4) using point large for I (i, j) value as match point total error just can be made more than T because this aspect needs to add up many times k, the general candidate point needed is all on such point.
Counting yield can also be improved further to SSDA.Order of selecting for N-M+1 reference point can not advance in pointwise, namely standard form not necessarily every bit all move to, thick-thin uniform search's method combined can be adopted, namely first each M point search mates quality once, then asks coupling to each reference point having in the maximal matching subrange enclosed on weekly duty.Can not this strategy lose real match point, will depend on flatness and the unimodality of surperficial I (i, j).
At certain reference point (i, j) place, the M under standard form is covered 2the random fashion error of calculation that computation sequence can be used and i and j is irrelevant that individual point is right, also the mode adapting to picture material can be adopted, choose pseudo-random sequence by prominent feature in standard form, determine the sequencing of the error of calculation, to abandon those non-matching points early.
In the present embodiment, consider the complicacy of the diversity of PCB components and parts, components and parts texture, adopt the mode of pointwise coupling to search for most probable region to be detected.For threshold value T k, each template is calculated by following formula:
T k = 20 ( MN 1 MN ( Σ m = 1 M Σ n = 1 N | f ( m , n ) - u | 2 ) ( 255 - 127.5 ) 2 + 1 ) .
S205: the feature extracting components and parts in region to be detected.Wherein, the feature of components and parts can comprise: the color characteristic of components and parts, shape facility and textural characteristics.
S206: utilize the support vector machines that training in advance is good to carry out Classification and Identification to the feature of components and parts, obtain Classification and Identification result.
In the present embodiment, need to choose sample training support vector machines in advance to realize the Classification and Identification of components and parts, need the components and parts detected to choose 25 width pictures to each.In order to improve the generalization ability of SVM, introduce as down conversion when Geometry rectification: (1) longitudinal stretching 1.1 times; (2) horizontal stretch 1.1 times; (3) yardstick amplifies 1.1 times; (4) yardstick is reduced into 95% of former figure; (5) left rotation and right rotation 5 degree.Through the combination of above-mentioned conversion, each components and parts picture can produce 48 different original samples, total 1200, sample, and after they carry out histogram equalization, random selecting 500 sample needs the sample of the components and parts detected as often kind.
After having chosen sample, need the feature from sample extraction components and parts, in the present embodiment, the feature extracting components and parts comprises: extract color characteristic, shape facility and textural characteristics.
Color distribution information spinner will concentrate in low order color moment, as first moment average color is described, that second moment describes color variance, third moment describes color is offset resistance, therefore, utilizes low-order moment just can the feature of approximate representation color distribution.Color moment is defined as respectively:
M 1 = 1 N Σ j = 1 N q i , j M 2 = [ 1 N Σ j = 1 N ( q i , j - M 1 ) 2 ] 1 / 2 M 3 = [ 1 N Σ j = 1 N ( q i , j - M 1 ) 3 ] 1 / 3
Wherein, M 1, M 2and M 3one, two, three rank color moments respectively, q i, jthe color of expression pixel j is the probability of i, and N is the number of pixels in image.In RGB color space, each Color Channel differentiates three color moments, altogether forms the color feature vector of one 9 dimension, is expressed as F color=[M r1, M r2, M r3, M g1, M g2, M g3, M b1, M b2, M b3].
There is significant difference in different components and parts, in order to identify components and parts shape, adopts 8-neighborhood track algorithm to extract its profile in shape.Utilize area S, the girth P of profile acquisition components and parts, the long L of minimum external square and minimum external square wide W4 absolute value feature, calculate shape complexity S1=4 π S/P2, breadth length ratio S2=W/L, dispersion S3=P2/A, circularity S4=4 π S/L2 more respectively accordingly.4 dimension shape eigenvectors of components and parts can be expressed as F shape=[S 1, S 2, S 3, S 4].
In order to be subject to the impact of image rotation when solving gray level co-occurrence matrixes statistical method texture feature extraction, the present embodiment synthetic image gray scale and gradient information, extract the textural characteristics of components and parts from Gray Level-Gradient Co-occurrence Matrix.If former gray level image is f (x, y), wherein, x=1,2 ... M, y=1,2 ... N, its gray level is L.Extract the gradient image g (x, y) of f (x, y) by gradient operator, its gray level is L g, gradient image is carried out gray level discretize, and the gradient image after conversion is:
G ( x , y ) = g ( x , y ) - g min g max - g min ( L g - 1 )
Definition set (x, y) | in f (x, y)=i, G (x, y)=j}, the number of element is
H ij(i=0,1 ..., L-1; J=0,1 ..., L g-1), to H ijbe normalized, obtain:
P ij = H ij ( L g - 1 ) / Σ i = 0 L - 1 Σ j = 0 L g - 1 H ij
By P ijform Gray Level-Gradient Co-occurrence Matrix , therefrom can extract 15 image texture characteristics, select 4 characteristic features the most effective: energy T1, correlativity T2, inertia T3 and entropy T4.Wherein, T1-T4 is calculated by following formula respectively:
T 1 = Σ i = 0 L - 1 Σ j = 0 L g - 1 p 2 ij
T 2 = Σ j = 0 L g - 1 Σ i = 0 L - 1 ( i - T n ) ( j - T t ) p ij
T 3 = Σ j = 0 L g - 1 Σ i = 0 L - 1 ( i - j ) 2 p ij
T 4 = Σ j = 0 L g - 1 Σ i = 0 L - 1 p ij ln p ij
Wherein, T hfor gray average, T tfor gradient mean value.Like this, 4 Balakrishnan Li Tezheng of image can be obtained, be expressed as F texture=[T 1, T 2, T 3, T 4].
By the analysis to components and parts color, grey-level and shape-gradient co-occurrence matrix, altogether extraction obtains 17 dimensional features, is used for this proper vector carrying out training and the identification of SVM.
In the present embodiment, the feature extracting components and parts in region to be detected can adopt aforesaid way to extract.
Because existing SVM is a kind of typical binary classifier, namely it only solves the problem belonging to positive sample or negative sample, meeting difficulty when solving typical many classification problems such as circuit board defect, in order to solve this problem, in the present embodiment, utilizing multistage SVM to solve many classification problems.First design first order SVM, the normal or defective detection of this grade of SVM main realizing circuit plate, if testing result is normal, does not then need subsequent detection; If first order SVM detects that circuit board has problem, then design second level SVM, complete the classification of the first main components defect and other classification components and parts defect; By that analogy, until n-th grade of svm classifier goes out n class components and parts defect.Every one-level SVM finds out corresponding support vector after training, sets up its optimal separating hyper plane.Because said n level SVM performs according to the height of priority, search for from high to low according to binary tree when specific implementation, just can draw net result, its workflow diagram as shown in Figure 3.
S207: judge whether region to be detected exists appointment components and parts by recognition result, if so, then performs step S208, otherwise, perform step S209.
S208: judge that region to be detected exists and specify components and parts.
S209: judge that region to be detected does not exist appointment components and parts.
The pcb board detection method that the embodiment of the present invention two provides, can treat surveyed area and position, and can judge whether region to be detected exists appointment components and parts.Detection method provided by the invention realizes simply, detection efficiency is high, false drop rate is low, solves the problem that traditional manual detection mode efficiency is low, loss is high, subjectivity is strong, pcb board detection is subject to external interference.
Embodiment three
The embodiment of the present invention three provides a kind of pcb board pick-up unit, Fig. 4 is the structural representation of this device, and this device comprises: acquiring unit 100, pretreatment unit 101, matching unit 102, determining unit 103, extraction unit 104, taxon 105 and identifying unit 106.Wherein:
Acquiring unit 100, for obtaining the PCB image of pcb board to be detected.Pretreatment unit 101, carries out alignment pre-service for the PCB image obtained acquiring unit 100.Matching unit 102, mates with the standard form be pre-created for pretreatment unit 101 is carried out pretreated PCB image.Determining unit 103, for when the match conditions are met, determines the region to be detected of pretreated PCB image.Extraction unit 104, for extracting the feature of the components and parts in region to be detected that determining unit 103 determines.Taxon 105, carries out Classification and Identification for utilizing the feature of support vector machines to the components and parts that extraction unit 104 extracts that training in advance is good.By the Classification and Identification result of taxon 105, identifying unit 106, for judging whether region to be detected exists appointment components and parts.
Further, pretreatment unit 101 comprises: first obtain subelement, the first image procossing subelement, determine subelement, second obtain subelement and the second image procossing subelement.Wherein:
First obtains subelement, for utilizing Background difference to obtain the foreground image of PCB image PCB image and the background image constructed in advance.First image procossing subelement, for obtaining the foreground image binaryzation of the PCB image that subelement obtains by first, and carries out Morphological scale-space to the foreground image after binaryzation.Determining subelement, for determining edge pixel from the foreground image after the first image procossing subelement process, and utilizing hough transform jointing edge pixel determination straight line.Second obtains subelement, for obtaining the direct slope determining that subelement is determined.Second image procossing subelement, for obtaining the slope image rotating of the straight line that subelement obtains according to second.
The pcb board pick-up unit that the embodiment of the present invention two provides, can treat surveyed area and position, and can judge whether region to be detected exists appointment components and parts.Pcb board pick-up unit provided by the invention realizes simply, detection efficiency is high, false drop rate is low, solves the problem that traditional manual detection mode efficiency is low, loss is high, subjectivity is strong, pcb board detection is subject to external interference.
Embodiment four
The embodiment of the present invention four provides a kind of pcb board detection system, and this system comprises pcb board pick-up unit, the pcb board pick-up unit that this pcb board pick-up unit can provide for embodiment three.
The pcb board detection system that the embodiment of the present invention four provides, can treat surveyed area and position, and can judge whether region to be detected exists appointment components and parts.Pcb board detection system provided by the invention realizes simply, detection efficiency is high, false drop rate is low, solves the problem that traditional manual detection mode efficiency is low, loss is high, subjectivity is strong, pcb board detection is subject to external interference.
For convenience of description, various unit is divided into describe respectively with function when describing above device.Certainly, the function of each unit can be realized in same or multiple software and/or hardware when implementing of the present invention.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realizes.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for system embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.System embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
The present invention can be used in numerous general or special purpose computing system environment or configuration.Such as: personal computer, server computer, handheld device or portable set, laptop device, multicomputer system, system, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, the distributed computing environment comprising above any system or equipment etc. based on microprocessor.
The present invention can describe in the general context of computer executable instructions, such as program module.Usually, program module comprises the routine, program, object, assembly, data structure etc. that perform particular task or realize particular abstract data type.Also can put into practice the present invention in a distributed computing environment, in these distributed computing environment, be executed the task by the remote processing devices be connected by communication network.In a distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium comprising memory device.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.
The above is only the specific embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (6)

1. a pcb board detection method, is characterized in that, comprising:
Obtain the PCB image of pcb board to be detected;
Alignment pre-service is carried out to described PCB image;
Pretreated PCB image is mated with the standard form be pre-created, when the match conditions are met, determines the region to be detected of described pretreated PCB image;
Extract the feature of components and parts in described region to be detected;
Utilize the support vector machines that training in advance is good to carry out Classification and Identification to the feature of described components and parts, judge whether described region to be detected exists appointment components and parts by Classification and Identification result;
Wherein, describedly alignment pre-service carried out to described PCB image comprise:
Background difference is utilized to obtain pcb board object described PCB image and the background image constructed in advance;
Described pcb board object binaryzation is obtained foreground object, and Morphological scale-space is carried out to described foreground object;
From the foreground object after carrying out Morphological scale-space, determine edge pixel, and utilize hough transform in conjunction with described edge pixel determination straight line;
Obtain the slope of described straight line, and according to the slope image rotating of described straight line;
Further, the components and parts feature extracting described region to be detected comprises: extract the color characteristic of the components and parts in described region to be detected, shape facility and textural characteristics.
2. method according to claim 1, is characterized in that, pretreated PCB image is mated with described standard form, when the match conditions are met, determines that the region to be detected of described pretreated PCB image is specially:
Sequential similarity detection algorithm SSDA is utilized to determine the region to be detected of described pretreated PCB image.
3. method according to claim 1, is characterized in that, the shape facility of the components and parts in the described region to be detected of described extraction is specially:
8-neighborhood track algorithm is adopted to extract the profile of components and parts.
4. method according to claim 1, is characterized in that, the textural characteristics of the components and parts in the described region to be detected of described extraction is specially:
Gradation of image and gradient information are combined, from Gray Level-Gradient Co-occurrence Matrix, extracts the textural characteristics of components and parts.
5. a pcb board pick-up unit, is characterized in that, comprising: acquiring unit, pretreatment unit, matching unit, determining unit, extraction unit, taxon and identifying unit;
Described acquiring unit, for obtaining the PCB image of pcb board to be detected;
Described pretreatment unit, carries out alignment pre-service for the PCB image obtained described acquiring unit;
Described matching unit, mates with the standard form be pre-created for described pretreatment unit is carried out pretreated PCB image;
Described determining unit, for when the match conditions are met, determines the region to be detected of described pretreated PCB image;
Described extraction unit, for extracting the feature of components and parts in region to be detected that described determining unit determines;
Described taxon, for utilizing the good support vector machines of training in advance to carry out Classification and Identification to the feature of the components and parts that described extraction unit extracts, obtains Classification and Identification result;
By the Classification and Identification result of described taxon, described identifying unit, for judging whether described region to be detected exists appointment components and parts;
Wherein, described pretreatment unit comprises: first obtain subelement, the first image procossing subelement, determine subelement, second obtain subelement and the second image procossing subelement;
Described first obtains subelement, for utilizing Background difference to obtain described pcb board object described PCB image and the background image constructed in advance;
Described first image procossing subelement, for obtaining the pcb board object binaryzation that subelement obtains by described first, obtains foreground object, carries out Morphological scale-space to described foreground object;
Describedly determining subelement, for determining edge pixel from the foreground object after described first image procossing subelement process, and utilizing hough transform in conjunction with described edge pixel determination straight line;
Described second obtains subelement, for obtaining the described slope determining the straight line that subelement is determined;
Described second image procossing subelement, for obtaining the slope image rotating of the straight line that subelement obtains according to described second.
6. a pcb board detection system, is characterized in that, comprising: pcb board pick-up unit as described in claim 5.
CN201210455022.8A 2012-11-13 2012-11-13 Method, device and system for detecting printed circuit board (PCB) Active CN102937595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210455022.8A CN102937595B (en) 2012-11-13 2012-11-13 Method, device and system for detecting printed circuit board (PCB)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210455022.8A CN102937595B (en) 2012-11-13 2012-11-13 Method, device and system for detecting printed circuit board (PCB)

Publications (2)

Publication Number Publication Date
CN102937595A CN102937595A (en) 2013-02-20
CN102937595B true CN102937595B (en) 2015-05-20

Family

ID=47696506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210455022.8A Active CN102937595B (en) 2012-11-13 2012-11-13 Method, device and system for detecting printed circuit board (PCB)

Country Status (1)

Country Link
CN (1) CN102937595B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108480811A (en) * 2018-03-30 2018-09-04 四川斐讯信息技术有限公司 A kind of welding equipment and welding method

Families Citing this family (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103728305A (en) * 2014-01-13 2014-04-16 深圳市永光神目科技有限公司 Detection method for PCBA (printed circuit board assembly)
CN104021565B (en) * 2014-06-26 2017-02-15 广东工业大学 PCB (Printed Circuit Board) layer quantity and lead wire thickness measurement method based on straight-line detection
CN104504375B (en) * 2014-12-18 2019-03-05 广州视源电子科技股份有限公司 A kind of recognition methods of PCB element and device
CN104700085B (en) * 2015-03-10 2018-02-27 华中科技大学 A kind of chip positioning method based on template matches
CN104677914B (en) * 2015-03-10 2017-03-08 华中科技大学 A kind of chip crystal stock defect identification method
CN104777176B (en) * 2015-03-25 2018-08-24 广州视源电子科技股份有限公司 A kind of pcb board detection method and device
CN104923494A (en) * 2015-06-30 2015-09-23 歌尔声学股份有限公司 Method and system for automatically distinguishing qualified products from electronic components on large scale
CN105184793B (en) * 2015-09-02 2018-01-16 广东电网有限责任公司汕尾供电局 A kind of electric energy meter sample appearance and pcb board element testing method
CN105261022B (en) * 2015-10-19 2018-12-18 广州视源电子科技股份有限公司 A kind of pcb board card matching process and device based on outer profile
CN105389805A (en) * 2015-10-25 2016-03-09 合肥市航嘉电子技术有限公司 Optical detection method of component shortage, wrong component and reverse component in plug-in operation
CN106649896A (en) * 2015-10-28 2017-05-10 北京华大九天软件有限公司 Mode classification method for dimensional check results of flat panel display layout
CN105469085B (en) * 2015-12-23 2019-03-26 广州视源电子科技股份有限公司 Board image acquiring method and system
CN105957059B (en) * 2016-04-20 2019-03-01 广州视源电子科技股份有限公司 Electronic component missing part detection method and system
CN106651849A (en) * 2016-12-27 2017-05-10 广东锐视智能检测有限公司 Area-array camera-based PCB bare board defect detection method
CN106950487A (en) * 2017-03-02 2017-07-14 广州视源电子科技股份有限公司 A kind of board detection method and device
CN107192716A (en) * 2017-04-26 2017-09-22 广东工业大学 A kind of workpiece, defect quick determination method based on contour feature
CN106970085A (en) * 2017-05-08 2017-07-21 广东工业大学 A kind of humidity indicates papery amount detection systems and method
CN107389701A (en) * 2017-08-22 2017-11-24 西北工业大学 A kind of PCB visual defects automatic checkout system and method based on image
CN108665439B (en) * 2017-08-22 2021-04-30 深圳米飞泰克科技有限公司 Substrate detection method and terminal equipment
CN108072662A (en) * 2017-11-10 2018-05-25 长春理工大学 Row's pin defect detection method and device based on machine vision
CN109870117A (en) * 2017-12-05 2019-06-11 英业达科技有限公司 Binaryzation outline detection system and its method
CN108254374A (en) * 2017-12-31 2018-07-06 芜湖哈特机器人产业技术研究院有限公司 The abnormal detection method of circuit board element inserting
CN108896094B (en) * 2018-06-01 2020-07-07 安图实验仪器(郑州)有限公司 Medical microscope slide sample missing judging method
CN108982544B (en) * 2018-06-20 2020-09-29 青岛联合创智科技有限公司 Method for detecting defective parts of printed circuit board
CN109142393A (en) * 2018-09-03 2019-01-04 佛亚智能装备(苏州)有限公司 A kind of defect classification method, apparatus and system
CN109685142A (en) * 2018-12-25 2019-04-26 国信优易数据有限公司 A kind of image matching method and device
CN110263608B (en) * 2019-01-25 2023-07-07 天津职业技术师范大学(中国职业培训指导教师进修中心) Automatic electronic component identification method based on image feature space variable threshold measurement
CN110619622B (en) * 2019-04-08 2023-07-14 天津职业技术师范大学(中国职业培训指导教师进修中心) Bread board structure image automatic detection method based on computer vision
CN112304952B (en) * 2019-07-23 2024-04-02 纬创资通股份有限公司 Image recognition device, image recognition method and computer program product thereof
CN110487819A (en) * 2019-09-19 2019-11-22 广东正业科技股份有限公司 A kind of online measuring device and measurement method
CN110736755A (en) * 2019-10-30 2020-01-31 珠海格力智能装备有限公司 Detection method and device for circuit board excess material and electronic equipment
CN111914680A (en) * 2020-07-13 2020-11-10 苏州亚朴智能科技有限公司 Component identification and positioning method based on frequency domain characteristics
CN112579540A (en) * 2020-11-03 2021-03-30 珠海越亚半导体股份有限公司 Component mounting position identification method, mounting control method, device and medium
CN113379726A (en) * 2021-06-30 2021-09-10 深圳中科飞测科技股份有限公司 Line detection method, device, equipment and computer readable storage medium
CN114202515B (en) * 2021-11-29 2023-04-07 广州海谷电子科技有限公司 Method for detecting defect of printed carbon line of humidity sensor
CN114166849B (en) * 2021-11-29 2022-12-20 广州海谷电子科技有限公司 Method for detecting defects of printed carbon lines and moisture-sensitive film of humidity sensor
CN114255231B (en) * 2021-12-30 2022-08-23 南京晓庄学院 PCBA gap detection method based on comparison of front and rear values
CN116774135B (en) * 2023-08-22 2023-11-17 山东国研自动化有限公司 Remote meter reading abnormity monitoring method and system
CN117147570A (en) * 2023-10-30 2023-12-01 深圳硬之城信息技术有限公司 Manufacturing control method, device, equipment and storage medium based on machine vision

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4477926A (en) * 1980-12-18 1984-10-16 International Business Machines Corporation Process for inspecting and automatically sorting objects showing patterns with constant dimensional tolerances and apparatus for carrying out said process
CN1401107A (en) * 2000-01-18 2003-03-05 索威森公司 Method and system for detecting defects on a printed circuit board
CN1728160A (en) * 2004-07-26 2006-02-01 大日本网目版制造株式会社 Technique for detecting a defect of an object by area segmentation of a color image of the object
CN1869667A (en) * 2006-06-08 2006-11-29 李贤伟 Profile analysing method for investigating defect of printed circuit board
CN102024149A (en) * 2009-09-18 2011-04-20 北京中星微电子有限公司 Method of object detection and training method of classifier in hierarchical object detector
CN101915769B (en) * 2010-06-29 2012-03-28 华南理工大学 Automatic optical inspection method for printed circuit board comprising resistance element

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62169040A (en) * 1986-01-22 1987-07-25 Hitachi Ltd Printed board pattern inspector
JP3107264B2 (en) * 1993-08-24 2000-11-06 株式会社日立製作所 Printed board inspection method and apparatus and printed board intensive inspection system
JP2001343338A (en) * 2000-06-06 2001-12-14 Shoei Kk Method and device for inspecting printed wiring board
US7110591B2 (en) * 2001-03-28 2006-09-19 Siemens Corporate Research, Inc. System and method for recognizing markers on printed circuit boards
JP3866688B2 (en) * 2003-06-13 2007-01-10 三井金属鉱業株式会社 Inspection device for film carrier tape for mounting electronic components and method for checking pattern defects

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4477926A (en) * 1980-12-18 1984-10-16 International Business Machines Corporation Process for inspecting and automatically sorting objects showing patterns with constant dimensional tolerances and apparatus for carrying out said process
CN1401107A (en) * 2000-01-18 2003-03-05 索威森公司 Method and system for detecting defects on a printed circuit board
CN1728160A (en) * 2004-07-26 2006-02-01 大日本网目版制造株式会社 Technique for detecting a defect of an object by area segmentation of a color image of the object
CN1869667A (en) * 2006-06-08 2006-11-29 李贤伟 Profile analysing method for investigating defect of printed circuit board
CN102024149A (en) * 2009-09-18 2011-04-20 北京中星微电子有限公司 Method of object detection and training method of classifier in hierarchical object detector
CN101915769B (en) * 2010-06-29 2012-03-28 华南理工大学 Automatic optical inspection method for printed circuit board comprising resistance element

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
A Flexible PCB Inspection System Based on Statistical Learning;Chia-Te Liao.et al.;《JOURNAL OF SIGNAL PROCESSING SYSTEMS FOR SIGNAL IMAGE AND VIDEO TECHNOLOGY》;20120630;第60卷(第3期);第279-290页 *
印制电路板光学检测算法研究;苏国松;《中国优秀硕士学位论文全文数据库 信息科技辑》;20100115(第01期);第7-47页 *
图像纹理特征提取及分类算法研究;葛静祥;《天津大学硕士学位论文》;20110803;第19-23页 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108480811A (en) * 2018-03-30 2018-09-04 四川斐讯信息技术有限公司 A kind of welding equipment and welding method

Also Published As

Publication number Publication date
CN102937595A (en) 2013-02-20

Similar Documents

Publication Publication Date Title
CN102937595B (en) Method, device and system for detecting printed circuit board (PCB)
US20160196467A1 (en) Three-Dimensional Face Recognition Device Based on Three Dimensional Point Cloud and Three-Dimensional Face Recognition Method Based on Three-Dimensional Point Cloud
Sirmacek et al. A probabilistic framework to detect buildings in aerial and satellite images
Chang et al. Fabric defect detection based on pattern template correction
CN103793702A (en) Pedestrian re-identifying method based on coordination scale learning
AU2020103716A4 (en) Training method and device of automatic identification device of pointer instrument with numbers in natural scene
CN103530590A (en) DPM (direct part mark) two-dimensional code recognition system
CN104777176A (en) PCB detection method and apparatus thereof
CN105303195A (en) Bag-of-word image classification method
Daixian SIFT algorithm analysis and optimization
CN105023027A (en) Sole trace pattern image retrieval method based on multi-feedback mechanism
CN104318559A (en) Quick feature point detecting method for video image matching
CN104881668B (en) A kind of image fingerprint extracting method and system based on representative local mode
CN109886344A (en) Leather failure evaluation method, system and equipment and medium based on deep learning
CN107578438A (en) Circle recognition methods, device and electronic equipment
CN105469117A (en) Image recognition method and device based on robust characteristic extraction
CN107704840A (en) A kind of remote sensing images Approach for road detection based on deep learning
CN108133211B (en) Power distribution cabinet detection method based on mobile terminal visual image
CN104899846A (en) Digital image splicing passive detection method based on frequency domain local statistic model
Chen et al. Instance retrieval using region of interest based CNN features
CN103839074A (en) Image classification method based on matching of sketch line segment information and space pyramid
CN103106663B (en) Realize the method for SIM card defects detection based on image procossing in computer system
CN103268494B (en) Parasite egg recognition methods based on rarefaction representation
CN104268550A (en) Feature extraction method and device
CN103136536A (en) System and method for detecting target and method for exacting image features

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Hangzhou City, Zhejiang province 310014 eight District No. 1, Huadian Zhaohui

Patentee after: STATE GRID ZHEJIANG ELECTRIC POWER COMPANY LIMITED ELECTRIC POWER Research Institute

Patentee after: STATE GRID CORPORATION OF CHINA

Address before: Hangzhou City, Zhejiang province 310014 eight District No. 1, Huadian Zhaohui

Patentee before: Electric Power Research Institute of Zhejiang electric power company

Patentee before: State Grid Corporation of China

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20220311

Address after: 311100 Building 5, 138 Yunlian Road, Yuhang District, Hangzhou City, Zhejiang Province

Patentee after: Marketing service center of State Grid Zhejiang Electric Power Co.,Ltd.

Patentee after: STATE GRID CORPORATION OF CHINA

Address before: Hangzhou City, Zhejiang province 310014 eight District No. 1, Huadian Zhaohui

Patentee before: STATE GRID ZHEJIANG ELECTRIC POWER COMPANY LIMITED ELECTRIC POWER Research Institute

Patentee before: STATE GRID CORPORATION OF CHINA

TR01 Transfer of patent right