Summary of the invention
In view of this, the invention provides a kind of traffic incidents detection method and apparatus, to realize the automatic detection to traffic events.
In order to solve the problems of the technologies described above, present invention employs following technical scheme:
A detection method for traffic events, comprising:
Obtain the Traffic Surveillance Video image gathered when video camera is in default presetting bit;
Track of vehicle model and/or all environmental models of car is set up according to described Traffic Surveillance Video image;
According to described track of vehicle model and the pavement structure model inspection traffic events set up in advance, and/or, according to described car week environmental model and the pavement structure model inspection traffic events set up in advance; Described pavement structure model is the model set up according to the monitor video image that road surface does not occur traffic events.
Alternatively, described traffic incidents detection method adopts every road video camera between multiple different presetting bit, carry out the method for automatic taking turn monitoring, multiple different presetting bit residing for the video camera of every road can cover the transversal section on whole road surface, setting video camera is after the monitoring period of a presetting bit reaches Preset Time, and automatic alternate is monitored to next presetting bit.
Alternatively, described according to described track of vehicle model and the pavement structure model inspection traffic events set up in advance, and/or, according to described car week environmental model and the pavement structure model inspection traffic events set up in advance after, also comprise:
After receiving the instruction carrying out manual intervention, cancel and load presetting bit associated profile, from receive carry out manual intervention instruction to after reaching default manual monitoring duration, whether prompting loads presetting bit associated profile, if, control the position of camera switching to the next presetting bit of described default presetting bit, with the traffic on the road that the next presetting bit gathering described default presetting bit is corresponding, if not, extend artificial monitor duration, from receive extend artificial monitor duration instruction to after again reaching default manual monitoring duration, return and perform the step whether described prompting loads presetting bit associated profile,
When receive refusal carry out the instruction of manual intervention after, judge whether video camera reaches Preset Time at the monitor event of current presetting bit, if, control the next presetting bit of camera switching to described default presetting bit, and return the step performing the Traffic Surveillance Video image gathered when described acquisition video camera is in default presetting bit.
Alternatively, describedly set up track of vehicle model according to described Traffic Surveillance Video image and comprise:
Detect the vehicle in described Traffic Surveillance Video image;
The vehicle detected is followed the tracks of, obtains the movement locus of described vehicle;
According to the movement locus of described vehicle, set up track of vehicle model.
Alternatively, described track of vehicle model and described pavement structure model include deflection model and the Velicle motion velocity model of vehicle movement;
Describedly specifically to comprise according to track of vehicle model and the pavement structure model inspection traffic events set up in advance:
Deflection model in more described track of vehicle model and described pavement structure model and/or rate pattern, obtain deflection deviation and/or the velocity deviation of described track of vehicle model and described pavement structure model;
Judge whether described deflection deviation reaches first pre-conditioned, and/or, judge whether described velocity deviation reaches second pre-conditioned, to judge whether road surface traffic events occurs;
When the deviation of the deflection model in the deflection model in described track of vehicle model and described pavement structure model is greater than angle threshold, judge that vehicle occurs to drive in the wrong direction event;
When the deviation of the speed variables in the speed variables in described track of vehicle model and described pavement structure model is greater than First Speed threshold value, judge overspeed of vehicle event occurs;
When the deviation of the speed variables in the speed variables in described pavement structure model and described track of vehicle model is greater than second speed threshold value, judge automobile low-speed event occurs;
When the speed variables in track of vehicle model described in first time period continues to be less than third speed threshold value, judge that vehicle occurs stops event;
When the speed variables in track of vehicle model road surface exceeding a certain proportion of vehicle continues to be less than third speed threshold value, judge vehicle congestion event occurs;
When on road surface, at least the track of vehicle model of two vehicles occurs that the overlapping and time remaining of overlap is more than the second time period, judge vehicle crash event occurs.
Alternatively, set up all environmental models of car according to described Traffic Surveillance Video image specifically to comprise:
Vehicle and surrounding environment part is chosen from described Traffic Surveillance Video image;
Car week environment contour feature figure is obtained according to described vehicle and surrounding environment part;
Set up car week environment DPM model according to described car week environment contour feature figure, described car all environment DPM model comprises root model p
0, the first partial model p
1, the second partial model p
2, the 3rd partial model p
3with the 4th partial model p
4, described model p
0for auto model, described first partial model p
1, the second partial model p
2, the 3rd partial model p
3with the 4th partial model p
4be respectively the environmental model on the four direction all around of vehicle.
Alternatively, described according to described car week environmental model and the pavement structure model inspection traffic events set up in advance specifically comprise:
Vehicle environmental model is mated with described pavement structure model, obtains matching value;
When matching value is greater than predetermined threshold value, from all environment of car, be partitioned into car Zhou Yichang object;
The movement locus of described car Zhou Yichang object is followed the tracks of, sets up the locus model of car Zhou Yichang object;
When the medium velocity of the locus model of car Zhou Yichang object is 0, starts timing, after the residence time of car Zhou Yichang object reaches Preset Time, determining that described car Zhou Yichang object is for shedding thing.
A pick-up unit for traffic events, comprising:
Acquiring unit, for obtaining the Traffic Surveillance Video image gathered when video camera is in default presetting bit;
Unit set up by model, for setting up track of vehicle model and/or all environmental models of car according to described Traffic Surveillance Video image;
Detecting unit, for according to described track of vehicle model and the pavement structure model inspection traffic events set up in advance, and/or, according to described car week environmental model and the pavement structure model inspection traffic events set up in advance; Described pavement structure model is the model set up according to monitor video image when there is not traffic events.
Alternatively, the method that described traffic incidents detection device adopts every road video camera to carry out automatic taking turn monitoring between multiple different presetting bit carries out the detection of traffic events, multiple different presetting bit residing for the video camera of every road can cover the transversal section on whole road surface, setting video camera is after the monitoring period of a presetting bit reaches Preset Time, and automatic alternate is monitored to next presetting bit.
Alternatively, described model is set up unit and is comprised:
Detection sub-unit, for detecting the vehicle in described Traffic Surveillance Video image;
Following the tracks of subelement, for following the tracks of the vehicle detected, obtaining the movement locus of described vehicle;
Subelement set up by track of vehicle model, for the movement locus according to described vehicle, sets up track of vehicle model.
Alternatively, described track of vehicle model and described pavement structure model include deflection model and the Velicle motion velocity model of vehicle movement;
Described detecting unit comprises:
Relatively subelement, for the deflection model in more described track of vehicle model and described pavement structure model and/or rate pattern, obtains deflection deviation and/or the velocity deviation of described track of vehicle model and described pavement structure model;
Judgment sub-unit, for judging whether described deflection deviation reaches first pre-conditioned, and/or whether described velocity deviation reaches second pre-conditioned, to judge whether road surface traffic events occurs;
When the deviation of the deflection model in the deflection model in described track of vehicle model and described pavement structure model is greater than angle threshold, judge that vehicle occurs to drive in the wrong direction event;
When the deviation of the speed variables in the speed variables in described track of vehicle model and described pavement structure model is greater than First Speed threshold value, judge overspeed of vehicle event occurs;
When the deviation of the speed variables in the speed variables in described pavement structure model and described track of vehicle model is greater than second speed threshold value, judge automobile low-speed event occurs;
When the speed variables in track of vehicle model described in first time period continues to be less than third speed threshold value, judge that vehicle occurs stops event;
When the speed variables in track of vehicle model road surface exceeding a certain proportion of vehicle continues to be less than third speed threshold value, judge vehicle congestion event occurs;
When on road surface, at least the track of vehicle model of two vehicles occurs that the overlapping and time remaining of overlap is more than the second time period, judge vehicle crash event occurs.
Alternatively, described model is set up unit and is comprised:
Choose subelement, for choosing vehicle and surrounding environment part from described Traffic Surveillance Video image;
Obtain subelement, for obtaining car week environment contour feature figure according to described vehicle and surrounding environment part;
Car week, subelement set up by environment DPM model, and for setting up car week environment DPM model according to described car week environment contour feature figure, described car all environment DPM model comprises root model p
0, the first partial model p
1, the second partial model p
2, the 3rd partial model p
3with the 4th partial model p
4, described model p
0for auto model, described first partial model p
1, the second partial model p
2, the 3rd partial model p
3with the 4th partial model p
4be respectively the environmental model on the four direction all around of vehicle.
Alternatively, described detecting unit comprises:
Coupling subelement, for being mated with described pavement structure model by vehicle environmental model, obtains matching value;
Segmentation subelement, for when described matching value is greater than predetermined threshold value, is partitioned into car Zhou Yichang object from all environment of car;
Car Zhou Yichang object locus model sets up subelement, for following the tracks of the movement locus of described car Zhou Yichang object, sets up the locus model of car Zhou Yichang object;
Judge to shed thing subelement, when the medium velocity for the locus model when car Zhou Yichang object is 0, starts timing, after the residence time of car Zhou Yichang object reaches Preset Time, determining that described car Zhou Yichang object is for shedding thing.
Compared to prior art, the present invention has following beneficial effect:
In the detection method of traffic events provided by the invention, traffic incident detecting system can detect on road surface whether there occurs traffic events automatically according to track of vehicle model and the pavement structure set up in advance model.Therefore, traffic incidents detection method provided by the invention instead of in prior art and observes by staff the method that monitor video image carrys out whether artificial judgment road surface occurs traffic events.This method by traffic incident detecting system automatic transport detection event saves a large amount of human and material resources, reduces the working strength of monitor staff.And can not occur to cause the wrong report of traffic events and the risk failed to report due to deficient in energy, therefore, this detection method improves the degree of accuracy of traffic incidents detection.
Embodiment
For make goal of the invention of the present invention, technical scheme and the technique effect that reaches clearly, complete, below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail.
Embodiment one
Fig. 1 is the schematic flow sheet of the traffic incidents detection method that the embodiment of the present invention one provides.As shown in Figure 1, this traffic incidents detection method comprises the following steps:
The Traffic Surveillance Video image that S101, acquisition video camera gather when being in default presetting bit:
Control the video camera be arranged on road to open, make the traffic information on camera acquisition road.Because video camera is arranged on The Cloud Terrace usually, so video camera can be arranged in the default presetting bit of specifying according to demand.After video camera is opened, video camera just can gather traffic information, and the traffic information collected is uploaded to intelligent monitor and control center, and intelligent monitor and control center just can get the Traffic Surveillance Video image gathered when video camera is in default presetting bit.
S102, set up track of vehicle model according to described Traffic Surveillance Video image:
It should be noted that, the usual technological means in this area can be adopted to set up track of vehicle model according to described Traffic Surveillance Video image.
As a specific embodiment of the present invention, describedly set up track of vehicle model according to described Traffic Surveillance Video image and specifically can comprise the following steps:
S1021, the vehicle detected in described Traffic Surveillance Video image:
It should be noted that, the method for the employing background modeling that the method for vehicles in the detection video image that the embodiment of the present invention provides can adopt this area usual.The method of this employing background modeling is by carrying out modeling to the background of image, and present image and background image compare, according to comparative result determination foreground target after setting up by model.But there is following problem in the method:
1) responsive to shade, being easy to shade error detection is moving target;
2) adaptive faculty under low contrast and halation environment is poor;
3) to object without separating capacity, easily produce and identify by mistake, thus have a strong impact on the problem of the statistics of the magnitude of traffic flow and the speed of a motor vehicle.
In order to avoid the problems referred to above, the present invention preferably adopts publication number to be the Chinese patent application of CN101030256A (publication date is on September 5th, 2007).The method of this patented claim can recognition detection target definitely, and compared to traditional method based on background modeling, the method has clear superiority in shadow interference, complex illumination etc.
S1022, the vehicle detected to be followed the tracks of, obtains the movement locus of described vehicle:
The vehicle detected is followed the tracks of, and its movement locus is analyzed, the driving trace of vehicle can be understood definitely.
The wireless vehicle tracking that the present invention adopts can adopt the method based on optical flow tracking or template matches; but usually there is following problem in these methods: 1) occlusion issue; 2) deformation problems; usually can change in size be there is in vehicle in the process travelled; turn simultaneously and also can cause the metamorphosis of vehicle, thus the stability that impact is followed the tracks of.
In order to avoid the problems referred to above, the present invention preferably adopts a kind of new wireless vehicle tracking, the method adopts follows the tracks of and detects the mechanism combined, and the real-time model of target vehicle is set up by on-line study, the result of on-line study reacted on simultaneously and follow the tracks of and detect, final target localization is by following the tracks of and detect collaborative decision.The method effectively can solve the deformation of target in vehicle tracking process, other object block and block rear vehicle due to turn wait generation deformation problem.
S1023, movement locus according to described vehicle, set up track of vehicle model.
S103, according to described track of vehicle model and the pavement structure model inspection traffic events set up in advance:
It should be noted that, the model that monitor video image when pavement structure model is normal according to road traffic situation is set up.
Vehicle movement track time normal by statistics road traffic situation, carries out modeling to track of vehicle, and carries out on-line study, thus automatically identify pavement structure, set up corresponding pavement structure model according to this pavement structure.The normal situation of described road traffic situation refers to the situation that road surface does not occur traffic events.
It should be noted that, the movement locus of vehicle generally includes two factors: travel direction and travel speed.So described pavement structure model comprises the direction of motion angle model of vehicle and the movement velocity model of vehicle, the locus model of same vehicle also comprises the direction of motion angle model of vehicle and the movement velocity model of vehicle.Therefore, the traffic events relevant with travel speed with the travel direction of vehicle can be detected according to the locus model of vehicle with pavement structure model.
In embodiments of the present invention, to be describedly specially according to track of vehicle model and the pavement structure model inspection traffic events set up in advance:
Obtain described track of vehicle model and described pavement structure model:
Deflection model in more described track of vehicle model and described pavement structure model and/or rate pattern, to obtain deflection deviation in described track of vehicle model and described pavement structure model and/or velocity deviation;
Judge whether described deflection deviation reaches first pre-conditioned, and/or, judge whether described velocity deviation reaches second pre-conditioned, to judge whether road surface traffic events occurs.
When the deviation of the deflection model in the deflection model in described track of vehicle model and described pavement structure model is greater than angle threshold, judge that vehicle occurs to drive in the wrong direction event;
When the deviation of the speed variables in the speed variables in described track of vehicle model and described pavement structure model is greater than First Speed threshold value, judge overspeed of vehicle event occurs;
When the deviation of the speed variables in the speed variables in described pavement structure model and described track of vehicle model is greater than second speed threshold value, judge automobile low-speed event occurs;
When the speed variables in track of vehicle model described in first time period continues to be less than third speed threshold value, judge that vehicle occurs stops event;
When the speed variables in track of vehicle model road surface exceeding a certain proportion of vehicle continues to be less than third speed threshold value, judge vehicle congestion event occurs;
When on road surface, at least the track of vehicle model of two vehicles occurs that the overlapping and time remaining of overlap is more than the second time period, judge vehicle crash event occurs.
It should be noted that, in embodiments of the present invention, in order to traffic events be detected more accurately, each two field picture in Traffic Surveillance Video image is become multiple fritter according to identical regular partition, pavement structure model is made up of the pavement structure model in the plurality of fritter.
As a specific embodiment of the present invention, each two field picture in Traffic Surveillance Video image becomes N × M fritter according to identical regular partition, and wherein, N, M are the integer being more than or equal to 1;
In monitor video image, the method for building up of the pavement structure model of each fritter is all identical, is described the method for building up of pavement structure model below for the method for building up of the pavement structure model of any one fritter in N × M the fritter divided.
The default fritter of setting is any one fritter in N × M fritter, if think that N × M fritter forms an array in monitor video image, then presetting fritter position is in the array the i-th row jth row, this default fritter position in monitor video image can be expressed as (i, j), wherein, 1≤i≤N, 1≤j≤M, and i, j are integer.
As a specific embodiment of the present invention, as shown in Figure 2, the method for building up of the pavement structure model of described default fritter comprises the following steps:
S21, from the t two field picture and t-1 two field picture of default fritter, extract unique point for following the tracks of:
Adopt the technological means that this area is usual, from the t two field picture and t-1 two field picture of default fritter, extract the unique point for following the tracks of.
In embodiments of the present invention, t >=2, and t is integer.
S22, light stream estimation is carried out to the movement locus for the unique point of following the tracks of in t two field picture and t-1 two field picture, obtain the initialization model of the pavement structure in described default fritter.
S23, utilize the t+1 two field picture in described default fritter to be optimized described initialization model, obtain the pavement structure model after the renewal in default fritter.
S24, judge whether t is less than default training frame number, if not, perform step S25.If so, step S26 is performed.
S25, model filtering is carried out to the pavement structure model after described renewal, finally obtains the pavement structure model of described default fritter:
Carrying out one of object of model filtering to the pavement structure model after renewal is the movement locus in order to eliminate pedestrian on road and the track of vehicle not in accordance with traffic rules traveling, the information of road surface under making the pavement structure model obtained meet normal traffic conditions.
S26, t two field picture is updated to t+1 two field picture, returns and perform described step S21.
It should be noted that, step S21 to step S26 is the process of establishing of the pavement structure model in any one fritter, also can be regarded as the training process of the pavement structure model in any one fritter.
Statistics display, the deflection θ of road vehicles motion and the movement velocity v of vehicle meets Gaussian distribution, therefore, sets up the direction of vehicle movement of each fritter and the mixed Gauss model P of speed in the training process of the pavement structure model of each fritter
(i, j)(θ, v).
In embodiments of the present invention, the pavement structure model of vehicle can be regarded as the set of the pavement structure model of fritter shared by it.
In embodiments of the present invention, automatically detecting the various types of traffic events occurred on road to make intelligent monitor system, in intelligent monitor system, being previously provided with various types of traffic events model.After road traffic situation meets the traffic events model of a certain type, then intelligent monitor system judges the traffic events that road surface there occurs the type automatically.
As mentioned above, in embodiments of the present invention, traffic events comprise vehicle drive in the wrong direction event, overspeed of vehicle event, automobile low-speed event, vehicle stop event, vehicle congestion event and vehicle crash event.
Accordingly, each traffic events model above-mentioned is as follows:
Before each traffic events model of description, the physical significance of the parameters under first explaining in model below.(i, j) for the position of fritter in monitor video image be i-th row jth row; N represents the feature point number for following the tracks of in fritter; M represents the fritter number that vehicle is shared in monitor video image.
Wherein, the vehicle event model that drives in the wrong direction is:
Wherein,
represent the average angle of pavement structure model in this fritter (i, j);
represent the angle intermediate value of vehicle in this fritter;
δ is angle threshold.
Overspeed of vehicle event model is:
Wherein,
represent pavement structure model in fritter (i, j) average velocity;
for the speed intermediate value of the vehicle in track of vehicle model in this fritter (i, j);
ε 1 represents First Speed threshold value.
Automobile low-speed event model is:
Wherein,
represent pavement structure model in fritter (i, j) average velocity;
for the speed intermediate value of the vehicle in track of vehicle model in this fritter (i, j);
ε 2 represents second speed threshold value.
Vehicle stops event model in first time period, and the relation of the speed variables in the speed variables in track of vehicle model and pavement structure model meets formula below:
Wherein,
represent pavement structure model in fritter (i, j) average velocity;
for the speed intermediate value of the vehicle in track of vehicle model in this fritter (i, j);
ε 3 represents third speed threshold value, and ε 3 is almost nil.
Stop model can determining a vehicle generation Parking according to vehicle, adopt same decision method, after when the vehicle that vehicle most of on road can be set to exceed certain predetermined ratio all occurs to stop time, now judge road there occurs traffic congestion event.
When the track of vehicle model of at least two vehicles on road occurs overlapping, and this at least two vehicles stopping, then intelligent monitor system judges road there occurs vehicle crash event.
Further, after judgement road there occurs vehicle crash event, vehicle collision type can be judged according to the deflection model in the track of vehicle model of vehicle collided and rate pattern further: side collision, to knock into the back or head-on crash.
S104, send alarm when traffic events being detected.
As the preferred embodiments of the present invention, after detecting road surface there occurs traffic events, outwards can also send alarm, to point out staff, the traffic events detected be processed.
The traffic incidents detection method provided by embodiment one, intelligent monitor system is by comparing deflection model in locus model and pavement structure model and/or travel speed model, then whether meet first pre-conditioned according to the deflection deviation in locus model and pavement structure model, and/or whether travel speed deviation meets second pre-conditioned (namely whether road traffic situation reaches traffic events model) and judges whether road surface there occurs traffic events.Traffic incidents detection method provided by the invention can detect the traffic events on road surface automatically.Therefore, traffic incidents detection method provided by the invention instead of in prior art and observes by staff the method that monitor video image carrys out whether artificial judgment road surface occurs traffic events.This method by traffic incident detecting system automatic transport detection event saves a large amount of human and material resources, reduces the working strength of monitor staff.And can not occur to cause because personnel are deficient in energy to the wrong report of traffic events and the risk failed to report, therefore, this detection method improves the degree of accuracy of traffic incidents detection.
In traffic incidents detection method described in embodiment one, travel direction according to track of vehicle model and vehicle to the direction of traffic angle model in pavement structure model and relatively can detecting of rate pattern, whether road surface there occurs the traffic events relevant with track of vehicle with travel speed, such as: vehicle drives in the wrong direction, hypervelocity, at a slow speed, stopping, the event such as collision.In addition, present invention also offers and a kind ofly can detect the method for shedding thing.Specifically see embodiment two.
Embodiment two
Fig. 3 is the schematic flow sheet of the traffic incidents detection method that the embodiment of the present invention two provides, and as shown in Figure 3, this traffic incidents detection method comprises the following steps:
The Traffic Surveillance Video image that S301, acquisition video camera gather when being in default presetting bit:
This step is identical with the step S101 in embodiment one, for the sake of brevity, is not described in detail at this, specifically see the description of embodiment one.
S302, to set up car week environmental model according to described Traffic Surveillance Video image:
As shown in Figure 4, this step specifically comprises the following steps:
S41, from described Traffic Surveillance Video image, choose vehicle and surrounding environment part:
The usual technological means in this area is adopted to choose vehicle and surrounding environment part from described Traffic Surveillance Video image.
S42, obtain car week environment contour feature figure according to described car week and surrounding environment part:
Particularly, according to the vehicle chosen and surrounding environment part, obtain profile diagram based on sobel and SURF algorithm, then remove lane line interference by Hough algorithm, obtain car week environment contour feature figure.
S43, set up car week environment DPM model according to described car week environment contour feature figure:
From described car week environment contour feature figure, be partitioned into car body, set up auto model p according to car body
0, from described car week environment contour feature figure, be partitioned into the surrounding environment of vehicle, set up the model on the four direction all around of vehicle respectively according to the surrounding environment be partitioned into.
With auto model p
0as root model, using the surrounding environment model of vehicle as partial model, the DPM model of these five all environment of model composition car, wherein, surrounding environment model is the partial model of DPM model, and it is respectively the first partial model p
1, the second partial model p
2, the 3rd partial model p
3with the 4th partial model p
4.DPM (can the manufacture) model being formulated car week environment is as follows:
z=(p
0,p
1,p
2,p
3,p
4)。
S303, according to described car week environmental model and the pavement structure model inspection set up in advance shed formal matter part:
This step specifically comprises the following steps:
S3031, vehicle environmental model to be mated with pavement structure model, obtains matching value:
It should be noted that, the pavement structure model described in the embodiment of the present invention comprises four partial models of root model and the vehicle's surroundings environment structure be made up of auto model.
Wherein, vehicle environmental model and the pavement structure model formula that carries out mating is as follows:
Wherein, score (p
0, p
1, p
2, p
3, p
4) be matching value;
F
0, F
irepresent the root model in pavement structure model and the i-th partial model respectively.
S3032, when matching value is greater than predetermined threshold value, then determine car Zhou Yichang, from car week environment, be partitioned into car Zhou Yichang object:
S3033, the movement locus of car Zhou Yichang object to be followed the tracks of, sets up the locus model of car Zhou Yichang object:
S3034, when the medium velocity of the locus model of car Zhou Yichang object is 0, determines that car Zhou Yichang object is stationary object, and start timing, after the residence time of car Zhou Yichang object reaches Preset Time, feature extraction and classifying is carried out to car Zhou Yichang object:
In order to determine that car Zhou Yichang object is for shedding thing more exactly, after the residence time of car Zhou Yichang object reaches Preset Time, this car Zhou Yichang object is likely pedestrian, in order to avoid to the erroneous judgement of shedding thing, determining car Zhou Yichang object whether for before shedding thing, preferably feature extraction and classifying is carried out to car Zhou Yichang object.
S3035, according to extract feature determination car Zhou Yichang object whether for shedding thing.
S304, send alarm when detecting and shedding formal matter part.
As a preferred embodiment of the present invention, after detecting and road surface there occurs shedding formal matter part, outwards alarm can also be sent, to remind staff.
Automatically can be detected by the traffic incidents detection method described in embodiment two and road surface sheds formal matter part.
By the traffic incidents detection method described in embodiment one and embodiment two, can not only detect and connect the relevant traffic events of track with car, can also detect according to car week environment and shed formal matter part.The traffic events that embodiment one and embodiment two detect has consisted essentially of all traffic events on road, so the traffic incidents detection method provided by embodiment one and embodiment two, intelligent monitor system can detect the traffic events occurred on road automatically, therefore, the traffic incidents detection method that embodiment one and embodiment two provide instead of the method for manual detection traffic events, improve the accuracy detecting traffic events, reduce the risk occurring undetected or flase drop.
It should be noted that, in embodiment one and the traffic incidents detection method described in embodiment two, video camera can be fixed on a certain presetting bit always, in the whole monitoring course of work, camera supervised visual angle immobilizes, but the monitor mode of this fixed viewpoint, likely there is monitoring blind area, thus cause failing to report of traffic events.In order to avoid there is monitoring blind area, and make full use of the feature of monopod video camera, as a preferred embodiment of the present invention, the method that intelligent taking turn can be adopted to monitor controls every road video camera and rotates between multiple different presetting angle.The monitoring visual field that multiple different presetting angle residing for the video camera of every road reaches can cover the transversal section on whole road surface.The intelligent taking turn monitor mode of this utilization detects the method for traffic events as shown in embodiment three.
It should be noted that, when a certain section being provided with multichannel video camera, the position control mode of this multichannel video camera can adopt coordinated signals mode.When the position of a road video camera changes, the position of other road video camera also changes.In order to avoid monitoring blind area, the position of multichannel video camera residing for synchronization be arranged on same section can ensure that monitoring visual field covers the transversal section on whole road surface.In addition, when multichannel video camera carries out rotation between different presetting bit, the seamless connection of monitoring visual field can be ensured.
Embodiment three
It should be noted that, the mode of operation of the intelligent taking turn supervisory system described in the embodiment of the present invention comprises automatic taking turn monitoring mode and manual monitoring pattern.Under normal circumstances, intelligent taking turn supervisory system is in automatic taking turn monitoring mode, only having under special circumstances as there is traffic events, needing just can be in manual monitoring pattern during manual intervention.
Fig. 5 is that the utilization intelligence taking turn monitor mode that provides of the embodiment of the present invention three is to detect the method flow schematic diagram of traffic events.As shown in Figure 5, the method that this utilization intelligence taking turn monitor mode detects traffic events comprises the following steps:
The shooting angle of S501, adjustment video camera reaches a certain default presetting bit, this default presetting bit is regarded as the current presetting bit of video camera:
The shooting angle of intelligent monitor system adjustment video camera reaches a certain default presetting bit, this default presetting bit is regarded as the current presetting bit of video camera.
S502, load the associated profile of current presetting bit.
S503, detect traffic events according to the associated profile of current presetting bit.
It should be noted that, the associated profile according to current presetting bit described in this step detects traffic events and specifically comprises step S101 described in embodiment one to step S103, and/or the step S301 described in embodiment two is to step S303.
S504, when traffic events being detected, outwards send alarm.
S505, after receiving staff and carrying out the instruction of manual intervention, intelligent taking turn supervisory system switches to manual monitoring pattern from automatic taking turn monitoring mode:
After monitoring staff receives the alarm that intelligent monitor system sends, monitoring staff judges whether the traffic events of reporting to the police is rational traffic events, to determine whether carry out manual intervention further.When intelligent taking turn supervisory system receives after staff carries out the instruction of manual intervention, intelligent taking turn supervisory system switches to manual monitoring pattern from automatic taking turn monitoring mode.
After intelligent taking turn supervisory system switches to manual monitoring pattern from automatic taking turn monitoring mode, as shown in Figure 6, intelligent taking turn supervisory system can perform following operation:
S61, cancellation load presetting bit associated profile.
After S62, default manual monitoring duration to be achieved, whether intelligent taking turn supervisory system prompting loads presetting bit associated profile.
If after S63 obtains the positive reply of monitoring staff, intelligent taking turn supervisory system switches to automatic taking turn monitoring mode from manual monitoring pattern.
If S64 obtain monitor staff negative reply after, intelligent taking turn supervisory system extends artificial monitor duration, and return perform step S62.
S506, when receive staff refusal carry out the instruction of manual intervention after, intelligent taking turn supervisory system judges whether video camera reaches Preset Time at the monitoring period of current presetting bit, if so, execution step S507.
Current presetting bit to next presetting bit, and is updated to this next presetting bit by S507, control camera switching, returns and performs step S502.
The intelligent taking turn method for supervising provided by embodiment three can either make video camera play the advantage of automatic taking turn, greatly can reduce again the working strength of monitor staff, the event that farthest reduces is failed to report and improves reaction velocity, and the monitoring capacity of every platform video camera is greatly improved.
The embodiment of the detection method of the traffic events that embodiment one to embodiment three provides for the embodiment of the present invention, based on the detection method of the traffic events that above-described embodiment provides, present invention also offers the embodiment of the pick-up unit of traffic events, specifically see following examples four.
Embodiment four
Fig. 7 is the structural representation of the traffic incidents detection device that the embodiment of the present invention four provides.As shown in Figure 7, this traffic incidents detection device comprises with lower unit:
Acquiring unit 71, for obtaining the Traffic Surveillance Video image gathered when video camera is in default presetting bit;
Unit 72 set up by model, for setting up track of vehicle model and/or all environmental models of car according to described Traffic Surveillance Video image;
Detecting unit 73, for according to described track of vehicle model and the pavement structure model inspection traffic events set up in advance, and/or, according to described car week environmental model and the pavement structure model inspection traffic events set up in advance; Described pavement structure model is the model set up according to monitor video image when there is not traffic events;
There occurs traffic events to remind on staff road surface, described traffic incidents detection device can also comprise:
Alarm unit 74, when traffic events being detected, sends alarm.
The traffic events on road surface automatically can be detected by the traffic incidents detection device shown in Fig. 7, avoid by manually carrying out the method detected, save a large amount of human and material resources resources, reduce the working strength of monitor staff, and can not occur to cause the wrong report of traffic events and the risk failed to report due to deficient in energy, therefore, this pick-up unit improves the degree of accuracy of traffic incidents detection.
In order to the traffic events relevant to track of vehicle can be detected, as first specific embodiment of the present invention, as shown in Figure 8, the described model in the traffic incidents detection device shown in above-described embodiment is set up unit 72 and is comprised:
Detection sub-unit 721, for detecting the vehicle in described Traffic Surveillance Video image;
Following the tracks of subelement 722, for following the tracks of the vehicle detected, obtaining the movement locus of described vehicle;
Subelement 723 set up by track of vehicle model, for the movement locus according to described vehicle, sets up track of vehicle model.
Further, to the further improvement of above-mentioned first specific embodiment, as shown in Figure 8, described track of vehicle model and described pavement structure model include deflection model and the Velicle motion velocity model of vehicle movement;
Described detecting unit 73 specifically comprises:
Relatively subelement 731, for the deflection model in more described track of vehicle model and described pavement structure model and/or rate pattern, obtains deflection deviation and/or the velocity deviation of described track of vehicle model and described pavement structure model;
Judgment sub-unit 732, for judging whether described deflection deviation reaches first pre-conditioned, and/or whether described velocity deviation reaches second pre-conditioned, to judge whether road surface traffic events occurs;
When the deviation of the deflection model in the deflection model in described track of vehicle model and described pavement structure model is greater than angle threshold, judge that vehicle occurs to drive in the wrong direction event;
When the deviation of the speed variables in the speed variables in described track of vehicle model and described pavement structure model is greater than First Speed threshold value, judge overspeed of vehicle event occurs;
When the deviation of the speed variables in the speed variables in described pavement structure model and described track of vehicle model is greater than second speed threshold value, judge automobile low-speed event occurs;
When the speed variables in track of vehicle model described in first time period continues to be less than third speed threshold value, judge that vehicle occurs stops event;
When the speed variables in track of vehicle model road surface exceeding a certain proportion of vehicle continues to be less than third speed threshold value, judge vehicle congestion event occurs;
When on road surface, at least the track of vehicle model of two vehicles occurs that the overlapping and time remaining of overlap is more than the second time period, judge vehicle crash event occurs.
By above-mentioned first specific embodiment, traffic incidents detection device can detect the traffic events relevant to track of vehicle, these traffic events comprise that vehicle drives in the wrong direction, hypervelocity, at a slow speed, stop, blocking up, collision accident.
Traffic incidents detection device provided by the invention, except can detecting the traffic events relevant to track of vehicle, can also detect and shed formal matter part.
Shed formal matter part to detect, as second specific embodiment of the present invention, as shown in Figure 9, the described model in the traffic incidents detection device shown in above-mentioned Fig. 8 is set up unit 72 and can also be comprised:
Choose subelement 721 ', for choosing vehicle and surrounding environment part from described Traffic Surveillance Video image;
Obtain subelement 722 ', for obtaining car week environment contour feature figure according to described vehicle and surrounding environment part;
Car week, subelement 723 ' set up by environment DPM model, and for setting up car week environment DPM model according to described car week environment contour feature figure, described car all environment DPM model comprises root model p
0, the first partial model p
1, the second partial model p
2, the 3rd partial model p
3with the 4th partial model p
4, described model p
0for auto model, described first partial model p
1, the second partial model p
2, the 3rd partial model p
3with the 4th partial model p
4be respectively the environmental model on the four direction all around of vehicle.
Further, described detecting unit 73 can also comprise:
Coupling subelement 731 ', for being mated with described pavement structure model by vehicle environmental model, obtains matching value;
Segmentation subelement 732 ', for when described matching value is greater than predetermined threshold value, is partitioned into car Zhou Yichang object from all environment of car;
Car Zhou Yichang object locus model sets up subelement 733 ', for following the tracks of the movement locus of described car Zhou Yichang object, sets up the locus model of car Zhou Yichang object;
Judge to shed thing subelement 734 ', when the medium velocity for the locus model when car Zhou Yichang object is 0, starts timing, after the residence time of car Zhou Yichang object reaches Preset Time, determining that described car Zhou Yichang object is for shedding thing.
It should be noted that, traffic incidents detection device shown in Fig. 9 is the improvement carried out on the basis of the traffic incidents detection device shown in Fig. 8, in fact, as another embodiment of the present invention, can also improve on the basis of the traffic incidents detection device shown in Fig. 7 for detecting the traffic incidents detection device shedding formal matter part.Information disclosed in Fig. 9, those of ordinary skill in the art can obtain this embodiment under the prerequisite not paying creative work, are not described in detail at this.
In above-mentioned first specific embodiment and second specific embodiment, video camera can be fixed on a certain presetting bit always, in the whole monitoring course of work, camera supervised visual angle immobilizes, but the monitor mode of this fixed viewpoint, likely there is monitoring blind area, thus cause failing to report of traffic events.In order to avoid there is monitoring blind area, and make full use of the feature of monopod video camera, as a preferred embodiment of the present invention, the method that intelligent taking turn can be adopted to monitor controls every road video camera and rotates between multiple different presetting angle.The monitoring visual field that multiple different presetting angle residing for the video camera of every road reaches can cover the transversal section on whole road surface.The intelligent taking turn monitor mode of this utilization detects the device of traffic events as shown in the 3rd embodiment.
It should be noted that, when a certain section being provided with multichannel video camera, the position control mode of this multichannel video camera can adopt coordinated signals mode.When the position of a road video camera changes, the position of other road video camera also changes.In order to avoid monitoring blind area, the position of multichannel video camera residing for synchronization be arranged on same section can ensure that monitoring visual field covers the transversal section on whole road surface.In addition, when multichannel video camera carries out rotation between different presetting bit, the seamless connection of monitoring visual field can be ensured.
Further, the method that described traffic incidents detection device adopts every road video camera to carry out automatic taking turn monitoring between multiple different presetting bit carries out the detection of traffic events, multiple different presetting bit residing for the video camera of every road can cover the transversal section on whole road surface, setting video camera is after the monitoring period of a presetting bit reaches Preset Time, and automatic alternate is monitored to next presetting bit.
As the 3rd embodiment of the present invention, as shown in Figure 10, described device, except having the unit of first embodiment or second embodiment, can also comprise with lower unit:
Cancel and load presetting bit associated profile unit 101, for after receiving staff and carrying out the instruction of manual intervention, cancel and load presetting bit associated profile;
Tip element 102, for reach default manual monitoring duration from receiving staff and carry out the instruction of manual intervention after, whether prompting loads presetting bit associated profile, if, control the position of camera switching to the next presetting bit of described default presetting bit, with the traffic on the road that the next presetting bit gathering described default presetting bit is corresponding, if not, extend artificial monitor duration, from receiving after the instruction extending artificial monitor duration plays and again reach default manual monitoring duration, the signal of manual monitoring duration is sent to described Tip element.
Further, described device can further include: judging unit 103, for when receive staff refusal carry out the instruction of manual intervention after, judge whether video camera reaches Preset Time at the monitor event of current presetting bit, if, control the next presetting bit of camera switching to described default presetting bit, and the position signalling residing for video camera is sent to described acquiring unit.
It should be noted that, the traffic incidents detection device shown in Figure 10 is the improvement carried out on the basis of the embodiment shown in first specific embodiment of the present invention and Fig. 8.In fact, the traffic incidents detection device that can carry out intelligent taking turn can improve on the basis of above-mentioned any embodiment.
Be more than the preferred embodiments of the present invention.It should be pointed out that for the person of ordinary skill of the art, under the prerequisite not departing from inventive concept of the present invention, can also make some improvements and modifications, these improvements and modifications also should at the row of protection scope of the present invention.