WO2021114799A1 - Computer vision-based matrix vehicle light identification method - Google Patents

Computer vision-based matrix vehicle light identification method Download PDF

Info

Publication number
WO2021114799A1
WO2021114799A1 PCT/CN2020/116242 CN2020116242W WO2021114799A1 WO 2021114799 A1 WO2021114799 A1 WO 2021114799A1 CN 2020116242 W CN2020116242 W CN 2020116242W WO 2021114799 A1 WO2021114799 A1 WO 2021114799A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
vehicle
area
brightness
distance
Prior art date
Application number
PCT/CN2020/116242
Other languages
French (fr)
Chinese (zh)
Inventor
王建春
Original Assignee
华南理工大学广州学院
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 华南理工大学广州学院 filed Critical 华南理工大学广州学院
Publication of WO2021114799A1 publication Critical patent/WO2021114799A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • G06V20/54Surveillance or monitoring of activities, e.g. for recognising suspicious objects of traffic, e.g. cars on the road, trains or boats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/12Edge-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • G06V10/267Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/28Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/30Noise filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30236Traffic on road, railway or crossing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Definitions

  • the invention relates to the technical field of automobile lights, in particular to a matrix automobile lamp recognition method based on computer vision.
  • a patent document with a Chinese patent application number of 201810810013.3 and an announcement date of 2018.12.28 discloses a method for controlling the high beams of a night meeting car.
  • the system, computer-readable storage medium, and the method include the steps of: acquiring a road vehicle image; acquiring the brightness value of the HSL image pixel according to the road vehicle image; judging whether the brightness value of the HSL image pixel is within a preset vehicle light brightness threshold range If the judgment result is yes, then match the road vehicle image with the preset image mask; if the match is successful, obtain the location information of the road vehicle based on the road vehicle image; control based on the location information of the road vehicle The high beams of the corresponding area are turned off.
  • the road vehicle image is matched with the preset image mask, specifically by matching the brightness value, and then the vehicle lights are adjusted after the matching is successful.
  • the vehicle lights are adjusted after the matching is successful.
  • different vehicles have different brightness and There will also be deviations in the brightness collected from different locations, and the brightness of the car lights detected on some roads will also be affected by the brightness of one side of the road, which makes it impossible to truly judge whether the vehicle is getting closer and closer to the vehicle. This leads to inaccurate control.
  • the invention provides a matrix vehicle lamp recognition method based on computer vision.
  • the method has high accuracy in vehicle distance recognition, and adjusts the brightness of the vehicle lamp according to the distance from the road vehicle when meeting vehicles at night to prevent the occurrence of safety accidents.
  • a matrix vehicle light recognition method based on computer vision includes the following steps:
  • the lower computer adjusts the brightness of the lights according to the distance information from the target vehicle.
  • the lower computer adjusts the voltage of the LED lights through the output voltage of the control circuit, thereby adjusting the brightness of the lights.
  • the road vehicle image and video information are automatically obtained through the camera, and then the vehicle image is binarized, and the image is denoised, and then the edge detection is determined to determine whether there are lights, and then the outline of the lights is determined, and at the same time pass Edge detection determines the largest closed circle and then determines the ROI area, that is, the key area, and then determines the area before and after the movement of the lamp, and then determines the distance between the two cars according to the difference between the area parameters.
  • the area difference between the previous frame image and the current frame image of the vehicle image can be judged as the distance between the detection vehicle and the target vehicle, and then the brightness of the detection vehicle is adjusted according to the distance to ensure the safety of driving at night.
  • the movement distance determined in this way will not be affected by the brightness of the external environment, and the accuracy is high.
  • the maximum closed circle is determined and then the ROI is determined, which can save data processing and also determine the key information area through ROI to improve accuracy .
  • the image edge detection in 4) is Laplacian image detection.
  • the above setting method is simple and reliable.
  • the lower computer adjusts the brightness of the vehicle lights according to the processed distance information.
  • the lower computer adjusts the brightness of the car lights according to the distance information, which specifically includes the distance information and the preset relationship table between the distance information and the brightness to determine the brightness information, and the brightness information is determined according to the distance information and the preset relationship between the distance information and the brightness.
  • the meter can adjust the brightness more accurately and improve the accuracy of the brightness adjustment of the car lights.
  • step 2) performing image binarization processing on the vehicle image specifically includes: converting the vehicle image to RGB color space, and then performing binarization processing on the RGB color space, by converting the vehicle image to RGB color space, and then Carrying out binarization processing, processing is convenient, and processing speed is fast.
  • FIG. 1 is a schematic flowchart of a method for matrix vehicle light recognition based on computer vision of the present invention.
  • Fig. 2 is a picture after denoising processing of an image in a matrix car light recognition method based on computer vision of the present invention.
  • FIG. 3 is a picture after edge detection is performed on an image in a matrix vehicle light recognition method based on computer vision of the present invention.
  • the present invention discloses a matrix vehicle lamp recognition method based on computer vision, as shown in Fig. 1, including the following steps:
  • the lower computer adjusts the brightness of the lights according to the distance information from the target vehicle.
  • the lower computer adjusts the voltage of the LED lights through the output voltage of the control circuit, thereby adjusting the brightness of the lights.
  • the image edge detection in 4) is Laplacian image detection.
  • the lower computer adjusts the brightness of the car lights according to the processed distance information from the target car.
  • the relationship table between the distance information and the brightness determines the brightness information, so as to adjust the brightness of the lights according to the distance information of the target vehicle, and prevent the brightness of the lights from being too high to cause dazzling conditions for road vehicle drivers and cause traffic accidents.
  • performing image binarization processing on the vehicle image in step 2) specifically includes: converting the vehicle image to an RGB color space, and then performing binarization processing on the RGB color space;
  • the area difference between the previous frame image and the current frame image can be determined as the distance between the detection vehicle and the target vehicle, and then the brightness of the detection vehicle is adjusted according to the distance to ensure the safety of driving at night, and it is determined according to this method
  • the moving distance will not be affected by the brightness of the external environment, and the accuracy is high.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Geometry (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Traffic Control Systems (AREA)

Abstract

A computer vision-based matrix vehicle light identification method. The method comprises the steps of: obtaining pavement vehicle image video information by means of a camera; performing image binarization processing; performing image edge detection; obtaining vehicle light distance information; sending processed distance information to a lower computer; and adjusting, by the lower computer, brightness of a vehicle light according to the distance information. According to the method, a pavement vehicle image is automatically obtained, the image is subjected to analysis processing, and brightness of a vehicle light is adjusted according to the processing result, so that the vehicle light is automatically adjusted according to a pavement vehicle condition, and traffic accidents are prevented.

Description

一种基于计算机视觉的矩阵车灯识别方法A matrix car lamp recognition method based on computer vision 技术领域Technical field
本发明涉及汽车车灯技术领域,具体涉及一种基于计算机视觉的矩阵车灯识别方法。The invention relates to the technical field of automobile lights, in particular to a matrix automobile lamp recognition method based on computer vision.
背景技术Background technique
随着人们生活水平日益提高,汽车是人们出行必不可少的交通工具。人们对汽车需求量增大的同时也对驾驶的舒适性和对功能的要求也不断提高。对于车灯控制方面,需要一个文明良好的行车照明方案。目前,汽车矩阵车灯控制技术大部分依赖光敏传感器、超声波传感器等,只能探测到汽车周围大环境下的环境亮度等信息,而且在此类信息判断方面能力有限,原因是夜间路面图像包含有很多干扰信息,例如路灯、反光的路牌、反光的路面积水等对夜间会车时车灯的识别都会造成干扰,无法满足进一步的车辆识别要求,造成了极大的安全隐患。With the improvement of people's living standards, cars are an indispensable means of transportation for people to travel. As people's demand for cars has increased, their requirements for driving comfort and functions have also been increasing. For car light control, a civilized and good driving lighting program is needed. At present, most of the automotive matrix lamp control technology relies on photosensitive sensors, ultrasonic sensors, etc., which can only detect information such as environmental brightness in the surrounding environment of the car, and the ability to judge such information is limited. The reason is that the night road image contains A lot of interference information, such as street lights, reflective road signs, and reflective road surface water, will interfere with the identification of the lights during the night meeting, which cannot meet the further requirements of vehicle identification, causing great security risks.
为解决上述技术问题,出现了一种夜间会车远光灯控制方法,在中国专利申请号为201810810013.3,公告日为2018.12.28的专利文献中公开了一种夜间会车远光灯控制方法及其系统、计算机可读存储介质,方法包括步骤:获取路面车辆图像;根据所述路面车辆图像获取HSL图像像素的亮度值;判断所述HSL图像像素的亮度值是否位于预设车灯亮度阈值范围内,若判断结果为是,则将所述路面车辆图像和预设图像掩模进行匹配;若匹配成功,根据所述路面车辆图像获取路面车辆的位置信息;根据所述路面车辆的位置信息控制对应区域的远光灯关闭。In order to solve the above-mentioned technical problems, a method for controlling the high beams of a night meeting car has appeared. A patent document with a Chinese patent application number of 201810810013.3 and an announcement date of 2018.12.28 discloses a method for controlling the high beams of a night meeting car. The system, computer-readable storage medium, and the method include the steps of: acquiring a road vehicle image; acquiring the brightness value of the HSL image pixel according to the road vehicle image; judging whether the brightness value of the HSL image pixel is within a preset vehicle light brightness threshold range If the judgment result is yes, then match the road vehicle image with the preset image mask; if the match is successful, obtain the location information of the road vehicle based on the road vehicle image; control based on the location information of the road vehicle The high beams of the corresponding area are turned off.
但是,根据该文献公开的技术方案,是通过路面车辆图像和预设图像掩模进行匹配,具体是通过匹配亮度值,匹配成功后再进行车灯调节,但是由于不同的车辆亮度不一样、且不同的位置采集的亮度上也会有偏差,并且在一些道路上检测到的车灯的亮度还会受到道路一边亮度的影响,从而导致无法真正判断该车辆是否已距本车辆越来越近,从而导致控制不准确的情况发生。However, according to the technical solution disclosed in this document, the road vehicle image is matched with the preset image mask, specifically by matching the brightness value, and then the vehicle lights are adjusted after the matching is successful. However, because different vehicles have different brightness and There will also be deviations in the brightness collected from different locations, and the brightness of the car lights detected on some roads will also be affected by the brightness of one side of the road, which makes it impossible to truly judge whether the vehicle is getting closer and closer to the vehicle. This leads to inaccurate control.
发明内容Summary of the invention
本发明提供一种基于计算机视觉的矩阵车灯识别方法,该方法车辆距离识别准确高,在夜间会车时根据与路面车辆的距离调节车灯亮度,防止安全事故的发生。The invention provides a matrix vehicle lamp recognition method based on computer vision. The method has high accuracy in vehicle distance recognition, and adjusts the brightness of the vehicle lamp according to the distance from the road vehicle when meeting vehicles at night to prevent the occurrence of safety accidents.
为达到上述目的,一种基于计算机视觉的矩阵车灯识别方法,包括以下步骤:In order to achieve the above-mentioned purpose, a matrix vehicle light recognition method based on computer vision includes the following steps:
1)通过摄像头获取路面车辆图像视频信息;1) Obtain the image and video information of road vehicles through the camera;
2)将车辆图像视频信息中车辆图像进行图像二值化处理;2) Carry out image binarization processing on the vehicle image in the vehicle image and video information;
3)对图像进行预处理:通过高斯滤波去除图像噪声得到去噪之后的图像;3) Preprocess the image: remove image noise through Gaussian filtering to obtain a denoised image;
4)对进行图像边缘检测:检测图像上是否存在目标车的车灯,若检测到去噪之后的图像具有两个区域大小相似且两个区域距离在阈值范围之后,则判定去噪之后的图像中存在车灯;若检测到去噪之后的图像上存在车灯,根据检测结果计算连通区域的面积,获得最大的连通域面积,描绘轮廓并获得最大面积轮廓;利用霍夫圆检测,在最大面积轮廓上求出最大封闭圆;通过求得的最大封闭圆的中心的和半径参数获取ROI矩形区域,将获得的ROI区域作为下一步需要追踪的车灯区域;4) Perform image edge detection: detect whether there are lights of the target car on the image, if it is detected that the image after denoising has two areas of similar size and the distance between the two areas is below the threshold range, then the image after denoising is determined If there are car lights in the image after denoising, calculate the area of the connected area according to the detection result to obtain the largest area of the connected area, draw the outline and obtain the outline of the largest area; use the Hough circle to detect the largest area. Calculate the largest closed circle on the area contour; obtain the ROI rectangular area through the calculated center and radius parameters of the largest closed circle, and use the obtained ROI area as the vehicle light area to be tracked in the next step;
5)获取距离目标车的距离信息:对4)中识别的车灯区域进行反向投影,获取反向投影视图;根据获得的反向投影图和车灯的轮廓进行camshift算法迭代,根据上一帧图像以及camshift算法迭代输出的下一帧图像ROI矩形区域的中心坐标;通过公式AB=((X+P2)*F)/K,得到距离目标车之间的距离,其中AB为距离目标车之间的距离距离,X是上一帧图像输出的中心坐标,P2为当前帧图像输出的中心坐标,F为超参数,K为调整参数;5) Obtain the distance information from the target car: back-project the car light area identified in 4) to obtain the back-projection view; perform the camshift algorithm iteration according to the obtained back-projection map and the outline of the car light, according to the previous Frame image and the center coordinates of the ROI rectangular area of the next frame image iteratively output by the camshift algorithm; through the formula AB=((X+P2)*F)/K, the distance to the target car is obtained, where AB is the distance to the target car X is the center coordinate of the image output of the previous frame, P2 is the center coordinate of the image output of the current frame, F is the hyperparameter, and K is the adjustment parameter;
6)将处理后的距离信息发送至下位机;6) Send the processed distance information to the lower computer;
7)下位机根据距离目标车的距离信息调节车灯的亮度,下位机通过控制电路的输出电压,调节LED灯的电压大小,从而调节车灯亮度。7) The lower computer adjusts the brightness of the lights according to the distance information from the target vehicle. The lower computer adjusts the voltage of the LED lights through the output voltage of the control circuit, thereby adjusting the brightness of the lights.
以上设置,通过摄像头自动获取路面车辆图像视频信息,然后对车辆图像进行二值化处理,并对图像进行除噪处理,然后确定边缘检测确定是否存在车灯然后对车灯进行轮廓确定,同时通过边缘检测确定最大封闭圆然后确定ROI区域即关键区域,进而确定车灯的移动前后的面积,然后根据面积参数之差确定两车之间距离信息,由于检测车和目标车在运动,根据检测到的车辆图像的上一帧图像与当前帧图像之间的面积之差即可判定为检测车与目标车之间的距离,然后根据距离调整检测车的亮度,确保夜间行车的安全,同时根据该种方式确定的移动距离不会收到外界环境亮度的影响,准确性高,通过边缘检测之后确定最大封闭圆然后确定ROI,即能节省数据处理量也可以通过ROI确定关键信息区域从而提高准确性。With the above settings, the road vehicle image and video information are automatically obtained through the camera, and then the vehicle image is binarized, and the image is denoised, and then the edge detection is determined to determine whether there are lights, and then the outline of the lights is determined, and at the same time pass Edge detection determines the largest closed circle and then determines the ROI area, that is, the key area, and then determines the area before and after the movement of the lamp, and then determines the distance between the two cars according to the difference between the area parameters. Since the detected car and the target car are moving, according to the detected The area difference between the previous frame image and the current frame image of the vehicle image can be judged as the distance between the detection vehicle and the target vehicle, and then the brightness of the detection vehicle is adjusted according to the distance to ensure the safety of driving at night. The movement distance determined in this way will not be affected by the brightness of the external environment, and the accuracy is high. After edge detection, the maximum closed circle is determined and then the ROI is determined, which can save data processing and also determine the key information area through ROI to improve accuracy .
进一步地,所述4)的图像边缘检测是拉普拉斯图像检测。以上设置,方法简单可靠。Further, the image edge detection in 4) is Laplacian image detection. The above setting method is simple and reliable.
进一步地,所述下位机根据处理后的距离信息调节车灯亮度,距离越近,车灯亮度越小,防止车灯亮度太高对路面车辆驾驶者造成炫目的情况,导致发生交通意外。以上设置,由于距离越近则亮度越高就越危险,从而根据距离信息调整亮度信息,确保夜间会车时行车安全。Further, the lower computer adjusts the brightness of the vehicle lights according to the processed distance information. The closer the distance, the lower the brightness of the vehicle lights, so as to prevent the high brightness of the vehicle lights from causing dazzling situations to road vehicle drivers and causing traffic accidents. With the above settings, the closer the distance is, the higher the brightness is, the more dangerous it is. Therefore, the brightness information is adjusted according to the distance information to ensure driving safety when meeting cars at night.
进一步地,所述7)下位机根据距离信息调节车灯的亮度,具体包括距离信息以及预设的距离信息与亮度的关系表确定亮度信息,根据距离信息和预设的距离信息与亮度的关系表可以更准确的调节亮度,提高车灯亮度调节的准确性。Further, said 7) the lower computer adjusts the brightness of the car lights according to the distance information, which specifically includes the distance information and the preset relationship table between the distance information and the brightness to determine the brightness information, and the brightness information is determined according to the distance information and the preset relationship between the distance information and the brightness. The meter can adjust the brightness more accurately and improve the accuracy of the brightness adjustment of the car lights.
进一步地,步骤2)中将车辆图像进行图像二值化处理具体包括:将车辆图像转换到RGB色彩空间,然后对RGB色彩空间进行二值化处理,通过将车辆图像转换到RGB色彩空间,然后进行二值化处理,处理方便,且处理速度快。Further, in step 2), performing image binarization processing on the vehicle image specifically includes: converting the vehicle image to RGB color space, and then performing binarization processing on the RGB color space, by converting the vehicle image to RGB color space, and then Carrying out binarization processing, processing is convenient, and processing speed is fast.
附图说明Description of the drawings
图1为本发明一种基于计算机视觉的矩阵车灯识别方法的流程示意图。FIG. 1 is a schematic flowchart of a method for matrix vehicle light recognition based on computer vision of the present invention.
图2为本发明一种基于计算机视觉的矩阵车灯识别方法的对图像进行去噪处理之后的图片。Fig. 2 is a picture after denoising processing of an image in a matrix car light recognition method based on computer vision of the present invention.
图3为本发明一种基于计算机视觉的矩阵车灯识别方法的对图像进行边缘检测之后的图片。FIG. 3 is a picture after edge detection is performed on an image in a matrix vehicle light recognition method based on computer vision of the present invention.
具体实施方式Detailed ways
下面结合附图和具体实施方式对本发明做进一步详细说明。The present invention will be further described in detail below in conjunction with the drawings and specific embodiments.
本发明公开了一种基于计算机视觉的矩阵车灯识别方法,如图1所示,包括以下步骤:The present invention discloses a matrix vehicle lamp recognition method based on computer vision, as shown in Fig. 1, including the following steps:
1)通过摄像头获取路面车辆图像视频信息;1) Obtain the image and video information of road vehicles through the camera;
2)将车辆图像视频信息中车辆图像进行图像二值化处理;2) Carry out image binarization processing on the vehicle image in the vehicle image and video information;
3)对图像进行预处理:通过高斯滤波去除图像噪声得到去噪之后的图像;3) Preprocess the image: remove image noise through Gaussian filtering to obtain a denoised image;
4)对进行图像边缘检测:如图3所示,检测图像上是否存在目标车的车灯,若检测到去噪之后的图像具有两个区域大小相似且两个区域距离在阈值范围之后,则判定去噪之后的图像中存在车灯;若检测到去噪之后的图像上存在车灯,根据检测结果计算连通区域的面积,获得最大的连通域面积,描绘轮廓并获得最大面积轮廓;利用霍夫圆检测,在最大面积轮廓上求出最大封闭圆;通过求得的最大封闭圆的中心和半径参数获取ROI矩形区域,将获得的ROI区域作为下一步需要追踪的车灯区域;本实施例中,霍夫圆检测采用OpenMV中霍夫圆变换。4) Perform image edge detection: As shown in Figure 3, detect whether there are lights of the target car on the image. If it is detected that the denoising image has two areas of similar size and the distance between the two areas is below the threshold range, then Determine that there are car lights in the image after denoising; if it is detected that there are car lights on the image after denoising, calculate the area of the connected region according to the detection result to obtain the largest connected region area, draw the contour and obtain the contour of the largest area; use Huo Husband circle detection, find the largest closed circle on the contour of the largest area; obtain the ROI rectangular area through the obtained center and radius parameters of the largest closed circle, and use the obtained ROI area as the vehicle light area to be tracked in the next step; this embodiment In the Hough circle detection, the Hough circle transformation in OpenMV is used.
5)获取距离目标车的距离信息:获取距离目标车的距离信息:对4)中识别的车灯区域进行反向投影,获取反向投影视图;根据获得的反向投影图和车灯的轮廓进行camshift算法迭代,根据上一帧图像ROI区域面积S1以及camshift算法迭代输出的当前帧图像ROI矩形区域的面积S2;通过公式AB=(S2-S1)/K,得到距离目标车之间的距离,其中AB为距离目标车之间的距离距离,K为调整参数;其中ROI矩形区域的面积的计算可以通过由于霍夫圆检测确定了最大封闭圆的中心和半径参数,ROI矩形区域为最大封闭圆的最大内切圆,由于内切圆的半径参数确定,从而通过4倍的半径参数的平方即可求得面积;5) Obtain the distance information from the target vehicle: Obtain the distance information from the target vehicle: Back-project the lamp area identified in 4) to obtain the back-projection view; according to the obtained back-projection diagram and the outline of the lamp Carry out camshift algorithm iteration, according to the previous frame image ROI area area S1 and the current frame image ROI rectangular area area S2 iteratively output by the camshift algorithm; through the formula AB=(S2-S1)/K, the distance to the target car is obtained , Where AB is the distance between the target vehicle and K is the adjustment parameter; the area of the ROI rectangular area can be calculated by determining the center and radius parameters of the largest closed circle due to the Hough circle detection, and the ROI rectangular area is the largest closed circle The largest inscribed circle of a circle, since the radius parameter of the inscribed circle is determined, the area can be obtained by 4 times the square of the radius parameter;
通过上一帧图像的ROI区域面积S1与当前帧图像ROI矩形区域面积S2之间的差值经 过调整之后确定两车之间的距离;Determine the distance between the two cars after adjusting the difference between the ROI area area S1 of the previous frame image and the ROI rectangular area area S2 of the current frame image;
6)将处理后的距离信息发送至下位机;6) Send the processed distance information to the lower computer;
7)下位机根据距离目标车的距离信息调节车灯的亮度,下位机通过控制电路的输出电压,调节LED灯的电压大小,从而调节车灯亮度。7) The lower computer adjusts the brightness of the lights according to the distance information from the target vehicle. The lower computer adjusts the voltage of the LED lights through the output voltage of the control circuit, thereby adjusting the brightness of the lights.
本实施例中,所述4)的图像边缘检测是拉普拉斯图像检测。In this embodiment, the image edge detection in 4) is Laplacian image detection.
所述下位机根据处理后的距离目标车的距离信息调节车灯亮度,距离目标车的距离越近,车灯亮度越小,具体地,根据距离目标车的距离信息以及预设的距离目标车的距离信息与亮度的关系表确定亮度信息,实现根据距离目标车的距离信息调整车灯亮度,防止车灯亮度太高对路面车辆驾驶者造成炫目的情况,导致发生交通意外。The lower computer adjusts the brightness of the car lights according to the processed distance information from the target car. The closer the distance to the target car, the smaller the brightness of the car lights. Specifically, according to the distance information from the target car and the preset distance target car The relationship table between the distance information and the brightness determines the brightness information, so as to adjust the brightness of the lights according to the distance information of the target vehicle, and prevent the brightness of the lights from being too high to cause dazzling conditions for road vehicle drivers and cause traffic accidents.
本实施例中,步骤2)中将车辆图像进行图像二值化处理具体包括:将车辆图像转换到RGB色彩空间,然后对RGB色彩空间进行二值化处理;In this embodiment, performing image binarization processing on the vehicle image in step 2) specifically includes: converting the vehicle image to an RGB color space, and then performing binarization processing on the RGB color space;
通过摄像头自动获取路面车辆图像视频信息,然后对车辆图像进行二值化处理,并对图像进行除噪处理,然后确定边缘检测确定是否存在车灯然后对车灯进行轮廓确定,同时通过边缘检测确定最大封闭圆然后确定ROI区域即关键区域,进而确定车灯的移动前后的面积,然后根据面积参数之差确定两车之间距离信息,由于检测车和目标车在运动,根据检测到的车辆图像的上一帧图像与当前帧图像之间的面积之差即可判定为检测车与目标车之间的距离,然后根据距离调整检测车的亮度,确保夜间行车的安全,同时根据该种方式确定的移动距离不会收到外界环境亮度的影响,准确性高。Automatically obtain the video information of the road vehicle image through the camera, and then binarize the vehicle image, and perform the denoising process on the image, and then determine the edge detection to determine whether there are lights, then determine the outline of the lights, and determine through edge detection The largest closed circle then determines the ROI area, that is, the key area, and then determines the area before and after the movement of the lights, and then determines the distance between the two cars according to the difference between the area parameters. Since the detected car and the target car are in motion, according to the detected vehicle image The area difference between the previous frame image and the current frame image can be determined as the distance between the detection vehicle and the target vehicle, and then the brightness of the detection vehicle is adjusted according to the distance to ensure the safety of driving at night, and it is determined according to this method The moving distance will not be affected by the brightness of the external environment, and the accuracy is high.

