CN109283134A - A kind of light source line space design method for the purpose of image uniform - Google Patents
A kind of light source line space design method for the purpose of image uniform Download PDFInfo
- Publication number
- CN109283134A CN109283134A CN201710596814.XA CN201710596814A CN109283134A CN 109283134 A CN109283134 A CN 109283134A CN 201710596814 A CN201710596814 A CN 201710596814A CN 109283134 A CN109283134 A CN 109283134A
- Authority
- CN
- China
- Prior art keywords
- light source
- curve
- design method
- line space
- uniform
- 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
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/01—Arrangements or apparatus for facilitating the optical investigation
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/01—Arrangements or apparatus for facilitating the optical investigation
- G01N2021/0106—General arrangement of respective parts
- G01N2021/0112—Apparatus in one mechanical, optical or electronic block
Abstract
The present invention relates to industrial vision technical fields, refer in particular to a kind of light source line space design method for the purpose of image uniform, this method is by quantizing relative illumination curve of the close-up under assigned work distance, the spacing plot between adjacent light source is obtained then in conjunction with light distribution, the luminous flux of light source etc. of light source, so that uniform image can be shot under the assigned work distance of the close-up in the light source obtained using the light source line space design method using the camera of close-up by allowing.
Description
Technical field
The present invention relates to industrial vision technical fields, refer in particular to a kind of light source line space design for the purpose of image uniform
Method.
Background technique
Industry is the important drive person of human social development.From after the industrial revolution in 18th century, handicraft is gradually by machine
Device industry replaces.In mechanized manufacturing industry, it is necessary to cooperated by a variety of mechanical equipments to complete streamlined and produce, and the need of each equipment
It to help to identify product by industrial camera, to complete to cooperate.
Since intelligence degree is still not perfect, by industrial camera obtain image, and current industrial camera exist with
Under disadvantage: as industrial lens relative illumination curve and evenly spaced light source arrangement caused by picture centre gray value it is higher,
The lower situation of edge gray value, to affect the identification of computer vision system.
The core solved the problem above-mentioned is how to allow the multiple light sources in industrial camera that can give out uniform strength
Light, to make image more uniform.
Summary of the invention
The present invention provides a kind of light source line space design method for the purpose of image uniform, energy for problem of the prior art
Light source is enough allowed to give out the light of even intensity through camera lens, to make captured image more uniform.
In order to solve the above-mentioned technical problem, the present invention adopts the following technical scheme:
A kind of light source line space design method for the purpose of image uniform provided by the invention, comprising the following steps:
A. the first relative illumination curve of the camera lens under assigned work distance is obtained;
B. first relative illumination curve of the camera lens under assigned work distance is quantized, obtains first and contrasts degree
Value;
C. it according to the sensitivity for the required precision, camera chip taken pictures and the pixel dimension of the camera using the camera lens, calculates
Uniform illumination value needed for the camera lens is under assigned work distance out;
D. the first relative illumination numerical value is normalized, obtains the relative illumination numeric distribution of light source;
E. the relative illumination numeric distribution of light source is obtained absolute irradiance distribution map multiplied by required uniform illumination value;
F. it according to the luminous flux of absolute irradiance distribution map, the curve of light distribution of each light source and each light source, calculates more
The position distribution of a light source;
G. according to the position distribution of calculated light source, multiple light sources are respectively arranged at the lamp holder.
Further, in stepb, the relative illumination curve number using mathematical software camera lens under assigned work distance
Value.
Further, the mathematical software is MATLAB.
Further, in step c, the uniform illumination value is a constant value.
Further, in step d, formula is normalized are as follows: the relative illumination of (the first relative illumination of 1- numerical value)+1=light source
Numeric distribution.
Further, in step f, in conjunction with absolute irradiance curve, the distribution of light sources curve and each light of each light source
The luminous flux in source obtains equation with one unknown quantity y=f(x of light source serial number x and the position y of the light source in the way of curve matching).
Further, the position y of light source indicates the spacing between the light source of serial number x and the light source of serial number x-1.
Beneficial effects of the present invention: camera lens specifications relative illumination curve obtained and related ginseng are specified using consulting
Number is analyzed and is calculated, and the absolute irradiance curve of light source is obtained;Further according to the absolute irradiance curve, the position point of light source is obtained
Cloth can obtain uniform image of the assigned work under, more so that light source position distribution be allowed to cooperate with corresponding camera lens
Be conducive to image procossing.
Detailed description of the invention
Fig. 1 is absolute irradiance curve obtained through the invention.
Fig. 2 is the part distribution of light sources figure of the lamp body arranged using the present invention.
Fig. 3 be using the design method after, Illumination Distribution figure of the camera lens in operating distance 62mm in embodiment.
Specific embodiment
For the ease of the understanding of those skilled in the art, the present invention is made further below with reference to embodiment and attached drawing
Bright, the content that embodiment refers to not is limitation of the invention.The present invention is described in detail below in conjunction with attached drawing.
A kind of light source line space design method for the purpose of image uniform provided by the invention, including camera lens, lamp holder and
The position of multiple light sources, the position of the camera lens and the lamp holder is adapted;The specification and parameter of multiple light sources are all the same;
This method includes following steps:
Firstly, obtaining relative illumination curve of the industrial lens under specified industry distance, and this by the manufacturer of industrial lens
Curve is described into MATLAB software.
Then, by MATLAB software, which is quantized, i.e., is expressed by way of function.
Furthermore according to the required precision of the workpiece of required test, using the camera lens CCD camera pixel dimension and should
The sensitivity of the chip of CCD camera, uniform illumination value required for calculating.Due to needing to obtain the image of uniform illumination, because
This uniform illumination value is a constant constant.
Then, the first relative illumination numerical value is normalized, obtains the relative illumination numeric distribution of light source, this is returned
One changes formula are as follows: the relative illumination numeric distribution of (the first relative illumination of 1- numerical value)+1=light source.
It is after the relative illumination numerical value for obtaining light source, the numerical value is curved by MATLAB software, obtain light source
Absolute irradiance curve.
Obtained light source absolute irradiance curve, the curve of light distribution of each light source, luminous flux of each light source etc.
Parameter calculates relationship y=f(x of the position y of light source and the serial number x of light source by the way of linear fit), wherein the highest of x
Secondary item be even order terms, and the coefficient of the most high-order term of x be negative, therefore y=f(x) image be a symmetrical song that Open Side Down
Line;It should be noted that the curve of light distribution and the luminous flux of light source the two parameters of light source can be from the factories of the light source
It is obtained at quotient.
In above-mentioned formula, used multiple light sources are the light source of unified specification, therefore the light intensity of these light sources is divided
Cloth curve and luminous flux difference are equal.Specifically, the definition of y specifically: the light source of the light source and serial number x-1 of serial number x
Spacing.As x=1, the value of y indicates first light source and places the spacing of one end of the pcb board of light source, and it is close for being somebody's turn to do " one end "
First light source.According to the relationship of y and x, each light source is arranged according to corresponding spacing, then install the industry mirror
Head, the manufactured industrial camera come out can obtain uniform image, allow computer recognition system under the operating distance of formulation
It is able to carry out accurate identification, to work normally.
As shown in Figure 1, being a certain camera lens after present invention processing and calculating, illumination when apart from camera lens 62mm is obtained
Distribution curve.Wherein, light source total light flux used in the camera lens is 25lm, and half strong angle is 60 °.
The unitary sextic equation that the curve obtains after MATLAB numeralization: y=(- 7E-11) x6+ (2E-8) x5-
(3E-6) x4+ (2E-4) x3(5E-3) x2+0.0973x+4.281.Wherein the unit of y is millimeter.
As shown in Fig. 2, x=1 is substituted into above-mentioned equation, the number of y1 in available y=4.37349702007mm, i.e. Fig. 2
Value;X=2 is substituted into above-mentioned equation, y=4.49555263552mm can be obtained, is i.e. it is every successively to substitute into calculating for the numerical value ... of y2 in Fig. 2
X=3 is substituted into above-mentioned equation, can obtain y=4.53306180897mm, i.e. y3 in Fig. 2 by the distance between two adjacent light sources
The manufacture of lamp can be completed in numerical value.As shown in figure 3, the total light source designed through the present invention, after closing above-mentioned camera lens use,
Distribution curve of illumination at 62mm.
Since obtained equation is unitary sextic equation, and the coefficient of most high-order term x^6 is negative value, therefore the light source
Position distribution curve be a symmetrical curve that Open Side Down, and light source be distributed as it is symmetrical.
In the present embodiment, using MATLAB as processing various parameters and the software of curve;In addition to this, moreover it is possible to
The mathematical software of enough other open sources handles parameter and curve, and processing mode is consistent with using MATLAB, herein
It repeats no more.Meanwhile in the present embodiment using the camera lens of industrial camera and light source as example of the invention, but the present invention
Camera of any need to assigned work distance can be used, and the unitary sextic equation " y=(- 7E- in the present embodiment
11) x6+ (2E-8) x5(3E-6) x4+ (2E-4) x3(5E-3) x2+ 0.0973x+4.281 " is only the camera lens warp in the present embodiment
The formula obtained after present invention processing is crossed, should not be used as limitation of the invention.Therefore, these examples only allow art technology
More easily the present invention understands personnel, should not be taken as limiting the invention.
Claims (7)
1. a kind of light source line space design method for the purpose of image uniform, it is characterised in that: the following steps are included:
A. the first relative illumination curve of the light source by camera lens under assigned work distance is obtained;
B. the first relative illumination curve is quantized, obtains the first relative illumination numerical value;
C. it according to the sensitivity for the required precision, camera chip taken pictures and the pixel dimension of the camera using the camera lens, calculates
Uniform illumination value needed for the camera lens is under assigned work distance out;
D. the first relative illumination numerical value is normalized, obtains the relative illumination numeric distribution of light source;
E. the relative illumination numeric distribution of light source is obtained absolute irradiance distribution map multiplied by required uniform illumination value;
F. it according to the luminous flux of absolute irradiance distribution map, the curve of light distribution of each light source and each light source, calculates more
The position distribution of a light source;
G. according to the position distribution of calculated light source, multiple light sources are respectively arranged at the lamp holder.
2. the light source line space design method according to claim 1 for the purpose of image uniform, it is characterised in that: in step
In b, relative illumination curve of the camera lens under assigned work distance is quantized using mathematical software.
3. the light source line space design method according to claim 2 for the purpose of image uniform, it is characterised in that: the number
Software is MATLAB.
4. the light source line space design method according to claim 1 for the purpose of image uniform, it is characterised in that: in step
In c, the uniform illumination value is a constant value.
5. the light source line space design method according to claim 1 for the purpose of image uniform, it is characterised in that: in step
In d, formula is normalized are as follows: the relative illumination numeric distribution of (the first relative illumination of 1- numerical value)+1=light source.
6. the light source line space design method according to claim 1 for the purpose of image uniform, it is characterised in that: in step
In f, in conjunction with the luminous flux of the absolute irradiance curve, the distribution of light sources curve of each light source and each light source, curve is utilized
The mode of fitting obtains equation with one unknown quantity y=f(x of light source serial number x and the position y of the light source).
7. the light source line space design method according to claim 6 for the purpose of image uniform, it is characterised in that: light source
Position y indicates the spacing between the light source of serial number x and the light source of serial number x-1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710596814.XA CN109283134B (en) | 2017-07-20 | 2017-07-20 | Light source spacing design method for achieving image uniformity |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710596814.XA CN109283134B (en) | 2017-07-20 | 2017-07-20 | Light source spacing design method for achieving image uniformity |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109283134A true CN109283134A (en) | 2019-01-29 |
CN109283134B CN109283134B (en) | 2021-01-05 |
Family
ID=65184602
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710596814.XA Active CN109283134B (en) | 2017-07-20 | 2017-07-20 | Light source spacing design method for achieving image uniformity |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109283134B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111200886A (en) * | 2020-01-12 | 2020-05-26 | 东莞锐视光电科技有限公司 | Lamp bead arrangement method of composite light source |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001153808A (en) * | 1999-11-30 | 2001-06-08 | Ccs Kk | Power supply for controlling lighting device |
JP4874875B2 (en) * | 2007-06-07 | 2012-02-15 | 富士フイルム株式会社 | Surface lighting device |
CN104915716A (en) * | 2014-03-14 | 2015-09-16 | 宝山钢铁股份有限公司 | Method of uniformly optimizing illuminating LED array light source for strip steel surface detection |
CN105276450A (en) * | 2015-10-27 | 2016-01-27 | 中国科学院长春光学精密机械与物理研究所 | Reflection-type LED (Light Emitting Diode) light source system in near-infrared noninvasive blood constituent detector |
CN105652438A (en) * | 2016-01-28 | 2016-06-08 | 上海理工大学 | Design method of non-imaging lens |
-
2017
- 2017-07-20 CN CN201710596814.XA patent/CN109283134B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001153808A (en) * | 1999-11-30 | 2001-06-08 | Ccs Kk | Power supply for controlling lighting device |
JP4874875B2 (en) * | 2007-06-07 | 2012-02-15 | 富士フイルム株式会社 | Surface lighting device |
CN104915716A (en) * | 2014-03-14 | 2015-09-16 | 宝山钢铁股份有限公司 | Method of uniformly optimizing illuminating LED array light source for strip steel surface detection |
CN105276450A (en) * | 2015-10-27 | 2016-01-27 | 中国科学院长春光学精密机械与物理研究所 | Reflection-type LED (Light Emitting Diode) light source system in near-infrared noninvasive blood constituent detector |
CN105652438A (en) * | 2016-01-28 | 2016-06-08 | 上海理工大学 | Design method of non-imaging lens |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111200886A (en) * | 2020-01-12 | 2020-05-26 | 东莞锐视光电科技有限公司 | Lamp bead arrangement method of composite light source |
Also Published As
Publication number | Publication date |
---|---|
CN109283134B (en) | 2021-01-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110455815B (en) | Method and system for detecting appearance defects of electronic components | |
CN107941808B (en) | 3D printing forming quality detection system and method based on machine vision | |
JP7476145B2 (en) | Image processing method and imaging device | |
CN105657282B (en) | A kind of visual identity method that brightness of image actively optimizes | |
US8913825B2 (en) | Specular edge extraction using multi-flash imaging | |
CN102479321B (en) | Difference image automatic recognition system and method | |
CN107657656B (en) | Homonymy point matching and three-dimensional reconstruction method, system and luminosity stereo camera terminal | |
TW201525633A (en) | CNC machining route amending system and method | |
CN105221974A (en) | Based on XY polynomial LED free form surface illumination system layout | |
Labudzki et al. | The essence and applications of machine vision | |
US20190342543A1 (en) | Method and Apparatus for Light and Computer Vision Based Dimensional Metrology and 3D Reconstruction | |
WO2022257807A1 (en) | Positioning apparatus based on passive infrared tag | |
CN112734824A (en) | Three-dimensional reconstruction method based on generalized luminosity stereo model | |
CN109283134A (en) | A kind of light source line space design method for the purpose of image uniform | |
CN103697838A (en) | Machine vision technology-based surface mounted device PIN smoothness detection equipment | |
CN105300280B (en) | Connector size vision measuring method | |
CN204303031U (en) | Based on the camera multifunctional caliberating device of optical projector | |
CN109631763A (en) | Irregular part detects localization method | |
CN109286756A (en) | A kind of intensity of light source design method for the purpose of image uniform | |
CN106003038A (en) | Intelligent robot | |
JP2017102061A (en) | Measurement device, measurement method, and manufacturing method of article | |
CN112200200B (en) | LED light color detection method | |
CN110335274B (en) | Three-dimensional mold defect detection method and device | |
CN105913375A (en) | Method and equipment for anatomical image registration | |
CN208623750U (en) | Intelligent industrial camera |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |