CN101806756B - Method for detecting PCB (Printed Circuit Board) by using X-ray - Google Patents

Method for detecting PCB (Printed Circuit Board) by using X-ray Download PDF

Info

Publication number
CN101806756B
CN101806756B CN2010101297144A CN201010129714A CN101806756B CN 101806756 B CN101806756 B CN 101806756B CN 2010101297144 A CN2010101297144 A CN 2010101297144A CN 201010129714 A CN201010129714 A CN 201010129714A CN 101806756 B CN101806756 B CN 101806756B
Authority
CN
China
Prior art keywords
pcb
ray
image
new
tonal range
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.)
Expired - Fee Related
Application number
CN2010101297144A
Other languages
Chinese (zh)
Other versions
CN101806756A (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.)
Guangdong Zhengye Technology Co Ltd
Original Assignee
Guangdong Zhengye Technology 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 Guangdong Zhengye Technology Co Ltd filed Critical Guangdong Zhengye Technology Co Ltd
Priority to CN2010101297144A priority Critical patent/CN101806756B/en
Publication of CN101806756A publication Critical patent/CN101806756A/en
Application granted granted Critical
Publication of CN101806756B publication Critical patent/CN101806756B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Analysing Materials By The Use Of Radiation (AREA)

Abstract

The invention relates to the relative technical field of PCB (Printed Circuit Board) detection methods, in particular to a method for detecting a PCB by using X-ray. The method for detecting the PCB by using the X-ray mainly comprises the following steps of : imaging the PCB through the X-ray to obtain an imaging picture; (11) making a statistical grayscale histogram according to the imaging picture; (12) determining a grayscale range [A,B] at a place where the pixel distribution is densest in the statistical grayscale histogram; (13) determining the grayscale range [A,B], inputting a color gradation range and outputting the color gradation range by a user; and (14) stretching the grayscale range [A,B] to a new grayscale range [Z1,Zk] to obtain a new imaging picture. The invention ensures that the image is clearer and more recognizable and can be more rapidly recognized.

Description

A kind of method that detects PCB with X ray
Technical field
The present invention relates to the correlative technology field of PCB detection method, particularly a kind of method that detects PCB with X ray.
Background technology
The x-ray imaging step mainly is made up of the following aspects:
X-ray tube---image intensifier---camera---de-noising processor---display
Present circumstances is to the image of display, to depend on the quality of preceding four components and parts.However, even improved the quality of four components and parts, image effect has improvement, but still undesirable.The client requires to promote clearness always.Sharpness is not enough.Be the shortcoming of present similar X-ray examination machine.Sharpness is meant that " naked eyes " can not tell between the image lines or the difference between the image shade of grey, that is the fine degree between the resolution of image level scenic focal point material point or the slight level texture or the image shade of grey.Its resolution is higher, and image appearance must be more careful, and sharpness is higher.
In order to improve X-ray operating personnel's condition of work, use low intensive x-ray exposure, but the imaging gray level of obtaining like this concentrates on the dark space, many image details can't be seen clearly, the interpretation difficulty.
Summary of the invention
The invention provides a kind of method, to solve in the prior art, through the unsharp technical matters of x-ray image of X-ray examination PCB acquisition with X ray detection PCB.
The technical scheme that the present invention adopts is following:
The method of a kind of usefulness * ray detection PCB, said method comprise that through X ray PCB being carried out imaging processing obtains the picture that forms images, and said method comprises:
(11) to imaging picture statistics grey level histogram;
(12) tonal range [A, B] is confirmed in the most intensive place of pixel distribution in the statistics grey level histogram;
(13) user confirms input levels scope [minA, MaxB], output levels scope [minOut, maxOut];
(14) stretching tonal range [A, B] is to new tonal range [Z 1, Z kThereby] obtain new imaging picture.
As a kind of preferred version, said step (13) adopts following method stretching tonal range [A, B] to new tonal range [Z 1, Z k]:
The mapping of foundation from former gray scale z to new gray scale Z ', as shown in Figure 1, adopt following formula:
Z &prime; = t ( z ) = Z 1 = min A Z < min A Z - min A max B - min A * ( max Out - min Out ) + 0.5 min A &le; Z &le; max B Z k = max B Z > max B
As further preferred version, said step (11) is preceding, also comprises the imaging picture is strengthened and/or noise reduction process.
As further preferred version, it is characterized in that the concrete steps of said step (14) are following:
(41) adjustment Z 1And Z kValue, if all Z of traversal in 0~255 scope 1And Z k, then withdraw from, otherwise execution in step (42);
(42) stretching tonal range [A, B] is to new tonal range [Z 1, Z kThereby] obtain new imaging picture;
(43) if useful image in the new imaging picture and background image can obviously be distinguished, then withdraw from, otherwise execution in step (41).
As further preferred version, said useful image is that PCB goes up the metal level that applies, and background image is meant the base material imaging moiety of PCB.
As further preferred version, in the said step (43), to distinguish through the articulation index of more useful image and background image, concrete steps are following:
When articulation index surpasses pre-set threshold, think that then useful image and background image can obviously distinguish, withdraw from step (43), otherwise, think that useful image and background image can not obviously distinguish continuation execution in step (41).
The present invention has the following advantages:
(1) be that image is more clear and legible, quick identification more.Therefore can take the software enlarged image to observe significantly.Simultaneously, boost productivity more greatly because of identification.
(2) be to reduce the error that human factor causes in the measurement.When clear picture can make measuring operation, as when drawing the distance of center circle of round gaging hole, can seek the border more accurately, reduce personal error.
(3) be to reduce production costs greatly and reduce unnecessary loss.Can carry out image definition and regulate as the case may be, each different emphasis of printed wiring board are observed and analyzed.Obtain the more quality information of wiring board.Thereby more accurately control product quality.Reduce production costs and reduce unnecessary loss.
(4) be the raising of image definition, can improve the X-ray tube lifetime to a certain extent.During for example with former software test, when surveying certain slab, the X-ray tube voltage needs 44KV; And when adopting new software, only need 40KV just passable.Therefore, the X-ray pipe can come work with low slightly voltage.This played a role to the life-span of improving the X-ray pipe.
(5) be to widen the field range that X-ray is observed to a certain extent.Present situation is that sharpness has loss when strengthening the visual field.Software after the improvement has remedied the loss of sharpness.Can widen targetedly * field range that light is observed.
Description of drawings
Fig. 1 expands to tonal range [Z from tonal range [A, B] 1, Z k] functional arrangement;
Fig. 2 be to PCB * radial imaging, through to strengthening the image that collects after the processing such as noise reduction;
Fig. 3 is to Fig. 2 gray-scale statistical histogram result;
Fig. 4 is for being stretched to Fig. 2 tonal range the image under [Z1, Zk] tonal range;
Fig. 5 is the corresponding color range statistic histogram of Fig. 4;
Fig. 6 strengthens useful view data for Fig. 2 process, the design sketch after the weakening background.
Embodiment
Below in conjunction with accompanying drawing and specific embodiment the present invention is carried out further detailed explanation.
The concrete steps of present embodiment are following:
1) extracts the x-ray imaging of PCB targetedly,, collect image as shown in Figure 2 after the processing such as noise reduction through to strengthening;
2) Fig. 2 is carried out gray-scale statistical and obtain histogram as shown in Figure 3;
3) according to following formula
Z &prime; = t ( z ) = Z 1 = min A Z < min A Z - min A max B - min A * ( max Out - min Out ) + 0.5 min A &le; Z &le; max B Z k = max B Z > max B
Wherein, [A, B] comes out image tonescale, and [minA, MaxB] color range scope is user expectation and a scope setting, and it is greater than [A, B].In [minA, MaxB], can regulate [A, B] through pulling software slider bar and expand color range scope [Z to 1, Z K], so just increased the color range scope.Promptly by [A, B] → [Z 1, Z K].
Output levels scope [minOut, maxOut] is the scope that the user sets, and promptly is the target setting value of output.Generally be set at [0,255].
Improve contrast through stretching concentric circles tonal range, be illustrated in figure 4 as and be stretched to two images under the different tonal ranges, Fig. 5 is its corresponding histogram, can find out, the image of useful view data intensity profile wider range is more clear;
4) through improving contrast, strengthen useful view data, weaken background, thereby more easy separation goes out the view data that we need.Like Fig. 5, exactly Fig. 2 is taked Flame Image Process, through image grey distribution range width being regulated an image of choosing.Increase concentric circles profile gray scale, reduced the background gray scale, selective after software algorithm is handled, observe distinct image.Compare clear picture, sharp outline with Fig. 2.

Claims (4)

1. one kind is detected the method for PCB with X ray, and said method comprises that through X ray PCB being carried out imaging processing obtains the picture that forms images, and the imaging picture is strengthened and/or noise reduction process, and said method comprises:
(11) to imaging picture statistics grey level histogram;
(12) tonal range [A, B] is confirmed in the most intensive place of pixel distribution in the statistics grey level histogram;
(13) user confirms input levels scope [minA, MaxB], output levels scope [minOut, maxOut];
(14) stretching tonal range [A, B] is to new tonal range [Z 1, Z kThereby] obtain new imaging picture, it is characterized in that,
Said step (14) adopts following method stretching tonal range [A, B] to new tonal range [Z 1, Z k]:
The mapping of foundation from former gray scale z to new gray scale Z ', adopt following formula:
Z &prime; = t ( z ) = Z 1 = min A Z < min A Z - min A max B - min A * ( max Out - min Out ) + 0.5 min A &le; Z &le; max B Z k = max B Z > max B
2. the method with X ray detection PCB according to claim 1 is characterized in that, the concrete steps of said step (14) are following:
(41) adjustment Z 1And Z kValue, if all Z of traversal in 0~255 scope 1And Z k, then withdraw from, otherwise execution in step (42);
(42) stretching tonal range [A, B] is to new tonal range [Z 1, Z kThereby] obtain new imaging picture;
(43) if useful image in the new imaging picture and background image can obviously be distinguished, then withdraw from, otherwise execution in step (41).
3. the method with X ray detection PCB according to claim 2 is characterized in that, said useful image is that PCB goes up the metal level that applies, and background image is meant the base material imaging moiety of PCB.
4. the method with X ray detection PCB according to claim 2 is characterized in that in the said step (43), distinguish through the articulation index of more useful image and background image, concrete steps are following:
When articulation index surpasses pre-set threshold, think that then useful image and background image can obviously distinguish, withdraw from step (43), otherwise, think that useful image and background image can not obviously distinguish continuation execution in step (41).
CN2010101297144A 2010-03-19 2010-03-19 Method for detecting PCB (Printed Circuit Board) by using X-ray Expired - Fee Related CN101806756B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101297144A CN101806756B (en) 2010-03-19 2010-03-19 Method for detecting PCB (Printed Circuit Board) by using X-ray

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101297144A CN101806756B (en) 2010-03-19 2010-03-19 Method for detecting PCB (Printed Circuit Board) by using X-ray