Claims (5)

  1. 一种基于计算机视觉的矩阵车灯识别方法,其特征在于,包括以下步骤:A method for matrix vehicle lamp recognition based on computer vision, which is characterized in that it comprises the following steps:
    1)通过摄像头获取路面车辆图像视频信息;1) Obtain the image and video information of road vehicles through the camera;
    2)将车辆图像视频信息中车辆图像进行图像二值化处理;2) Carry out image binarization processing on the vehicle image in the vehicle image and video information;
    3)对图像进行预处理:通过高斯滤波去除图像噪声得到去噪之后的图像;3) Preprocess the image: remove image noise through Gaussian filtering to obtain a denoised image;
    4)对进行图像边缘检测:检测图像上是否存在目标车的车灯,若检测到去噪之后的图像具有两个区域大小相似且两个区域距离在阈值范围之后,则判定去噪之后的图像中存在车灯;若检测到去噪之后的图像上存在车灯,根据检测结果计算连通区域的面积,获得最大的连通域面积,描绘轮廓并获得最大面积轮廓;利用霍夫圆检测,在最大面积轮廓上求出最大封闭圆;通过求得的最大封闭圆的中心的和半径参数获取ROI矩形区域,将获得的ROI区域作为下一步需要追踪的车灯区域;4) Perform image edge detection: detect whether there are lights of the target car on the image, if it is detected that the image after denoising has two areas of similar size and the distance between the two areas is below the threshold range, then the image after denoising is determined If there are car lights in the image after denoising, calculate the area of the connected area according to the detection result to obtain the largest area of the connected area, draw the outline and obtain the outline of the largest area; use the Hough circle to detect the largest area. Calculate the largest closed circle on the area contour; obtain the ROI rectangular area through the calculated center and radius parameters of the largest closed circle, and use the obtained ROI area as the vehicle light area to be tracked in the next step;
    5)获取距离目标车的距离信息:对4)中识别的车灯区域进行反向投影,获取反向投影视图;根据获得的反向投影图和车灯的轮廓进行camshift算法迭代,根据上一帧图像ROI区域面积S1以及camshift算法迭代输出的当前帧图像ROI矩形区域的面积S2;通过公式AB=(S2-S1)/K,得到距离目标车之间的距离,其中AB为距离目标车之间的距离距离,K为调整参数;5) Obtain the distance information from the target car: back-project the car light area identified in 4) to obtain the back-projection view; perform the camshift algorithm iteration according to the obtained back-projection map and the outline of the car light, according to the previous Frame image ROI area area S1 and the area S2 of the current frame image ROI rectangular area iteratively output by the camshift algorithm; through the formula AB=(S2-S1)/K, the distance to the target car is obtained, where AB is the distance to the target car The distance between the two, K is the adjustment parameter;
    6)将处理后的距离信息发送至下位机;6) Send the processed distance information to the lower computer;
    7)下位机根据距离目标车的距离信息调节车灯的亮度,下位机通过控制电路的输出电压,调节LED灯的电压大小,从而调节车灯亮度。7) The lower computer adjusts the brightness of the lights according to the distance information from the target vehicle. The lower computer adjusts the voltage of the LED lights through the output voltage of the control circuit, thereby adjusting the brightness of the lights.
  2. 根据权利要求1所述的一种基于计算机视觉的矩阵车灯识别方法,其特征在于:所述4)的图像边缘检测是拉普拉斯图像检测。The method for matrix vehicle light recognition based on computer vision according to claim 1, wherein the image edge detection in 4) is Laplacian image detection.
  3. 根据权利要求1所述的一种基于计算机视觉的矩阵车灯识别方法,其特征在于:所述下位机根据处理后的距离目标车的距离信息调节车灯亮度,距离目标车的距离越近,车灯亮度越小。The method for matrix vehicle light recognition based on computer vision according to claim 1, wherein the lower computer adjusts the brightness of the vehicle lights according to the processed distance information from the target vehicle, the closer the distance to the target vehicle is, The lower the brightness of the car lights.
  4. 根据权利要求3所述的一种基于计算机视觉的矩阵车灯识别方法,其特征在于:所述7)下位机根据距离信息调节车灯的亮度,具体包括根据距离目标车的距离信息以及预设的距离目标车的距离信息与亮度的关系表确定亮度信息。The method for matrix vehicle light recognition based on computer vision according to claim 3, characterized in that: said 7) the lower computer adjusts the brightness of vehicle lights according to distance information, specifically including distance information based on the distance to the target vehicle and presets The relationship table between the distance information of the target vehicle and the brightness determines the brightness information.
  5. 根据权利要求1所述的一种基于计算机视觉的矩阵车灯识别方法,其特征在于:步骤2)中将车辆图像进行图像二值化处理具体包括:将车辆图像转换到RGB色彩空间,然后对RGB色彩空间进行二值化处理。The method for matrix vehicle light recognition based on computer vision according to claim 1, characterized in that: in step 2), the image binarization processing on the vehicle image specifically includes: converting the vehicle image to RGB color space, and then The RGB color space is binarized.
PCT/CN2020/116242 2019-12-14 2020-09-18 Computer vision-based matrix vehicle light identification method WO2021114799A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911287058.8 2019-12-14
CN201911287058.8A CN111027494B (en) 2019-12-14 2019-12-14 Matrix car lamp identification method based on computer vision

Publications (1)

Publication Number Publication Date
WO2021114799A1 true WO2021114799A1 (en) 2021-06-17

Family

ID=70210845

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/116242 WO2021114799A1 (en) 2019-12-14 2020-09-18 Computer vision-based matrix vehicle light identification method

Country Status (2)

Country Link
CN (1) CN111027494B (en)
WO (1) WO2021114799A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113971778A (en) * 2021-10-27 2022-01-25 吉林大学 System and method for detecting and early warning high beam
CN117152415A (en) * 2023-09-01 2023-12-01 北京奥乘智能技术有限公司 Method, device, equipment and storage medium for detecting marker of medicine package

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111027494B (en) * 2019-12-14 2023-09-05 华南理工大学广州学院 Matrix car lamp identification method based on computer vision
CN112927502B (en) * 2021-01-21 2023-02-03 广州小鹏自动驾驶科技有限公司 Data processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105303160A (en) * 2015-09-21 2016-02-03 中电海康集团有限公司 Method for detecting and tracking vehicles at night
CN109094451A (en) * 2018-07-23 2018-12-28 华南师范大学 Night meeting high beam control method and its system, computer readable storage medium
CN110450706A (en) * 2019-08-22 2019-11-15 哈尔滨工业大学 A kind of adaptive distance light lamp control system and image processing algorithm
CN111027494A (en) * 2019-12-14 2020-04-17 华南理工大学广州学院 Matrix vehicle lamp identification method based on computer vision

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105303160A (en) * 2015-09-21 2016-02-03 中电海康集团有限公司 Method for detecting and tracking vehicles at night
CN109094451A (en) * 2018-07-23 2018-12-28 华南师范大学 Night meeting high beam control method and its system, computer readable storage medium
CN110450706A (en) * 2019-08-22 2019-11-15 哈尔滨工业大学 A kind of adaptive distance light lamp control system and image processing algorithm
CN111027494A (en) * 2019-12-14 2020-04-17 华南理工大学广州学院 Matrix vehicle lamp identification method based on computer vision

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113971778A (en) * 2021-10-27 2022-01-25 吉林大学 System and method for detecting and early warning high beam
CN113971778B (en) * 2021-10-27 2024-05-03 吉林大学 High beam detection and early warning system and method
CN117152415A (en) * 2023-09-01 2023-12-01 北京奥乘智能技术有限公司 Method, device, equipment and storage medium for detecting marker of medicine package
CN117152415B (en) * 2023-09-01 2024-04-23 北京奥乘智能技术有限公司 Method, device, equipment and storage medium for detecting marker of medicine package

Also Published As

Publication number Publication date
CN111027494A (en) 2020-04-17
CN111027494B (en) 2023-09-05

Similar Documents

Publication Publication Date Title
WO2021114799A1 (en) Computer vision-based matrix vehicle light identification method
CN103984950B (en) A kind of moving vehicle brake light status recognition methods for adapting to detection on daytime
JP5809785B2 (en) Vehicle external recognition device and light distribution control system using the same
Alcantarilla et al. Night time vehicle detection for driving assistance lightbeam controller
O'Malley et al. Vehicle detection at night based on tail-light detection
US8995723B2 (en) Detecting and recognizing traffic signs
US9384401B2 (en) Method for fog detection
EP1671216B1 (en) Moving object detection using low illumination depth capable computer vision
US8699754B2 (en) Clear path detection through road modeling
CN109190523B (en) Vehicle detection tracking early warning method based on vision
CN109299674B (en) Tunnel illegal lane change detection method based on car lamp
JP5823661B2 (en) How to detect events that obstruct the field of view of an automobile
KR101049901B1 (en) Intelligent Driving Safety Prevention System and Method Using Sensor Information
JP2006343322A (en) Method for detecting nighttime fog, and system for implementing the same
CN104899554A (en) Vehicle ranging method based on monocular vision
US20130018547A1 (en) Environment Recognizing Device for a Vehicle and Vehicle Control System Using the Same
CN112406687A (en) 'man-vehicle-road' cooperative programmable matrix headlamp system and method
CN105654073A (en) Automatic speed control method based on visual detection
CN104527427A (en) Velocity-limiting mark recognizing and vehicle-velocity control method and system based on vehicle traveling recording instrument
CN111231833A (en) Automobile auxiliary driving system based on combination of holographic projection and AR
CN113743226B (en) Daytime front car light language recognition and early warning method and system
CN111275981A (en) Method for identifying starting brake lamp and double-flashing lamp of highway vehicle
TWI662484B (en) Object detection method
CN110341582B (en) Intelligent car lamp semantic projection lighting device and method
CN107133594A (en) The detection method of front side moving vehicle

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20899424

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20899424

Country of ref document: EP

Kind code of ref document: A1