CN100435160C - A video image processing method and system for real-time collection of traffic information - Google Patents
A video image processing method and system for real-time collection of traffic information Download PDFInfo
- Publication number
- CN100435160C CN100435160C CNB2005100285721A CN200510028572A CN100435160C CN 100435160 C CN100435160 C CN 100435160C CN B2005100285721 A CNB2005100285721 A CN B2005100285721A CN 200510028572 A CN200510028572 A CN 200510028572A CN 100435160 C CN100435160 C CN 100435160C
- Authority
- CN
- China
- Prior art keywords
- image
- vehicle
- traffic information
- real
- video
- 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
Links
- 238000003672 processing method Methods 0.000 title claims 5
- 238000000034 method Methods 0.000 claims abstract description 40
- 238000001514 detection method Methods 0.000 claims abstract description 25
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 238000000605 extraction Methods 0.000 claims description 2
- 238000002372 labelling Methods 0.000 claims description 2
- 238000007781 pre-processing Methods 0.000 claims 1
- 238000005516 engineering process Methods 0.000 abstract description 10
- 230000000007 visual effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 5
- 238000005070 sampling Methods 0.000 description 2
- 230000002596 correlated effect Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
Images
Landscapes
- Traffic Control Systems (AREA)
Abstract
Description
技术领域 technical field
本发明属于智能交通技术领域,涉及交通信息采集技术。The invention belongs to the technical field of intelligent traffic, and relates to traffic information collection technology.
背景技术 Background technique
采集交通信息的技术有多种,与其他检测技术相比,视频检测技术在覆盖范围、检测参数、可维护性和安装简易性等方面具有明显优势,其前瞻性好,能代表交通信息检测器的发展趋势。There are many technologies for collecting traffic information. Compared with other detection technologies, video detection technology has obvious advantages in coverage, detection parameters, maintainability, and ease of installation. It is forward-looking and can represent traffic information detectors. development trend.
目前利用视频图像采集交通信息的原理大致可以分两类:虚拟线圈法和跟踪法。市场上大部分产品属于虚拟线圈法这一类,其基本原理就是根据图像上道路某固定断面位置象素灰度是否发生变化的情况来判断有无车辆经过,从而统计交通流量,计算速度。该类检测器的优点是原理简单,数据处理时间短,在满足实时要求的前提下完成流量、速度的检测。但是由于该类检测器仅仅得到抽样时刻有无车辆通过采样线位置这一唯一的信息,而丢失了包括车辆长度、宽度和运动轨迹等特征,所以前后帧图像的车辆匹配精度性较低,在发生超车和变道的情况下,车辆匹配错误导致速度检测失败。At present, the principle of using video images to collect traffic information can be roughly divided into two categories: virtual coil method and tracking method. Most of the products on the market belong to the category of the virtual coil method. Its basic principle is to judge whether there is a vehicle passing by according to whether the gray level of the pixel at a fixed section of the road on the image changes, so as to count the traffic flow and calculate the speed. The advantage of this type of detector is that the principle is simple, the data processing time is short, and the flow and speed detection can be completed under the premise of meeting the real-time requirements. However, since this type of detector only obtains the only information of whether there is a vehicle passing the sampling line position at the sampling time, and loses features such as vehicle length, width, and motion trajectory, the vehicle matching accuracy of the front and rear frame images is low. In the case of overtaking and lane changes, vehicle matching errors lead to speed detection failures.
跟踪法的原理是通过识别出交通场景图像中符合车辆特征的象素,统计车辆数量,并依据提取出的特征来匹配前后帧车辆,从而计算速度。理论上,跟踪法比虚拟线圈法更为严谨,所以更能代表发展的趋势。该方法的难度在于:特征的提取和特征的跟踪。首先特征必须有代表性,图像中的车辆都具备该特征且各不相同;其次同一车辆在不同帧图像中特征应该具有相关性,能够有较好的对应关系。目前文献所报道的跟踪法缺点在于车辆检测计算量过大,结果不准确。The principle of the tracking method is to identify the pixels in the traffic scene image that match the characteristics of the vehicle, count the number of vehicles, and match the vehicles in the front and rear frames according to the extracted features, so as to calculate the speed. In theory, the tracking method is more rigorous than the virtual coil method, so it can better represent the development trend. The difficulty of this method lies in: feature extraction and feature tracking. First of all, the features must be representative, and the vehicles in the image all have this feature and are different from each other; secondly, the features of the same vehicle in different frame images should be correlated and have a better correspondence. The disadvantage of the tracking method reported in the literature is that the calculation of the vehicle detection is too large and the result is not accurate.
由于利用获取视频图像获取交通信息的复杂性,视频采集技术仍处于不断完善中。Due to the complexity of obtaining traffic information by using video images, video acquisition technology is still in continuous improvement.
发明内容 Contents of the invention
针对现有跟踪法车辆检测技术计算量大、结果不可靠的问题,本发明提供一种新的车辆检测技术,并以此检测技术为基础,进行前后帧图像中的车辆匹配,从而实现信息采集。Aiming at the problems of large amount of calculation and unreliable results of the existing tracking method vehicle detection technology, the present invention provides a new vehicle detection technology, and based on this detection technology, it performs vehicle matching in front and rear frame images, thereby realizing information collection .
本发明的处理流程如图3所示,在设置具体参数(包括亮度、对比度、各类阈值)之后,获取一帧视频图像,采用动态投影法检测车辆,进而得到该帧图像上每辆车的长度、宽度和形状等信息,通过与上帧图像的车辆信息匹配,实现采集交通流信息的功能。The processing flow of the present invention is shown in Figure 3, after setting specific parameters (comprising brightness, contrast, various thresholds), obtain a frame of video image, adopt dynamic projection method to detect vehicle, and then obtain the image of each vehicle on this frame image Information such as length, width, and shape is matched with the vehicle information of the previous frame image to realize the function of collecting traffic flow information.
车辆检测即如何分辨图像上的象素是否属性车辆还是背景,并且需要识别不同的车辆象素是否属于同一车辆。本技术采用了动态投影法检测车辆,该方法的流程是:首先与背景图像进行差值处理,然后进行水平投影,消除噪声的干扰,进行图像识别,提取车辆的特征信息。Vehicle detection is how to distinguish whether the pixels on the image belong to the vehicle or the background, and it is necessary to identify whether different vehicle pixels belong to the same vehicle. This technology uses the dynamic projection method to detect vehicles. The process of this method is: firstly, perform difference processing with the background image, then perform horizontal projection, eliminate noise interference, perform image recognition, and extract vehicle feature information.
车辆匹配过程利用动态投影法处理后获得的车辆信息(包括车辆长度、宽度和形状特征等),与上帧图像信息进行匹配。The vehicle matching process uses the vehicle information (including vehicle length, width and shape features, etc.) obtained after processing by the dynamic projection method to match with the image information of the previous frame.
包括如下步骤:Including the following steps:
(1)设置检测过程中的阈值和图像采集参数;(1) Threshold and image acquisition parameters in the detection process are set;
(2)通过控制装置设定检测区域,可多车道同时并行运算;(2) The detection area is set by the control device, and multiple lanes can be operated in parallel at the same time;
(3)应用背景差法将检测区域二值化,象素与背景灰度差大于某一阈值则认为是目标象素,将其灰度值赋为某值某色,得到二值图;(3) Use the background difference method to binarize the detection area. If the grayscale difference between the pixel and the background is greater than a certain threshold, it is considered to be the target pixel, and its grayscale value is assigned to a certain value and certain color to obtain a binary image;
(4)将该二值图在水平方向投影,得到投影图;(4) project the binary image in the horizontal direction to obtain a projection image;
(5)对图2进行标号处理,把该色象素连续的行标为同一编号;(5) labeling is carried out to Fig. 2, and the continuous row of this color pixel is marked as the same numbering;
(6)计算每一编号该某色象素的数量、相邻标号的间距,当目标象素数量低于所设定阈值,或者相邻标号的间距低于设定阈值,则认为是噪声干扰进行排除,调整标号;(6) Calculate the number of pixels of a certain color for each number and the distance between adjacent labels. When the number of target pixels is lower than the set threshold, or the distance between adjacent labels is lower than the set threshold, it is considered noise interference Exclude and adjust the label;
(7)以最后的标号作为本帧图像的总车辆数;(7) take the last label as the total vehicle number of this frame image;
(8)提取每个标号象素块的特征,包括长度、宽度和形状特征等,作为车辆特征;(8) Extract the feature of each label pixel block, including length, width and shape feature etc., as vehicle feature;
(9)与上帧图像的车辆特性进行匹配;如本帧图像某一车辆未能匹配成功,则总流量增加1;如匹配成功,则计算车辆移动距离,计算车辆速度,并推算其他交通参数;(9) Match with the vehicle characteristics of the previous frame image; if a vehicle in this frame image fails to match successfully, the total flow will increase by 1; if the match is successful, calculate the moving distance of the vehicle, calculate the vehicle speed, and calculate other traffic parameters ;
(10)读取下帧图像,转到步骤(3)。(10) Read the next frame image, go to step (3).
一种用于交通信息实时采集的视频图像处理的系统,其具有实现以上任一所述方法的结构。可以是:用于采集信号的摄象头与录象机或图象记录仪相连,再通过图象采集卡、数/模转换装置与计算机连接,该计算机内设置有交通信息采集软件;该录象机或图象记录仪可同时与图象监控器相连。A video image processing system for real-time collection of traffic information, which has a structure for realizing any one of the above methods. It can be: the camera head used to collect signals is connected to a video recorder or an image recorder, and then connected to a computer through an image acquisition card and a digital/analog conversion device. The computer is provided with traffic information collection software; the video recorder The camera or image recorder can be connected with the image monitor at the same time.
附图说明 Description of drawings
图1是本发明的二值图。Fig. 1 is a binary graph of the present invention.
图2是本发明的投影图。Figure 2 is a projected view of the present invention.
图3是系统处理流程示意图。Fig. 3 is a schematic diagram of the system processing flow.
图4是本发明的设置参数界面。Fig. 4 is the setting parameter interface of the present invention.
图5是本发明的检测区域设置界面示意图。Fig. 5 is a schematic diagram of the detection area setting interface of the present invention.
图6是本发明的长度标定界面(用于计算距离)。Fig. 6 is the length calibration interface (for calculating distance) of the present invention.
图7是本发明的检测运行界面。Fig. 7 is the detection operation interface of the present invention.
图8是本发明硬件连接示意图。Fig. 8 is a schematic diagram of hardware connection of the present invention.
具体实施方式 Detailed ways
投影法和背景差法是在图像处理工程中经常应用的单幅图像识别的一种技术手段,投影法把图像象素(通常为0-1值图像)进行水平方向或者垂直方向投影,背景差法将包含目标的图像与不包含目标的图像的象素值进行相减。本发明是采用新的车辆检测思路——动态投影法。该方法综合使用投影法与背景差法,对多幅图像进行连续动态处理,通过对投影处理后的图像进行识别来检测单幅图像的车辆,并根据车辆投影图的特征完成前后帧图像上车辆的匹配,从而实现信息采集。Projection method and background difference method are a kind of technical means of single image recognition often used in image processing engineering. Projection method projects image pixels (usually 0-1 value image) in horizontal or vertical direction, and background difference method The method subtracts the pixel values of the image containing the object from the image not containing the object. The present invention adopts a new vehicle detection idea—dynamic projection method. This method comprehensively uses the projection method and the background difference method to continuously and dynamically process multiple images, and detects the vehicle in a single image by recognizing the projected image, and completes the vehicle detection in the front and rear frame images according to the characteristics of the vehicle projection image. Matching, so as to realize information collection.
其基本原理如图1和图2所示(图中白色代表目标象素),具体步骤如下:Its basic principle is shown in Figure 1 and Figure 2 (white in the figure represents the target pixel), and the specific steps are as follows:
1.设置检测过程中的阈值和图像采集参数(亮度和对比度);1. Set the threshold and image acquisition parameters (brightness and contrast) in the detection process;
2.通过控制装置(例如鼠标)设定检测区域,可多车道同时并行运算;2. Set the detection area through the control device (such as a mouse), and multiple lanes can be operated in parallel at the same time;
3.应用背景差法将检测区域二值化(象素与背景灰度差大于某一阈值则认为是目标象素,将其灰度值赋为255,即白色),得到图1;3. Use the background difference method to binarize the detection area (the pixel and background grayscale difference is greater than a certain threshold, then it is considered to be the target pixel, and its grayscale value is assigned to 255, i.e. white), to obtain Figure 1;
4.将图1在水平方向投影,得到图2;4. Project Figure 1 in the horizontal direction to obtain Figure 2;
5.对图2进行标号处理,把白色象素连续的行标为同一编号;5. Carry out label processing to Fig. 2, the continuous row of white pixel is marked as same numbering;
6.计算每一编号白色象素的数量、相邻标号的间距,当目标象素数量低于所设定阈值,或者相邻标号的间距低于设定阈值,则认为是噪声干扰进行排除,调整标号;6. Calculate the number of white pixels for each number and the distance between adjacent labels. When the number of target pixels is lower than the set threshold, or the distance between adjacent labels is lower than the set threshold, it is considered to be noise interference and eliminated. Adjust the label;
7.以最后的标号作为本帧图像的总车辆数;7. Use the last label as the total number of vehicles in this frame image;
8.提取每个标号象素块的特征,包括长度、宽度和形状特征等,作为车辆特征;8. Extract the features of each labeled pixel block, including length, width and shape features, as vehicle features;
9.与上帧图像的车辆特性进行匹配。如本帧图像某一车辆未能匹配成功,则总流量增加1;如匹配成功,则计算车辆移动距离,计算车辆速度,并推算其他交通参数;9. Match with the vehicle characteristics of the previous frame image. If a vehicle in this frame image fails to match successfully, the total flow will increase by 1; if the match is successful, calculate the moving distance of the vehicle, calculate the speed of the vehicle, and calculate other traffic parameters;
10.读取下帧图像,转到步骤3;10. Read the next frame image and go to step 3;
图4-7是具体实施例的界面示意图;图8是本发明一种实施例的硬件连接示意图:用于采集信号的摄象头1与录象机或图象记录仪2相连,再通过图象采集卡3、数/模转换装置4与计算机5连接,该计算机5内设置有交通信息采集软件6;该录象机或图象记录仪2可同时与图象监控器7相连。Fig. 4-7 is the interface schematic diagram of specific embodiment; Fig. 8 is the hardware connection schematic diagram of a kind of embodiment of the present invention: the camera head 1 that is used to collect signal links to each other with video recorder or image recorder 2, then through Fig. Image acquisition card 3, digital/analog conversion device 4 are connected with computer 5, which is provided with traffic
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2005100285721A CN100435160C (en) | 2005-08-05 | 2005-08-05 | A video image processing method and system for real-time collection of traffic information |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2005100285721A CN100435160C (en) | 2005-08-05 | 2005-08-05 | A video image processing method and system for real-time collection of traffic information |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1909012A CN1909012A (en) | 2007-02-07 |
| CN100435160C true CN100435160C (en) | 2008-11-19 |
Family
ID=37700116
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2005100285721A Expired - Fee Related CN100435160C (en) | 2005-08-05 | 2005-08-05 | A video image processing method and system for real-time collection of traffic information |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN100435160C (en) |
Families Citing this family (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101510356B (en) * | 2009-02-24 | 2011-07-20 | 上海高德威智能交通系统有限公司 | Video detection system and data processing device thereof, video detection method |
| CN101714296B (en) * | 2009-11-13 | 2011-05-25 | 北京工业大学 | A real-time dynamic traffic jam detection method based on telescopic window |
| CN102622575A (en) * | 2011-01-31 | 2012-08-01 | 日电(中国)有限公司 | Baseline band video monitoring system and monitoring method |
| CN102779412B (en) * | 2011-05-13 | 2014-11-05 | 深圳市新创中天信息科技发展有限公司 | Integrated video traffic information detection method and system |
| CN102509457B (en) * | 2011-10-09 | 2014-03-26 | 青岛海信网络科技股份有限公司 | Vehicle tracking method and device |
| CN102810250B (en) * | 2012-07-31 | 2014-07-02 | 长安大学 | Video based multi-vehicle traffic information detection method |
| CN102930719B (en) * | 2012-10-09 | 2014-12-10 | 北京航空航天大学 | Video image foreground detection method for traffic intersection scene and based on network physical system |
| CN103021177B (en) * | 2012-11-05 | 2014-05-07 | 北京理工大学 | A method and system for processing traffic monitoring video images in foggy weather |
| CN103295403B (en) * | 2013-06-17 | 2016-02-10 | 湘潭大学 | A kind of traffic flow visual inspection method |
| CN104751627B (en) * | 2013-12-31 | 2017-12-08 | 西门子公司 | A kind of traffic determination method for parameter and device |
| CN108460968A (en) * | 2017-02-22 | 2018-08-28 | 中兴通讯股份有限公司 | A kind of method and device obtaining traffic information based on car networking |
| CN113538891A (en) * | 2020-04-17 | 2021-10-22 | 无锡锦铖人工智能科技有限公司 | Intelligent vehicle counting system |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07210795A (en) * | 1994-01-24 | 1995-08-11 | Babcock Hitachi Kk | Method and instrument for image type traffic flow measurement |
| CN1145127A (en) * | 1994-04-08 | 1997-03-12 | 特拉菲肯公司 | Device and method for monitoring traffic volume |
| CN1197255A (en) * | 1997-04-18 | 1998-10-28 | 三星电子株式会社 | Device and method for determining vehicle class |
| CN1350941A (en) * | 2000-10-27 | 2002-05-29 | 新鼎系统股份有限公司 | Method and device for moving vehicle image tracking |
| CN1464487A (en) * | 2002-06-03 | 2003-12-31 | 昆明利普机器视觉工程有限公司 | A traffic flow detection system based on visual vehicle optical characteristic recognition and matching |
| JP2004005726A (en) * | 2003-07-24 | 2004-01-08 | Fujitsu Ltd | Traffic flow monitoring system for moving objects |
| US20040131233A1 (en) * | 2002-06-17 | 2004-07-08 | Dorin Comaniciu | System and method for vehicle detection and tracking |
-
2005
- 2005-08-05 CN CNB2005100285721A patent/CN100435160C/en not_active Expired - Fee Related
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07210795A (en) * | 1994-01-24 | 1995-08-11 | Babcock Hitachi Kk | Method and instrument for image type traffic flow measurement |
| CN1145127A (en) * | 1994-04-08 | 1997-03-12 | 特拉菲肯公司 | Device and method for monitoring traffic volume |
| CN1197255A (en) * | 1997-04-18 | 1998-10-28 | 三星电子株式会社 | Device and method for determining vehicle class |
| CN1350941A (en) * | 2000-10-27 | 2002-05-29 | 新鼎系统股份有限公司 | Method and device for moving vehicle image tracking |
| CN1464487A (en) * | 2002-06-03 | 2003-12-31 | 昆明利普机器视觉工程有限公司 | A traffic flow detection system based on visual vehicle optical characteristic recognition and matching |
| US20040131233A1 (en) * | 2002-06-17 | 2004-07-08 | Dorin Comaniciu | System and method for vehicle detection and tracking |
| JP2004005726A (en) * | 2003-07-24 | 2004-01-08 | Fujitsu Ltd | Traffic flow monitoring system for moving objects |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1909012A (en) | 2007-02-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112800860B (en) | High-speed object scattering detection method and system with coordination of event camera and visual camera | |
| KR101589711B1 (en) | Methods and systems for processing of video data | |
| CN110298300B (en) | Method for detecting vehicle illegal line pressing | |
| CN104408932B (en) | A kind of drunk driving vehicle detecting system based on video monitoring | |
| CN100544446C (en) | Real-time Motion Detection Method for Video Surveillance | |
| CN201255897Y (en) | Human flow monitoring device for bus | |
| US20110164789A1 (en) | Detection of vehicles in images of a night time scene | |
| CN112270310A (en) | Cross-camera pedestrian multi-target tracking method and device based on deep learning | |
| CN100435160C (en) | A video image processing method and system for real-time collection of traffic information | |
| CN102496282A (en) | Traffic intersection signal light state identification method based on RGB color transformation | |
| CN107133610B (en) | Visual detection and counting method for traffic flow under complex road conditions | |
| CN107038411A (en) | A kind of Roadside Parking behavior precise recognition method based on vehicle movement track in video | |
| CN107516423B (en) | Video-based vehicle driving direction detection method | |
| CN103366598B (en) | A kind of vehicle parking is to position detecting system and detection method | |
| CN103778790B (en) | A kind of vehicle flowrate square wave statistic law based on video sequence | |
| CN110378935B (en) | Parabolic identification method based on image semantic information | |
| Pletzer et al. | Robust traffic state estimation on smart cameras | |
| CN111583341A (en) | Pan-tilt camera displacement detection method | |
| Xia et al. | An automobile detection algorithm development for automated emergency braking system | |
| CN105447496A (en) | Docking airplane model identification and verification method and system based on machine vision | |
| CN115862061A (en) | Human body detection method, system, device and medium based on RGB-D image | |
| Lee et al. | Fast people counting using sampled motion statistics | |
| Ramalingam et al. | Vehicle detection for traffic flow analysis | |
| Yu et al. | Length-based vehicle classification in multi-lane traffic flow | |
| JP6060947B2 (en) | Moving body speed calculation device, computer program, and moving body speed calculation method |
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: 20081119 Termination date: 20150805 |
|
| EXPY | Termination of patent right or utility model |