CN101031199A - Linear form and position adapting method based on pin - Google Patents

Linear form and position adapting method based on pin Download PDF

Info

Publication number
CN101031199A
CN101031199A CN 200710072873 CN200710072873A CN101031199A CN 101031199 A CN101031199 A CN 101031199A CN 200710072873 CN200710072873 CN 200710072873 CN 200710072873 A CN200710072873 A CN 200710072873A CN 101031199 A CN101031199 A CN 101031199A
Authority
CN
China
Prior art keywords
pin
theta
straight line
delta
chip
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.)
Pending
Application number
CN 200710072873
Other languages
Chinese (zh)
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.)
Shenzhen Polytechnic
Original Assignee
Shenzhen Polytechnic
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 Shenzhen Polytechnic filed Critical Shenzhen Polytechnic
Priority to CN 200710072873 priority Critical patent/CN101031199A/en
Publication of CN101031199A publication Critical patent/CN101031199A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Supply And Installment Of Electrical Components (AREA)
  • Image Analysis (AREA)

Abstract

The method comprises: 1) setting an interested area ROI; 2) making image process; 3) making rough positioning; 2) detecting the feature of component; 5) making fine position. In the step 2, the invention uses an improved row straight line fit method to make straight line fit for the central point of each pin of component so as to remove the deviated points. The invention can be used in a detection system of surface mount machine (SMT) to make detection and recognition for the surface-mounted components.

Description

Morpheme line fitting method based on pin
Technical field
The invention belongs to the image processing field that the chip mounter vision system in the surface mount process uses, refer in particular to a kind of morpheme line fitting method based on pin.
Background technology
Vision centering detection system is to carry out the detection of package detection and center and corner by the element that video camera utilizes image processing techniques to treat to mount, and is that chip mounter can be finished one of key technology of the task of mounting rapidly and accurately.Its main difficult point is that flying-vision (On-Fly-Vision) is the real-time of image processing; and the packing forms for the treatment of mount components is various; from miniature; miniature component; up to large-scale packaging; the detection algorithm of each encapsulated type is all different; especially some large-scale encapsulation such as QFP (Quad FlatPackage; flat packaging all around); BGA (Ball Grid Array; and its detection algorithm of thin space SMD (Surface Mount Device, element pasted on surface) difficult point especially array tin ball sealing dress) etc.; and the technology of this respect always is subjected to patent protection, and is rarely known by the people especially at home.The high-accuracy machine vision navigation system is to satisfy the effective way of placement accuracy.
Summary of the invention
Technical problem to be solved by this invention is: a kind of morpheme line fitting method based on pin is provided, and it can carry out the detection and the identification of components and parts accurately and efficiently in the process of mounting.
The invention provides a kind of morpheme line fitting method based on pin, it may further comprise the steps:
The first step, the region of interest ROI step is set, comprises the chip region and be set to region of interest ROI, and this region of interest ROI image is carried out binaryzation;
Second step, image processing step carry out preliminary treatment to above-mentioned region of interest ROI, therefrom are partitioned into each pin field of chip, judge whether number of pins meets the due number of pins of this chip;
The 3rd step, coarse positioning, the center that utilizes each pin of chip are tentatively determined the centre coordinate (s of element x', s y'), the pin of chip central point is carried out fitting a straight line, obtain four straight lines, calculate the angle of these four straight lines and trunnion axis deviation, averaging is θ ', and wherein maximum differential seat angle is designated as β;
The 4th step, element characteristics detect, on the image of binaryzation not, place scale component pin is measured, obtain comprising that pin is wide, pin long and the relative position information of pin, result and canonical parameter are compared, whether judgment component is qualified, then enters for the 5th step as if qualified;
The 5th step, accurate location, establishing accurate corner is θ, its (θ '-β/2, θ '+β/2) in the scope, accurate center (s x, s y) with (s x', s y') be the center, δ is within the scope of radius, and δ is the maximum possible error of coarse positioning result in the 3rd step, can rule of thumb set, and establishing the component pin center that respectively calculates in the image segmentation is a i, the centre coordinate that can be obtained waiting pasting each corresponding pin of element by priori is c i, for the error vector e between every pair of central point iObtain by following formula:
e i = s x s y + cos θ - sin θ sin θ cos θ x a i y a i - x c i y c i = 1 0 x a i - y a i 0 1 y a i x a i s x s y cos θ sin θ - x c i y c i - - - ( 1 )
If:
s x = s x &prime; + k * &Delta;x k < &delta; / &Delta;x s y = s y &prime; + l * &Delta;y l < &delta; / &Delta;y &theta; = &theta; &prime; + h * &Delta;&theta; h < &beta; / &Delta;&theta; - - - ( 2 )
Search for to ask and make ∑ e i 2Value k hour, l, the value of h can draw accurate positioning result (S according to (2) formula x, S y, θ).
In wherein said the 3rd step centre coordinate of X pin collection and Y pin collection being carried out the method that straight line fits may further comprise the steps:
1) concentrate the centre coordinate point of all pins that comprised to carry out the least square line match to X pin collection and Y pin, formula is Y=a ' * X+b ';
2) whether judge in the above-mentioned centre coordinate point greater than the required minimum points N of the fitting a straight line that sets Min, if not, then withdraw from; If then obtain the distance z that each centre coordinate is put straight line i, and judgement maximum z wherein kWhether greater than given threshold value z Max, if, then reject this centre coordinate point, then N-1 remaining centre coordinate point carried out least square fitting, when being not more than given slope error ξ, the slope differences of the straight line of the l time and the l-1 time match finishes;
3) Y=a*X+b that obtains a result at last.
The invention has the beneficial effects as follows: the present invention can satisfy the precision and the rate request of chip mounter element position detecting system, can carry out the detection and the identification of components and parts accurately and efficiently in the process of mounting.
Description of drawings
Fig. 1 is the schematic diagram of the area-of-interest of the present invention's setting;
Fig. 2 is the component pin collection schematic diagram of the present invention's definition;
Fig. 3 is the flow chart of the inventive method;
The present invention will be further described below in conjunction with accompanying drawing.
Embodiment
Morpheme line fitting method based on pin of the present invention may further comprise the steps:
The first step, region of interest ROI is set, as shown in Figure 1, in the chip image processing procedure, because die size has nothing in common with each other, chip shared region area in image is not very big as a rule, if entire image is carried out analyzing and processing, can waste the plenty of time.In order to improve the efficient of detection algorithm, in processing procedure, position and the movement locus of planning the placement head that comes out and the information such as size of element according to feed appliance, can roughly determine a residing zone of chip image, ignore the zone that does not comprise chip features in the image, the zone that only comprises the chip place is set to region of interest ROI, and carries out binaryzation.
Second step, image processing are carried out preliminary treatment to region of interest ROI, and therefrom are partitioned into each pin field of element.The formal parameter of considering element is known, and can determine should be in particular range corresponding to the area of pin field.Utilize this priori, to regional reference area feature and the direction character after the sign.If area that should the zone within the scope of setting, is not made as background with it, then Sheng Xia zone is each pin of counter element, and the direction of center by element and pin field can be divided into it pin on certain limit.So far can come decision element whether to lack pin by the number in zone,, think that then element is defective, pick up next element again if the due number of pins of number of regions and element does not meet.
Four limits of definition element are: NOUTH, SOUTH, EAST, WEST, as shown in Figure 2, corresponding four pin collection: NLeadset, SLeadset, ELeadset, WLeadset.
Determine according to the centre coordinate of pin and the appearance information of pin which pin collection pin belongs to, because component pin generally has leptosomatic characteristics, can use with regard to the feature of a direction like this, the angle that is to say the direction of pin of NLeadset, SLeadset pin collection and Y direction is smaller, and just bigger with the angle of directions X, be referred to as the pin of Y direction; In like manner, the pin of ELeadset, WLeadset pin collection and the angle of directions X are smaller, and just bigger with the angle of Y direction, are referred to as the pin of directions X.Direction by component pin is divided into Y direction pin and directions X pin with it, and then determines the definite ownership of each component pin in the orientation of whole element centre coordinate according to each pin centre coordinate.
The 3rd step, coarse positioning, the center that utilizes each pin are tentatively determined the center (s of element x', s y'), the central point of four pin collection is carried out straight line fit, can obtain four straight line NLine, SLine, ELine, WLine.And straight line ELine, WLine revolved turn 90 degrees, after the rotation in theory these four straight lines should be parallel, but the straight line that in fact fits out is not completely parallel, these four straight lines are unequal with respect to the angle of trunnion axis generally speaking, it certainly exists a differential seat angle and can average to it as coarse positioning, and the result is designated as θ '.Its maximum angle difference is designated as β.
The 4th step, element characteristics detect, and place scale on the image of binaryzation not component pin is measured, and comprise that pin is wide, pin long and the information such as relative position of pin, and result and canonical parameter are compared, and whether judgment component is qualified.
The 5th step, accurate location, the result of coarse positioning is (s x', s y', θ '), error is bigger, from the result in second step know rotational angle theta should (θ '-β/2, θ '+β/2) in the scope, in like manner, the accurate center (s of element x, s y) should be with (s x'-s y') be the center, δ is within the scope of radius, and δ is the maximum possible error of coarse positioning result in the 3rd step, can rule of thumb set, and establishing the component pin center that respectively calculates in the image segmentation is a i, the centre coordinate that can be obtained waiting pasting each corresponding pin of element by priori is c i, for the error vector e between every pair of central point iObtain by following formula:
e i = s x s y + cos &theta; - sin &theta; sin &theta; cos &theta; x a i y a i - x c i y c i = 1 0 x a i - y a i 0 1 y a i x a i s x s y cos &theta; sin &theta; - x c i y c i
If:
s x = s x &prime; + k * &Delta;x k < &delta; / &Delta;x s y = s y &prime; + l * &Delta;y l < &delta; / &Delta;y &theta; = &theta; &prime; + h * &Delta;&theta; h < &beta; / &Delta;&theta;
Search for to ask and make ∑ e i 2Value k hour, l, the value of h can accurate setting element according to following formula.
The flow chart of the inventive method as shown in Figure 3.
In addition, the present invention improves existing line fitting method, and present normally used line fitting method generally is a least square method.The shortcoming of this method is if deviation appears in the part point of participation fitting a straight line, will influence whole fitting effect.Consider the pin warpage that illumination and element may occur itself, indivedual points may not belong to this straight line, and therefore this point should not participated in fitting a straight line.Traditional least square method is difficult to remove these points.The present invention has designed a kind of more sane fitting a straight line algorithm for this reason, and it can address this problem well.Its basic thought is:
Now utilize least square fitting to draw straight line L ' according to N point, its linear equation is Y=a ' * X+b '; Judge that more whether the point that participates in fitting a straight line is greater than the required minimum points N of the fitting a straight line that sets Min, if not, then withdraw from; If then obtain the distance z that each puts straight line L ' i, and judgement maximum z wherein kWhether greater than given threshold value z Max, if illustrate that then this point does not belong to this straight line, reject this point, remaining N-1 is put carry out least square fitting then, when the slope of the straight line of the l time and the l-1 time match is not more than given slope error ξ, finish, draw accurate straight line L at last, linear equation is Y=a*X+b.
This is improved the row line fitting method apply to the 3rd step of the present invention, during the fitting a straight line of unit's line each pin central point, then in like manner, each center point coordinate is carried out the least square line match earlier, again each central point is carried out cycle criterion to the distance of default straight line, play the point that removes ultimate range, again remaining central point is carried out least square fitting, so circulation, when being not more than given slope error ξ, finishes the slope of the straight line of the l time and the l-1 time match, can accurately draw its four straight lines of X pin collection and Y pin collection at last, NLine, SLine, ELine, WLine.
This shows, the present invention is by being provided with region of interest ROI step, image processing step, coarse positioning step, element characteristics detection step and accurate positioning step, whether chip is progressively detected qualified, while is the positioning chip position accurately, also adopted improved line fitting method, make the fitting a straight line result in the coarse positioning step more accurate, thereby the positioning result that accurate positioning step is drawn is more accurate.

Claims (2)

1, a kind of morpheme line fitting method based on pin, it comprises step:
The first step, the region of interest ROI step is set, comprises the chip region and be set to region of interest ROI, and this region of interest ROI image is carried out binaryzation;
Second step, image processing step carry out preliminary treatment to above-mentioned region of interest ROI, therefrom are partitioned into each pin field of chip, judge whether number of pins meets the due number of pins of this chip;
The 3rd step, coarse positioning, the center that utilizes each pin of chip are tentatively determined the centre coordinate (s of element x', s y'), the pin of chip central point is carried out fitting a straight line, obtain four straight lines, calculate the angle of these four straight lines and trunnion axis deviation, averaging is θ ', and wherein maximum differential seat angle is designated as β;
The 4th step, element characteristics detect, on the image of binaryzation not, place scale component pin is measured, obtain comprising that pin is wide, pin long and the relative position information of pin, result and canonical parameter are compared, whether judgment component is qualified, then enters for the 5th step as if qualified;
The 5th step, accurate location, establishing accurate corner is θ, its (θ '-β/2, θ '+β/2) in the scope, accurate center (s x, s y) with (s x', s y') be the center, δ is within the scope of radius, and δ is above-mentioned the 3rd step coarse positioning result's a maximum possible error, and establishing the component pin center that respectively calculates in the image segmentation is a i, the centre coordinate that can be obtained waiting pasting each corresponding pin of element by priori is c i, for the error vector e between every pair of central point iObtain by (1) formula:
e i = s x s y + cos &theta; - sin &theta; sin &theta; cos &theta; x a i y a i = 1 0 x a i - y a i 0 1 y a i x a i s x s y cos &theta; sin &theta; - x c i y c i - - - ( 1 )
If:
s x = s x &prime; + k * &Delta;x k < &delta; / &Delta;x s y = s y &prime; + l * &Delta;y l < &delta; / &Delta;y &theta; = &theta; &prime; + h * &Delta;&theta; h < &beta; / &Delta;&theta; - - - ( 2 )
Search for to ask and make ∑ e i 2Value k hour, l, the value of h can draw accurate positioning result (S according to (2) formula x, S y, θ).
2, the morpheme line fitting method based on pin as claimed in claim 1 is characterized in that, in described the 3rd step centre coordinate of each pin of chip is carried out the method that straight line fits and may further comprise the steps:
1) central point to all pins carries out the least square line match, obtains straight line L ', and its linear equation is Y=a ' * X+b ';
2) judge that whether above-mentioned central point is greater than the required minimum points N of the fitting a straight line that sets Min, if not, then withdraw from; If, then obtain each centre coordinate put straight line L ' apart from Z i, and judgement maximum Z wherein kWhether greater than given threshold value Z Max, if, then reject this centre coordinate point, then N-1 remaining centre coordinate point carried out least square fitting, when being not more than given slope error ξ, the slope differences of the straight line of the l time and the l-1 time match finishes;
3) draw precise results straight line L at last, its linear equation is Y=a*X+b.
CN 200710072873 2007-01-18 2007-01-18 Linear form and position adapting method based on pin Pending CN101031199A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200710072873 CN101031199A (en) 2007-01-18 2007-01-18 Linear form and position adapting method based on pin

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200710072873 CN101031199A (en) 2007-01-18 2007-01-18 Linear form and position adapting method based on pin

