Method for monitoring turning on of high beam and continuous tracking of vehicle in real time

文档序号:1239698 发布日期:2020-09-11 浏览:27次 中文

阅读说明:本技术 用于实时监测开启远光灯并持续跟踪车辆的方法 (Method for monitoring turning on of high beam and continuous tracking of vehicle in real time ) 是由 吕彤辉 连江东 宋第先 武进伟 宋学军 李荣德 于 2020-06-17 设计创作,主要内容包括:本发明涉及用于实时监测开启远光灯并持续跟踪车辆的方法,包括以下步骤:步骤S1:获取车辆车灯形态;步骤S2:通过边缘检测计算并分析车灯形态面积的变化规律;步骤S3:通过光流分析对车灯的位置变化进行跟踪并预测变化轨道;步骤S4:通过分析车辆面积的变化和车灯两灯光斑之间的间距变化对车辆锁定;步骤S5:通过分析车灯灯光照射角度的差异判断是否开启远光灯;步骤S6:车辆被拍照后与数据库内的车辆信息进行比对,用于二次精准分析;本发明具有检测准确度高、持续跟踪和分类汇总的优点。(The invention relates to a method for monitoring and turning on a high beam and continuously tracking a vehicle in real time, which comprises the following steps: step S1: obtaining the shape of a vehicle lamp; step S2: calculating and analyzing the change rule of the car lamp form area through edge detection; step S3: tracking the position change of the car lamp through optical flow analysis and predicting a change track; step S4: locking the vehicle by analyzing the change of the area of the vehicle and the change of the distance between two light spots of the vehicle lamp; step S5: judging whether to start a high beam or not by analyzing the difference of the light irradiation angles of the lamp lights of the vehicle; step S6: after the vehicle is photographed, the vehicle information is compared with the vehicle information in the database for secondary accurate analysis; the invention has the advantages of high detection accuracy, continuous tracking and classification and summarization.)

1. Method for real-time monitoring turning on of a high beam and continuous tracking of a vehicle, comprising the steps of:

step S1: obtaining the shape of a vehicle lamp;

step S2: calculating and analyzing the change rule of the car lamp form area through edge detection;

step S3: tracking the position change of the car lamp through optical flow analysis and predicting a change track;

step S4: locking the vehicle by analyzing the change of the area of the vehicle and the change of the distance between two light spots of the vehicle lamp;

step S5: judging whether to start a high beam or not by analyzing the difference of the light irradiation angles of the lamp lights of the vehicle;

step S6: and the photographed vehicle is compared with the vehicle information in the database for secondary accurate analysis.

2. The method for real-time monitoring turning on of high beam and continuous tracking of vehicle according to claim 1, wherein: the system also comprises an acquisition system, wherein the acquisition system comprises an acquisition camera, and the acquisition camera acquires vehicle light in an entering area through an acquisition module arranged inside the acquisition camera;

the judgment system comprises a judgment module for analyzing the collected light angle, the light angle is larger than that of a camera along with the fact that the vehicle is from far to near, the brightness sensed by the camera is obviously different correspondingly, the light angle is upward and the dipped headlight is downward in the short distance, the light angle and the camera are summed by traversing the whole pixel points, the value is found to be obviously larger than that of the dipped headlight in the long distance, the judgment module inputs big data for comparing the brightness of the light, and whether the vehicle turns on the high-beam light is judged by comparing the big data;

the automatic tracking system comprises a vehicle which turns on a high beam and is obtained through the judging system, and the vehicle is continuously tracked and recorded through the tracking camera, wherein the continuous tracking is used for locking the vehicle, and a lane changing of the vehicle is still locked.

3. A method for real-time monitoring the turning on of high beam and continuous tracking of vehicles according to claims 1 and 2, characterized in that: the step of obtaining the vehicle lamp shape comprises the following steps: and filtering by using a low exposure value.

4. A method for real-time monitoring the turning on of high beam and continuous tracking of vehicles according to claims 1 and 2, characterized in that: the edge detection in step S2 further includes detecting the form height of the vehicle lamp, and the detection of the form height is used to remove the interference of the environment.

5. A method for real-time monitoring the turning on of high beam and continuous tracking of vehicles according to claims 1 and 2, characterized in that: the predicted variation trajectory in step S3 is used for accurate photographing of forensic photography.

6. A method for real-time monitoring the turning on of high beam and continuous tracking of vehicles according to claims 1 and 2, characterized in that: the change of the vehicle area in step S4 is derived through optical flow analysis, and the vehicle area includes the vehicle contour and the area inside the vehicle contour.

7. A method for real-time monitoring the turning on of high beam and continuous tracking of vehicles according to claims 1 and 2, characterized in that: and in the step S4, the distance between the two light spots of the vehicle lamp is changed, so as to prevent misjudgment.

8. A method for real-time monitoring the turning on of high beam and continuous tracking of vehicles according to claims 1 and 2, characterized in that: in the step S5, the gray value sum of the lighting pixel points at the top position of the car light shape 1\3 is compared with the gray value in the database to determine whether the high beam is turned on.

9. A method for real-time monitoring turning on a high beam and continuously tracking a vehicle according to claim 1 or 2, characterized in that: and S6, the locked vehicle passes through the clear photographing position of the evidence obtaining camera to photograph, the photographed picture is compared with the vehicle type data in the database, and secondary accurate analysis is carried out.

Technical Field

The invention belongs to the technical field of automobile light detection, and particularly relates to a method for monitoring turning on of a high beam and continuously tracking a vehicle in real time.

Background

Automobile headlamps divide into the two kinds of situations of passing light mode and far-reaching beam mode, and the far-reaching headlamp is exactly the far-reaching beam mode wherein, according to the traffic rules, the use of car far-reaching headlamp has clear and definite regulation, because the far-reaching headlamp can bring convenience and safety for driving when using correctly, but also can bring very big potential safety hazard if using incorrectly, in intelligent transportation monitored control system, to the automated inspection discernment of far-reaching headlamp at night, not yet perfected.

The patent number is CN201910938099.2, the patent name is a detection method for the continuous opening of a high beam, a detection method for the continuous opening of a high beam is described in a patent material, it can be obtained from the patent material that a color image segmentation method is adopted for vehicle lamp extraction, then profile screening is performed, a vehicle lamp region is finally found, after the vehicle lamp region is found, an average gray value and a characteristic shape area change rule in the region are solved, and a vehicle is locked by analyzing a brightness average value and the characteristic shape area change rule of the vehicle lamp region; the disclosed material has the defects that the shape of the car lamp is inaccurately determined, in addition, because the quantity of light entering the camera of the car lamp changes along with the change of the angle in the driving process of the car, if the whole car lamp is detected, firstly, the calculated quantity is increased, secondly, misjudgment is easy, and finally, the result determined by the method is easy to cause errors, because different car types and different sizes of the car lamp, a dipped headlight of a large-sized car can be brighter than a high beam of a small-sized car, so that the judgment is made mistakenly, and the technical scheme for solving the problems is not disclosed in the material.

Aiming at the defects, the method for monitoring the turning-on of the high beam and continuously tracking the vehicle in real time, which has high detection accuracy and is used for continuously tracking and classifying and summarizing, has very important significance.

Disclosure of Invention

The invention aims to overcome the defects of the prior art and provides a method for monitoring the turning on of a high beam and continuously tracking a vehicle in real time, which has high detection accuracy and is used for continuously tracking and classifying and summarizing.

The purpose of the invention is realized as follows:

a method for real-time monitoring turning on of a high beam and continuous tracking of a vehicle, comprising the steps of:

step S1: obtaining the shape of a vehicle lamp;

step S2: calculating and analyzing the change rule of the car lamp form area through edge detection;

step S3: tracking the position change of the car lamp through optical flow analysis and predicting a change track;

step S4: locking the vehicle by analyzing the change of the area of the vehicle and the change of the distance between two light spots of the vehicle lamp;

step S5: judging whether to start a high beam or not by analyzing the difference of the light irradiation angles of the lamp lights of the vehicle;

step S6: the photographed vehicle is compared with the vehicle information in the database for secondary accurate analysis

The system further comprises an acquisition system, wherein the acquisition system comprises an acquisition camera, and the acquisition camera acquires vehicle light entering the area through an acquisition module arranged inside the acquisition camera;

the judgment system comprises a judgment module for distinguishing the collected light, wherein big data used for comparing the brightness of the light is input into the judgment module, and whether the high beam is turned on by the vehicle is judged by comparing the big data;

the automatic tracking system comprises a vehicle for starting a high beam lamp obtained by the judging system, and a tracking camera is used for continuously tracking and recording the vehicle, wherein the continuous tracking is used for locking the vehicle, and a vehicle lane is still locked;

and the data processing system collects and classifies the data transmitted by the automatic tracking system and the evidence obtaining camera, and transmits the data to the traffic control department according to the classification modes of following driving, meeting driving and forbidden high beam.

Further, the step of obtaining the shape of the vehicle lamp comprises: and filtering by using a low exposure value.

Further, the edge detection in step S2 further includes a vehicle lamp form height detection, and the form height detection is used to remove the environmental interference.

Further, the predicted variation trajectory in step S3 is used for accurate photographing of forensic photography.

Further, the change of the vehicle area in the step S4 is obtained by optical flow analysis, and the vehicle area includes the vehicle contour and the area inside the vehicle contour.

Further, the distance between the two light spots of the vehicle lamp in the step S4 is changed to prevent misjudgment.

Further, in step S5, the sum of the gray values of the lighting pixels at the top position of the vehicle lamp shape 1\3 is compared with the gray values in the database to determine whether the high beam is turned on.

Further, the vehicle locked in step S6 is photographed at a position where the evidence-obtaining camera clearly photographs, and the photographed image is compared with the vehicle type data in the database to perform secondary accurate analysis.

The invention has the beneficial effects that: the invention has the advantages that the tracking and video recording can be continuously carried out on the vehicle with the high beam switched on, the continuous tracking of the vehicle is not influenced even when the lane of the vehicle is changed, the technology adopts a light flow analysis method to complete the continuous tracking of the vehicle and predict the running track, the clear distance is selected, namely the distance is 25 meters away from the evidence-taking camera, the vehicle is taken a picture and the evidence is obtained, and other beneficial effects are described in detail in the specific embodiment.

Drawings

Fig. 1 is a system diagram of the method of the present invention for real-time monitoring of turning on high beam and continuous tracking of a vehicle.

Fig. 2 is a line of distance demarcated within the field of view of the camera.

Fig. 3 is a diagram showing a change in angle between the lamp and the camera when the vehicle is running.

Fig. 4 is a schematic diagram of the gray-level value of the pixel point to be calculated.

Detailed Description

The technical solutions in the embodiments of the present invention are clearly and completely described, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, rather than all embodiments, and all other embodiments obtained by those skilled in the art without any creative work based on the embodiments of the present invention belong to the protection scope of the present invention.

Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs, and the terms used herein are for the purpose of describing particular embodiments only and are not intended to be limiting of the invention, and terms such as "and/or" as used herein include any and all combinations of one or more of the associated listed items; in addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种圆弧状模拟传送带纵撕的视觉检测试验台

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!