[go: up one dir, main page]

CN204884166U - Regional violating regulations parking monitoring devices is stopped to traffic taboo - Google Patents

Regional violating regulations parking monitoring devices is stopped to traffic taboo Download PDF

Info

Publication number
CN204884166U
CN204884166U CN201520300846.7U CN201520300846U CN204884166U CN 204884166 U CN204884166 U CN 204884166U CN 201520300846 U CN201520300846 U CN 201520300846U CN 204884166 U CN204884166 U CN 204884166U
Authority
CN
China
Prior art keywords
industrial control
monitoring device
control computer
computer
image
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
CN201520300846.7U
Other languages
Chinese (zh)
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.)
Tianjin University
Original Assignee
Tianjin University
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 Tianjin University filed Critical Tianjin University
Priority to CN201520300846.7U priority Critical patent/CN204884166U/en
Application granted granted Critical
Publication of CN204884166U publication Critical patent/CN204884166U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Traffic Control Systems (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

本实用新型公开了一种交通禁停区域违章停车监测装置,包括,高清摄像机、补光灯、工业控制计算机、网络设备和计算机监测装置;高清摄像机与补光灯设置安装在监测路段的龙门架上,工业控制计算机设置安装在路旁的供电箱内,高清摄像机、补光灯与工业控制计算机通过网线电连接,工业控制计算机经网络设备与计算机监测装置通过网线电连接,工业控制计算机接收高清摄像机的拍摄数据,同时进行违章车辆的车牌识别;有益效果是,由于采用工业控制计算机,有效滤除树木、行人和其他机动车辆的干扰,抗噪性能佳;另外,经优化的图像,可同时监测四个车道的黄色网格线区域的违章停车行为,识别率、准确率、实时性能高。

The utility model discloses a monitoring device for illegal parking in a traffic prohibited area, which comprises a high-definition camera, a supplementary light, an industrial control computer, network equipment, and a computer monitoring device; Above, the industrial control computer is set and installed in the power supply box beside the road. The high-definition camera, supplementary light and the industrial control computer are electrically connected through the network cable. The industrial control computer is electrically connected with the computer monitoring device through the network equipment. The data captured by the camera is used to recognize the license plate of illegal vehicles at the same time; the beneficial effect is that, due to the use of industrial control computers, the interference of trees, pedestrians and other motor vehicles can be effectively filtered out, and the anti-noise performance is good; in addition, the optimized image can be simultaneously Monitor the illegal parking behavior in the yellow grid line area of the four lanes, with high recognition rate, accuracy rate and real-time performance.

Description

一种交通禁停区域违章停车监测装置A monitoring device for illegal parking in traffic prohibited areas

技术领域 technical field

本实用新型涉及一种交通违章停车监测装置;特别是涉及一种黄色网格线内交通违章停车的监测装置。 The utility model relates to a monitoring device for traffic violation parking, in particular to a monitoring device for traffic violation parking within yellow grid lines.

背景技术 Background technique

交通违章停车行为,是造成交通事故,交通拥堵的主要原因之一,也是交通管理、处罚的重点之一。黄色网格线是一种地面交通指示标线,用以标示禁止以任何原因停车的区域,视需要划设于易发生临时停车造成堵塞的交叉路口、出入口及其它需要的位置。在一些行政机关、医院、学校、公交枢纽站及小区等重要单位的出、入口施划了黄色网格线,当事人驾车途经黄色网格线时,不得以任何理由将车辆停放在网格线上(包括停车等候交通信号灯),以免影响车辆的通行,造成交通堵塞。针对该情况,交通管理部门在道路交口中央部分区域上有规划出黄色网格线标线,部分地区交管部门规定:车辆在黄色网格线区域内的静止停留时间不得超过10秒种,以免影响其它方向车辆的正常行驶。为避免交通堵塞,以及交通拥堵造成的安全隐患,因此,建立黄色网格线区域内交通违章停车自动监测装置非常必要。基于视频监控的违章停车监测方法具有效率高、实时性能好、成本低、证据易于收集等诸多优点。目前,基于视频监控实现的对目标的提取算法,由于没有对行人和其他机动车辆等目标进行滤除,在很大程度上导致误报警率的增加。 Traffic violation parking behavior is one of the main causes of traffic accidents and traffic congestion, and it is also one of the key points of traffic management and punishment. The yellow grid line is a kind of ground traffic indicator line, which is used to mark the area where parking for any reason is prohibited, and it can be set at intersections, entrances and exits, and other necessary positions where temporary parking is likely to cause congestion, as required. Yellow grid lines are drawn at the exits and entrances of some important units such as administrative agencies, hospitals, schools, bus hubs, and residential areas. When the parties drive through the yellow grid lines, they must not park their vehicles on the grid lines for any reason. (including parking and waiting for traffic lights), so as not to affect the passage of vehicles and cause traffic jams. In response to this situation, the traffic management department has planned yellow grid line markings in the central part of the road intersection. The traffic control department in some areas stipulates that vehicles should not stay in the yellow grid line area for more than 10 seconds, so as not to affect traffic. Normal driving of vehicles in other directions. In order to avoid traffic jams and potential safety hazards caused by traffic jams, it is very necessary to establish an automatic monitoring device for traffic violations and parking in the yellow grid line area. The illegal parking monitoring method based on video surveillance has many advantages such as high efficiency, good real-time performance, low cost, and easy collection of evidence. At present, the target extraction algorithm based on video surveillance does not filter out pedestrians and other motor vehicles, which largely leads to an increase in the false alarm rate.

发明内容 Contents of the invention

本实用新型所要解决的技术问题是,提供一种交通禁停区域内的违章停车监测装置。 The technical problem to be solved by the utility model is to provide a monitoring device for illegal parking in a traffic parking prohibited area.

本实用新型所采用的技术方案是,一种交通禁停区域内的违章停车监测装置,包括,高清摄像机、补光灯、工业控制计算机、网络设备和计算机监测装置;所述高清摄像机与补光灯设置安装在监测路段的龙门架上,所述工业控制计算机设置安装在路旁的供电箱内,所述高清摄像机、补光灯与工业控制计算机通过网线电连接,所述工业控制计算机经网络设备与计算机监测装置通过网线电连接,所述工业控制计算机接收高清摄像机的拍摄数据,同时进行违章车辆的车牌识别。 The technical scheme adopted by the utility model is a monitoring device for illegal parking in a traffic prohibited area, including a high-definition camera, a supplementary light, an industrial control computer, network equipment and a computer monitoring device; the high-definition camera and supplementary light The lights are set and installed on the gantry of the monitoring road section, the industrial control computer is set and installed in the power supply box beside the road, the high-definition camera, the supplementary light and the industrial control computer are electrically connected through the network cable, and the industrial control computer is connected through the network. The equipment is electrically connected to the computer monitoring device through a network cable, and the industrial control computer receives the shooting data of the high-definition camera, and simultaneously performs license plate recognition of illegal vehicles.

所述的网络设备为光端机和网络;使用一台高清摄像机即可监测四个车道上的车辆。 The network equipment described is an optical transceiver and a network; vehicles on four lanes can be monitored by using one high-definition camera.

本实用新型的有益效果是,由于采用工业控制计算机,有效滤除树木、行人和其他机动车辆的干扰,抗噪性能佳;另外,经优化的图像,可同时监测四个车道的黄色网格线区域的违章停车行为,识别率、准确率、实时性能高。 The beneficial effect of the utility model is that, due to the use of industrial control computers, the interference of trees, pedestrians and other motor vehicles can be effectively filtered out, and the anti-noise performance is good; in addition, the optimized image can monitor the yellow grid lines of four lanes at the same time The illegal parking behavior in the area has high recognition rate, accuracy rate and real-time performance.

附图说明 Description of drawings

图1是本实用新型违章停车监测装置框图; Fig. 1 is a block diagram of the utility model illegal parking monitoring device;

图2是本实用新型违章停车监测软件系统组成框图; Fig. 2 is a composition block diagram of the utility model illegal parking monitoring software system;

图3是本实用新型利用背景差分进行车辆目标检测的原理图; Fig. 3 is a schematic diagram of the utility model using background difference to detect vehicle targets;

图4是本实用新型消除图像抖动过程中基于图像匹配的示意图; Fig. 4 is the schematic diagram based on image matching in the process of eliminating image shaking of the utility model;

图5a、5b是本实用新型车辆违章识别算法流程图; Fig. 5a, 5b are the flow charts of the vehicle violation identification algorithm of the present invention;

图6是本实用新型匹配跟踪算法流程图; Fig. 6 is a flow chart of the matching tracking algorithm of the present invention;

图7本实用新型建立违章嫌疑数组的流程图。 Fig. 7 is a flow chart of the utility model establishing an array of suspected violations.

图中: In the picture:

10、高清摄像机20、补光灯 10. HD camera 20. Fill light

30、工业控制计算机40、网络设备 30. Industrial control computer 40. Network equipment

50、计算机监测装置。 50. Computer monitoring device.

具体实施方式 Detailed ways

下面结合附图和具体实施方式对本实用新型作进一步详细说明: Below in conjunction with accompanying drawing and specific embodiment the utility model is described in further detail:

如图1所示,本实用新型黄色网格线区域内交通违章停车监测装置,包括,高清摄像机10、补光灯20、工业控制计算机30、网络设备40和计算机监测装置50;所述高清摄像机10与补光灯20设置安装在监测路段的龙门架上,所述工业控制计算机30设置安装在路旁的供电箱内,所述高清摄像机10、补光灯20与工业控制计算机30通过网线电连接,所述工业控制计算机30经网络设备40与计算机监测装置50通过网线电连接。所述工业控制计算机30接收高清摄像机10的拍摄数据,同时进行违章车辆的车牌识别。高清摄像机10包括拍摄远景和近景,远景以整个黄色网格线区域为主要场景,近景针对违章的一辆机动车的包括牌照的前部或后部图像。摄像机焦距调整应满足对黄网格边界处区域的清晰拍摄,便于清晰抓拍车辆片牌照;保证监视的视场能够覆盖行使的车道。所述的网络设备40为光端机和网络;使用一台高清摄像机10即可监测四个车道上的车辆。 As shown in Figure 1, the traffic violation parking monitoring device in the yellow grid line area of the utility model includes a high-definition camera 10, a supplementary light 20, an industrial control computer 30, a network device 40 and a computer monitoring device 50; the high-definition camera 10 and supplementary light 20 are set and installed on the gantry of the monitoring road section, and the industrial control computer 30 is set and installed in the power supply box beside the road. The industrial control computer 30 is electrically connected with the computer monitoring device 50 through the network equipment 40 through the network cable. The industrial control computer 30 receives the shooting data of the high-definition camera 10, and at the same time performs the license plate recognition of the violating vehicle. The high-definition camera 10 includes shooting a distant view and a close view, the distant view takes the entire yellow grid line area as the main scene, and the close view includes a front or rear image of a license plate for a motor vehicle that violates regulations. The focal length of the camera should be adjusted to meet the clear shooting of the area at the border of the yellow grid, so as to clearly capture the license plate of the vehicle; ensure that the field of view of the surveillance can cover the driving lane. The network device 40 is an optical transceiver and a network; a high-definition camera 10 can be used to monitor the vehicles on the four lanes.

图2是本实用新型违章停车监测装置的软件组成框图,如图2所示,所述计算机监测装置50采用的软件,主要包括,摄像机控制模块、违章停车检测功能模块和分区功能模块;其中,摄像机控制模块,将待检测地点的实时画面进行采集,将图像数据传输到工业控制计算机30的显示卡和内存中,可直接显示在屏幕上或通过位图函数将图像显示在计算机的屏幕上。违章停车检测功能模块,对采集的图像进行处理,包括,背景提取与更新、图像分割与识别和违章检测与记录。分区功能模块,对其中任意一张图片进行分块操作,每一块将作为后续图像处理和识别单位,能够同时实现四车道多个区域同时检测;还包括,总控制进程模块、图片加密与注释功能模块和违章记录生成模块。 Fig. 2 is the software composition block diagram of monitoring device for parking violations of the present invention, as shown in Fig. 2, the software that described computer monitoring device 50 adopts mainly comprises, camera control module, parking violation detection function module and partition function module; Wherein, The camera control module collects the real-time pictures of the location to be detected, and transmits the image data to the display card and memory of the industrial control computer 30, and can directly display the image on the screen or display the image on the computer screen through a bitmap function. The illegal parking detection function module processes the collected images, including background extraction and update, image segmentation and recognition, and illegal detection and recording. Partition function module, which divides any one of the pictures into blocks, and each block will be used as a subsequent image processing and recognition unit, which can realize simultaneous detection of four lanes and multiple areas at the same time; it also includes the general control process module, picture encryption and annotation functions module and violation record generation module.

总控制进程模块,主要用来在工作时段内调用高清摄像机10的控制和违章停车检测功能模块,并实时检测目标硬盘的容量变化,如果硬盘容量不足及时清理过期数据文件。 The overall control process module is mainly used to call the control and illegal parking detection function modules of the high-definition camera 10 during working hours, and detects the capacity change of the target hard disk in real time, and clears outdated data files in time if the hard disk capacity is insufficient.

图片分区功能模块,主要完成图片的分区操作。将每张图片分成一定数量矩形区域块,每一块将作为后续图像处理和识别单位,此种方案不仅能有效提高识别效率,而且,能同时实现四个车道的多个区域同时检测。 The picture partition function module mainly completes the picture partition operation. Divide each picture into a certain number of rectangular blocks, and each block will be used as a subsequent image processing and recognition unit. This scheme can not only effectively improve the recognition efficiency, but also realize simultaneous detection of multiple areas in four lanes.

图片加密和注释功能模块主要完成在最终存取的违章记录上完成隐形水印加密和时间、地点的注释,以防止违章记录被后期篡改。顶部的字体部分,程序中自动读取配置文件中的地点,生成TXT格式的汉子点阵。 The image encryption and annotation function module mainly completes the invisible watermark encryption and annotation of time and place on the final accessed violation records to prevent the violation records from being tampered with later. For the font part at the top, the program automatically reads the location in the configuration file and generates a Hanzi dot matrix in TXT format.

实现黄色网格线内违章停车监测装置的方法,包括以下步骤, The method for realizing the illegal parking monitoring device within the yellow grid line includes the following steps,

A、背景提取与更新,用直方图法提取系列运动图像帧的背景; A, background extraction and update, use the histogram method to extract the background of a series of moving image frames;

B、进行图像分割与识别, B. Carry out image segmentation and recognition,

对A中图像进行灰度化处理,即,只对灰度图像进行处理; Perform grayscale processing on the image in A, that is, only grayscale images are processed;

当前帧减去背景帧,得到运动物体区域,并用矩形框标记出运动车辆和存在的阴影区域; The background frame is subtracted from the current frame to obtain the moving object area, and the moving vehicle and the existing shadow area are marked with a rectangular frame;

将差分图转换为二值图; Convert the difference map to a binary map;

利用二值形态学算法,除去白色像素数目少于800的8连通区域; Use the binary morphology algorithm to remove 8-connected regions with less than 800 white pixels;

C、进行违章检测与记录, C. To detect and record violations,

根据B对目标进行模式匹配,得到模式匹配区域; Perform pattern matching on the target according to B to obtain the pattern matching area;

下一幅图像输入时,判断模式匹配区域中像素的变化,目标车辆像素变化数量小于30%,认定该车辆处于停止状态,则将该车信息加入违章链表数组,并更新计数器;当时间计数器计数T<10时,如果车辆位置发生移动,则清除该车违章档案信息;当时间计数器计数T>10秒时,置违章标志为1,记下违章时间,标记该违章车辆,最后清除违章链表记录;当该车辆即将驶离区域时,启动摄像头近景,抓拍车辆牌照,将车辆的十五秒钟违章停车的动态录像和近景图片保存在硬盘中。 When the next image is input, judge the change of the pixels in the pattern matching area. If the number of changes in the pixels of the target vehicle is less than 30%, it is determined that the vehicle is in a stopped state, and the vehicle information is added to the violation linked list array, and the counter is updated; when the time counter counts When T<10, if the position of the vehicle moves, clear the violation file information of the vehicle; when the time counter counts T>10 seconds, set the violation flag to 1, record the violation time, mark the violation vehicle, and finally clear the violation list record ; When the vehicle is about to leave the area, start the close-range view of the camera, capture the vehicle license plate, and save the dynamic video and close-range pictures of the 15-second illegal parking of the vehicle in the hard disk.

用直方图法提取系列运动图像帧的背景,机动车辆在一般道路正常行驶情况下,在图像中路面上某一点被机动车长时间覆盖的可能性不大,形成亮度不同的可能性就高,因此,统计在一段时间内各像素点上不同亮度出现的次数,其中出现次数最多的亮度值,即直方图中的最大值就是路面上这个像素的本身的亮度值;直方图展示直观、便于分析。 Use the histogram method to extract the background of a series of moving image frames. When a motor vehicle is driving on a normal road, it is unlikely that a certain point on the road surface in the image will be covered by the motor vehicle for a long time, and the possibility of different brightness is high. Therefore, count the number of occurrences of different brightnesses on each pixel within a period of time, and the brightness value with the most occurrences, that is, the maximum value in the histogram is the brightness value of the pixel itself on the road surface; the histogram display is intuitive and easy to analyze .

图3是本实用新型利用背景差分进行车辆目标检测的原理图。设Bi为图像背景,fi为当前帧图像,差分图像为Di,则: Fig. 3 is a schematic diagram of the utility model for detecting vehicle targets by using background difference. Let B i be the image background, f i be the current frame image, and the difference image be D i , then:

Di(x,y)=|fi(x,y)-Bi-1(x,y)| D i (x,y)=|f i (x,y)-B i-1 (x,y)|

设Ri为差分后二值化图像。对Ri进行连通性分析,当某一连通的区域的面积大于一定的阈值,则认为检测到目标出现,并认为这个连通的区域就是检测到的目标图像。 Let R i be the post-difference binarized image. Carry out connectivity analysis on R i , when the area of a certain connected area is greater than a certain threshold, it is considered that the detected target appears, and this connected area is considered to be the detected target image.

其中,T为设定的阈值。 Among them, T is the set threshold.

首先,对图像进行灰度化处理,即,只对灰度图像进行处理。为了辨识和分析目标,需要将有关区域分离提取出来,在此基础上对区域进一步利用。把图像分成各具特性的区域并提取出感兴趣目标的技术和过程就是图像分割。本实用新型的背景差法基于运动视频,首先,利用直方图法得到运动图像背景,然后,用当前帧减去背景帧,得到运动物体区域,并用矩形框标记出感兴趣区域,即,运动车辆和可能存在的阴影,在以后的运算中,只针对这一小部分图像进行,不仅直观明确,而且,大大的减少了计算量;然后,采用迭代阈值分割法将差分图转换为二值图;得到二值图后,实际道路中干扰很多,包括自然场景(树叶等)和行人等干扰,二值图中噪声影响很大,对此,采用二值形态学的算法,即,除去白色像素数目少于800的8连通区域,从而除去噪声干扰。 First, grayscale processing is performed on the image, that is, only grayscale images are processed. In order to identify and analyze the target, it is necessary to separate and extract the relevant area, and further use the area on this basis. The technology and process of dividing an image into regions with different characteristics and extracting objects of interest is image segmentation. The background difference method of the present utility model is based on motion video, at first, utilizes the histogram method to obtain the background of the motion image, then, subtract the background frame from the current frame to obtain the moving object area, and use a rectangular frame to mark the area of interest, that is, the moving vehicle And possible shadows, in the subsequent calculations, only for this small part of the image, not only intuitive and clear, but also greatly reduce the amount of calculation; then, use the iterative threshold segmentation method to convert the difference image into a binary image; After the binary image is obtained, there are many disturbances on the actual road, including natural scenes (leaves, etc.) and pedestrians, etc. The noise in the binary image has a great influence. For this, the algorithm of binary morphology is used, that is, the number of white pixels is removed Less than 800 8-connected regions to remove noise interference.

图4是本实用新型消除图像抖动过程中基于图像匹配的示意图;如图4所示,车辆监控系统中的图像抖动会严重影响车辆的识别和跟踪。本实用新型利用软件来消除图像抖动。为了不影响系统的实时性,本实用新型采用基于图像匹配的方法,对于只含有平移和微小旋转的图像序列具有较高的检测精度。 Fig. 4 is a schematic diagram of the utility model based on image matching in the process of eliminating image jitter; as shown in Fig. 4 , the image jitter in the vehicle monitoring system will seriously affect the identification and tracking of the vehicle. The utility model utilizes software to eliminate image shaking. In order not to affect the real-time performance of the system, the utility model adopts a method based on image matching, which has high detection accuracy for image sequences that only contain translation and small rotation.

在进行抖动消除之前需要将每帧彩色图像转换为灰度图像。假设每帧图像水平、垂直方向像素数分别为S、T。建立基准帧坐标系OXY,原点位于基准帧左上角,X轴水平向右,Y轴垂直向下。实心框代表基准帧中匹配区域,虚线框代表搜索框,搜索框在一定范围内移动寻找匹配区域。开始处理前将匹配区域在基准帧中的像素灰度值及左上角坐标(x0,y0)保存到内存中,并且设置偏移偏移量为(δxy)初值是(0,0),运动趋势为(βxy),βx和βy取+1时分别表示向右、向下运动,取-1时分别表示向左、向上运动;运动趋势的初值可以任意选取,假设为(+1,+1)。开始处理后,假设对任一帧图像已经求得上一帧中匹配区域的(δxy)和(βxy),搜索最佳匹配的步骤是: Each frame of color image needs to be converted to grayscale image before dithering. Assume that the number of pixels in the horizontal and vertical directions of each frame of image is S and T respectively. Establish the reference frame coordinate system OXY, the origin is located in the upper left corner of the reference frame, the X axis is horizontal to the right, and the Y axis is vertically downward. The solid box represents the matching area in the reference frame, the dashed box represents the search box, and the search box moves within a certain range to find the matching area. Before starting processing, save the pixel gray value of the matching area in the reference frame and the coordinates (x 0 , y 0 ) of the upper left corner to the memory, and set the offset to (δ x , δ y ). The initial value is ( 0,0), the movement trend is (β x , β y ), when β x and β y take +1, they represent rightward and downward movement, respectively, and when they take -1, they represent leftward and upward movement respectively; the initial movement trend The value can be chosen arbitrarily, assuming (+1, +1). After starting the processing, assuming that (δ x , δ y ) and (β x , β y ) of the matching area in the previous frame have been obtained for any frame of image, the steps to search for the best match are:

①根据上一帧的偏移量预测搜索起点。令第1个子图左上角在当前帧坐标系里的坐标(X,Y)满足X=x0x,Y=y0y然后按照绝对差值和法求其与匹配区域的相似程度测度函数值,即 ① Predict the search starting point according to the offset of the previous frame. Make the coordinates (X, Y) of the upper left corner of the first sub-image in the current frame coordinate system satisfy X=x 0x , Y=y 0y and then calculate its similarity with the matching area according to the absolute difference sum method The value of the degree measure function, that is,

DD. (( Xx ,, YY )) == &Sigma;&Sigma; xx == 00 Mm -- 11 &Sigma;&Sigma; ythe y == 00 NN -- 11 || gg (( xx ,, ythe y )) -- gg 00 (( xx ,, ythe y )) || -- -- -- (( 11 ))

式中,(X,Y)为子图左上角在当前帧坐标系里的坐标;D(X,Y)为子图与匹配区域的相似程度测度函数值;M、N分别为匹配区域水平、垂直方向像素数;(X,Y)为子图与匹配区域中的对应像素在各自坐标系里的坐标;g(x,y)和g0(x,y)分别为子图与匹配区域中对应像素的灰度。 In the formula, (X, Y) is the coordinate of the upper left corner of the sub-image in the current frame coordinate system; D (X, Y) is the similarity measure function value between the sub-image and the matching area; M, N are the matching area level, The number of pixels in the vertical direction; (X, Y) are the coordinates of the corresponding pixels in the sub-image and the matching area in their respective coordinate systems; g(x, y) and g 0 (x, y) are the coordinates of the sub-image and the matching area, respectively. corresponds to the gray level of the pixel.

②进行水平方向的搜索。Y保持上一步的值不变,根据βx预测下一个子图的X,即令X=X+βx,按照式(1)重新计算测度函数值。若测度函数值变小或不变,说明搜索方向正确,根据βx规定的方向继续搜索,直到测度函数值即将变大。若测度函数值变大,说明搜索方向错误,退回原位置,βx=-βx,并根据新的βx规定的方向搜索,直到测度函数值即将变大。在搜索过程中若超出搜索范围则停止,认为搜索失败。 ② Search horizontally. Y keeps the value of the previous step unchanged, and predicts X of the next subgraph according to β x , that is, X=X+β x , and recalculates the value of the measure function according to formula (1). If the value of the measure function becomes smaller or unchanged, it means that the search direction is correct, and the search is continued according to the direction specified by β x until the value of the measure function is about to increase. If the value of the measure function becomes larger, it means that the search direction is wrong, return to the original position, β x = -β x , and search according to the direction specified by the new β x until the value of the measure function is about to become larger. If it exceeds the search range during the search, it will stop, and the search will be considered as a failure.

③进行垂直方向的搜索。类似于步骤②,不同的是将X、Y和βx ③ Search in the vertical direction. Similar to step ②, the difference is that X, Y and β x

分别换成Y、X和βyReplaced by Y, X and β y , respectively.

④重复步骤②和步骤③,直到X和Y不再改变。若重复次数超过给定值,也认为搜索失败。允许的重复次数需要根据运行时间和处理效果综合确定。 ④ Repeat steps ② and ③ until X and Y do not change. If the number of repetitions exceeds the given value, the search is also considered to have failed. The allowable number of repetitions needs to be comprehensively determined based on the running time and processing effect.

图5a和图5b是本实用新型车辆违章识别算法流程图;如图5a和图5b所示,当前帧与背景差分得到变化区域,生成二值化模板去除噪声,利用形态学标记操作监测出车辆位置,在下一帧进行匹配,判断是否匹配成功,当匹配成功时计数器开始计数,当大于设定值时判定违章并输出结果;当计数器小于设定值时返回继续进行匹配;匹配不成功时返回变化区域,通过上述方法进行循环识别。 Figure 5a and Figure 5b are the flow charts of the vehicle violation recognition algorithm of the utility model; Position, match in the next frame, and judge whether the match is successful. When the match is successful, the counter starts counting. When it is greater than the set value, it judges the violation and outputs the result; when the counter is less than the set value, it returns to continue matching; when the match is unsuccessful, it returns The change area is cyclically identified by the above method.

在黄色网格线区域内检测出车辆后,对是否违章进行判定,判断车辆违章之后,则进行车辆的跟踪,在驶离拍摄区域时抓拍车辆拍照。 After the vehicle is detected in the yellow grid line area, it is judged whether it violates the regulations. After the vehicle is judged to be in violation, the vehicle is tracked, and the vehicle is captured and photographed when it leaves the shooting area.

图6是本实用新型匹配跟踪算法流程图;如图6所示,对得到的二值化图像进行标记,获得若干目标区域。对每一个目标区域求取外接矩形,得到模式匹配区域,求取矩形中心点坐标。下一幅图像输入时,判断目标区域中像素数量的变化,如果像素数量的变化小于阈值,该车辆处于停止状态,开始计时,迭代匹配,当计数器到达一定时间时,标记车辆违章,对车辆进行跟踪,本技术方案采用像素的变化数量小于30%时,车辆处于停止状态,时间计数器达到10秒时,置违章标志为1,记下违章时间,标记该违章车辆;黄色网格线区域内违章监测装置采用近景,远景拍摄配合工作,跟踪监测目标中心点的变化,如果中心点接近黄网格边界,则开启摄像头近景模式拍摄车头近景,进行牌照识别,保存结果,作为处罚肇事车辆依据。违章记录包含:违章地点、违章时间、违章类型、违章车辆牌照号、一段违章动态全景视频和近景车头或车尾牌照图像。 Fig. 6 is a flow chart of the matching tracking algorithm of the present invention; as shown in Fig. 6, the obtained binarized image is marked to obtain several target areas. Calculate the circumscribed rectangle for each target area, obtain the pattern matching area, and calculate the coordinates of the center point of the rectangle. When the next image is input, judge the change in the number of pixels in the target area. If the change in the number of pixels is less than the threshold, the vehicle is in a stopped state, start timing, and iteratively match. When the counter reaches a certain time, mark the vehicle as violating the rules, and check the vehicle Tracking, when the number of pixel changes in this technical solution is less than 30%, the vehicle is in a stopped state, and when the time counter reaches 10 seconds, set the violation flag to 1, record the violation time, and mark the violation vehicle; violations in the yellow grid line area The monitoring device uses close-up and long-range shooting to work together to track and monitor changes in the center point of the target. If the center point is close to the boundary of the yellow grid, turn on the camera close-up mode to take a close-up view of the front of the vehicle, perform license plate recognition, and save the results as a basis for punishing the vehicle that caused the accident. Violation records include: violation location, violation time, violation type, violation vehicle license plate number, a dynamic panoramic video of violations and close-up images of front or rear license plates.

高清摄像机10对准路口禁止停车的黄色网格线区域,通过摄像头采集监测图像,由分区功能模块对其中任意一张图片进行分块操作,每一块将作为后续图像处理和识别单位,能有效提高识别效率,且能同时实现四车道多个区域同时检测。在分区操作界面下,程序自动生成7分区或11分区。如果示例分区不满足要求,用户可以手动改写分区模式,输入分区数,拖动方框,以恰好覆盖检测区域为宜。分区完成,程序自动保存分区信息,写入配置文件。 The high-definition camera 10 is aimed at the yellow grid line area where parking is prohibited at the intersection, and the monitoring image is collected through the camera, and any one of the pictures is divided into blocks by the partition function module, and each block will be used as a subsequent image processing and recognition unit, which can effectively improve Recognition efficiency, and can realize simultaneous detection of multiple areas in four lanes at the same time. Under the partition operation interface, the program automatically generates 7 partitions or 11 partitions. If the sample partition does not meet the requirements, the user can manually rewrite the partition mode, enter the number of partitions, and drag the box to just cover the detection area. After the partition is completed, the program automatically saves the partition information and writes it into the configuration file.

由分区功能模块对其中任意一张图片进行分块操作,每一块将作为后续图像处理和识别单位。设分区数设置为N,则在程序中建立N维链表数组R(N),其中R(i)为对应第i个分区中的违章车辆信息档案,链表中保留目标区域(矩形区域)第一次出现的位置坐标、像素均值和车辆滞留时间T。 Any one of the pictures is divided into blocks by the partition function module, and each block will be used as a subsequent image processing and recognition unit. Assuming that the number of partitions is set to N, an N-dimensional linked list array R(N) is established in the program, wherein R(i) is the information file of illegal vehicles in the i-th partition, and the target area (rectangular area) is reserved first in the linked list. The location coordinates, pixel mean value and vehicle residence time T of the first occurrence.

原始检测区域的位置坐标和像素均值求取的具体过程为:首先利用OpenCV库提供的cvFindContours()函数获得这个二值化图像的轮廓,然后用cvBoundingRect()函数计算出这个轮廓的“外接矩形”,这个矩形记为rect,那么这个矩形的位置和长宽分别为X=rect.x,Y=rect.y,M=rect.width,N=rect.height。位置坐标选取矩形区域中心点坐标,记位置坐标为(px,py),计算公式如式2 The specific process of obtaining the position coordinates and pixel mean value of the original detection area is as follows: first, use the cvFindContours() function provided by the OpenCV library to obtain the contour of the binary image, and then use the cvBoundingRect() function to calculate the "circumscribed rectangle" of the contour , this rectangle is recorded as rect, then the position, length and width of this rectangle are respectively X=rect.x, Y=rect.y, M=rect.width, N=rect.height. Position coordinates Select the coordinates of the center point of the rectangular area, record the position coordinates as (p x , p y ), the calculation formula is as in formula 2

pp xx == Xx ++ 11 22 ** Mm pp ythe y == YY ++ 11 22 ** NN -- -- -- (( 22 ))

矩形区域像素均值C的求取如式3所示,其中g(x,y)为点(x,y)处的像素值。 The calculation of the average value C of pixels in a rectangular area is shown in Equation 3, where g(x, y) is the pixel value at point (x, y).

CC == 11 Mm ** NN &Sigma;&Sigma; xx == Xx Mm -- Xx &Sigma;&Sigma; ythe y == YY NN -- YY gg (( xx ,, ythe y )) -- -- -- (( 33 ))

程序中循环计算每一帧图像目标区域的位置坐标和像素均值,若像素均值变化小于30%时,认为车辆处于停止状态,时间计数T自增1,直至T=10。 The program loops to calculate the position coordinates and pixel mean value of the target area of each frame image. If the pixel mean value changes less than 30%, the vehicle is considered to be in a stopped state, and the time count T is incremented by 1 until T=10.

当T>10时,标记该车辆,判为违章,当车辆中心点接近黄色网格线区域边缘时,启动摄像机近景拍照,同时清除保留该车信息的链表信息;进行车牌照识别,将车牌信息保存至程序中设置的静态字符数组中,以便其余的分区进行比对,避免重复识别;程序中自动生成以违章时间地点和违章车牌号命名的文件夹,确定车辆违章后,向该文件夹中拷贝指定数量的违章过程图像和图片作为事后执法依据;程序中自动生成一张由车辆违章过程中四张图片拼接成的图片,如图7所示,可以作为事后违章验证图片。四张图片分别为包含车牌照的近景图、车辆开始违章停车图、确定违章图(第10秒)、违章中间时刻图。 When T>10, mark the vehicle and judge it as a violation. When the center point of the vehicle is close to the edge of the yellow grid line area, start the camera to take a close-up photo, and clear the linked list information that retains the vehicle information; carry out license plate recognition, and the license plate information Save it to the static character array set in the program so that the rest of the partitions can be compared to avoid repeated identification; the program automatically generates a folder named after the time and place of the violation and the license plate number of the violation. Copy a specified number of images and pictures of the violation process as the basis for law enforcement afterwards; the program automatically generates a picture composed of four pictures during the vehicle violation process, as shown in Figure 7, which can be used as a post-event verification picture. The four pictures are the close-up picture including the license plate, the picture of the vehicle starting to stop illegally, the picture of confirming the violation (the 10th second), and the picture of the middle moment of the violation.

本实用新型由于采用工业控制计算机,有效滤除树木、行人和其他机动车辆的干扰,抗噪性能佳;另外,经优化的图像,可同时监测四个车道的黄色网格线区域的违章停车行为,识别率、准确率、实时性能高。 Because the utility model adopts an industrial control computer, it can effectively filter out the interference of trees, pedestrians and other motor vehicles, and has good anti-noise performance; in addition, the optimized image can simultaneously monitor the illegal parking behavior in the yellow grid line area of four lanes , High recognition rate, accuracy rate and real-time performance.

Claims (2)

1.一种交通禁停区域违章停车监测装置,其特征在于,包括,高清摄像机(10)、补光灯(20)、工业控制计算机(30)、网络设备(40)和计算机监测装置(50);所述高清摄像机(10)与补光灯(20)设置安装在监测路段的龙门架上,所述工业控制计算机(30)设置安装在路旁的供电箱内,所述高清摄像机(10)、补光灯(20)与工业控制计算机(30)通过网线电连接,所述工业控制计算机(30)经网络设备(40)与计算机监测装置(50)通过网线电连接,所述工业控制计算机(30)接收高清摄像机(10)的拍摄数据,同时进行违章车辆的车牌识别。 1. A monitoring device for violating parking in traffic no-parking areas, comprising, a high-definition video camera (10), a fill light (20), an industrial control computer (30), a network device (40) and a computer monitoring device (50) ); the high-definition camera (10) and supplementary light (20) are set and installed on the gantry of the monitoring road section, and the industrial control computer (30) is set and installed in the power supply box by the roadside, and the high-definition camera (10 ), the fill light (20) is electrically connected with the industrial control computer (30) through the network cable, and the industrial control computer (30) is electrically connected with the computer monitoring device (50) through the network equipment (40), and the industrial control computer (30) is electrically connected with the computer monitoring device (50) through the network cable. The computer (30) receives the shooting data of the high-definition camera (10), and simultaneously performs license plate recognition of illegal vehicles. 2.根据权利要求1所述的交通禁停区域违章停车监测装置,其特征在于,所述的网络设备(40)为光端机和网络;使用一台高清摄像机(10)即可监测四个车道上的车辆。 2. The illegal parking monitoring device in a traffic no-stop area according to claim 1, wherein said network equipment (40) is an optical transceiver and a network; a high-definition camera (10) can be used to monitor four lanes Vehicles.
CN201520300846.7U 2015-05-08 2015-05-08 Regional violating regulations parking monitoring devices is stopped to traffic taboo Expired - Fee Related CN204884166U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201520300846.7U CN204884166U (en) 2015-05-08 2015-05-08 Regional violating regulations parking monitoring devices is stopped to traffic taboo

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201520300846.7U CN204884166U (en) 2015-05-08 2015-05-08 Regional violating regulations parking monitoring devices is stopped to traffic taboo

Publications (1)

Publication Number Publication Date
CN204884166U true CN204884166U (en) 2015-12-16

Family

ID=54828518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201520300846.7U Expired - Fee Related CN204884166U (en) 2015-05-08 2015-05-08 Regional violating regulations parking monitoring devices is stopped to traffic taboo

Country Status (1)

Country Link
CN (1) CN204884166U (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107305627A (en) * 2016-04-22 2017-10-31 杭州海康威视数字技术股份有限公司 A kind of automobile video frequency monitoring method, server and system
CN107545772A (en) * 2016-10-31 2018-01-05 郑州蓝视科技有限公司 A kind of implementation method of cell electric motor intelligent shutdown system
CN107993446A (en) * 2017-12-07 2018-05-04 长沙准光里电子科技有限公司 A kind of traffic prohibition parking area domain parking offense monitoring device
CN108806263A (en) * 2017-04-27 2018-11-13 香港生产力促进局 Intelligent detection and control illegal parking system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107305627A (en) * 2016-04-22 2017-10-31 杭州海康威视数字技术股份有限公司 A kind of automobile video frequency monitoring method, server and system
CN107545772A (en) * 2016-10-31 2018-01-05 郑州蓝视科技有限公司 A kind of implementation method of cell electric motor intelligent shutdown system
CN108806263A (en) * 2017-04-27 2018-11-13 香港生产力促进局 Intelligent detection and control illegal parking system and method
CN107993446A (en) * 2017-12-07 2018-05-04 长沙准光里电子科技有限公司 A kind of traffic prohibition parking area domain parking offense monitoring device

Similar Documents

Publication Publication Date Title
CN103186982B (en) Intelligent access system for public security
CN105046948A (en) System and method of monitoring illegal traffic parking in yellow grid line area
US10261574B2 (en) Real-time detection system for parked vehicles
CN104766086B (en) The monitoring and managing method and system of a kind of way mark
CN104616502B (en) Car license recognition and alignment system based on combination type bus or train route video network
CN110298300B (en) Method for detecting vehicle illegal line pressing
CN112163543A (en) Method and system for detecting illegal lane occupation of vehicle
CN106373426A (en) Computer vision-based parking space and illegal lane occupying parking monitoring method
CN110738857A (en) A method, device and equipment for obtaining evidence for vehicle violations
CN104504908A (en) Method and system for monitoring illegal parking
CN110619279A (en) Road traffic sign instance segmentation method based on tracking
CN111814668B (en) Method and device for detecting road spills
CN105046966A (en) System and method for automatically detecting illegal parking behaviors in drop-off areas
CN104978567A (en) Vehicle detection method based on scenario classification
CN112766069A (en) Vehicle illegal parking detection method and device based on deep learning and electronic equipment
CN115393803A (en) Vehicle violation detection method, device and system, and storage medium
CN113903008A (en) Ramp exit vehicle violation identification method based on deep learning and trajectory tracking
CN204884166U (en) Regional violating regulations parking monitoring devices is stopped to traffic taboo
WO2023179416A1 (en) Method and apparatus for determining entry and exit of vehicle into and out of parking space, device, and storage medium
CN110032947A (en) A kind of method and device that monitor event occurs
CN113177443A (en) Method for intelligently identifying road traffic violation based on image vision
CN114495011A (en) Non-motor vehicle and pedestrian illegal intrusion identification method, storage medium and computer equipment based on target detection
CN113239718A (en) Campus people flow rate statistical method
CN108847031A (en) Traffic behavior monitoring method, device, computer equipment and storage medium
CN204856897U (en) It is detection device violating regulations in abscission zone territory that motor vehicle stops promptly

Legal Events

Date Code Title Description
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: 20151216

Termination date: 20160508