Publications (1)

Publication Number Publication Date
CN101031199A true CN101031199A (en) 2007-09-05

Family

ID=38716181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710072873 Pending CN101031199A (en) 2007-01-18 2007-01-18 Linear form and position adapting method based on pin

Country Status (1)

Country Link
CN (1) CN101031199A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101840572A (en) * 2010-04-13 2010-09-22 河海大学常州校区 QFP element position error visual inspection method based on region segmentation
CN101839690A (en) * 2010-04-13 2010-09-22 河海大学常州校区 Visual inspection method for chip electronic component position error based on edge fitting
CN101936708A (en) * 2010-08-13 2011-01-05 河海大学常州校区 Method for positioning and detecting QFP (Quad Flat Package) chip
CN103094695A (en) * 2011-10-31 2013-05-08 深圳光启高等理工研究院 Encapsulation method of metamaterial
CN103813703A (en) * 2012-11-09 2014-05-21 财团法人工业技术研究院 Method and system for judging pin positions of electronic parts and inserting electronic parts
CN109471142A (en) * 2018-10-25 2019-03-15 国网福建省电力有限公司厦门供电公司 A kind of working trajectory recognition methods based on RTK Differential positioning
CN109644585A (en) * 2016-09-01 2019-04-16 株式会社富士 Element fixing apparatus and location recognition method
CN110059706A (en) * 2019-04-23 2019-07-26 上海工程技术大学 It is a kind of to place an order the detection method of a straight line for rich salt-pepper noise environment
CN111259886A (en) * 2020-01-08 2020-06-09 上海眼控科技股份有限公司 License plate screw detection method, electronic device, computer equipment and storage medium
CN111664799A (en) * 2019-03-07 2020-09-15 叶时豪 Method for estimating virtual profile of material composed of cross-line and cross-line elements
CN111784674A (en) * 2020-07-02 2020-10-16 深圳明锐理想科技有限公司 Component detection method, component detection device, computer equipment and storage medium
CN114708262A (en) * 2022-06-02 2022-07-05 深圳市海蓝智能科技有限公司 Visual detection method for pin of connector
CN116385750A (en) * 2023-05-30 2023-07-04 合肥图迅电子科技有限公司 Chip pin appearance identification method and device, computer equipment and storage medium

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101839690A (en) * 2010-04-13 2010-09-22 河海大学常州校区 Visual inspection method for chip electronic component position error based on edge fitting
CN101840572A (en) * 2010-04-13 2010-09-22 河海大学常州校区 QFP element position error visual inspection method based on region segmentation
CN101936708A (en) * 2010-08-13 2011-01-05 河海大学常州校区 Method for positioning and detecting QFP (Quad Flat Package) chip
CN101936708B (en) * 2010-08-13 2012-05-23 河海大学常州校区 Method for positioning and detecting QFP (Quad Flat Package) chip
CN103094695A (en) * 2011-10-31 2013-05-08 深圳光启高等理工研究院 Encapsulation method of metamaterial
CN103813703A (en) * 2012-11-09 2014-05-21 财团法人工业技术研究院 Method and system for judging pin positions of electronic parts and inserting electronic parts
CN103813703B (en) * 2012-11-09 2016-05-11 财团法人工业技术研究院 Method and system for judging pin positions of electronic parts and inserting electronic parts
US9456536B2 (en) 2012-11-09 2016-09-27 Industrial Technology Research Institute Method for pins detection and insertion of electronic component
CN109644585B (en) * 2016-09-01 2020-11-20 株式会社富士 Component mounting apparatus and position recognition method
CN109644585A (en) * 2016-09-01 2019-04-16 株式会社富士 Element fixing apparatus and location recognition method
CN109471142A (en) * 2018-10-25 2019-03-15 国网福建省电力有限公司厦门供电公司 A kind of working trajectory recognition methods based on RTK Differential positioning
CN111664799A (en) * 2019-03-07 2020-09-15 叶时豪 Method for estimating virtual profile of material composed of cross-line and cross-line elements
CN110059706A (en) * 2019-04-23 2019-07-26 上海工程技术大学 It is a kind of to place an order the detection method of a straight line for rich salt-pepper noise environment
CN110059706B (en) * 2019-04-23 2023-04-07 上海工程技术大学 Detection method for single straight line in pepper-salt-rich noise environment
CN111259886A (en) * 2020-01-08 2020-06-09 上海眼控科技股份有限公司 License plate screw detection method, electronic device, computer equipment and storage medium
CN111784674A (en) * 2020-07-02 2020-10-16 深圳明锐理想科技有限公司 Component detection method, component detection device, computer equipment and storage medium
CN114708262A (en) * 2022-06-02 2022-07-05 深圳市海蓝智能科技有限公司 Visual detection method for pin of connector
CN116385750A (en) * 2023-05-30 2023-07-04 合肥图迅电子科技有限公司 Chip pin appearance identification method and device, computer equipment and storage medium
CN116385750B (en) * 2023-05-30 2023-08-08 合肥图迅电子科技有限公司 Chip pin appearance identification method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN101031199A (en) Linear form and position adapting method based on pin
US9965847B2 (en) Multi-type BGA chip visual recognition method using line based clustering
CN101839690B (en) Visual inspection method for chip electronic component position error based on edge fitting
CN109211110A (en) A kind of flat-type workpiece size detection system and method based on machine vision
Bai et al. Corner point-based coarse–fine method for surface-mount component positioning
Bai et al. A novel coarse–fine method for ball grid array component positioning and defect inspection
CN113516716B (en) Monocular vision pose measuring and adjusting method and system
CN114549599A (en) Wafer rapid pre-alignment method and device, electronic equipment and storage medium
CN104142338A (en) Detecting and sorting device for standard fasteners
Liu et al. A novel industrial chip parameters identification method based on cascaded region segmentation for surface-mount equipment
CN111640154A (en) Vertical needle micro-plane sub-pixel level positioning method based on micro-vision
CN106503720B (en) A kind of element image-recognizing method of removal suction nozzle interference
CN113052797A (en) BGA solder ball three-dimensional detection method based on depth image processing
CN115527049A (en) High-precision measurement method for lead frame pin spacing
CN112577432A (en) Automatic hub size measuring method and device
CN110969357A (en) Visual detection method for holes of aluminum alloy machined part
CN107767372B (en) Chip pin online visual detection system and method for layered parallel computing
CN111310402A (en) Method for detecting defects of bare printed circuit board based on surface-to-surface parallelism
Sun et al. Precision work-piece detection and measurement combining top-down and bottom-up saliency
Li et al. Real-time detection method for surface defects of stamping parts based on template matching
CN107705287B (en) A kind of industrial products defect detection method with the central symmetry regularity of distribution
CN110910358A (en) Visual detection method of wire harness terminal
CN111462242B (en) Rectangular pin chip positioning method based on improved deformable component model
CN113503787B (en) Thread detection method
Yu et al. New approach to vision-based BGA package inspection

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication