[go: up one dir, main page]

CN102116659B - Interval convergence based stock bin level detection method - Google Patents

Interval convergence based stock bin level detection method Download PDF

Info

Publication number
CN102116659B
CN102116659B CN 201010511151 CN201010511151A CN102116659B CN 102116659 B CN102116659 B CN 102116659B CN 201010511151 CN201010511151 CN 201010511151 CN 201010511151 A CN201010511151 A CN 201010511151A CN 102116659 B CN102116659 B CN 102116659B
Authority
CN
China
Prior art keywords
image
material level
images
value
silo
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
CN 201010511151
Other languages
Chinese (zh)
Other versions
CN102116659A (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.)
China University of Mining and Technology Beijing CUMTB
Original Assignee
China University of Mining and Technology Beijing CUMTB
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 China University of Mining and Technology Beijing CUMTB filed Critical China University of Mining and Technology Beijing CUMTB
Priority to CN 201010511151 priority Critical patent/CN102116659B/en
Publication of CN102116659A publication Critical patent/CN102116659A/en
Application granted granted Critical
Publication of CN102116659B publication Critical patent/CN102116659B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

本发明是一种基于数字相机、辅助照明设备,采用图像处理方式的对料仓料位进行连续检测的方法。本发明通过两次分档的方式拍摄图像,针对图像特点进行图像的预处理,计算处理后图像的图像熵,一次分档(粗分档)图像经过处理分析后得到逼近区间,在区间内二次分档(细分档)拍摄图像,计算预处理后图像的图像熵,选出适合的图像进行图像料位线检测,得到料位线,计算后得到料仓料位值。

Figure 201010511151

The invention is a method for continuously detecting the material level of a silo based on a digital camera and auxiliary lighting equipment and adopting an image processing method. The present invention shoots images by means of two classifications, performs image preprocessing according to the image characteristics, and calculates the image entropy of the processed image, and obtains an approximation interval after the primary classification (coarse classification) image is processed and analyzed. The subdivision (subdivision) takes images, calculates the image entropy of the preprocessed image, selects a suitable image for image material level line detection, obtains the material level line, and obtains the bin material level value after calculation.

Figure 201010511151

Description

一种基于区间收敛的料仓料位检测方法A method for detection of silo material level based on interval convergence

技术领域 technical field

本发明涉及料仓料位的检测。本发明具体涉及使用数字相机拍摄图像并进行图像处理的方式进行料仓料位的非接触式动态检测。  The invention relates to the detection of the material level of a silo. The invention specifically relates to the non-contact dynamic detection of the material level of the silo by using a digital camera to take images and perform image processing. the

背景技术 Background technique

料仓料位检测是安全生产的重要措施。多年来人们采用各种方法对料仓料位进行检测。常用的检测方法有:重锤式、电极式、电容式、机杆式、称重式、回转翼轮式、雷达式、超声波式、激光式、核子式等。其中重锤式、电极式、电容式、机杆式、称重式和回转翼轮式属于接触式测量方法,其余的为非接触式测量方法。可以进行极限位置测量的方法有:重锤式、电极式、核子式和激光式。可进行料位连续测量的方法有:雷达式、超声波式、机杆式、称重式、核子式、激光式等。  Silo material level detection is an important measure for safe production. Over the years people have adopted various methods to detect the material level of the silo. Commonly used detection methods are: hammer type, electrode type, capacitive type, machine rod type, weighing type, rotary wing wheel type, radar type, ultrasonic type, laser type, nuclear type, etc. Among them, the hammer type, electrode type, capacitive type, machine rod type, weighing type and rotary wing wheel type are contact measurement methods, and the rest are non-contact measurement methods. The methods that can measure the limit position are: hammer type, electrode type, nuclear type and laser type. The methods for continuous measurement of material level include: radar type, ultrasonic type, machine rod type, weighing type, nuclear type, laser type, etc. the

采用图像处理的方式进行深度测量应用广泛。目前采用的多是采用数字相机自动对焦,直接拍摄图像,然后经过图像处理进行深度、高度测量,具体见专利公开号为CN1378086的发明专利。然而,针对于固体物料料仓,由于图像拍摄环境特别恶劣,拍摄的图像存在以下特点:  Depth measurement by means of image processing is widely used. Most of the current methods are to use digital cameras to automatically focus, directly shoot images, and then perform depth and height measurements through image processing. For details, see the invention patent of CN1378086. However, for solid material silos, due to the extremely harsh image shooting environment, the captured images have the following characteristics:

(1)料仓粉尘浓度大、湿度大、照度低、拍摄图像质量差,并且相机难以实现自动聚焦。  (1) The silo has high dust concentration, high humidity, low illumination, poor image quality, and it is difficult for the camera to automatically focus. the

(2)料仓中照度波动频繁,例如煤矿井下大型设备很多,电网扰动大,造成照度波动。  (2) The illuminance fluctuates frequently in the silo. For example, there are many large-scale equipment in the coal mine, and the power grid is greatly disturbed, resulting in illuminance fluctuations. the

(3)针对于一些特殊场合,例如煤矿井下煤仓,由于防爆要求,设备及照明功率应尽量小。  (3) For some special occasions, such as underground coal bunkers in coal mines, due to explosion-proof requirements, the power of equipment and lighting should be as small as possible. the

因此,由于特殊的图像环境,采用普通的图像处理方式进行深度测量的方法既难以满足料仓料位测量的实时性、可靠性的要求,也难以实现长期、稳定的检测。  Therefore, due to the special image environment, it is difficult to meet the real-time and reliability requirements of silo level measurement by using ordinary image processing methods for depth measurement, and it is also difficult to achieve long-term and stable detection. the

专利公开号为CN101270981是一种基于机器视觉的料位测量方法与装置,提出了针对煤矿井下料仓的料位检测方法,然而这种方法可靠性难以保证,实际应用效果不佳。  The patent publication number is CN101270981, which is a material level measurement method and device based on machine vision. It proposes a material level detection method for underground coal mine silos. However, the reliability of this method is difficult to guarantee, and the actual application effect is not good. the

技术问题:  technical problem:

由于料仓的图像环境特殊,采用目前已有的方式,具有以下问题:  Due to the special image environment of the silo, the current existing methods have the following problems:

(1)数字相机难以自动对焦、拍得可靠的图像;  (1) It is difficult for digital cameras to automatically focus and take reliable images;

(2)根据此类图像进行料位测量的方法可靠度、精度低;  (2) The method of measuring material level based on such images has low reliability and precision;

(3)由于料仓是一个封闭、半封闭的环境,设备运行情况的监控和校验困难,没有一个基于检测系统的可靠度的自检机制,系统可靠性无法得到保证,难以实际应用。  (3) Since the silo is a closed and semi-closed environment, it is difficult to monitor and verify the operation of the equipment. There is no self-test mechanism based on the reliability of the detection system, and the reliability of the system cannot be guaranteed, which is difficult for practical application. the

本发明采用使用数字相机拍摄图像并进行图像处理的方式进行料仓料位的非接触式动态检测,针对于料仓环境提出了采用计算特征纹理图像熵以及采用PCNN进行料位计算的方法,检测中图像拍摄采用两次分档的方法,具有以下优点:  The invention uses a digital camera to take images and perform image processing for non-contact dynamic detection of the material level of the silo, and proposes a method for calculating the characteristic texture image entropy and PCNN for material level calculation for the silo environment. The medium image shooting adopts the method of two stages, which has the following advantages:

(1)采用计算特征纹理图像熵以及采用PCNN进行料位计算的方法降低了对图像质量的要求,增强了对料仓恶劣的图像环境的适应能力;  (1) The method of calculating feature texture image entropy and PCNN for material level calculation reduces the requirements for image quality and enhances the adaptability to the harsh image environment of the silo;

(2)检测中图像拍摄采用两次分档的方法,增加了料位检测的实时性与可靠性。  (2) The image shooting in the detection adopts the method of two classifications, which increases the real-time performance and reliability of the material level detection. the

发明内容 Contents of the invention

本发明由数字相机、辅助照明、图像处理三部分组成。  The invention consists of three parts: digital camera, auxiliary lighting and image processing. the

数字相机:  Digital camera:

数字相机应安装在料仓的顶部,避开料仓下料口及相关下料口的设施、以免被阻挡拍摄角度(数字相机布置如图1所示)。数字相机系统应包含一个透明密封罩,一个密封罩的除尘装置及各自的固定装置。  The digital camera should be installed on the top of the silo, avoiding the silo discharge port and related discharge port facilities, so as not to be blocked from the shooting angle (the layout of the digital camera is shown in Figure 1). The digital camera system shall include a transparent sealing cover, a dust removal device for the sealing cover and respective fixing devices. the

数字相机相关参数根据料仓尺寸及辅助照明强度选择。  The relevant parameters of the digital camera are selected according to the size of the silo and the intensity of the auxiliary lighting. the

辅助照明:  Auxiliary lighting:

辅助照明采用一组射灯、其中一个邻近数字相机设置,其余呈等分角度设置于煤仓仓壁圆周上。光源采用单色光源,选择波长较长的红光或红外光源。根据煤仓的实际尺寸及环境选择光源功率及射灯数量(辅助照明布置如图2所示)。  The auxiliary lighting adopts a group of spotlights, one of which is set adjacent to the digital camera, and the rest are set on the circumference of the coal bunker wall at an equal angle. The light source adopts a monochromatic light source, and a red light or an infrared light source with a longer wavelength is selected. According to the actual size of the coal bunker and the environment, select the power of the light source and the number of spotlights (the auxiliary lighting layout is shown in Figure 2). the

辅助照明主要针对例如煤矿井下煤仓这一类图像环境特别恶劣的料仓的图像特点设计,料仓图像成像有两个主要难点,一是受生产条件约束,料仓环境存在粉尘浓度大、湿度大的特点,造成照度衰减很快,且泛光不足;二是出于安全考虑,照明功率应尽量低。采用多角度照明设计,能有效克服以上困难。  Auxiliary lighting is mainly designed for the image characteristics of silos with particularly harsh image environments, such as underground coal bunkers in coal mines. There are two main difficulties in silo image imaging. One is restricted by production conditions, and the silo environment has high dust concentration and humidity. The large feature causes the illumination to attenuate quickly and the floodlight is insufficient; secondly, for safety reasons, the lighting power should be as low as possible. The multi-angle lighting design can effectively overcome the above difficulties. the

图像处理包括:  Image processing includes:

(1)对图像进行预处理后分别计算每幅图像的图像熵的方法:  (1) The method of calculating the image entropy of each image separately after preprocessing the image:

图像熵处理流程图如图3所示。  The flow chart of image entropy processing is shown in Figure 3. the

图像熵计算方法:  Image entropy calculation method:

(a)对图像进行灰度拉伸  (a) Grayscale stretching of the image

由于这里图像处理的目的是进行料位检测,所以可以采用灰度图像。灰度级采用8位灰度阶。由于料仓图像灰度往往分布不均衡,所以一般都要预先作灰度拉伸。  Since the purpose of image processing here is to detect material level, grayscale images can be used. The grayscale adopts 8-bit grayscale. Since the gray scale of the silo image is often unevenly distributed, it is generally necessary to pre-stretch the gray scale. the

方法如下:  Methods as below:

当灰度是离散值时,频数近似代替概率值,即:  When the grayscale is a discrete value, the frequency approximates the probability value, that is:

pr(rk)=nk/n  0≤rk≤1 k=0,1,……,l-1;  p r (r k )=n k /n 0≤r k ≤1 k=0,1,...,l-1;

式中:l是灰度级的总数目,pr(rk)是取第k级灰度值的概率,nk是图像中出现第k级灰度的次数,n是图像中像素总数。  In the formula: l is the total number of gray levels, p r (r k ) is the probability of taking the kth gray level value, n k is the number of times the kth level gray level appears in the image, and n is the total number of pixels in the image.

s k = T ( r k ) = Σ j = 0 k n j n = Σ j = 0 k p r ( r j ) 0≤rk≤1 k=0,1,……,l-1;  the s k = T ( r k ) = Σ j = 0 k no j no = Σ j = 0 k p r ( r j ) 0 ≤ r k ≤ 1 k = 0, 1, ..., l-1;

(b)对图像进行微分运算  (b) Differentiate the image

记一幅图像为X(l,j),微分后的图像记为Y(l,j)。则:  Record an image as X(l, j), and the differentiated image as Y(l, j). but:

Y(1,j)=X(1,j);  Y(1,j)=X(1,j);

Y(l,j)=X(l,j)-X(i-1,j),(i>1);  Y(l,j)=X(l,j)-X(i-1,j), (i>1);

在图像中主要包含两部分区域,以仓壁为主体的上部和以物料表面为主体的下部,其中以物料表面为主体的下部由于光线反射的不规则,呈现亮、暗小区域混合而成,计算后得到的图像Y中,以仓壁为主体的上部灰度值趋近0值,以物料表面为主体的下部则得到亮、暗 小区域的边界,其中这一部分将作为信息熵计算的主体。  The image mainly contains two parts, the upper part with the warehouse wall as the main body and the lower part with the material surface as the main body. The lower part with the material surface as the main body presents a mixture of bright and dark small areas due to the irregular light reflection. In the image Y obtained after calculation, the gray value of the upper part with the warehouse wall as the main body approaches 0, and the lower part with the material surface as the main body obtains the boundaries of bright and dark small areas, and this part will be used as the main body of information entropy calculation . the

(c)对图像进行二值分割  (c) Perform binary segmentation on the image

为了进一步清晰微分后的图像,选取一个阈值将图像背景与得到的小区域边界进行二值分割。得到图像Z(i,j);  In order to further clarify the differentiated image, a threshold is selected to perform binary segmentation between the image background and the obtained small area boundary. Get the image Z(i, j);

(d)计算二值图像的信息熵  (d) Calculate the information entropy of the binary image

图像熵H(P):H(P)=-P1lnP1-P0lnP0;  Image entropy H(P): H(P)=-P 1 lnP 1 -P 0 lnP 0 ;

其中P1,P0,分别表示Z为1,0时的概率。  Among them, P 1 and P 0 represent the probability when Z is 1 and 0 respectively.

(2)料位边沿计算得到料位值的计算方法: (2) The calculation method of the material level value obtained by calculating the material level edge:

对于选取的P幅图像,首先,将料位边沿与各自对应的料位刻度图像对比,得到一组P个料位值L1(i=1,...,P),然后由下面的公式得到实际料位值L:L=(L1+L2+...+Lp)/p。  For the selected P images, first, compare the edge of the material level with the respective corresponding material level scale images to obtain a set of P material level values L 1 (i=1,...,P), and then use the following formula The actual material level value L is obtained: L=(L1+L2+...+Lp)/p.

料位刻度图像获得方法:将深度为h的料仓以绝对误差值Δh为间隔划分为w份,w=h/Δh,对应w个档位,相机镜头焦距对应物距从第1个档位开始,顺序至第w个档位,按照下述方法进行拍摄:相机镜头焦距对应物距为第S个细分档位时(S=1,2,…,w),在内空的料仓仓壁上设置标尺,将标尺逐次设置于(S-t*Δh)、(S-(t-1)*Δh)、...、(S-Δh)、S、(S+Δh)、...、(S+(t-1)*Δh)、(S+t*Δh)处,分别拍摄图像,得到一组(2t+1)幅图像,将此组图像进行图像处理后可得到对应于第S个细分档位的料位刻度图像;按照上述方法可以得到整个料仓共w个细分档位的料位刻度图像,形成全料仓的料位刻度图像组。  The method of obtaining the scale image of the material level: Divide the silo with a depth of h into w parts at the interval of the absolute error value Δh, w=h/Δh, corresponding to w gears, and the focal length of the camera lens corresponds to the object distance from the first gear At the beginning, go to the wth gear in sequence, and shoot according to the following method: when the focal length of the camera lens corresponds to the object distance at the Sth subdivision gear (S=1, 2, ..., w), the inner empty silo Set the ruler on the warehouse wall, and set the ruler successively at (S-t*Δh), (S-(t-1)*Δh), ..., (S-Δh), S, (S+Δh), ... , (S+(t-1)*Δh), and (S+t*Δh), take images respectively to obtain a group of (2t+1) images. After image processing of this group of images, the corresponding The material level scale images of S subdivided gears; according to the above method, the material level scale images of w subdivided gears in the whole silo can be obtained to form a material level scale image group of the whole silo. the

基于区间收敛的料仓料位检测方法,包括以下几个步骤:  The silo material level detection method based on interval convergence includes the following steps:

(1)划分粗分档:  (1) Divide into rough grades:

将深度为h的料仓粗分为N等份(粗分档),按照物距对应划分的档位,采用程序控制方式调节数字相机镜头焦距拍摄图像,得到对应划分档位的一组N幅图像;  Roughly divide the bin with a depth of h into N equal parts (coarse classification), and use program control to adjust the focal length of the digital camera lens to capture images according to the corresponding division of the object distance, and obtain a set of N frames corresponding to the division image;

(2)确定收敛区间:  (2) Determine the convergence interval:

对图像进行预处理后分别计算每幅图像的图像熵,选择熵值较大的K幅图像(1<K<N),记这K幅图像对应的档位中最小的档位为Ni,最大的档位为Nj,则确定了一个收敛区间[Ni,Nj]。  After the image is preprocessed, the image entropy of each image is calculated separately, and K images with larger entropy values (1<K<N) are selected, and the smallest gear among the gears corresponding to these K images is Ni, and the largest is Ni. If the stall is Nj, a convergence interval [Ni, Nj] is determined. the

(3)划分细分档:  (3) Divide into subdivision files:

将区间[Ni,Nj]细分为M等份(细分档),按照物距对应划分的档位,采用程序控制方式调节数字相机镜头焦距拍摄图像,得到对应划分档位的一组M幅图像;  Subdivide the interval [Ni, Nj] into M equal parts (subdivision files), and adjust the focal length of the digital camera lens to shoot images according to the corresponding division of the object distance, and obtain a set of M frames corresponding to the division of gears image;

(4)边沿检测并计算料位值: (4) Edge detection and calculation of material level value:

对图像进行预处理后分别计算每幅图像的图像熵,选取熵值较大的P幅图像,采用料位边沿检测算法计算得到料位边沿,并计算得到料位值。  After the image is preprocessed, the image entropy of each image is calculated separately, P images with larger entropy value are selected, and the material level edge is calculated by using the material level edge detection algorithm, and the material level value is calculated. the

粗分档N、细分档M的选取方法:  The selection method of rough classification N and subdivision classification M:

细分档位根据料仓料位检测的绝对误差值要求设置,即取细分档的档位间距等于绝对误差值;粗分档根据料仓料位检测的满量程实际距离及对于检测的速度要求设置,粗分档档位间距一般为细分档档位间距的整数倍。  The subdivision gear is set according to the absolute error value of the silo material level detection, that is, the gear interval of the subdivision gear is equal to the absolute error value; the rough subdivision is based on the full-scale actual distance of the silo material level detection and the detection speed It is required to be set, and the distance between the rough classification gears is generally an integer multiple of the distance between the fine classification gears. the

收敛区间[Ni,Nj]的边界点Ni,Nj的取值:  The value of the boundary point Ni, Nj of the convergence interval [Ni, Nj]:

由粗分档拍摄的图像确定的收敛区间[Ni,Nj],Ni与Nj所对应的图像的图像熵值的比值(用较小熵值比较大的熵值)应大于规定的比值。  For the convergence interval [Ni, Nj] determined by the images taken in rough bins, the ratio of the image entropy values of the images corresponding to Ni and Nj (comparing the smaller entropy value with the larger entropy value) should be greater than the specified ratio. the

可靠性分析:  Reliability Analysis:

可靠性分析1:  Reliability Analysis 1:

根据图像熵分布的特点,在粗分档拍摄的图像中,确定了一个收敛区间[Ni,Nj];其中取值时,Ni与Nj所对应的图像的图像熵值的比值(用较小熵值比较大的熵值)应大于规定的比值k1。K1根据料仓图像环境取值,与料仓的物料种类、料仓照度、湿度、粉尘浓度等环境参数有关。K1一般应大于0.8。如果不能满足此条件,说明此次拍摄过程中,系统工作出现异常,数据不可用。需要重新拍摄图像,如果问题依然没有解决,说明系统可能存在硬件故障,需检修。  According to the characteristics of the image entropy distribution, a convergence interval [Ni, Nj] is determined in the images taken in coarse classification; when the value is taken, the ratio of the image entropy value of the image corresponding to Ni and Nj (with a smaller entropy The entropy value with relatively large value) should be greater than the specified ratio k1. The value of K1 is taken according to the image environment of the silo, which is related to the environmental parameters such as the material type of the silo, the illuminance of the silo, humidity, and dust concentration. K1 should generally be greater than 0.8. If this condition cannot be met, it means that during the shooting process, the system is working abnormally and the data is unavailable. The image needs to be taken again. If the problem is still not resolved, it means that the system may have a hardware failure and needs to be repaired. the

可靠性分析1程序流程如图4所示。  The program flow of reliability analysis 1 is shown in Figure 4. the

可靠性分析2:  Reliability Analysis 2:

计细分档拍摄的图像为B1,B2......B10,选取B1,B2......B10中熵值较大P幅图像进行料位检测,得到料位值(记为M(i),i=1,2,...,P)之间误差应小于项目要求的最小误差Y*,且位于其对应的档位区间内。  The images taken by the meter subdivision file are B1, B2...B10, and the P images with larger entropy values in B1, B2...B10 are selected for material level detection, and the material level value (denoted as The error between M(i), i=1, 2, ..., P) should be smaller than the minimum error Y* required by the project, and it should be within the corresponding gear range. the

可靠性分析2程序流程如图5所示。  The program flow of reliability analysis 2 is shown in Figure 5. the

系统工作流程:  System workflow:

首先,料仓高度记为h,所要求料位检测绝对误差值记为d,分档分为细分档和粗分档两种方式。将料仓料位的满量程粗分为N等份(粗分档),按照物距对应划分的档位,采用程序控制方式调节数字相机镜头焦距拍摄图像,得到对应划分档位的一组N幅图像,对图像进行预处理后分别计算每幅图像的图像熵,对于采用这种方法拍摄的图像,相机焦距越靠近料位处,拍摄的图像越清晰,图像熵越大,选择熵值较大的K幅图像(1<K<N),记这K幅图像对应的档位中最小的档位为Ni,最大的档位为Nj,确定了一个收敛区间[Ni,Nj],则这个区间应包含实际料位值;将区间[Ni,Nj]细分为M等份(细分档),按照物距对应划分的档位,采用程序控制方式调节数字相机镜头焦距拍摄图像,得到对应划分档位的一组M幅图像,对图像进行预处理后分别计算每幅图像的图像熵,则这一组图像的熵值应该比较接近,由于料仓的料位往往不是平面,每次落料后呈现出的特征变化很大,因此造成图像的熵值并不能准确反映料位,所以不能简单的将熵值最大的图像的位置处作为最接近料位的档位。这时选取熵值较大的P幅图像,采用PCNN的方法,计算得到料位边沿,然后根据预制的图像刻度背景图像,得到一组P个料位值L1(i=1,...,P),然后由下面的公式得到实际料位值L: 

Figure BSA00000308918700041
然后继续进行下一轮检测。  First, the height of the silo is recorded as h, the absolute error value of the required material level detection is recorded as d, and the classification is divided into subdivision and coarse classification. Roughly divide the full-scale range of the material level of the silo into N equal parts (coarse classification), and use program control to adjust the focal length of the digital camera lens to capture images according to the corresponding division of the object distance, and obtain a group of N corresponding division divisions. After the image is preprocessed, the image entropy of each image is calculated separately. For the image taken by this method, the closer the camera focal length is to the material level, the clearer the captured image and the greater the image entropy. Choose a higher entropy value. Large K images (1<K<N), remember that the smallest gear among the gears corresponding to these K images is Ni, and the largest gear is Nj, and a convergence interval [Ni, Nj] is determined, then this The interval should contain the actual material level value; the interval [Ni, Nj] is subdivided into M equal parts (subdivision files), according to the gears corresponding to the object distance, the digital camera lens focal length is used to adjust the program control method to shoot images, and the corresponding Divide a group of M images of stalls, preprocess the images and calculate the image entropy of each image respectively, then the entropy value of this group of images should be relatively close, because the material level of the silo is often not flat, each time The characteristics presented after blanking vary greatly, so the entropy value of the image cannot accurately reflect the material level, so the position of the image with the largest entropy value cannot be simply taken as the gear closest to the material level. At this time, select P images with a large entropy value, use the PCNN method to calculate the edge of the material level, and then obtain a set of P material level values L 1 (i=1,... , P), and then get the actual material level value L by the following formula:
Figure BSA00000308918700041
Then proceed to the next round of testing.

料仓料位测量系统工作流程图如图6所示。  The working flow diagram of the silo material level measurement system is shown in Figure 6. the

附图说明 Description of drawings

图1数字相机布置图  Figure 1 layout of digital camera

图2辅助照明布置图  Figure 2 Auxiliary lighting layout diagram

图3图像熵处理流程图  Figure 3 Flow chart of image entropy processing

图4可靠性分析1程序流程  Figure 4 Reliability Analysis 1 Program Flow

图5可靠性分析2程序流程  Figure 5 Reliability analysis 2 program flow

图6料仓料位测量系统工作流程图  Figure 6 Workflow diagram of the silo material level measurement system

具体实施方式 Detailed ways

本发明结合实施例参见附图进一步说明如下:  The present invention is further explained as follows with reference to accompanying drawing in conjunction with embodiment:

以煤矿井下煤仓为例,煤仓高度40m,直径8m,检测绝对误差值为0.5m。最低料仓限位值为4m。  Taking the underground coal bunker of a coal mine as an example, the height of the coal bunker is 40m, the diameter is 8m, and the absolute error value of detection is 0.5m. The minimum silo limit is 4m. the

设定细分档位1m,粗分档为4m。数字相机选用程序调节镜头焦距,辅助照明采用8个射灯。  Set the subdivision level to 1m, and the coarse level to 4m. The digital camera uses a program to adjust the focal length of the lens, and the auxiliary lighting uses 8 spotlights. the

在检测之前,预制料位刻度背景图像。  Before detection, the background image of the material level scale is prefabricated. the

将深度为40m的料仓以绝对误差值Δh=0.5m为间隔划分为w份,w=h/Δh=80,对应w个档位,相机镜头焦距对应物距从第1个档位开始,顺序至第w个档位,按照下述方法进行拍摄:相机镜头焦距对应物距为第S个细分档位时(S=1,2,…,w),在内空的料仓仓壁上设置标尺,将标尺逐次设置于(S-t*Δh)、(S-(t-1)*Δh)、...、(S-Δh)、S、(S+Δh)、...、(S+(t-1)*Δh)、(S+t*Δh)处(这里t=4),分别拍摄图像,得到一组(2t+1=9)幅图像,将此组图像进行图像处理后可得到对应于第S个细分档位的料位刻度图像;按照上述方法可以得到整个料仓共w个细分档位的料位刻度图像,形成全料仓的料位刻度图像组。  Divide the silo with a depth of 40m into w parts at the interval of absolute error value Δh=0.5m, w=h/Δh=80, corresponding to w gears, and the focal length of the camera lens corresponding to the object distance starts from the first gear, Sequence to the wth gear, and shoot according to the following method: when the focal length of the camera lens corresponds to the object distance at the Sth subdivision gear (S=1, 2, ..., w), the inner empty silo wall Set the scale on the top, and set the scale successively at (S-t*Δh), (S-(t-1)*Δh), ..., (S-Δh), S, (S+Δh), ..., ( At S+(t-1)*Δh), (S+t*Δh) (here t=4), take images respectively to obtain a group of (2t+1=9) images, and perform image processing on this group of images After that, the material level scale image corresponding to the S subdivision level can be obtained; according to the above method, the material level scale images of w subdivision levels in the whole silo can be obtained, forming a group of material level scale images of the whole silo. the

选取k1=0.8,绝对误差值=0.25m。  Select k1=0.8, absolute error value=0.25m. the

选取k=3,P=4。  Choose k=3, P=4. the

参见附图1,描述了数字相机系统的安装位置,数字相机系统应安装在料仓的顶部,尽量靠近料仓壁,避开料仓下料口及相关下料口的设施、以免被阻挡拍摄角度。数字相机系统应包含一个透明密封罩,一个密封罩的除尘装置及各自的固定装置,装置还应满足应用场合的安全要求,如在煤矿井下煤仓使用本发明时,本发明所使用的装置还应满足煤矿井下电气防爆要求。  See attached drawing 1, which describes the installation position of the digital camera system. The digital camera system should be installed on the top of the silo, as close to the wall of the silo as possible, avoiding the silo discharge port and related facilities, so as not to be blocked from shooting angle. The digital camera system should include a transparent sealing cover, a dust removal device of the sealing cover and respective fixing devices, and the device should also meet the safety requirements of the application. It should meet the electrical explosion-proof requirements of underground coal mines. the

参见附图2,描述了辅助照明的安装,辅助照明系统采用一组射灯、其中一个邻近数字相机设置,其余呈等分角度设置于煤仓仓壁圆周上。光源采用单色光源,选择波长较长的红光或红外光源。根据煤仓的实际尺寸及环境选择光源功率及射灯数量。附图2描述了8个射灯的情形。如在煤矿井下煤仓使用本发明时,本发明所使用的装置还应满足煤矿井下电气防爆要求。  Referring to Figure 2, the installation of auxiliary lighting is described. The auxiliary lighting system adopts a group of spotlights, one of which is adjacent to the digital camera, and the rest are arranged on the circumference of the coal bunker wall at an equal angle. The light source adopts a monochromatic light source, and a red light or an infrared light source with a longer wavelength is selected. Select the power of the light source and the number of spotlights according to the actual size and environment of the coal bunker. Accompanying drawing 2 has described the situation of 8 spotlights. When the present invention is used in coal bunkers in coal mines, the device used in the present invention should also meet the electrical explosion-proof requirements of coal mines. the

辅助照明系统主要针对例如煤矿井下煤仓这一类图像环境特别恶劣的料仓的图像特点设计,料仓图像成像有两个主要难点,一是受生产条件约束,料仓环境存在粉尘浓度大、湿度大的特点,造成照度衰减很快,且泛光不足;二是出于安全考虑,照明功率应尽量低。采用多角度照明设计,能有效克服以上困难。  The auxiliary lighting system is mainly designed for the image characteristics of silos with particularly harsh image environments, such as underground coal bunkers in coal mines. There are two main difficulties in image imaging of silos. One is that due to production conditions, the silo environment has high dust The characteristic of high humidity causes the illumination to attenuate quickly and the floodlight is insufficient; secondly, for safety reasons, the lighting power should be as low as possible. The multi-angle lighting design can effectively overcome the above difficulties. the

参见附图3,描述了本发明检测方法的特征图像图像熵计算方法,首先对图像进行预处理运算,包括以下步骤:灰度拉伸、微分计算、二值分割,然后再计算其图像熵。  Referring to accompanying drawing 3, have described the feature image image entropy calculation method of detection method of the present invention, at first carry out preprocessing operation to image, comprise the following steps: gray stretching, differential calculation, binary segmentation, then calculate its image entropy. the

料位检测流程图如图6所示。  The flow chart of material level detection is shown in Figure 6. the

开始检测时,首先,101,可以得到一组10幅图像,顺序进行102,103,然后判断104,记三个熵值最小的为Z1,最大的为Z2,k’=Z1/Z2,则当k’>k1时,则验证通过,说明拍摄的图像可靠,系统工作正常,此时清零验证标志位,进行下一步流程,当k’<=k1时,说明拍摄的图像不可靠,系统工作不正常,此时验证标志位应为零,首先将验证标志位置位,然后判断105,当标志位X1为1时,重新执行101、102、103过程后,再次进入104,如果此次系统的异常只是偶然的干扰引起的,则此时应恢复正常,则k’>k1,验证能够通过,如果是出现了系统的功能性故障,则验证不能通过,判断验证标志位时,标志位为1,则进行故障报警。  When starting the detection, firstly, 101, a group of 10 images can be obtained, proceed 102, 103 in sequence, and then judge 104, remember that the smallest of the three entropy values is Z1, and the largest is Z2, k'=Z1/Z2, then when When k'>k1, the verification is passed, indicating that the captured image is reliable, and the system is working normally. At this time, the verification flag is cleared, and the next step is performed. When k'<=k1, the captured image is unreliable, and the system is working Abnormal, at this time the verification flag should be zero, first set the verification flag, and then judge 105, when the flag X1 is 1, re-execute 101, 102, 103, and then enter 104 again, if the system The abnormality is only caused by accidental interference, then it should return to normal at this time, then k'>k1, the verification can pass, if there is a functional failure of the system, the verification cannot pass, when judging the verification flag, the flag is 1 , then a fault alarm will be issued. the

当104验证通过后,进行106,在一次分档确定的料位检测区间内按照细分档逐次拍摄图像,可以得到一组9幅图像,顺序进行107、108,采用PCNN的方法进行料位的边沿检测,然后与对应档位处的料位刻度图像对比得到料位值。最后判断109,分析得到的P(P=4)个料位值,计算差值,误差应小于所要求的精度值,如果验证通过则继续验证料位值是否处于对应的档位处,通过则说明图像可靠,系统工作正常,此时清零验证标志位,进行下一步流程。以上两个判断任何一个不通过则置位标志位X1,然后判断105,当标志位X1为1时,重新执行101,102,103,104,106,107,108,109,如果此次系统的异常只是偶然的干扰引起的,则此时应恢复正常,验证能够通过,如果是出现了系统的功能性故障,则验证不能通过,判断验证标志位时,标志位为1,则进行故障报警。当通过109后,执行110,求均值输出料仓料位值,然后继续进行下一轮检测。  After the verification in 104 is passed, proceed to 106, and take pictures successively according to the subdivided files within the material level detection interval determined by one classification, and a group of 9 images can be obtained, and proceed to 107 and 108 in sequence, and use the method of PCNN to detect the material level The edge is detected, and then compared with the material level scale image at the corresponding gear to obtain the material level value. Finally judge 109, analyze the obtained P (P=4) material level values, calculate the difference, the error should be less than the required precision value, if the verification is passed, then continue to verify whether the material level value is at the corresponding gear, if passed, then It shows that the image is reliable and the system is working normally. At this time, the verification flag is cleared and the next step is performed. If any of the above two judgments fails, set the flag bit X1, and then judge 105, when the flag bit X1 is 1, re-execute 101, 102, 103, 104, 106, 107, 108, 109, if the system If the abnormality is only caused by occasional interference, it should return to normal at this time, and the verification can pass. If there is a functional failure of the system, the verification cannot pass. When judging the verification flag, if the flag is 1, a fault alarm will be issued. After passing 109, execute 110, calculate the average value and output the material level value of the silo, and then proceed to the next round of detection. the

Claims (4)

1.一种基于区间收敛的料仓料位检测方法,其特征在于:将深度为h的料仓粗分为N等份,记为粗分档,按照物距对应划分的档位,采用程序控制方式调节数字相机镜头焦距拍摄图像,得到对应划分档位的一组N幅图像,对图像进行预处理后分别计算每幅图像的图像熵,选择熵值较大的K幅图像,1<K<N,K取整数值,记这K幅图像对应的档位中最小的档位为Ni,最大的档位为Nj,则确定了一个收敛区间[Ni,Nj];将区间[Ni,Nj]细分为M等份,记为细分档,按照物距对应划分的档位,采用程序控制方式调节数字相机镜头焦距拍摄图像,得到对应划分档位的一组M幅图像,对图像进行预处理后分别计算每幅图像的图像熵,选取熵值较大的P幅图像,采用PCNN料位边沿检测算法计算得到料位边沿,并将料位边沿与各自对应的料位刻度图像对比,计算得到料位值。1. A silo material level detection method based on interval convergence, characterized in that: the depth of the silo of h is roughly divided into N equal parts, which are recorded as rough classification, and the stalls correspondingly divided according to the object distance are adopted by the program The control method adjusts the focal length of the digital camera lens to shoot images, and obtains a group of N images corresponding to the division of gears. After the images are preprocessed, the image entropy of each image is calculated separately, and K images with larger entropy values are selected, 1<K <N, K takes an integer value, remember that the smallest gear among the gears corresponding to the K images is Ni, and the largest gear is Nj, then a convergence interval [Ni, Nj] is determined; the interval [Ni, Nj ] is subdivided into M equal parts, which are recorded as subdivision files. According to the stalls corresponding to the object distance, the focal length of the digital camera lens is adjusted to take images by program control, and a group of M images corresponding to the divided stalls are obtained. After preprocessing, calculate the image entropy of each image separately, select P images with larger entropy values, use the PCNN material level edge detection algorithm to calculate the material level edge, and compare the material level edge with the corresponding material level scale image, Calculate the material level value. 2.如权利要求1所述的检测方法,其特征在于:所述将料位边沿与各自对应的料位刻度图像对比,计算得到料位值的方法,具体为,对于选取的P幅图像,首先,将料位边沿与各自对应的料位刻度图像对比,得到一组P个料位值Li,其中i=1,...,P,i取整数值,然后由下面的公式得到实际料位值L:2. The detection method according to claim 1, characterized in that: the method of comparing the edge of the material level with the respective corresponding material level scale images to calculate the material level value is specifically, for the selected P images, First, compare the material level edge with the corresponding material level scale images to obtain a set of P material level values L i , where i=1,...,P, i take integer values, and then the actual Material level value L: L=(L1+L2+...+Lp)/P。L=(L 1 +L 2 +...+L p )/P. 3.如权利要求1所述的检测方法,其特征在于:所述粗分档和细分档的划分方法为,细分档根据料仓料位检测的绝对误差值Δh要求设置,即取细分档的档位间距等于绝对误差值Δh;粗分档根据料仓深度h和对检测的速度要求设置,粗分档档位间距为细分档档位间距的整数倍。3. The detection method according to claim 1, characterized in that: the division method of the coarse classification and the subdivision is that the subdivision is set according to the absolute error value Δh of the detection of the material level in the silo, that is, the fine The gear spacing of the binning is equal to the absolute error value Δh; the coarse binning is set according to the depth h of the silo and the speed requirements for detection, and the gear spacing of the coarse binning is an integer multiple of the spacing of the finer bins. 4.如权利要求1所述的检测方法,其特征在于:由粗分档拍摄的图像确定的收敛区间[Ni,Nj],Ni与Nj所对应的图像的图像熵值的比值,计算时,用较小熵值比较大的熵值,应大于规定的比值。4. detection method as claimed in claim 1, it is characterized in that: the convergence interval [Ni, Nj] determined by the image taken by coarse sub-grading, the ratio of the image entropy value of the corresponding image of Ni and Nj, during calculation, Use the smaller entropy value to compare the larger entropy value, which should be greater than the specified ratio.
CN 201010511151 2010-10-19 2010-10-19 Interval convergence based stock bin level detection method Expired - Fee Related CN102116659B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010511151 CN102116659B (en) 2010-10-19 2010-10-19 Interval convergence based stock bin level detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010511151 CN102116659B (en) 2010-10-19 2010-10-19 Interval convergence based stock bin level detection method

Publications (2)

Publication Number Publication Date
CN102116659A CN102116659A (en) 2011-07-06
CN102116659B true CN102116659B (en) 2012-12-26

Family

ID=44215529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010511151 Expired - Fee Related CN102116659B (en) 2010-10-19 2010-10-19 Interval convergence based stock bin level detection method

Country Status (1)

Country Link
CN (1) CN102116659B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389795B (en) * 2015-10-13 2018-09-28 长沙中联重科环境产业有限公司 A kind of rubbish material level detection method, device and feeding trigger
CN109870211B (en) * 2019-01-22 2020-07-28 珠海格力电器股份有限公司 Method and device for detecting rice amount in rice storage equipment and rice barrel
CN112772508A (en) * 2021-01-18 2021-05-11 上海览宋科技有限公司 Batch feeder

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6098029A (en) * 1994-06-14 2000-08-01 Hitachi, Ltd. Liquid-level position measuring method and system
CN1286395A (en) * 2000-09-29 2001-03-07 上海交通大学 Imaging measurement method for volume of large material stack
CN201600164U (en) * 2009-12-29 2010-10-06 新疆信通水利电子有限公司 Video water-level gauge

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE501472C2 (en) * 1993-02-03 1995-02-27 Stiftelsen Metallurg Forsk Ways of measuring the positions of surfaces between different layers in metallurgical processes
JPH08178732A (en) * 1994-12-27 1996-07-12 Nittetsu Mining Co Ltd Laser light level detection method and device
JPH10148561A (en) * 1996-11-15 1998-06-02 Natl Fedelation Of Agricult Coop Assoc Method and device for measuring level of bulk material
JP2000298054A (en) * 1999-04-15 2000-10-24 Niigata Eng Co Ltd Method and device for measuring liquid level

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6098029A (en) * 1994-06-14 2000-08-01 Hitachi, Ltd. Liquid-level position measuring method and system
CN1286395A (en) * 2000-09-29 2001-03-07 上海交通大学 Imaging measurement method for volume of large material stack
CN201600164U (en) * 2009-12-29 2010-10-06 新疆信通水利电子有限公司 Video water-level gauge

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
JP特开2000-298054A 2000.10.24
JP特开平10-148561A 1998.06.02
JP特开平8-178732A 1996.07.12
王蔚等.基于图像清晰度的自动聚焦算法.《计算机应用与软件》.2003,(第12期),第2.1节至第3.2节. *

Also Published As

Publication number Publication date
CN102116659A (en) 2011-07-06

Similar Documents

Publication Publication Date Title
CN102116661B (en) Method for detecting dynamic stock level in stock bin limit position based on machine vision
Aydin et al. Defect classification based on deep features for railway tracks in sustainable transportation
US11747284B2 (en) Apparatus for optimizing inspection of exterior of target object and method thereof
JP6756417B1 (en) Work surface defect detection device and detection method, work surface inspection system and program
CN103454285A (en) Transmission chain quality detection system based on machine vision
CN105809151A (en) Image recognition method for state of pressure gauge of fire extinguisher
US20240045407A1 (en) Manufacturing line abnormality portent detection apparatus, manufacturing line abnormality portent detection method, manufacturing line abnormality portent detection program, manufacturing apparatus, and inspection apparatus
CN107525810A (en) A kind of container device for detecting breakage and method based on 3D imagings
CN102116659B (en) Interval convergence based stock bin level detection method
CN110008947A (en) A method and device for monitoring grain quantity in granary based on convolutional neural network
DK1432961T4 (en) Method and arrangement of a measuring system
JP2005242488A (en) Object detecting device, object detecting method and program
CN108286948A (en) A kind of deflection of bridge span detection method based on image procossing
CN102116658A (en) Method for detecting bin level based on image entropy
CN115713645A (en) Lithology identification method and system based on spectral imaging technology
Hashmi et al. Computer-vision based visual inspection and crack detection of railroad tracks
Siswantoro et al. A new framework for measuring volume of axisymmetric food products using computer vision system based on cubic spline interpolation
Guo et al. Automatic visual pit detection system for bottom surface of cylindrical lithium battery
Huang et al. Real-Time bubble counting for sensing petroleum valve closure leakage
Wang Deep Drainage Detection System for Inland Vessels Based on Machine Vision.
KR100711364B1 (en) Emission Recognition and Automatic Alarm Apparatus and Method through Image Image Analysis
Tao et al. Automatic Detection of Asphalt Pavement Crack Width Based on Machine Vision
CN119477921B (en) Coal conveyor belt deviation detection method, system and device based on YOLOv8 algorithm
Safizadeh et al. Automated detection of inner surface defects in pipes using image processing algorithms
CN119068469B (en) Firework detection and analysis method based on YOLO algorithm and dynamic analysis

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: 20121226