CN103049788A - Computer-vision-based system and method for detecting number of pedestrians waiting to cross crosswalk - Google Patents
Computer-vision-based system and method for detecting number of pedestrians waiting to cross crosswalk Download PDFInfo
- Publication number
- CN103049788A CN103049788A CN2012105679787A CN201210567978A CN103049788A CN 103049788 A CN103049788 A CN 103049788A CN 2012105679787 A CN2012105679787 A CN 2012105679787A CN 201210567978 A CN201210567978 A CN 201210567978A CN 103049788 A CN103049788 A CN 103049788A
- Authority
- CN
- China
- Prior art keywords
- width
- image
- pedestrian
- zone
- detection method
- 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
Images
Landscapes
- Image Processing (AREA)
- Traffic Control Systems (AREA)
- Image Analysis (AREA)
Abstract
本发明涉及一种基于计算机视觉的人行横道待过行人数目的检测系统及方法,系统包括两架CCD摄像机和计算机图像处理系统,计算机图像处理系统通过接口与摄像机相连,两架CCD摄像机安装于人行横道的两端,两架CCD摄像机的视场角包含对面的等待行人区域和斜对面的车辆区域;检测方法为获取视频图像中的图像,对行人等待区域预处理,再通过高斯混合背景模型方法得前景图,并获得竖直积分投影图,对其进行处理和信息统计最终获得人行横道待通过行人的数目。本发明相较现有的行人数目检测方法而言具有简单高效的优点,使得方法在复杂情形中也可以运用。
The invention relates to a system and method for detecting the number of pedestrians waiting to pass in a crosswalk based on computer vision. The system includes two CCD cameras and a computer image processing system. The computer image processing system is connected to the camera through an interface. At both ends, the field of view angles of the two CCD cameras include the opposite waiting pedestrian area and the diagonally opposite vehicle area; the detection method is to obtain the image in the video image, preprocess the pedestrian waiting area, and then obtain the foreground through the Gaussian mixture background model method , and obtain the vertical integral projection map, process it and information statistics, and finally obtain the number of pedestrians waiting to pass the crosswalk. Compared with the existing method for detecting the number of pedestrians, the present invention has the advantages of simplicity and high efficiency, so that the method can also be used in complex situations.
Description
技术领域technical field
本发明涉及计算机视觉技术领域,具体是基于计算机视觉的人行横道待过行人数目的检测方法。The invention relates to the technical field of computer vision, in particular to a method for detecting the number of pedestrians waiting to pass in a crosswalk based on computer vision.
背景技术Background technique
目前,在智能交通和计算机视觉领域中,行人的检测和分析是一个重要的部分。行人的检测与分析技术已经研究了十多年,但仍没有一个标准的,精确的,高性能的,和实时的行人检测和分析算法。由于行人固有的一些特性,应用场景的复杂性,人与人或人与环境之间的相互影响,使得行人的检测和分析是计算机视觉研究领域中最难的一项挑战。At present, in the field of intelligent transportation and computer vision, the detection and analysis of pedestrians is an important part. Pedestrian detection and analysis technology has been studied for more than ten years, but there is still no standard, accurate, high-performance, and real-time pedestrian detection and analysis algorithm. Due to some inherent characteristics of pedestrians, the complexity of application scenarios, and the interaction between people or people and the environment, the detection and analysis of pedestrians is the most difficult challenge in the field of computer vision research.
在过去的十余年中,在行人检测技术得到了学术界和工程界广泛的关注和研究的情况下已经产生了许多现有的检测方法,如Haritaoglu Gavrila等人利用人体的轮廓特征来检测行人,由于人体在身体中心轴线坐标上呈现一定的对称性,因此,可以计算某个区域内目标轮廓在水平和垂直两个方向的投影柱状图,分析对称性,以确定目标是否为行人。Rivlin,Senior等人将经过运动分割后的目标用一个椭圆来匹配,椭圆的长短轴及其长度比率,以及长短轴在图像平面坐标系之间形成的角度可以作为形状特征对行人进行分类。Lipton等人定义了运动目标边缘周长平方与面积之比作为离散度,利用这个特征来区分行人、汽车等物体。Collins等人融合了以上多个参数,使用目标的面积、长宽比、离散度等作为特征,训练了一个三层神经网络对行人、车辆和人群等目标进行分类。可是以上这四个方法都存在一些缺陷,首先,比较容易受到噪声干扰的影响,行人的动作变化、背景的复杂程度,都会破坏特征的提取。其次,对于形状特征,由于是对分割的前景区域进行分析,因此,它们十分依赖分割器的性能,而背景分割技术仍然存在许多问题需要解决。In the past ten years, many existing detection methods have been produced when pedestrian detection technology has received extensive attention and research from academia and engineering. For example, Haritaoglu Gavrila et al. use human body contour features to detect pedestrians , since the human body presents a certain symmetry on the coordinates of the central axis of the body, the projection histogram of the target contour in a certain area in the horizontal and vertical directions can be calculated, and the symmetry can be analyzed to determine whether the target is a pedestrian. Rivlin, Senior et al. used an ellipse to match the target after motion segmentation. The major and minor axes of the ellipse and their length ratios, as well as the angle formed between the major and minor axes in the image plane coordinate system, can be used as shape features to classify pedestrians. Lipton et al. defined the ratio of the square of the perimeter of the moving target edge to the area as the degree of dispersion, and used this feature to distinguish objects such as pedestrians and cars. Collins et al. combined the above parameters and used the area, aspect ratio, and dispersion of the target as features to train a three-layer neural network to classify pedestrians, vehicles, and crowds. However, there are some defects in the above four methods. First, they are more susceptible to noise interference. The changes in pedestrian movements and the complexity of the background will destroy the feature extraction. Secondly, for shape features, since the analysis is performed on the segmented foreground area, they are very dependent on the performance of the segmenter, and there are still many problems to be solved in the background segmentation technology.
发明内容Contents of the invention
针对现有的检测人头的方法不适合于复杂环境中的行人检测的问题,本发明提供了一种人行横道待过行人数目的检测方法,不仅可以比较精确的检测出行人的数目,并且它简单有效,可以适用于较为复杂的环境。Aiming at the problem that the existing head detection method is not suitable for pedestrian detection in a complex environment, the present invention provides a detection method for the number of pedestrians waiting to cross a crosswalk, which can not only detect the number of pedestrians more accurately, but also is simple and effective , can be applied to more complex environments.
本发明是通过以下技术方案实现的:The present invention is achieved through the following technical solutions:
基于计算机视觉的待过行人数目的检测系统,包括两架CCD摄像机和计算机图像处理系统;所述计算机图像处理系统通过接口与摄像机相连;所述两架CCD摄像机安装于人行横道的两端;所述两架CCD摄像机的视场角包含对面的等待行人区域和斜对面的车辆区域。The detection system for the number of pedestrians waiting to pass based on computer vision includes two CCD cameras and a computer image processing system; the computer image processing system is connected to the camera through an interface; the two CCD cameras are installed at both ends of the crosswalk; The field of view angles of the two CCD cameras include the opposite waiting area for pedestrians and the diagonally opposite vehicle area.
基于计算机视觉的待过行人数目的检测系统的检测方法,包括以下步骤:The detection method of the computer vision-based detection system for the number of pedestrians waiting to pass comprises the following steps:
1)摄像机捕获视频图像;1) The video camera captures video images;
2)对视频图像中的图像进行行人等待区域的分割和光线强度自适应变化预处理;2) Segment the pedestrian waiting area and preprocess the image in the video image with adaptive change of light intensity;
3)采用基于高斯混合背景模型方法实现背景更新,并得到行人等待区域的前景图并对其进行预处理;3) Use the method based on the Gaussian mixture background model to update the background, and obtain the foreground image of the pedestrian waiting area and preprocess it;
4)基于竖直积分投影的方法对预处理后的前景图进行处理以获得行人等待区域的竖直积分投影图;4) Based on the vertical integral projection method, the preprocessed foreground image is processed to obtain the vertical integral projection image of the pedestrian waiting area;
5)通过对行人等待区域的竖直积分投影图的处理和信息统计最终获得人行横道待通过行人的数目。5) Through the processing and information statistics of the vertical integral projection map of the pedestrian waiting area, the number of pedestrians waiting to pass in the crosswalk is finally obtained.
前述步骤2)中光线强度自适应变化预处理包括,The light intensity adaptive change preprocessing in the aforementioned step 2) includes,
2-1)将摄像机采集的每帧图像的彩色图像转化为灰度图像;2-1) Convert the color image of each frame of image captured by the camera into a grayscale image;
2-2)根据灰度直方图进行统计,判断图像中光线的强度和图像的对比度;2-2) Perform statistics according to the gray histogram to judge the intensity of light in the image and the contrast of the image;
取灰度级统计为Take the gray level statistics as
其中,Hi为每个灰度级出现的概率,i为灰度级级数;Among them, Hi is the probability of occurrence of each gray level, and i is the number of gray levels;
2-3)若L≥O.8或L≤0.2,对当前帧图像进行对比度调整。2-3) If L≥O. 8 or L≤0.2, adjust the contrast of the current frame image.
前述步骤3)中选取行人开始通过横道时开始更新背景,选择在车辆通行结束前1s~2s时提取前景图。In the preceding step 3), select the background to be updated when the pedestrian starts to pass the crosswalk, and select the foreground image to be extracted 1s~2s before the end of the vehicle passage.
前述步骤3)中前景图的预处理为对前景图像依次进行直方图均衡化,中值滤波,连通域去噪,膨胀操作。The preprocessing of the foreground image in the aforementioned step 3) is to sequentially perform histogram equalization, median filtering, connected domain denoising, and expansion operations on the foreground image.
前述步骤4)中,竖直积分投影V为,In the preceding step 4), the vertical integral projection V is,
其中P(i,j)表示前景图与i位置对应的像素值为0的象素点数,W为预处理的图像的宽度,H为预处理的图像的高度。Where P(i, j) represents the number of pixels in the foreground image corresponding to the i position with a pixel value of 0, W is the width of the preprocessed image, and H is the height of the preprocessed image.
前述步骤5)包括,The aforementioned step 5) includes,
5-1)划定阈值线,大于阈值的线点为人头潜在区域的竖直区域,并去除非人头潜在区域的点;5-1) Delineate the threshold line, the line points greater than the threshold are the vertical areas of the human head potential area, and remove the points that are not the human head potential area;
5-2)划定人头潜在区域的阈值去除干扰点;5-2) Delineate the threshold of the potential area of the head to remove the interference point;
5-3)对有效竖直区域的宽度和高度进行统计,确定一个人所占的宽度和高度;5-3) Make statistics on the width and height of the effective vertical area to determine the width and height occupied by a person;
5-4)将每块有效竖直区域的宽度和高度与获取的此次检测中一个人所占的宽度和高度进行比较,确定该区域所含人数;5-4) Compare the width and height of each effective vertical area with the acquired width and height occupied by a person in this detection to determine the number of people contained in the area;
5-5)将统计出的每块有效竖直区域内的行人的数量都加起来,作为本次检测所获取的最终的等待过横道的行人的数量。5-5) Add up the counted number of pedestrians in each valid vertical area, and use it as the final number of pedestrians waiting to cross the crosswalk acquired in this detection.
前述步骤5-1)中划定阈值线是根据竖直方向的积分投影的分布情况自适应的找The delineation of the threshold line in the aforementioned step 5-1) is based on the distribution of the integral projection in the vertical direction to find out adaptively.
到一个合理的阈值Threshold, to a reasonable threshold Threshold,
其中Pi为V(i),i∈[1,W]的概率,α为比例因子,α∈[0.6,1]。Among them, P i is V (i) , the probability of i∈[1,W], α is the scaling factor, α∈[0.6,1].
前述步骤5-2)中的阈值为20像素。The threshold in the aforementioned step 5-2) is 20 pixels.
前述步骤5-3)是指:对有效竖直区域的宽度和高度进行统计,先求出最小的宽度和高度,再在此基础上,由与最小值相差小于5个像素点的值的平均值决定此次检测中一个人所占的宽度和高度。The aforementioned step 5-3) refers to: make statistics on the width and height of the effective vertical area, first find the minimum width and height, and then, on this basis, use the average value of the values that differ from the minimum value by less than 5 pixels The value determines the width and height of a person in this detection.
前述步骤5-4)是指:The aforementioned steps 5-4) refer to:
如果一块竖直区域超过一个人所占的宽度和高度均在在阈值允许范围内则该区域只包含一个行人;If a vertical area exceeds the width and height occupied by one person, the area only contains one pedestrian;
当一块竖直区域超过一个人所占的宽度和高度的值在阈值允许范围外时,仅宽度超过一个人所占的宽度则该区域包含两个行人,仅高度超过一个人所占的高度则该区域包含两个行人,若宽度和高度均超过一个人所占的宽度和高度则该区域包含四个行人。When a vertical area exceeds the width occupied by one person and the value of height is outside the allowable range of the threshold, if the width exceeds the width occupied by one person, the area contains two pedestrians, and if the height exceeds the height occupied by one person, then The area contains two pedestrians, and if the width and height both exceed the width and height occupied by one person, the area contains four pedestrians.
前述阈值允许范围的阈值根据路口的具体情况和摄像机架设的位置设置。The threshold of the allowable range of the aforementioned threshold is set according to the specific situation of the intersection and the location where the camera is erected.
前述阈值的高度阈值为12像素,宽度阈值为17像素。The aforementioned thresholds have a height threshold of 12 pixels and a width threshold of 17 pixels.
本发明的优势在于,方法简单有效,相比基于特征匹配的检测人数方法容易受到周围物体干扰使复杂情况下误差较大的情况,本发明更适合在复杂的情况下运作,运用于人行横道处的智能交通灯监管系统尤为适合,由于原理简单,也可以适当的降低成本。The advantage of the present invention is that the method is simple and effective. Compared with the method of detecting the number of people based on feature matching, which is easily disturbed by surrounding objects and the error is relatively large in complex situations, the present invention is more suitable for operation in complex situations and is applied to pedestrian crossings. The intelligent traffic light supervision system is especially suitable, because the principle is simple, and the cost can also be reduced appropriately.
附图说明Description of drawings
图1为本发明基于计算机视觉的人行横道待过行人数目的检测方法流程图;Fig. 1 is the flow chart of the detection method for the number of pedestrians waiting to pass at a crosswalk based on computer vision in the present invention;
图2为本发明对竖直积分投影图的处理和信息统计分析流程图。Fig. 2 is a flowchart of the processing and information statistical analysis of the vertical integral projection diagram according to the present invention.
具体实施方式Detailed ways
下面结合附图和具体实施方式对本发明进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
基于计算机视觉的待过行人数目的检测系统,包括两架CCD摄像机和计算机图像处理系统;所述计算机图像处理系统通过接口与摄像机相连;所述两架CCD摄像机安装于人行横道的两端;所述两架CCD摄像机的视场角包含对面的等待行人区域和斜对面的车辆区域。The detection system for the number of pedestrians waiting to pass based on computer vision includes two CCD cameras and a computer image processing system; the computer image processing system is connected to the camera through an interface; the two CCD cameras are installed at both ends of the crosswalk; The field of view angles of the two CCD cameras include the opposite waiting area for pedestrians and the diagonally opposite vehicle area.
如图1所示,基于计算机视觉的人行横道待过行人数目的检测系统的检测方法,包括以下步骤:As shown in Figure 1, the detection method of the computer vision-based detection system for the number of pedestrians waiting to pass the crosswalk includes the following steps:
1)摄像机捕获视频图像;1) The video camera captures video images;
2)对视频图像中的图像进行行人等待区域的分割和光线强度自适应变化预处理;2) Segment the pedestrian waiting area and preprocess the image in the video image with adaptive change of light intensity;
3)采用基于高斯混合背景模型方法得到行人等待区域的前景图并对其进行预处理;3) Using the Gaussian mixture background model method to obtain the foreground image of the pedestrian waiting area and preprocess it;
4)基于竖直积分投影的方法对预处理后的前景图进行处理以获得行人等待区域的竖直积分投影图;4) Based on the vertical integral projection method, the preprocessed foreground image is processed to obtain the vertical integral projection image of the pedestrian waiting area;
5)通过对行人等待区域的竖直积分投影图的处理和信息统计最终获得人行横道待通过行人的数目。5) Through the processing and information statistics of the vertical integral projection map of the pedestrian waiting area, the number of pedestrians waiting to pass in the crosswalk is finally obtained.
具体分为以下四个部分:Specifically divided into the following four parts:
第一部分,取视频图像中得到的图像进行行人等待区域的分割和光线强度自适应变化等预处理,具体包括以下步骤:In the first part, the image obtained from the video image is used for preprocessing such as segmentation of the pedestrian waiting area and adaptive change of light intensity, which specifically includes the following steps:
(1)行人站立区域的分割。图像的最大特点是可以提供大量的信息,与此同时也会带来大量的干扰信息。从图像中分割出行人站立区域的目的是将行人站立的有效区域提取出来,同时在一定程度上减少部分干扰信息。(1) Segmentation of pedestrian standing area. The biggest feature of images is that they can provide a lot of information, but at the same time, they will also bring a lot of interference information. The purpose of segmenting the pedestrian standing area from the image is to extract the effective area of pedestrian standing while reducing some interference information to a certain extent.
(2)光线强度自适应变化。针对具体的路口,由于天气等原因造成的光线强弱不同,会给行人的检测带来很大的不便。当视频图像序列中光线很弱或很强的时候,目标和背景具有很大的相似性,进行帧间差运算得到的灰度图中,目标不容易被检测出来,噪声的影响也相对较大。于是在分割出行人的站立区域之后,首先对CCD摄像机采集的每帧图像(图像宽度为W,高度为H)的彩色图像转化为灰度图像,然后根据灰度直方图进行统计,判断图像中光线的强弱和图像的对比度,对光线较弱或较强的图像进行基于像素点的处理用以达到图像增强的目的,具体判断过程如下:若当前帧灰度像,I(x,y),统计每个灰度级出现的概率Hi,灰度级统计取为:若L≥O.8或L≤0.2,对当前帧图像进行对比度调整。(2) Adaptive change of light intensity. For specific intersections, the intensity of light caused by weather and other factors is different, which will bring great inconvenience to the detection of pedestrians. When the light in the video image sequence is very weak or very strong, the target and the background have a great similarity. In the grayscale image obtained by inter-frame difference calculation, the target is not easy to be detected, and the influence of noise is relatively large. . Therefore, after segmenting the standing area of pedestrians, the color image of each frame of image (image width is W and height is H) collected by the CCD camera is first converted into a grayscale image, and then statistics are made according to the grayscale histogram to determine the The intensity of the light and the contrast of the image. Pixel-based processing is performed on images with weaker or stronger light to achieve the purpose of image enhancement. The specific judgment process is as follows: If the current frame grayscale image, I(x,y) , to count the probability H i of each gray level, and the gray level statistics are taken as: If L≥O. 8 or L≤0.2, adjust the contrast of the current frame image.
第二部分,采用基于高斯混合背景模型方法得到行人等待区域的前景图并对其进行预处理,具体包括以下步骤:In the second part, the foreground image of the pedestrian waiting area is obtained and preprocessed by using the method based on the Gaussian mixture background model, which specifically includes the following steps:
(1)背景的实时更新。采用混合高斯背景模型的方法来实现背景的实时更新,通过对连续多帧图像中的每一个像素点的对应灰度值出现的频率进行统计,当被检测目标处于运动的过程中时,同一像素点处出现的所有灰度值中,背景图像中的像素点的灰度值在其中出现的次数是最多的,即背景图像中的像素点的灰度值出现的频率比其他灰度值的出现频率要高,根据这一原理,在统计结束后,将出现频率最高的灰度值作为对应像素点处的灰度值保存起来,再复原出整幅背景图像,最后保存该背景图像以备后用。对于行人站立区域背景更新的时机,经大量试验,最终选择当行人开始通过横道时开始更新背景(可适当延迟一小段时间),而背景更新的截止时间应该稍早于设定的行人通过时间(因为在最后的1到2秒的时候,行人可能会停下来等待下次通过,如果继续更新背景,则可能将此时停止下来的行人也当做背景)。(1) Real-time update of the background. The method of mixed Gaussian background model is used to realize the real-time update of the background. By counting the frequency of the corresponding gray value of each pixel in the continuous multi-frame image, when the detected target is in the process of moving, the same pixel Among all the gray values that appear at the point, the gray value of the pixel in the background image appears the most, that is, the gray value of the pixel in the background image appears more frequently than other gray values. The frequency should be high. According to this principle, after the statistics are finished, save the gray value with the highest frequency as the gray value at the corresponding pixel, then restore the entire background image, and finally save the background image for future use. use. For the timing of the background update of the pedestrian standing area, after a lot of experiments, the final choice is to start updating the background when the pedestrian starts to pass the crosswalk (it can be delayed for a short period of time), and the cut-off time of the background update should be slightly earlier than the set pedestrian passing time ( Because in the last 1 to 2 seconds, pedestrians may stop and wait for the next pass. If you continue to update the background, you may also use the pedestrians who stopped at this time as the background).
(2)包含检测对象的前景的获取。本发明中选择在车辆通行就要结束的最后几秒钟,如1s~2s时,获取包含行人的一帧图像,此帧图像中包含的行人的数量信息比较接近真实情况(时间越靠近车辆通行结束的时间,此幅图像中包含的信息越接近真实情况)。再将获取的这一帧图像与前面获取的背景图像做帧差,从而获得前景图像。(2) Acquisition of the foreground including the detected object. In the present invention, select the last few seconds when the vehicle traffic is about to end, such as 1s~2s, to obtain a frame image containing pedestrians, the number information of pedestrians contained in this frame image is closer to the real situation (the closer the time is to the vehicle traffic end time, the closer the information contained in this image is to the real situation). Then make a frame difference between the obtained frame image and the previously obtained background image, so as to obtain the foreground image.
(3)对前景图像的预处理。为了进一步的减少干扰,对获取的前景图像进行了预处理,处理过程为对前景图像依次进行直方图均衡化,中值滤波,连通域去噪,膨胀操作。(3) Preprocessing of the foreground image. In order to further reduce the interference, the acquired foreground image is preprocessed. The processing process is sequentially performing histogram equalization, median filtering, connected domain denoising, and expansion operations on the foreground image.
第三部分,基于竖直积分投影的方法对去噪后的前景图进行处理以获得行人等待区域的竖直积分投影图。设预处理得到大小为W*H的二值图G,W为预处理的图像的宽度,H为预处理的图像的高度,注意到这时的背景和部分目标区域均变为零,而且二值图中,竖直方向上像素点数较多的部分基本来自人体的头部所在的竖直区域部分,基于这样的分析,根据图G竖直方向的积分投影来确定人头所在的竖直区域。记V表示图G的竖直方向的积分投影,V是一个W维向量,其中In the third part, the method based on vertical integral projection processes the denoised foreground image to obtain the vertical integral projection image of the pedestrian waiting area. Assume preprocessing to obtain a binary image G of size W*H, W is the width of the preprocessed image, and H is the height of the preprocessed image. Note that the background and part of the target area at this time become zero, and the two In the value map, the part with more pixels in the vertical direction basically comes from the vertical area where the head of the human body is located. Based on this analysis, the vertical area where the head is located is determined according to the integral projection in the vertical direction of graph G. Note that V represents the integral projection of the vertical direction of the graph G, and V is a W-dimensional vector, where
P(i,j)表示前景图像与i位置对应的像素值为0的象素点数,W为图像宽度,H为图像高度。P(i,j) represents the number of pixels in the foreground image corresponding to the i position with a pixel value of 0, W is the width of the image, and H is the height of the image.
第四部分,通过对行人等待区域的竖直积分投影图的处理和信息统计最终获得人行横道待通过行人的数目,如图2所示,具体包括以下步骤:The fourth part is to finally obtain the number of pedestrians waiting to pass through the crosswalk through the processing and information statistics of the vertical integral projection map of the pedestrian waiting area, as shown in Figure 2, which specifically includes the following steps:
(1)划定阈值线,确定人头潜在区域的竖直区域,并去除非人头潜在区域的点。为了确定潜在的人头所在的竖直区域,本发明根据图G竖直方向的积分投影的分布情况自适应的找到一个合理的阈值来划分出这些区域,方法是:统计V(i),i∈[1,W]的概率分布,记V(i),i∈[1,W]的概率为Pi,阈值取为:即阈值取向量V的统计均值一部分,其中α为一比例因子,α∈[0.6,1],其值与采集图像的亮度相关,由统计得到的当前图像的灰度直方图计算得到。通过大量的测试,L≤0.6,α取0.6,其他情况下,α取L的值,效果比较好。(1) Delineate the threshold line, determine the vertical area of the head potential area, and remove the points that are not the head potential area. In order to determine the vertical area where the potential human head is located, the present invention adaptively finds a reasonable threshold to divide these areas according to the distribution of the integral projection in the vertical direction of the graph G. The method is: statistics V (i) , i∈ The probability distribution of [1,W], denote V (i) , the probability of i∈[1,W] is P i , and the threshold is taken as: That is, the threshold takes part of the statistical mean value of the vector V, where α is a proportional factor, α∈[0.6,1], its value is related to the brightness of the collected image, and is calculated from the gray histogram of the current image obtained through statistics. Through a large number of tests, L≤0.6, α takes 0.6, and in other cases, α takes the value of L, and the effect is better.
(2)划定阈值将宽度太小的竖直区域作为干扰点去除。得到潜在的人头所在的竖直区域后,经过大量的试验,选取合适的阈值,把宽度太小的竖直区域去除,本实施例中,阈值选为20像素,此阈值需要根据实际的路口情况和摄像机架设的位置进行测定。(2) Define the threshold to remove the vertical area with too small width as the interference point. After obtaining the vertical area where the potential human head is located, through a large number of experiments, select a suitable threshold to remove the vertical area with too small width. In this embodiment, the threshold is selected as 20 pixels. This threshold needs to be based on the actual intersection situation. And the position of camera erection is measured.
(3)对有效竖直区域的宽度和高度进行统计,确定一个人所占的宽度和高度。对有效竖直区域的宽度和高度进行统计,先求出最小的宽度和高度,再在此基础上,求出与最小值相差不大(如相差小于5个像素点)的几个值的平均值决定此次检测中一个人所占的宽度和高度。(3) Make statistics on the width and height of the effective vertical area to determine the width and height occupied by a person. Make statistics on the width and height of the effective vertical area, first find the minimum width and height, and then on this basis, find the average of several values that are not much different from the minimum value (for example, the difference is less than 5 pixels) The value determines the width and height of a person in this detection.
(4)将每块有效竖直区域的宽度和高度与获取的此次检测中一个人所占的宽度和高度进行比较,确定该区域所含人数。比较时若当某一个区域的宽度或高度超过获取的此次检测中一个人所占的宽度或高度一定的阈值时,则认为该竖直区域内不只有一个行人,根据阈值的不同确定该区域的最终人数,该阈值的设定需要根据实际的路口情况和摄像机架设的位置进行测定,本实施例中,高度阈值为12像素,宽度阈值为17像素,具体统计每块竖直区域所含人数多少的方法为:一块竖直区域超过一个人所占的宽度和高度均在在阈值允许范围内仍认为该区域算作只包含一个行人;而如果一块竖直区域超过一个人所占的宽度和高度的值在阈值允许范围外时,仅宽度超过一个人所占的宽度则认为该区域包含两个行人,仅高度超过一个人所占的高度则认为该区域包含两个行人,若宽度和高度均超过一个人所占的宽度和高度则认为该区域包含四个行人。(4) Compare the width and height of each effective vertical area with the acquired width and height occupied by a person in this detection to determine the number of people contained in the area. When comparing, if the width or height of a certain area exceeds a certain threshold value of the width or height occupied by a person in this detection obtained, it is considered that there is not only one pedestrian in the vertical area, and the area is determined according to the difference in the threshold The final number of people, the setting of the threshold needs to be determined according to the actual intersection situation and the location of the camera erection. In this embodiment, the height threshold is 12 pixels, and the width threshold is 17 pixels. The specific statistics of the number of people in each vertical area The method of how much is: a vertical area exceeds the width and height occupied by one person and is within the allowable range of the threshold, and the area is still considered as containing only one pedestrian; and if a vertical area exceeds the width and height occupied by one person When the value of the height is outside the allowable range of the threshold, the area contains two pedestrians only if the width exceeds the width occupied by one person, and the area contains two pedestrians if only the height exceeds the height occupied by one person. If the width and height If the width and height both exceed the width and height occupied by one person, the area is considered to contain four pedestrians.
(5)将统计出的每块有效竖直区域内的行人的数量都加起来,作为本次检测所获取的最终的等待过横道的行人的数量。(5) Add up the counted number of pedestrians in each valid vertical area, and use it as the final number of pedestrians waiting to cross the crosswalk acquired in this detection.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210567978.7A CN103049788B (en) | 2012-12-24 | 2012-12-24 | Based on space number for the treatment of object detection system and the method for computer vision |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210567978.7A CN103049788B (en) | 2012-12-24 | 2012-12-24 | Based on space number for the treatment of object detection system and the method for computer vision |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103049788A true CN103049788A (en) | 2013-04-17 |
CN103049788B CN103049788B (en) | 2015-11-18 |
Family
ID=48062420
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210567978.7A Expired - Fee Related CN103049788B (en) | 2012-12-24 | 2012-12-24 | Based on space number for the treatment of object detection system and the method for computer vision |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103049788B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105302151A (en) * | 2014-08-01 | 2016-02-03 | 深圳中集天达空港设备有限公司 | Aircraft docking guidance and type recognition system and method |
CN105335985A (en) * | 2014-08-01 | 2016-02-17 | 深圳中集天达空港设备有限公司 | Real-time capture method and system of docking airplane on the basis of machine vision |
CN105373135A (en) * | 2014-08-01 | 2016-03-02 | 深圳中集天达空港设备有限公司 | Method and system for guiding airplane docking and identifying airplane type based on machine vision |
CN105744224A (en) * | 2016-02-04 | 2016-07-06 | 张宏业 | Suspended type high and low voltage power distribution cabinet |
CN105893962A (en) * | 2016-03-31 | 2016-08-24 | 成都信息工程大学 | Method for counting passenger flow at airport security check counter |
CN107133610A (en) * | 2017-06-01 | 2017-09-05 | 电子科技大学 | A kind of descending vehicle flowrate vision-based detection of complex road condition and method of counting |
CN108804992A (en) * | 2017-05-08 | 2018-11-13 | 电子科技大学 | A kind of Demographics' method based on deep learning |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101799987A (en) * | 2010-03-10 | 2010-08-11 | 北京航空航天大学 | Self-adaptive intelligent traffic light and control method thereof |
CN101847206A (en) * | 2010-04-21 | 2010-09-29 | 北京交通大学 | Pedestrian traffic statistical method and system based on traffic monitoring facilities |
US8331729B2 (en) * | 2008-01-16 | 2012-12-11 | Samsung Electronics Co., Ltd. | Block-based object counting apparatus and method |
CN102831592A (en) * | 2012-08-10 | 2012-12-19 | 中国电子科技集团公司第四十一研究所 | Image nonlinearity enhancement method based on histogram subsection transformation |
-
2012
- 2012-12-24 CN CN201210567978.7A patent/CN103049788B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8331729B2 (en) * | 2008-01-16 | 2012-12-11 | Samsung Electronics Co., Ltd. | Block-based object counting apparatus and method |
CN101799987A (en) * | 2010-03-10 | 2010-08-11 | 北京航空航天大学 | Self-adaptive intelligent traffic light and control method thereof |
CN101847206A (en) * | 2010-04-21 | 2010-09-29 | 北京交通大学 | Pedestrian traffic statistical method and system based on traffic monitoring facilities |
CN102831592A (en) * | 2012-08-10 | 2012-12-19 | 中国电子科技集团公司第四十一研究所 | Image nonlinearity enhancement method based on histogram subsection transformation |
Non-Patent Citations (1)
Title |
---|
卢湖川 等: "基于Hough 变换头部检测与跟踪的方法研究", 《系统仿真学报》, vol. 20, no. 8, 30 April 2008 (2008-04-30), pages 2128 * |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105335985B (en) * | 2014-08-01 | 2019-03-01 | 深圳中集天达空港设备有限公司 | A kind of real-time capturing method and system of docking aircraft based on machine vision |
CN105335985A (en) * | 2014-08-01 | 2016-02-17 | 深圳中集天达空港设备有限公司 | Real-time capture method and system of docking airplane on the basis of machine vision |
CN105373135A (en) * | 2014-08-01 | 2016-03-02 | 深圳中集天达空港设备有限公司 | Method and system for guiding airplane docking and identifying airplane type based on machine vision |
CN105302151B (en) * | 2014-08-01 | 2018-07-13 | 深圳中集天达空港设备有限公司 | A kind of system and method for aircraft docking guiding and plane type recognition |
CN105373135B (en) * | 2014-08-01 | 2019-01-01 | 深圳中集天达空港设备有限公司 | A kind of method and system of aircraft docking guidance and plane type recognition based on machine vision |
CN105302151A (en) * | 2014-08-01 | 2016-02-03 | 深圳中集天达空港设备有限公司 | Aircraft docking guidance and type recognition system and method |
US10255520B2 (en) | 2014-08-01 | 2019-04-09 | Shenzhen Cimc-Tianda Airport Support Ltd. | System and method for aircraft docking guidance and aircraft type identification |
US10290219B2 (en) | 2014-08-01 | 2019-05-14 | Shenzhen Cimc-Tianda Airport Support Ltd. | Machine vision-based method and system for aircraft docking guidance and aircraft type identification |
CN105744224A (en) * | 2016-02-04 | 2016-07-06 | 张宏业 | Suspended type high and low voltage power distribution cabinet |
CN105893962A (en) * | 2016-03-31 | 2016-08-24 | 成都信息工程大学 | Method for counting passenger flow at airport security check counter |
CN108804992A (en) * | 2017-05-08 | 2018-11-13 | 电子科技大学 | A kind of Demographics' method based on deep learning |
CN108804992B (en) * | 2017-05-08 | 2022-08-26 | 电子科技大学 | Crowd counting method based on deep learning |
CN107133610A (en) * | 2017-06-01 | 2017-09-05 | 电子科技大学 | A kind of descending vehicle flowrate vision-based detection of complex road condition and method of counting |
Also Published As
Publication number | Publication date |
---|---|
CN103049788B (en) | 2015-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103049788B (en) | Based on space number for the treatment of object detection system and the method for computer vision | |
CN106682601B (en) | A driver's illegal call detection method based on multi-dimensional information feature fusion | |
CN103077384B (en) | A kind of method and system of vehicle-logo location identification | |
CN101826228B (en) | Detection method of bus passenger moving objects based on background estimation | |
CN103914688B (en) | A kind of urban road differentiating obstacle | |
CN101702263B (en) | Pedestrian crosswalk signal lamp green wave self-adaption control system and method | |
CN106127137A (en) | A kind of target detection recognizer based on 3D trajectory analysis | |
CN103793708B (en) | A kind of multiple dimensioned car plate precise positioning method based on motion correction | |
CN104036262B (en) | A kind of method and system of LPR car plates screening identification | |
CN103268470B (en) | Object video real-time statistical method based on any scene | |
CN105046206B (en) | Based on the pedestrian detection method and device for moving prior information in video | |
CN107895492A (en) | A kind of express highway intelligent analysis method based on conventional video | |
CN106815583B (en) | A night vehicle license plate location method based on the combination of MSER and SWT | |
CN105046218B (en) | A kind of multiple features traffic video smog detection method based on serial parallel processing | |
CN107025432A (en) | A kind of efficient lane detection tracking and system | |
CN107895151A (en) | Method for detecting lane lines based on machine vision under a kind of high light conditions | |
CN101847206A (en) | Pedestrian traffic statistical method and system based on traffic monitoring facilities | |
CN104835147A (en) | Method for detecting crowded people flow in real time based on three-dimensional depth map data | |
CN103021177A (en) | Method and system for processing traffic monitoring video image in foggy day | |
CN103646254B (en) | High-density pedestrian detection method | |
CN104700072A (en) | Lane line historical frame recognition method | |
CN109711256B (en) | Low-altitude complex background unmanned aerial vehicle target detection method | |
CN101470809A (en) | Moving object detection method based on expansion mixed gauss model | |
CN104537342B (en) | A kind of express lane line detecting method of combination ridge border detection and Hough transformation | |
CN106778569A (en) | Train preceding object object detecting method based on video image |
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 |
Granted publication date: 20151118 Termination date: 20161224 |
|
CF01 | Termination of patent right due to non-payment of annual fee |