Publications (2)

Publication Number Publication Date
CN101806756A CN101806756A (en) 2010-08-18
CN101806756B true CN101806756B (en) 2012-03-28

Family

ID=42608646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101297144A Expired - Fee Related CN101806756B (en) 2010-03-19 2010-03-19 Method for detecting PCB (Printed Circuit Board) by using X-ray

Country Status (1)

Country Link
CN (1) CN101806756B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103698917B (en) * 2013-12-26 2016-04-06 合肥京东方光电科技有限公司 Chock insulator matter pick-up unit and method
CN111367744B (en) * 2020-03-08 2022-07-08 苏州浪潮智能科技有限公司 Printed circuit board assembly testing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7321675B2 (en) * 2002-11-21 2008-01-22 Canon Kabushiki Kaisha Image processing apparatus, image processing method, storage medium and program
CN101112315A (en) * 2007-08-24 2008-01-30 珠海友通科技有限公司 X-ray human body clairvoyance image automatic anastomosing and splicing method
CN101231747A (en) * 2007-01-22 2008-07-30 清华大学 X ray picture edge and contrast synthesis enhancing method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004239753A (en) * 2003-02-06 2004-08-26 Shimadzu Corp X-ray foreign substance inspection apparatus
JP2004364021A (en) * 2003-06-05 2004-12-24 Fuji Photo Film Co Ltd Method for correcting uniformity of display monitor and program therefor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7321675B2 (en) * 2002-11-21 2008-01-22 Canon Kabushiki Kaisha Image processing apparatus, image processing method, storage medium and program
CN101231747A (en) * 2007-01-22 2008-07-30 清华大学 X ray picture edge and contrast synthesis enhancing method
CN101112315A (en) * 2007-08-24 2008-01-30 珠海友通科技有限公司 X-ray human body clairvoyance image automatic anastomosing and splicing method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JP特开2004-239753A 2004.08.26
JP特开2004-364021A 2004.12.24
苏国松.《印制电路板光学检测算法研究》.《中国优秀硕士学位论文全文数据库 信息科技辑》.2010,(第1期),2-12. *

Also Published As

Publication number Publication date
CN101806756A (en) 2010-08-18

Similar Documents

Publication Publication Date Title
JP4021366B2 (en) Image quality analysis method and system for display device
CN108416766B (en) Double-side light-entering type light guide plate defect visual detection method
JP4725298B2 (en) Visual inspection method using images
CN109345528A (en) A kind of display screen defect inspection method and device based on human-eye visual characteristic
CN109886960A (en) The method of glass edge defects detection based on machine vision
CN109727233A (en) A kind of LCD defect inspection method
CN113008524B (en) Screen light leakage detection method and device
CN101806756B (en) Method for detecting PCB (Printed Circuit Board) by using X-ray
CN113436135A (en) Image processing device and method for evaluating dyeing quality of knitted fabric
CN109785290B (en) Steel plate defect detection method based on local illumination normalization
KR101862310B1 (en) Apparatus and Method for Detecting Mura Defects
JP2009036582A (en) Inspection method, inspection device and inspection program of plane display panel
CN108965749A (en) Defect pixel detection and means for correcting and method based on texture recognition
CN103605973A (en) Image character detection and identification method
JP2005164565A (en) Defect detection method for flat panel light- related plate element in low and high resolution images
JP4951528B2 (en) Pattern recognition system and method
JP2004185246A (en) Evaluation method of uniformity of color
CN101620729B (en) Method for producing gray image with best quality
JP5288154B2 (en) Image quality inspection device
Nagpal et al. Performance analysis of diabetic retinopathy using diverse image enhancement techniques
KR100859533B1 (en) Position calibration method of display panel
KR20210085411A (en) Appratus for automatic detection of repeated mura for the display panel and method for the same
JP4036048B2 (en) Defect identification method
JP2005165482A (en) Defect detecting method
KR100975823B1 (en) Noise elimination and defect detecting method of image, and device thereof

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120328