CN109345521B - LED free-form surface array based on leather surface defect detection - Google Patents
LED free-form surface array based on leather surface defect detection Download PDFInfo
- Publication number
- CN109345521B CN109345521B CN201811114401.4A CN201811114401A CN109345521B CN 109345521 B CN109345521 B CN 109345521B CN 201811114401 A CN201811114401 A CN 201811114401A CN 109345521 B CN109345521 B CN 109345521B
- Authority
- CN
- China
- Prior art keywords
- led
- array
- angle
- leather
- axis
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F21—LIGHTING
- F21K—NON-ELECTRIC LIGHT SOURCES USING LUMINESCENCE; LIGHT SOURCES USING ELECTROCHEMILUMINESCENCE; LIGHT SOURCES USING CHARGES OF COMBUSTIBLE MATERIAL; LIGHT SOURCES USING SEMICONDUCTOR DEVICES AS LIGHT-GENERATING ELEMENTS; LIGHT SOURCES NOT OTHERWISE PROVIDED FOR
- F21K9/00—Light sources using semiconductor devices as light-generating elements, e.g. using light-emitting diodes [LED] or lasers
- F21K9/90—Methods of manufacture
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/004—Artificial life, i.e. computing arrangements simulating life
- G06N3/006—Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/40—Analysis of texture
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F21—LIGHTING
- F21Y—INDEXING SCHEME ASSOCIATED WITH SUBCLASSES F21K, F21L, F21S and F21V, RELATING TO THE FORM OR THE KIND OF THE LIGHT SOURCES OR OF THE COLOUR OF THE LIGHT EMITTED
- F21Y2115/00—Light-generating elements of semiconductor light sources
- F21Y2115/10—Light-emitting diodes [LED]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/04—Constraint-based CAD
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30168—Image quality inspection
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Evolutionary Computation (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Artificial Intelligence (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Biomedical Technology (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Computer Hardware Design (AREA)
- Geometry (AREA)
- Manufacturing & Machinery (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Optics & Photonics (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
本发明公开了一种基于皮革表面缺陷检测的LED自由曲面阵列,属于机器视觉检测LED照明领域。通过构建一个空间LED自由曲面上的阵列离轴照度分布理论模型;引入基于模拟退火的粒子群优化算法和设定约束条件,构建均匀度评价函数,优化模拟获得可实现单侧离轴均匀照明的LED自由曲面阵列的最优解。所述的LED阵列能够实现均匀照明,照度均匀度达到91.86%。本发明的LED自由曲面阵列能够用于单色纹理皮革印制过程的检测,能够凸显并易于直接在线检测,达到了通过单侧离轴均匀照明法检测印染缺陷的目的。本发明的LED自由曲面阵列照明可以准确、快速的检测皮革表面的暗纹。
The invention discloses an LED free-form surface array based on leather surface defect detection, belonging to the field of machine vision detection LED lighting. By constructing a theoretical model of the off-axis illuminance distribution of the array on a spatial LED free-form surface; introducing a particle swarm optimization algorithm based on simulated annealing and setting constraints, constructing a uniformity evaluation function, and optimizing the simulation to obtain an off-axis uniform illumination on one side. Optimal solution of LED freeform surface array. The LED array can realize uniform illumination, and the illumination uniformity reaches 91.86%. The LED free-form surface array of the invention can be used for the detection of the monochromatic texture leather printing process, can be highlighted and easy to be directly detected online, and achieves the purpose of detecting printing and dyeing defects by a single-side off-axis uniform illumination method. The LED free-form surface array illumination of the present invention can accurately and quickly detect dark lines on the leather surface.
Description
技术领域technical field
本发明涉及一种基于皮革表面缺陷检测的LED自由曲面阵列,属于机器视觉检测LED照明领域。The invention relates to an LED free-form surface array based on leather surface defect detection, belonging to the field of machine vision detection LED lighting.
背景技术Background technique
人造皮革由于价格低廉,色彩丰富等优点已经广泛应用于我们的生活中,人们对皮革产品的质量要求也越来越高,不仅对皮革表面气泡、白斑、暗纹、划痕、污渍等较为明显的缺陷必须检测,对一些只能在某些角度或特殊照明才能看到的颜色不均等印染缺陷也不容忽视了。为了提高生产效率和产品质量的稳定性,机器视觉检测成为发展趋势。照明光源是机器视觉系统的重要组成部分。光源的选择会影响到成像质量,进而影响到整个系统的性能。光源的作用是获得对比鲜明的图像、将感兴趣部分和其他部分的灰度值差异加大、尽量消除不感兴趣部分、提高信噪比,利于图像处理等。Artificial leather has been widely used in our lives due to its low price and rich colors. People have higher and higher quality requirements for leather products. Not only are there obvious bubbles, white spots, dark lines, scratches, stains, etc. on the leather surface. The defects must be detected, and some printing and dyeing defects such as uneven color that can only be seen at certain angles or special lighting cannot be ignored. In order to improve production efficiency and product quality stability, machine vision inspection has become a development trend. Lighting source is an important part of machine vision system. The choice of light source will affect the imaging quality, which in turn affects the performance of the entire system. The role of the light source is to obtain a contrasting image, increase the difference between the gray value of the part of interest and other parts, try to eliminate the part of interest, improve the signal-to-noise ratio, and facilitate image processing.
在皮革表面检测中,由于皮革自身纹理的存在,会影响检测结果,采用合理的照明方式加大缺陷与皮革自身纹理的对比就显得尤为重要。对于单色的皮革纹理表面存在的印染缺陷,只有通过单方向的低角度均匀照明才能突显出来。目前已有的解决方式是通过图像处理使不均匀照明所获得的图像达到检测要求,但是图像处理不仅会增加运算时间,而且稳定性较差。采用一种能够实现单侧离轴均匀照明的光源减少了图像处理的运算时间,提高了系统的稳定性,进一步地提高了检测系统成功率和效率。In the detection of leather surface, the existence of the texture of the leather itself will affect the detection results. It is particularly important to use a reasonable lighting method to increase the contrast between the defects and the texture of the leather itself. For the printing and dyeing defects of the monochromatic leather texture surface, it can only be highlighted by uniform lighting at a low angle in one direction. The existing solution is to make the image obtained by uneven illumination meet the detection requirements through image processing, but the image processing will not only increase the operation time, but also have poor stability. The use of a light source capable of realizing uniform illumination off-axis on one side reduces the operation time of image processing, improves the stability of the system, and further improves the success rate and efficiency of the detection system.
发明内容SUMMARY OF THE INVENTION
本发明为了解决上述技术问题,提供一种基于皮革表面缺陷检测的LED自由曲面阵列。通过构建一个LED离轴照度分布理论模型,利用粒子群优化算法得出一组最优解,得出一个能够实现对目标面均匀照射的LED阵列。In order to solve the above technical problems, the present invention provides an LED free-form surface array based on leather surface defect detection. By constructing a theoretical model of LED off-axis illuminance distribution, a set of optimal solutions is obtained by using particle swarm optimization algorithm, and an LED array that can achieve uniform illumination on the target surface is obtained.
本发明的技术方案:Technical scheme of the present invention:
一种基于皮革表面缺陷检测的LED自由曲面阵列,通过(1)构建一个空间LED自由曲面上的阵列离轴照度分布理论模型;(2)引入基于模拟退火的粒子群优化算法、设定约束条件、构建均匀度评价函数,优化模拟获得能够实现单侧离轴均匀照明的LED自由曲面阵列的最优解;得出一个LED自由曲面阵列。An LED free-form surface array based on leather surface defect detection, by (1) constructing a theoretical model of off-axis illumination distribution of the array on a spatial LED free-form surface; (2) introducing a particle swarm optimization algorithm based on simulated annealing and setting constraints , Construct a uniformity evaluation function, and optimize the simulation to obtain the optimal solution of the LED free-form surface array that can achieve uniform illumination on one side off-axis; obtain an LED free-form surface array.
在一种实施方式中,所述的LED阵列能够实现均匀照明,照度均匀度达到91.86%。In one embodiment, the LED array can achieve uniform illumination, and the illumination uniformity reaches 91.86%.
一种基于皮革表面缺陷检测的LED自由曲面阵列,LED阵列照度分布为A LED free-form surface array based on leather surface defect detection, the LED array illumination distribution is
其中(X,Y,Z)是LED在空间坐标系的坐标,n1是LED行的总数,n2是LED列的总数,其中x,y是目标面上任意一点在x,y轴上的坐标,中I0为LED的光强,θ1/2为LED半角宽度,Z是LED的位置到目标面的距离,α为光轴与目标面的法线的夹角,β是目标面上任意一点光线照射角度与目标面法线的夹角,i是LED阵列中某颗LED所在的行数,j是LED阵列中某颗LED所在的列数。Where (X, Y, Z) are the coordinates of the LED in the space coordinate system, n 1 is the total number of LED rows, n 2 is the total number of LED columns, where x, y are any point on the target surface on the x, y axis Coordinates, in which I 0 is the light intensity of the LED, θ 1/2 is the half-angle width of the LED, Z is the distance from the position of the LED to the target surface, α is the angle between the optical axis and the normal of the target surface, and β is the target surface. The angle between the light irradiation angle at any point and the normal of the target surface, i is the row number of an LED in the LED array, and j is the column number of an LED in the LED array.
在一种实施方式中,LED阵列中每颗LED的位置和角度符合:In one embodiment, the position and angle of each LED in the LED array conform to:
在一种实施方式中,所述的构建一个空间LED自由曲面上的阵列离轴照度分布理论模型包括:In one embodiment, the construction of an array off-axis illuminance distribution theoretical model on a spatial LED free-form surface includes:
Ⅰ.计算LED同轴照明时,目标面上任意一点的D(x,y,0)处的照度为式(1),所述的同轴照明是LED光轴与目标面的法线平行,如图1所示;Ⅰ. When calculating LED coaxial illumination, the illuminance at D(x, y, 0) at any point on the target surface is formula (1). The coaxial illumination is that the LED optical axis is parallel to the normal of the target surface, As shown in Figure 1;
其中,式(1)(X,Y,Z)是LED在空间坐标系的坐标,其中x,y是目标面上任意一点在x,y轴上的坐标,中I0为LED的光强,m=-ln2/ln(cosθ1/2),θ1/2为LED半角宽度,Z是图1中LED的位置到目标面的距离如所示,是图1中LED位置到目标面中任意一点的位置如所示;Among them, formula (1) (X, Y, Z) is the coordinates of the LED in the space coordinate system, where x, y are the coordinates of any point on the target surface on the x, y axes, and I 0 is the light intensity of the LED, m=-ln2/ln(cosθ 1/2 ), θ 1/2 is the half-angle width of the LED, and Z is the distance from the position of the LED to the target surface in Figure 1. shown, is the position from the LED position to any point in the target surface in Figure 1, such as shown;
Ⅱ.整理式(1)得到式(2)Ⅱ. Arrange formula (1) to obtain formula (2)
Ⅲ.推导离轴照明,所述的离轴照明是LED光轴与目标面的法线不平行,即当光轴与目标面的法线的夹角α不为零时,如图2所示,LED在目标面上的照度分布模型为式(3);Ⅲ. Derive off-axis illumination. The off-axis illumination is that the LED optical axis is not parallel to the normal of the target surface, that is, when the angle α between the optical axis and the normal of the target surface is not zero, as shown in Figure 2 , the illuminance distribution model of LED on the target surface is formula (3);
其中β是目标面上任意一点光线照射角度与目标面法线的夹角如图2所示,其中图2中LED位置到目标面中任意一点的位置 where β is the angle between the irradiation angle of any point on the target surface and the normal of the target surface, as shown in Figure 2, where The position of the LED from the position of the LED to any point on the target surface in Figure 2
Ⅳ.推导LED阵列的离轴照度分布,考虑到LED为非相关光源和光的叠加性,则空间上分布有n1×n2颗LED时,n1是LED行的总数,n2是LED列的总数,LED在目标区域照度满足线性叠加,LED阵列的离轴照度分布模型为式(4):Ⅳ. Derive the off-axis illuminance distribution of the LED array. Considering that the LEDs are non-correlated light sources and the superposition of light, when there are n 1 × n 2 LEDs spatially distributed, n 1 is the total number of LED rows, and n 2 is the LED column. The total number of LEDs in the target area satisfies linear superposition, and the off-axis illuminance distribution model of the LED array is formula (4):
式(4)表明,每颗LED需要有4个参量来确定E,整个阵列需要4n1n2(LED的位置x,y,z,角度α)个参量来确定,数量非常大。Equation (4) shows that each LED needs 4 parameters to determine E, and the entire array needs 4n 1 n 2 (LED position x, y, z, angle α) parameters to determine, the number is very large.
Ⅴ.简化阵列模型,令LED沿Y方向均匀分布,间距为d,均相对于阵列中心轴对称分布,阵列中心点偏转角为α0,其相邻的LED1的角度为α1,如图3所示,根据图3推导出式(5):Ⅴ. Simplify the array model, make the LEDs evenly distributed along the Y direction, the spacing is d, and they are distributed symmetrically with respect to the central axis of the array, the deflection angle of the center point of the array is α 0 , and the angle of the adjacent LED1 is α 1 , as shown in Figure 3 As shown, formula (5) is derived according to Figure 3:
根据式(5),则n1×n2颗LED阵列中每颗LED的位置和角度符合:According to formula (5), the position and angle of each LED in the n 1 ×n 2 LED arrays are as follows:
由式(4)和(6)即可构建出整个LED阵列的分布,这时需要求解的参量已经变为n1+n2个,运算量得到了很大简化。The distribution of the entire LED array can be constructed from equations (4) and (6). At this time, the parameters to be solved have become n 1 +n 2 , and the computational complexity has been greatly simplified.
在一种实施方式中,所述的优化目标函数包括:定义照度均匀度μ,In one embodiment, the optimization objective function includes: defining the illuminance uniformity μ,
其中,为目标面照度平均值,Emax为目标面照度最大值;in, is the average value of the illuminance of the target surface, and E max is the maximum value of the illuminance of the target surface;
根据式(7),以μ作为均匀度评价指标,以均匀度最大为优化目标,μ最大为1,构建收敛的优化目标函数F:According to formula (7), using μ as the evaluation index of uniformity, taking the maximum uniformity as the optimization objective, and the maximum μ is 1, the convergent optimization objective function F is constructed:
在一种实施方式中,所述的约束条件是,In one embodiment, the constraints are,
在一种实施方式中,所述的优化算法步骤为:In one embodiment, the optimization algorithm steps are:
S1.随机获取LED位置坐标参数x,y,z和角度α;S1. Randomly obtain LED position coordinate parameters x, y, z and angle α;
S2.判断获取的坐标参数是否符合约束条件,符合约束条件进入步骤S3,否则转步骤S1;S2. Determine whether the obtained coordinate parameters meet the constraints, and go to step S3 if the constraints are met, otherwise go to step S1;
S3.将步骤S2中符合约束条件的参数代入式(4)、(6)、(8)中计算;S3. Substitute the parameters that meet the constraints in step S2 into formulas (4), (6), (8) for calculation;
S4.将步骤S3中的结果代入式(9),判断F是否是最小值,F是最小值则为最优解,否则转步骤S3。S4. Substitute the result in step S3 into formula (9) to determine whether F is the minimum value, and if F is the minimum value, it is the optimal solution, otherwise, go to step S3.
本发明的另一个目的根据上述的LED阵列在机器视觉皮革缺陷检测系统中的应用,所述的系统包括图像采集系统为水星MER-200CCD、检测样品、LTH-300条形光源。Another object of the present invention is based on the application of the above-mentioned LED array in a machine vision leather defect detection system, the system includes an image acquisition system of Mercury MER-200CCD, a detection sample, and a LTH-300 strip light source.
在一种实施方式中,所述的机器视觉皮革缺陷检测系统中的应用,包括在Halcon平台上通过编程用Laws纹理滤波提取纹理特征,高斯混合模型分类器进行缺陷检测。In one embodiment, the application of the machine vision leather defect detection system includes using Laws texture filtering to extract texture features through programming on the Halcon platform, and Gaussian mixture model classifier to perform defect detection.
在一种实施方式中,所述的检测样品是贝内克长顺公司提供的存在表面印染缺陷的单色纹理皮革。In one embodiment, the test sample is a single-color textured leather with surface printing and dyeing defects provided by Benecke Changshun Company.
本发明的另一个目的是提供一种单侧离轴均匀照明的照明装置的制作方法,根据上述LED自由曲面阵列设计一个曲面边框3D结构以固定基板并控制LED阵列装置,在边框上Yj处预留10mm×1mm的嵌槽,嵌槽底面与曲面相切,基板嵌入槽内,以准确控制LED的位置和角度。Another object of the present invention is to provide a method for manufacturing a lighting device with uniform illumination off-axis on one side. According to the above-mentioned LED free-form surface array, a curved frame 3D structure is designed to fix the substrate and control the LED array device. A 10mm×1mm slot is reserved, the bottom surface of the slot is tangent to the curved surface, and the substrate is embedded in the slot to accurately control the position and angle of the LED.
在一种实施方式中,考虑LED发热及基板的重量,选取抗拉伸强度和耐热形变的尼龙材料,通过3d打印得到曲型边框。利用DXP软件设计条形基板,将LED灯珠安装在基板上。In one embodiment, considering the heating of the LED and the weight of the substrate, a nylon material with tensile strength and thermal deformation resistance is selected, and a curved frame is obtained by 3D printing. Use DXP software to design a strip substrate, and install the LED lamp beads on the substrate.
借助以上技术方案,本发明的有益效果为:By means of the above technical solutions, the beneficial effects of the present invention are:
本发明可以实现单侧离轴的均匀照明,照度均匀度达到91.86%。The present invention can realize uniform illumination of one side off-axis, and the uniformity of illumination reaches 91.86%.
本发明用于皮革表面纹理缺陷检测中,可以检测使用其他照明装置无法识别的印染缺陷。本发明的一种能够实现单侧离轴均匀照明的LED阵列应用于皮革表面纹理缺陷检测系统中,能够减少了图像处理的运算时间,提高了系统的稳定性,进一步地提高了检测系统成功率和效率。The invention is used in the detection of leather surface texture defects, and can detect printing and dyeing defects that cannot be identified by other lighting devices. The LED array capable of realizing one-side off-axis uniform illumination of the present invention is applied to a leather surface texture defect detection system, which can reduce the operation time of image processing, improve the stability of the system, and further improve the success rate of the detection system. and efficiency.
附图说明Description of drawings
图1是本发明LED同轴光照示意图;Fig. 1 is the LED coaxial illumination schematic diagram of the present invention;
图2是本发明LED离轴光照示意图;Fig. 2 is the LED off-axis illumination schematic diagram of the present invention;
图3是本发明曲面LED阵列分布及光照示意图;3 is a schematic diagram of the distribution and illumination of a curved LED array of the present invention;
图4是本发明所用曲面LED阵列的模型示意图;Fig. 4 is the model schematic diagram of the curved LED array used in the present invention;
图5是优化得到照度图;Fig. 5 is the illuminance map obtained by optimization;
图6是LED曲面边框3D结构图;Figure 6 is a 3D structure diagram of the LED curved frame;
图7是采集系统图;Fig. 7 is the acquisition system diagram;
图8是实际LED阵列测量的照度图;Figure 8 is an illuminance diagram measured by an actual LED array;
图9是皮革检测平台系统图;Figure 9 is a system diagram of a leather detection platform;
图10是皮革检测图。Figure 10 is a leather inspection chart.
具体实施方式Detailed ways
下面结合附图对本发明具体实施方式做进一步详细说明:本实施例在以本发明技术方案为前提下进行实施,给出了详细的实施方式和过程,但本发明的保护范围不限于下述的实施例。The specific embodiments of the present invention will be described in further detail below in conjunction with the accompanying drawings: the present embodiment is implemented on the premise of the technical solution of the present invention, and provides detailed embodiments and processes, but the protection scope of the present invention is not limited to the following Example.
实施例1Example 1
一、推导LED阵列离轴照度分布理论模型1. Derive the theoretical model of the off-axis illuminance distribution of the LED array
图1为LED的同轴光照示意图,LED位于点A(X,Y,Z),AB为其到目标面的垂直距离,设光轴与目标面法线夹角为α。当α=0时为同轴照射,即图1,则目标面Ⅰ上任意一点D(x,y,0)处的照度为Figure 1 is a schematic diagram of the coaxial illumination of the LED. The LED is located at point A (X, Y, Z), AB is the vertical distance from the target surface, and the angle between the optical axis and the normal of the target surface is α. When α=0, it is coaxial illumination, that is, Fig. 1, then the illumination at any point D(x, y, 0) on the target surface I is
式(1)中I0为LED的光强,m=-ln2/ln(cosθ1/2),θ1/2为LED半角宽度, 这时式(1)可以改写成:In formula (1), I 0 is the light intensity of the LED, m=-ln2/ln(cosθ 1/2 ), and θ 1/2 is the half-angle width of the LED, Then formula (1) can be rewritten as:
当α≠0时,即图2,这时有式(2)仍然适用。则LED在面Ⅱ上的离轴照度分布可表示为:When α≠0, that is, Figure 2, then there is Equation (2) still applies. Then the off-axis illuminance distribution of LED on surface II can be expressed as:
考虑到LED为非相关光源和光的叠加性原理,若空间上分布有n1×n2颗LED,则LED在目标区域照度满足线性叠加,LED阵列的离轴照度分布表达式为:Considering the superposition principle of LEDs as non-correlated light sources and light, if there are n 1 × n 2 LEDs distributed in space, the illuminance of the LEDs in the target area satisfies linear superposition, and the off-axis illuminance distribution expression of the LED array is:
式(4)表明,每颗LED需要有4个参量来确定E,整个阵列需要4n1n2个参量来确定,数量非常大。要实现均匀照明,即E(x,y,z)→E0,需要运用合适的算法和优化目标函数找到一组最优参量。Equation (4) shows that each LED needs 4 parameters to determine E, and the entire array needs 4n 1 n 2 parameters to determine, which is very large. To achieve uniform illumination, ie E(x,y,z)→E 0 , it is necessary to find a set of optimal parameters using a suitable algorithm and optimization objective function.
减少变量可有效减少运算时间。令LED沿Y方向均匀分布,间距为d,均相对于阵列中心轴对称分布,阵列中心点偏转角为α0,其相邻的LED1的角度为α1,如图3所示,则有:Reducing variables can effectively reduce the operation time. Let the LEDs be evenly distributed along the Y direction, the spacing is d, and they are symmetrically distributed with respect to the central axis of the array, the deflection angle of the center point of the array is α 0 , and the angle of the adjacent LED1 is α 1 , as shown in Figure 3, there are:
以此类推,可表达出每颗LED的位置和角度By analogy, the position and angle of each LED can be expressed
由式(4)和(6)即可构建出整个LED阵列的分布,这时需要求解的参量已经减少到n1+n2个,得到了很大简化。The distribution of the entire LED array can be constructed by formulas (4) and (6). At this time, the parameters to be solved have been reduced to n 1 +n 2 , which is greatly simplified.
二、LED阵列离轴照度分布理论模型的优化2. Optimization of the theoretical model of off-axis illuminance distribution of LED arrays
优化目标函数:根据通常的照度均匀度定义Optimization objective function: defined according to the usual illumination uniformity
其中为目标面照度平均值,Emax为目标面照度最大值。in is the average value of the illuminance of the target surface, and E max is the maximum value of the illuminance of the target surface.
以μ作为均匀度评价指标,以均匀度最大为优化目标,μ最大为1。运用SimuAPSO进行优化需要构建收敛的优化目标函数F:Take μ as the evaluation index of uniformity, take the maximum uniformity as the optimization goal, and the maximum value of μ is 1. Optimization with SimuAPSO requires the construction of a convergent optimization objective function F:
约束条件:考虑到曲面LED阵列应具有通用性和易安装性,所选光源为未加二次光学设计的LED芯片。令芯片的光轴与所在曲面法向重合,即用该点曲率控制α。考虑到LED芯片有一定大小,避免曲面阵列失控、曲率突变和不同LED之间发生重叠,设置优化约束条件:Constraints: Considering that the curved LED array should be versatile and easy to install, the selected light source is an LED chip without secondary optical design. Make the optical axis of the chip coincide with the normal direction of the surface where it is located, that is, use the curvature of this point to control α. Considering that the LED chip has a certain size, to avoid the surface array running out of control, the sudden change of curvature and the overlap between different LEDs, set the optimization constraints:
编程优化:①随机获取LED位置坐标参数x,y,z和角度α;②判断获取的坐标参数是否符合约束条件,符合约束条件进入步骤③,否则转步骤①;③将步骤②中符合约束条件的参数代入式(4)、(6)、(8)中计算;④将步骤③中的结果代入式(9),判断F是否是最小值,F是最小值则为最优解,否则转步骤③;得出最优解的LED阵列,使用追光软件制出如图4所示的LED阵列;Programming optimization: ① randomly obtain the LED position coordinate parameters x, y, z and angle α; ② judge whether the obtained coordinate parameters meet the constraints, and go to step ③ if they meet the constraints, otherwise go to step ①; ③ make step ② meet the constraints Substitute the parameters into equations (4), (6) and (8) for calculation; ④ Substitute the result in step ③ into equation (9) to determine whether F is the minimum value, and if F is the minimum value, it is the optimal solution, otherwise turn to Step 3: Obtain the LED array of the optimal solution, and use the light tracking software to make the LED array as shown in Figure 4;
三、曲面LED阵列分布数值模型验证3. Numerical model verification of curved LED array distribution
模拟验证:采用光源为5730SMD白光LED,θ1/2=70°,额定电流为10μA。设Z0=200mm,α0=45°,目标面为200mm×200mm。LED阵列如图4所示。对图4结果进行仿真追光,得到照度分布如图5,其照度均匀度达到91.79%。结果表明,本发明提出的LED自由曲面阵列设计方法合理有效,用LED自由曲面阵列光源可实现单侧离轴均匀照明的目标。Simulation verification: The light source is 5730SMD white LED, θ 1/2 = 70°, and the rated current is 10μA. It is assumed that Z 0 =200mm, α 0 =45°, and the target surface is 200mm×200mm. The LED array is shown in Figure 4. The result of Fig. 4 is simulated to follow the light, and the illuminance distribution is obtained as shown in Fig. 5, and the illuminance uniformity reaches 91.79%. The results show that the LED free-form surface array design method proposed by the present invention is reasonable and effective, and the LED free-form surface array light source can achieve the goal of uniform illumination on one side off-axis.
实物验证:根据图4结果制作出曲面阵列光源,在二维电动平移台上进行照度多点测量。根据图4的LED阵列分布设计一个曲面边框3D结构以固定铝基板并控制LED阵列装置,如图6所示。在边框上Yj处预留10mm×1mm的嵌槽,嵌槽底面与曲面相切,铝基板嵌入槽内,以准确控制LED的位置和角度。综合考虑LED发热及铝基板的重量,选取抗拉伸强度和耐热形变的尼龙材料,通过3d打印得到曲型边框。利用DXP软件设计条形铝基板,将LED灯珠安装在其上。采用QJ3003H稳压电源保持LED的电流不变,SPIC-200照度计进行照度测量。照度计固定二维电动平移台上,精度为0.05mm,工作范围设为200mm×200mm,光源用45°转接块和摆角器调节滑块固定在支杆上,如图7所示。实验在暗室中进行,测量步距为4mm。Physical verification: According to the results in Figure 4, a curved array light source is produced, and multi-point measurement of illuminance is performed on a two-dimensional electric translation stage. According to the LED array distribution in Figure 4, a curved frame 3D structure is designed to fix the aluminum substrate and control the LED array device, as shown in Figure 6. A 10mm×1mm slot is reserved at Y j on the frame, the bottom of the slot is tangent to the curved surface, and the aluminum substrate is embedded in the slot to accurately control the position and angle of the LED. Taking into account the heating of the LED and the weight of the aluminum substrate, nylon materials with tensile strength and thermal deformation resistance are selected, and a curved frame is obtained by 3D printing. Use DXP software to design a strip-shaped aluminum substrate and install the LED lamp beads on it. The QJ3003H regulated power supply is used to keep the current of the LED unchanged, and the SPIC-200 illuminance meter is used to measure the illuminance. The illuminance meter is fixed on a two-dimensional electric translation stage with an accuracy of 0.05mm and a working range of 200mm×200mm. The light source is fixed on the support rod with a 45° adapter block and a pendulum adjustment slider, as shown in Figure 7. The experiments were carried out in a dark room with a measurement step of 4 mm.
图8为实测的照度分布,照度均匀度达到91.86%,与理论结果完全吻合,说明我们提出的制作方案有效精准,其照度值范围为841lx-1144lx。根据工业检测中精细照明要求照度值>800lx,所设计的光源完全满足照明要求。Figure 8 shows the measured illuminance distribution, and the illuminance uniformity reaches 91.86%, which is in complete agreement with the theoretical results, indicating that our proposed production scheme is effective and accurate, and its illuminance value ranges from 841lx to 1144lx. According to the illuminance value >800lx required by fine lighting in industrial inspection, the designed light source fully meets the lighting requirements.
实施例2Example 2
根据实施例1设计的LED阵列装置在机器视觉皮革缺陷检测中的应用:如图9所示,机器视觉皮革缺陷实测系统,图像采集系统为水星MER-200CCD,在Halcon平台上通过编程用Laws纹理滤波提取纹理特征,高斯混合模型分类器进行缺陷检测。检测样品由贝内克长顺公司提供的存在表面印染缺陷的单色纹理皮革。为了对比分析,还选用了两条LTH-300条形光源。用两种光源四种照明方式分别进行检测,见表1。表1中(a)和(b)分别为直下式和双侧对称照明方式,均无法识别出皮革表面的暗纹缺陷;(c)双条形光源组成的平面光源单侧照射,直观上可以看到表面的暗纹缺陷,但是由于照度明显不均匀,用软件识别缺陷时造成了误判。(d)为本文制作的曲面光源,目标面照度均匀,直观和软件均能准确的识别出暗纹缺陷。Application of the LED array device designed according to Example 1 in machine vision leather defect detection: As shown in Figure 9, the machine vision leather defect measurement system, the image acquisition system is Mercury MER-200CCD, and the Laws texture is used by programming on the Halcon platform The texture features are extracted by filtering, and the Gaussian mixture model classifier is used for defect detection. The test samples are single-color textured leather with surface printing and dyeing defects provided by Benecke Changshun Company. For comparative analysis, two LTH-300 strip light sources were also selected. The detection was carried out with two light sources and four illumination modes, as shown in Table 1. (a) and (b) in Table 1 are the direct lighting and bilateral symmetrical lighting methods, respectively, which cannot identify the dark grain defects on the leather surface; (c) the plane light source composed of double strip light sources illuminates on one side, which can be intuitively The dark pattern defects on the surface were seen, but due to the obvious uneven illumination, the software was used to identify the defects, resulting in a misjudgment. (d) For the curved light source produced in this paper, the illumination of the target surface is uniform, and the dark pattern defects can be accurately identified by both intuition and software.
表1不同照明方式下缺陷识别Table 1 Defect identification under different lighting methods
对于表1中(c)出现误判的原因本发明分析认为,被测样品是单色皮革表面深浅不均的缺陷,其不会改变皮革表面本身的纹理结构,只表现在图像灰度级的变化,所以本发明对图像处理主要是通过对纹理进行滤波并用灰度级的筛选来完成。而光照不均匀同样会在图像上产生灰度级的变化,从而影响判断。也有学者通过图像处理使不均匀照明所获得的图像达到检测要求,但是这样不仅会增加运算时间,而且稳定性较差。实际上皮革表面还会存在划痕、破损、污渍、压痕等缺陷,检测时需根据实际情况选用不同的照明方式。For the reasons for the misjudgment of (c) in Table 1, the present invention analyzes that the tested sample is a defect of uneven depth on the surface of monochrome leather, which does not change the texture structure of the leather surface itself, but only manifests in the gray level of the image. Therefore, the image processing of the present invention is mainly completed by filtering the texture and using gray level filtering. The uneven illumination will also produce changes in the gray level on the image, thereby affecting the judgment. Some scholars also make the image obtained by uneven illumination meet the detection requirements through image processing, but this will not only increase the computing time, but also have poor stability. In fact, there will still be scratches, damages, stains, indentations and other defects on the leather surface. Different lighting methods should be selected according to the actual situation during inspection.
虽然本发明已以较佳实施例公开如上,但其并非用以限定本发明,任何熟悉此技术的人,在不脱离本发明的精神和范围内,都可做各种的改动与修饰,因此本发明的保护范围应该以权利要求书所界定的为准。Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Anyone who is familiar with this technology can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, The protection scope of the present invention should be defined by the claims.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811114401.4A CN109345521B (en) | 2018-09-25 | 2018-09-25 | LED free-form surface array based on leather surface defect detection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811114401.4A CN109345521B (en) | 2018-09-25 | 2018-09-25 | LED free-form surface array based on leather surface defect detection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109345521A CN109345521A (en) | 2019-02-15 |
CN109345521B true CN109345521B (en) | 2021-04-30 |
Family
ID=65306189
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811114401.4A Active CN109345521B (en) | 2018-09-25 | 2018-09-25 | LED free-form surface array based on leather surface defect detection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109345521B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110660048B (en) * | 2019-09-12 | 2022-05-17 | 创新奇智(合肥)科技有限公司 | Leather surface defect detection method based on shape characteristics |
CN110987954B (en) * | 2019-12-30 | 2021-10-22 | 江南大学 | A method and system for eliminating blind spot of leather surface defect detection |
CN111189840B (en) * | 2020-01-13 | 2022-05-24 | 陕西科技大学 | Paper defect detection method with near-field uniform illumination |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101749592A (en) * | 2008-12-22 | 2010-06-23 | 欧阳杰 | LED lamp lighting method with high effective exposure rate |
CN102496063A (en) * | 2011-11-17 | 2012-06-13 | 江南大学 | Illumination uniformization method for high-power LED (light-emitting diode) array |
US9858362B2 (en) * | 2014-02-20 | 2018-01-02 | Tsinghua University | Method of LED freeform surface illumination system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11894610B2 (en) * | 2016-12-22 | 2024-02-06 | All.Space Networks Limited | System and method for providing a compact, flat, microwave lens with wide angular field of regard and wideband operation |
-
2018
- 2018-09-25 CN CN201811114401.4A patent/CN109345521B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101749592A (en) * | 2008-12-22 | 2010-06-23 | 欧阳杰 | LED lamp lighting method with high effective exposure rate |
CN102496063A (en) * | 2011-11-17 | 2012-06-13 | 江南大学 | Illumination uniformization method for high-power LED (light-emitting diode) array |
US9858362B2 (en) * | 2014-02-20 | 2018-01-02 | Tsinghua University | Method of LED freeform surface illumination system |
Non-Patent Citations (2)
Title |
---|
Freeform surface lens for LED uniform illumination;zheng Z R 等;《Applied Optics》;20091231;第6627-6634页 * |
基于 PSO 粒子群算法的 LED 照明系统光照均匀性研究;赵芝璞 等;《发光学报》;20131215;第34卷(第12期);第1677-1682页 * |
Also Published As
Publication number | Publication date |
---|---|
CN109345521A (en) | 2019-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109345521B (en) | LED free-form surface array based on leather surface defect detection | |
CN206832698U (en) | One kind is used for the defects of smooth high reflective object in surface detection means | |
CN103196554B (en) | System and method for testing and adjusting light intensity uniformity of light source | |
CN105466953B (en) | Steel ball surface defect detection method based on identification steel ball surface reflection graphic patterns integrality | |
US20140376003A1 (en) | Arrangement for optical measurements and related method | |
CN107664644B (en) | A device and method for automatic detection of object appearance based on machine vision | |
CN106556607B (en) | Identify the device and method of panel surface dust | |
CN204129193U (en) | LED lamp bar proving installation | |
CN104330749A (en) | Front-side-illuminating LED light strip test device and method | |
CN109344489B (en) | A design method of LED free-form surface array based on leather surface defect detection | |
CN208596208U (en) | A kind of liquid crystal display simple detection device | |
CN105043254B (en) | A kind of garment tag printing quality automatic detection device and its detection method | |
CN110702699B (en) | Rolled glass defect detection device and method | |
CN104062099A (en) | Testing device and method for LED light strips with side luminance | |
CN118483254B (en) | A glass product defect automatic identification system and method | |
CN202165925U (en) | Light source device for tin-spraying printed circuit board appearance-detecting machine | |
CN201811716U (en) | Detection equipment of ceramic plate | |
CN106918596A (en) | One kind is based on visible ray or ultrared ore machine device for visual identification and its recognition methods | |
CN203011853U (en) | Multi-light source detection device | |
CN110095865A (en) | A kind of uniform irradiation design method of LED structure light source | |
CN109945842A (en) | Leak detection and labeling error analysis method for end-face labels of bundled round steel | |
CN202382712U (en) | Under-illuminated image measuring instrument for the outer diameter of shaft workpieces | |
CN211856356U (en) | A device for online detection and control of composite microstructure array microforming | |
CN206862905U (en) | A kind of ore machine device for visual identification based on visible ray or infrared ray | |
CN103344571A (en) | Method and device for evaluating tolerance quality of negotiable securities |
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 |