CN104422874A - PCB test method for converting wires into discs - Google Patents
PCB test method for converting wires into discs Download PDFInfo
- Publication number
- CN104422874A CN104422874A CN201310381739.7A CN201310381739A CN104422874A CN 104422874 A CN104422874 A CN 104422874A CN 201310381739 A CN201310381739 A CN 201310381739A CN 104422874 A CN104422874 A CN 104422874A
- Authority
- CN
- China
- Prior art keywords
- rectangle
- minimum
- convex closure
- minimum enclosed
- enclosed rectangle
- 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.)
- Granted
Links
Abstract
The invention discloses a PCB test method for converting wires into discs, and relates to the field of a PCB test technology. According to the method, through scanning the PCB, frame discrete spots between images are obtained, a minimum convex closure and the minimum external connection rectangular of the minimum convex closure are calculated, then comparisons with original images are made successively by use of a rectangle, a fillet rectangular and a circle in terms of pixel overlapping area, and the image with the highest overlapping area proportion is taken as an optical shape. The method provided by the invention, compared to a conventional method, calculates the optical shape according to an area comparison method, such that the trouble of manually adjusting the shape is avoided. During searching of a similar wire for intelligent transformation, the speed and the accuracy can be improved by using the method.
Description
[technical field]
The present invention relates to pcb board technical field of measurement and test, the line particularly relating to the test of a kind of pcb board converts the method for dish to.
[background technology]
On one piece of pcb board, pcb board surface upper and lower surface is called top layer and bottom, and middle internal layer is commonly referred to middle layer.In the copper sheet part that top layer or bottom are covered by green oil, or the copper in middle layer, be referred to as line in pcb board field; Top layer or bottom, not by the copper sheet part that green oil covers, are referred to as dish, and dish is the position of components and parts position and boring.
When designing the figure of pcb board, the designer of pcb board carrys out indicating panel in the structure of the position line in components and parts or hole sometimes, before pcb board is tested, the line at these these positions is then needed to change into dish, in addition, there is the dish of some non-standard shapes also to need to carry out the operation that line converts dish to, make the shape normalised of dish, thus make test more smooth.Change into dish and be generally divided into two steps carrying out line to pcb board in prior art: the first step is carried out line to the figure that original needs are changed and converted dish to; Second step carries out smart wire changeover panel according to the height shape of the first step to the position of line similar on pcb board.This method migration shape is out mostly more fixing, sometimes also needs manually to adjust shape, and the speed of second step is slowed down, and whole structure is not good.
[summary of the invention]
The object of the invention is to the deficiency effectively overcoming above-mentioned technology, the line providing a kind of pcb board to test converts the method for dish to, and the method well solves the problem of change of shape, without the need to manually adjusting the shape of line changeover panel.
Technical scheme of the present invention is achieved in that and includes following step:
A, pcb board to be scanned, obtained the frame of the figure that will change by scanning element, and be labeled as image a, after this pixel of progressive scanning picture a, get the Far Left point and rightmost point of often going, obtain the frame point of image a;
B, according to the frame discrete point obtained in steps A, calculate the Minimum Convex Closure of image a frame point, this convex closure is the minimum convex polygon comprising All Border discrete point;
C, by the Minimum Convex Closure obtained in step B, and have the principle parallel with the limit of convex closure at least according to the minimum enclosed rectangle of convex closure, calculate minimum enclosed rectangle;
The minimum enclosed rectangle obtained drawn in D, foundation step C, carries out pixel overlapping area with rectangle, round rectangle and circle and former figure successively and compares, get the highest figure of overlapping area ratio as optimum shape.
Following steps are included in described step C:
A limit of C1, selected convex closure, using the limit of this limit as rectangle, and makes minimum enclosed rectangle;
The positional information of C2, record rectangle and size, calculate the area of this rectangle, be recorded as S1;
C2, the counterclockwise minimum enclosed rectangle calculating correspondence successively along all the other each limits, record its area and be followed successively by S2, S3 ... Sn;
C4, get area minimum in S1-Sn, the boundary rectangle of its correspondence is exactly required convex closure minimum enclosed rectangle.
Following steps are included in described step D:
D1, represent former figure by redness, then represent minimum enclosed rectangle by green;
D2, former figure and minimum enclosed rectangle lap green represent, and record the ratio of lap, when ratio reaches more than 0.95, then choose this figure as optimum figure, otherwise continue step below;
D3, continue with round rectangle, circular repeat step D1 and D2, if all figures record lap ratio all do not reach 0.95, then choose the highest figure of lap ratio as optimum figure.
Beneficial effect of the present invention is: the present invention compares with existing method, optimum shape is calculated according to Area comparison method, eliminate the trouble of manually adjustment shape, when finding class liny and carrying out intelligent height, speed and accuracy can be improved by method of the present invention.
[accompanying drawing explanation]
Fig. 1 is schematic flow sheet of the present invention;
Fig. 2, Fig. 3 are specific embodiments of the invention figure.
[embodiment]
We carry out more specifically bright by reference to the accompanying drawings to the present invention below.
With reference to Fig. 1, the line that the invention discloses the test of a kind of pcb board converts the method for dish to, the method is used for pcb board designer when the graphic designs of PCB, the operation that line converts dish to is carried out in the position carrying out indicating panel in the structure of the position line in components and parts or hole, and the method specifically mainly includes following step:
A, pcb board to be scanned, obtained the frame of the figure that will change by scanning element, and be labeled as image a, after this pixel of progressive scanning picture a, get the Far Left point and rightmost point of often going, obtain the frame point of image a;
B, according to the frame discrete point obtained in steps A, calculate the Minimum Convex Closure of image a frame point, this convex closure is the minimum convex polygon comprising All Border discrete point; With reference to shown in Fig. 2, be a specific embodiment of the present invention, wherein, figure 10 is the Minimum Convex Closure of image a;
C, by the Minimum Convex Closure obtained in step B, and have the principle parallel with the limit of convex closure at least according to the minimum enclosed rectangle of convex closure, calculate minimum enclosed rectangle, concrete, step C includes step C1-C4:
A limit of C1, selected convex closure, using the limit of this limit as rectangle, and makes minimum enclosed rectangle;
The positional information of C2, record rectangle and size, calculate the area of this rectangle, be recorded as S1;
C2, the counterclockwise minimum enclosed rectangle calculating correspondence successively along all the other each limits, record its area and be followed successively by S2, S3 ... Sn;
C4, get area minimum in S1-Sn, the boundary rectangle of its correspondence is exactly required convex closure minimum enclosed rectangle.
With reference to shown in Fig. 2, Fig. 3, be a specific embodiment of the present invention, wherein during the limit of a limit 101 of selected convex closure 10 as rectangle, its minimum enclosed rectangle is as shown in figure in Fig. 2 20, and the area of this figure 20 is recorded as S1; With reference to Fig. 3, when a limit as rectangle, another limit 102 of selected convex closure 10, its minimum enclosed rectangle is as shown in figure in Fig. 3 30, the area of this figure 30 is recorded as S2, after this, once choose limit 103, limit 104 and limit 105 limit as rectangle, calculate the area of its minimum enclosed rectangle respectively, be recorded as S3, S4, S5, get area minimum in S1-S5, it is then convex closure 10 minimum enclosed rectangle to the boundary rectangle of yacht, and such as, when S1 is minimum, then figure 20 is the minimum enclosed rectangle of convex closure 10.
The minimum enclosed rectangle obtained drawn in D, foundation step C, carries out pixel overlapping area with rectangle, round rectangle and circle and former figure successively and compares, get the highest figure of overlapping area ratio as optimum shape; Concrete, step D includes step D1-D4:
D1, represent former figure by redness, then represent minimum enclosed rectangle by green;
D2, former figure and minimum enclosed rectangle lap green represent, and record the ratio of lap, when ratio reaches more than 0.95, then choose this figure as optimum figure, otherwise continue step below;
D3, continue with round rectangle, circular repeat step D1 and D2, if all figures record lap ratio all do not reach 0.95, then choose the highest figure of lap ratio as optimum figure.
After optimum figure is selected, be the present invention carry out line changeover panel after figure, and, when the shape non-standard shapes of coiling, also become standard shape by above-mentioned method migration.The present invention's this kind of conversion method, compares with existing method, calculates optimum shape according to Area comparison method, eliminates the trouble of manually adjustment shape, when finding class liny and carrying out intelligent height, can improve speed and accuracy by method of the present invention.
Described above is only preferred embodiment of the present invention, and above-mentioned specific embodiment is not limitation of the present invention.In technological thought category of the present invention, can occur various distortion and amendment, all those of ordinary skill in the art, according to describing retouching, the amendment made above or equivalent replacing, all belong to the scope that the present invention protects.
Claims (3)
1. the line of pcb board test converts a method for dish to, it is characterized in that: include following step:
A, pcb board to be scanned, obtained the frame of the figure that will change by scanning element, and be labeled as image a, after this pixel of progressive scanning picture a, get the Far Left point and rightmost point of often going, obtain the frame point of image a;
B, according to the frame discrete point obtained in steps A, calculate the Minimum Convex Closure of image a frame point, this convex closure is the minimum convex polygon comprising All Border discrete point;
C, by the Minimum Convex Closure obtained in step B, and have the principle parallel with the limit of convex closure at least according to the minimum enclosed rectangle of convex closure, calculate minimum enclosed rectangle;
The minimum enclosed rectangle obtained drawn in D, foundation step C, carries out pixel overlapping area with rectangle, round rectangle and circle and former figure successively and compares, get the highest figure of overlapping area ratio as optimum shape.
2. the line of a kind of pcb board test according to claim 1 converts the method for dish to, it is characterized in that: include following steps in described step C:
A limit of C1, selected convex closure, using the limit of this limit as rectangle, and makes minimum enclosed rectangle;
The positional information of C2, record rectangle and size, calculate the area of this rectangle, be recorded as S1;
C3, the counterclockwise minimum enclosed rectangle calculating correspondence successively along all the other each limits, record its area and be followed successively by S2, S3 ... Sn;
C4, get area minimum in S1-Sn, the boundary rectangle of its correspondence is exactly required convex closure minimum enclosed rectangle.
3. the line of a kind of pcb board test according to claim 1 converts the method for dish to, it is characterized in that: include following steps in described step D:
D1, represent former figure by redness, then represent minimum enclosed rectangle by green;
D2, former figure and minimum enclosed rectangle lap green represent, and record the ratio of lap, when ratio reaches more than 0.95, then choose this figure as optimum figure, otherwise continue step below;
D3, continue with round rectangle, circular repeat step D1 and D2, if all figures record lap ratio all do not reach 0.95, then choose the highest figure of lap ratio as optimum figure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310381739.7A CN104422874B (en) | 2013-08-28 | 2013-08-28 | A kind of method that line of pcb board test is converted into disk |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310381739.7A CN104422874B (en) | 2013-08-28 | 2013-08-28 | A kind of method that line of pcb board test is converted into disk |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104422874A true CN104422874A (en) | 2015-03-18 |
CN104422874B CN104422874B (en) | 2017-08-25 |
Family
ID=52972448
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310381739.7A Active CN104422874B (en) | 2013-08-28 | 2013-08-28 | A kind of method that line of pcb board test is converted into disk |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104422874B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108491141A (en) * | 2018-03-07 | 2018-09-04 | 青岛海信电器股份有限公司 | A kind of generation method, device and the terminal device of electronic whiteboard choice box |
CN109389133A (en) * | 2018-09-30 | 2019-02-26 | 厦门链石网络科技股份有限公司 | A kind of classification method of irregular stone material |
CN113012225A (en) * | 2021-04-14 | 2021-06-22 | 合肥高晶光电科技有限公司 | Method for quickly positioning minimum external rectangular frame of material image of color sorter |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1908964A (en) * | 2006-08-22 | 2007-02-07 | 北京方正奥德计算机系统有限公司 | Automatic straightening method for image linear geometric deformation |
CN201788249U (en) * | 2010-08-25 | 2011-04-06 | 深圳中富电路有限公司 | Pressing layer offset testing device |
CN102421241A (en) * | 2011-08-01 | 2012-04-18 | 东莞生益电子有限公司 | Withstand voltage test pattern of layer insulation medium of PCB (Printed Circuit Board) multilayer board |
CN102721364A (en) * | 2011-03-30 | 2012-10-10 | 比亚迪股份有限公司 | Positioning method and positioning device for workpiece |
-
2013
- 2013-08-28 CN CN201310381739.7A patent/CN104422874B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1908964A (en) * | 2006-08-22 | 2007-02-07 | 北京方正奥德计算机系统有限公司 | Automatic straightening method for image linear geometric deformation |
CN201788249U (en) * | 2010-08-25 | 2011-04-06 | 深圳中富电路有限公司 | Pressing layer offset testing device |
CN102721364A (en) * | 2011-03-30 | 2012-10-10 | 比亚迪股份有限公司 | Positioning method and positioning device for workpiece |
CN102421241A (en) * | 2011-08-01 | 2012-04-18 | 东莞生益电子有限公司 | Withstand voltage test pattern of layer insulation medium of PCB (Printed Circuit Board) multilayer board |
Non-Patent Citations (1)
Title |
---|
杨洪天: "贴片机飞行对中图像处理和识别技术研究", 《万方数据库》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108491141A (en) * | 2018-03-07 | 2018-09-04 | 青岛海信电器股份有限公司 | A kind of generation method, device and the terminal device of electronic whiteboard choice box |
CN109389133A (en) * | 2018-09-30 | 2019-02-26 | 厦门链石网络科技股份有限公司 | A kind of classification method of irregular stone material |
CN113012225A (en) * | 2021-04-14 | 2021-06-22 | 合肥高晶光电科技有限公司 | Method for quickly positioning minimum external rectangular frame of material image of color sorter |
CN113012225B (en) * | 2021-04-14 | 2024-04-16 | 合肥高晶光电科技有限公司 | Quick positioning method for minimum circumscribed rectangular frame of material image of color sorter |
Also Published As
Publication number | Publication date |
---|---|
CN104422874B (en) | 2017-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104422874A (en) | PCB test method for converting wires into discs | |
US10303278B2 (en) | Touch panel | |
CN104460150A (en) | Array substrate, liquid crystal display panel and manufacturing method of array substrate | |
CN107454221A (en) | Decorative components, housing unit and its assembly method and mobile terminal | |
CN104167002A (en) | Method for extracting effective area of fisheye image | |
CN107426366A (en) | Decorative components, housing unit and its assembly method and mobile terminal | |
CN108693618A (en) | Lens driving module | |
KR20180098302A (en) | Image quality compensation method of optical system by adjustment of lens | |
CN106022337B (en) | A kind of planar target detection method based on continuous boundary feature | |
CN102306294A (en) | Method and system for extracting image from portable document format (PDF) file page | |
CN107370850A (en) | Decorative components, housing unit and its assembly method and mobile terminal | |
CN205160713U (en) | CCD camera detection mechanism | |
CN109285113B (en) | Improved color image interpolation method based on gradient | |
CN103761714A (en) | Color image enhancement method based on HIS color space | |
CN110689511B (en) | Optimization method for large-visual-field image splicing path | |
CN107563990A (en) | A kind of photovoltaic cell chipping and the detection algorithm of blunt type and v-notch | |
CN111459934A (en) | Multi-source map data slicing system and method | |
CN102183206A (en) | Line width measuring method for line on printed circuit board (PCB) | |
CN205879113U (en) | Image measuring instrument is in measurement system of encapsulation bonding wire processing procedure | |
CN107566563A (en) | Decorative components, housing unit and its assembly method and mobile terminal | |
CN111231530B (en) | Quality detection method for double-color printer | |
CN113781587A (en) | Remote sensing image color consistency processing method based on optimal path | |
CN203942572U (en) | A kind of CIS scan components of large format scanner | |
CN205509834U (en) | Can reduce voice coil motor of mounting height | |
KR20080099490A (en) | Method for enhancing contrast of image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |