选取了canny算子来提取边缘,获得了较好的轮廓,避免了后续的复杂处理。
最后,本文通过对边缘进行膨胀解决了边缘细微处不连续的问题,并对图像中的目标进行了图像填充,得到了目标图像的连通域;接着计算连通域的面积,通过设置面积阈值,剔除了图像中的小的瑕疵,最终得到了图像中的人数。对于人数统计中的重复计数问题,本文根据连通域面积阈值的设定,将连通域面积大于一定阈值的目标计数为两个人,很好的解决了这个问题。
关键词: 智能建筑,MATLAB,图像预处理,边缘检测,膨胀,填充,人数统计
STATISTICS ON THE NUMBER OF PEOPLE IN INTELLIGENT BUILDING BASED ON THE DIGITAL
IMAGE PROCESSING
ABSTRACT
Energy shortage is one of the problems that the world must face, building consumption energy , industrial energy and transport energy are three \with rising construction and upgrading of living comfort, showing a sharp upward trend.How to reduce energy consumption of heating and air conditioning, building energy conservation becomes a main research direction, so intelligent building statistics for air conditioning is very importance for energy conservation.
counting the number of people in the Intercepted images from the video is a difficult and front subject in the field of image processing, It has high practical value in traffic monitoring, traffic statistics, virtual reality, intelligent building video surveillance and other fields. . In this paper, we regard the \\from the video image as the goal, using contour extraction and morphological expansion, finally, we can detect the number of people in the intelligent building by computer the area of the connected domain .
Getting the original image is the prerequisite of number statistics, In this paper,we got the required image for post-processing by studying the imaging characteristics of different angles to determine the different placement of the camera.
Image pre-processing of digital image processing is prerequisite for almost all of image processing,in this paper,we applied the image gray transform and image filtering. improved the quality of the original image by histogram equalization and gray level histogram specification . Comparison of the mean filter, median filtering and Gaussian filtering method pros and cons, and choose a different noise depending on the original image for edge detection of the image late .
Image edge detection has been the basic problem of pattern recognition, and also one of the most difficults, this article compares the different effects of edge detection operator and a different scope, and ultimately selected the canny edge operator to extract obtained A better profile, to avoid the follow-up of complex processing.
Finally, we solve the problem of discontinuity by expansding the edge of the image and filling the target image ,connected domain area was calculated by setting the area threshold then, Excluding the small image defects, and ultimately get the number of people. For the question of repeat count , this paper computed the area of connected domain under the threshold set, when the connected components is larger than a certain threshold, the goal counts
for two people, finally,we solved this problem well.
KEY WORDS: MATLAB, Enrolment Statistics ,Edge Detection, Expand Filling
相关推荐: