[go: up one dir, main page]

CN112784639A - Intersection detection, neural network training and intelligent driving method, device and equipment - Google Patents

Intersection detection, neural network training and intelligent driving method, device and equipment Download PDF

Info

Publication number
CN112784639A
CN112784639A CN201911083615.4A CN201911083615A CN112784639A CN 112784639 A CN112784639 A CN 112784639A CN 201911083615 A CN201911083615 A CN 201911083615A CN 112784639 A CN112784639 A CN 112784639A
Authority
CN
China
Prior art keywords
intersection
road
image
detection
sample image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911083615.4A
Other languages
Chinese (zh)
Inventor
程光亮
石建萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sensetime Technology Development Co Ltd
Original Assignee
Beijing Sensetime Technology Development Co Ltd
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 Beijing Sensetime Technology Development Co Ltd filed Critical Beijing Sensetime Technology Development Co Ltd
Priority to CN201911083615.4A priority Critical patent/CN112784639A/en
Priority to KR1020217016327A priority patent/KR20210082518A/en
Priority to JP2021532862A priority patent/JP2022512165A/en
Priority to PCT/CN2020/114095 priority patent/WO2021088504A1/en
Publication of CN112784639A publication Critical patent/CN112784639A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/56Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/09Supervised learning
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W40/00Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
    • B60W40/02Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models related to ambient conditions
    • B60W40/06Road conditions
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W30/00Purposes of road vehicle drive control systems not related to the control of a particular sub-unit, e.g. of systems using conjoint control of vehicle sub-units
    • B60W30/10Path keeping
    • B60W30/12Lane keeping
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W30/00Purposes of road vehicle drive control systems not related to the control of a particular sub-unit, e.g. of systems using conjoint control of vehicle sub-units
    • B60W30/18Propelling the vehicle
    • B60W30/18009Propelling the vehicle related to particular drive situations
    • B60W30/18154Approaching an intersection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0464Convolutional networks [CNN, ConvNet]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/56Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
    • G06V20/588Recognition of the road, e.g. of lane markings; Recognition of the vehicle driving pattern in relation to the road
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • B60W2050/0001Details of the control system
    • B60W2050/0002Automatic control, details of type of controller or control system architecture
    • B60W2050/0004In digital systems, e.g. discrete-time systems involving sampling
    • B60W2050/0005Processor details or data handling, e.g. memory registers or chip architecture
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W2420/00Indexing codes relating to the type of sensors based on the principle of their operation
    • B60W2420/40Photo, light or radio wave sensitive means, e.g. infrared sensors
    • B60W2420/403Image sensing, e.g. optical camera
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W2420/00Indexing codes relating to the type of sensors based on the principle of their operation
    • B60W2420/40Photo, light or radio wave sensitive means, e.g. infrared sensors
    • B60W2420/408Radar; Laser, e.g. lidar
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60YINDEXING SCHEME RELATING TO ASPECTS CROSS-CUTTING VEHICLE TECHNOLOGY
    • B60Y2300/00Purposes or special features of road vehicle drive control systems
    • B60Y2300/10Path keeping
    • B60Y2300/12Lane keeping
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60YINDEXING SCHEME RELATING TO ASPECTS CROSS-CUTTING VEHICLE TECHNOLOGY
    • B60Y2300/00Purposes or special features of road vehicle drive control systems
    • B60Y2300/18Propelling the vehicle
    • B60Y2300/18008Propelling the vehicle related to particular drive situations
    • B60Y2300/18158Approaching intersection

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Transportation (AREA)
  • Automation & Control Theory (AREA)
  • Mechanical Engineering (AREA)
  • Biomedical Technology (AREA)
  • Computational Linguistics (AREA)
  • Biophysics (AREA)
  • Molecular Biology (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Image Analysis (AREA)
  • Traffic Control Systems (AREA)
  • Control Of Driving Devices And Active Controlling Of Vehicle (AREA)

Abstract

本实施例公开了一种路口检测、神经网络训练及智能行驶方法、装置、电子设备和计算机存储介质,该路口检测方法包括:对道路图像进行特征提取,获得所述道路图像的特征图;根据所述道路图像的特征图,确定所述道路图像所示的道路上的路口的检测框;所述路口的检测框表示路口在所述道路图像中的区域,所述路口的检测框的下边框在所述道路的路面上;根据所述路口的检测框的下边框,确定采集所述道路图像的设备与所述路口之间的距离。如此,即使在无法获取到清晰的红绿灯或地面停止线图像,或路口没有红绿灯或地面停止线的情况下,本公开实施例也可以根据道路图像的特征图实现路口检测,从而确定采集所述道路图像的设备与所述路口之间的距离。

Figure 201911083615

This embodiment discloses a method, device, electronic device and computer storage medium for intersection detection, neural network training and intelligent driving. The intersection detection method includes: extracting features from a road image to obtain a feature map of the road image; The feature map of the road image determines the detection frame of the intersection on the road shown by the road image; the detection frame of the intersection represents the area of the intersection in the road image, and the lower border of the detection frame of the intersection On the road surface of the road; according to the lower border of the detection frame of the intersection, determine the distance between the device that collects the road image and the intersection. In this way, even if a clear traffic light or ground stop line image cannot be obtained, or there is no traffic light or ground stop line at the intersection, the embodiment of the present disclosure can also implement intersection detection according to the feature map of the road image, so as to determine whether to collect the road. Image the distance between the device and the intersection.

Figure 201911083615

Description

路口检测、神经网络训练及智能行驶方法、装置和设备Intersection detection, neural network training and intelligent driving method, device and equipment

技术领域technical field

本公开涉及计算机视觉处理技术,尤其涉及一种路口检测、神经网络训练及智能行驶方法、装置、电子设备、计算机存储介质。The present disclosure relates to computer vision processing technology, and in particular, to a method, device, electronic device, and computer storage medium for intersection detection, neural network training, and intelligent driving.

背景技术Background technique

近年来,随着生活水平的提高以及辅助驾驶技术的提升,越来越多的辅助驾驶相关的需求被提出,同时越来越多的学者和公司将深度学习应用到辅助驾驶方案中。在执行辅助驾驶或者自动驾驶任务时,路口检测以及根据检测到的路口确定车辆与路口之间的距离是非常重要的任务。In recent years, with the improvement of living standards and the improvement of assisted driving technology, more and more needs related to assisted driving have been put forward, and more and more scholars and companies have applied deep learning to assisted driving solutions. When performing assisted driving or autonomous driving tasks, intersection detection and determining the distance between the vehicle and the intersection according to the detected intersection are very important tasks.

发明内容SUMMARY OF THE INVENTION

本公开实施例期望提供路口检测的技术方案。The embodiments of the present disclosure are expected to provide a technical solution for intersection detection.

本公开实施例提供了一种路口检测方法,所述方法包括:An embodiment of the present disclosure provides a method for detecting an intersection, and the method includes:

对道路图像进行特征提取,获得所述道路图像的特征图;Perform feature extraction on the road image to obtain a feature map of the road image;

根据所述道路图像的特征图,确定所述道路图像所示的道路上的路口的检测框;所述路口的检测框表示路口在所述道路图像中的区域,所述路口的检测框的下边框在所述道路的路面上;According to the feature map of the road image, the detection frame of the intersection on the road shown by the road image is determined; the detection frame of the intersection represents the area of the intersection in the road image, and the lower part of the detection frame of the intersection is the border is on the pavement of said road;

根据所述路口的检测框的下边框,确定采集所述道路图像的设备与所述路口之间的距离。According to the lower border of the detection frame of the intersection, the distance between the device collecting the road image and the intersection is determined.

可选地,所述方法还包括:Optionally, the method further includes:

根据所述道路图像的特征图,确定所述道路图像所示的道路不存在路口。According to the feature map of the road image, it is determined that there is no intersection on the road shown by the road image.

可选地,所述根据所述路口的检测框的下边框,确定采集所述道路图像的设备与所述路口之间的距离,包括:Optionally, determining the distance between the device that collects the road image and the intersection according to the lower border of the detection frame of the intersection includes:

根据所述路口的检测框的下边框在所述道路图像中的位置以及所述道路图像的平面和所述道路的路面之间的坐标转换关系,确定所述路口的检测框的下边框在所述道路上的位置;According to the position of the lower border of the detection frame of the intersection in the road image and the coordinate conversion relationship between the plane of the road image and the road surface of the road, it is determined that the lower border of the detection frame of the intersection is at the location of the intersection. the position on the said road;

根据所述路口的检测框的下边框在所述道路上的位置与采集所述道路图像的设备在所述道路上的位置,得出采集所述道路图像的设备与所述路口之间的距离。According to the position of the lower border of the detection frame of the intersection on the road and the position of the device that collects the road image on the road, the distance between the device that collects the road image and the intersection is obtained .

可选地,所述方法由神经网络执行,所述神经网络采用样本图像以及样本图像的标注结果训练得到,所述样本图像的标注结果包括正样本图像所示的道路上的路口的标注框,所述标注框表征路口在所述正样本图像中的位置,且所述标注框的下边框在所述正样本图像所示的道路的路面上。Optionally, the method is performed by a neural network, and the neural network is obtained by training a sample image and a labeling result of the sample image, and the labeling result of the sample image includes the labeling frame of the intersection on the road shown in the positive sample image, The labeling frame represents the position of the intersection in the positive sample image, and the lower border of the labeling frame is on the road surface of the road shown in the positive sample image.

本公开实施例还提供了一种神经网络训练方法,包括:Embodiments of the present disclosure also provide a neural network training method, including:

对样本图像进行特征提取,获得所述样本图像的特征图;Perform feature extraction on the sample image to obtain a feature map of the sample image;

根据所述样本图像的特征图,确定所述样本图像的检测结果;determining the detection result of the sample image according to the feature map of the sample image;

根据所述样本图像的标注结果和所述检测结果,调整所述神经网络的网络参数值;Adjust the network parameter value of the neural network according to the labeling result of the sample image and the detection result;

当所述样本图像为正样本图像时,所述样本图像的标注结果为所述正样本图像所示的道路上的路口的标注框,所述标注框表征路口在所述正样本图像中的位置,且所述正样本图像所示的道路上的路口的标注框的下边框在所述正样本图像所示的道路的路面上。When the sample image is a positive sample image, the labeling result of the sample image is the labeling frame of the intersection on the road shown by the positive sample image, and the labeling frame represents the position of the intersection in the positive sample image , and the lower border of the labeling frame of the intersection on the road shown in the positive sample image is on the road surface of the road shown in the positive sample image.

可选地,所述正样本图像中包括道路的路口的停止线,所述正样本图像所示的道路上的路口的标注框的下边框与所述停止线对齐。Optionally, the positive sample image includes a stop line of a road intersection, and the lower border of the label box of the intersection on the road shown in the positive sample image is aligned with the stop line.

可选地,包含同一路口的多个正样本图像中的标注框的高度之差在预设范围内。Optionally, the difference between the heights of the annotation boxes in the multiple positive sample images including the same intersection is within a preset range.

可选地,当所述样本图像为负样本图像时,所述负样本图像中的道路上不存在路口,所述样本图像的标注结果包括所述负样本图像中不存在标注框。Optionally, when the sample image is a negative sample image, there is no intersection on the road in the negative sample image, and the annotation result of the sample image includes that there is no annotation frame in the negative sample image.

本公开实施例还提供了一种智能行驶方法,包括:The embodiment of the present disclosure also provides an intelligent driving method, including:

获取道路图像;Get road images;

根据上述任意一种路口检测方法,对所述道路图像进行路口检测;According to any one of the above-mentioned intersection detection methods, the intersection detection is performed on the road image;

根据采集所述道路图像的智能行驶设备与所述路口之间的距离对所述设备进行行驶控制。The driving control of the device is performed according to the distance between the intelligent driving device that collects the road image and the intersection.

本公开实施例还提供了一种路口检测装置,所述装置包括第一提取模块、检测模块和第一确定模块;其中,An embodiment of the present disclosure also provides an intersection detection device, the device includes a first extraction module, a detection module, and a first determination module; wherein,

第一提取模块,用于对道路图像进行特征提取,获得所述道路图像的特征图;a first extraction module, configured to perform feature extraction on a road image to obtain a feature map of the road image;

检测模块,用于根据所述道路图像的特征图,确定所述道路图像所示的道路上的路口的检测框;所述路口的检测框表示路口在所述道路图像中的区域,所述路口的检测框的下边框在所述道路的路面上;a detection module, configured to determine the detection frame of the intersection on the road shown in the road image according to the feature map of the road image; the detection frame of the intersection represents the area of the intersection in the road image, and the intersection The lower border of the detection frame is on the road surface of the road;

第一确定模块,用于根据所述路口的检测框的下边框,确定采集所述道路图像的设备与所述路口之间的距离。The first determination module is configured to determine the distance between the device collecting the road image and the intersection according to the lower border of the detection frame of the intersection.

可选地,所述检测模块,还用于根据所述道路图像的特征图,确定所述道路图像所示的道路不存在路口。Optionally, the detection module is further configured to determine, according to the feature map of the road image, that there is no intersection on the road shown by the road image.

可选地,所述第一确定模块,用于根据所述路口的检测框的下边框在所述道路图像中的位置以及所述道路图像的平面和所述道路的路面之间的坐标转换关系,确定所述路口的检测框的下边框在所述道路上的位置;根据所述路口的检测框的下边框在所述道路上的位置与采集所述道路图像的设备在所述道路上的位置,得出采集所述道路图像的设备与所述路口之间的距离。Optionally, the first determination module is configured to, according to the position of the lower border of the detection frame of the intersection in the road image and the coordinate conversion relationship between the plane of the road image and the road surface of the road , determine the position of the lower border of the detection frame of the intersection on the road; according to the position of the lower border of the detection frame of the intersection on the road and the position of the device collecting the road image on the road position to obtain the distance between the device that captures the road image and the intersection.

可选地,所述装置是基于神经网络实现的,所述神经网络采用样本图像以及样本图像的标注结果训练得到,所述样本图像的标注结果包括正样本图像所示的道路上的路口的标注框,所述标注框表征路口在所述正样本图像中的位置,且所述标注框的下边框在所述正样本图像所示的道路的路面上。Optionally, the device is implemented based on a neural network, and the neural network is obtained by training a sample image and an annotation result of the sample image, and the annotation result of the sample image includes the annotation of the intersection on the road shown in the positive sample image. frame, the labeling frame represents the position of the intersection in the positive sample image, and the lower border of the labeling frame is on the road surface of the road shown in the positive sample image.

本公开实施例还提供了一种神经网络训练装置,所述装置包括:第二提取模块、第二确定模块和调整模块,其中,The embodiment of the present disclosure also provides a neural network training device, the device includes: a second extraction module, a second determination module and an adjustment module, wherein,

第二提取模块,用于对样本图像进行特征提取,获得所述样本图像的特征图;a second extraction module, configured to perform feature extraction on the sample image to obtain a feature map of the sample image;

第二确定模块,用于根据所述样本图像的特征图,确定所述样本图像的检测结果;a second determination module, configured to determine the detection result of the sample image according to the feature map of the sample image;

调整模块,用于根据所述样本图像的标注结果和所述检测结果,调整所述神经网络的网络参数值;an adjustment module, configured to adjust the network parameter value of the neural network according to the labeling result of the sample image and the detection result;

当所述样本图像为正样本图像时,所述样本图像的标注结果为所述正样本图像所示的道路上的路口的标注框,所述标注框表征路口在所述正样本图像中的位置,且所述正样本图像所示的道路上的路口的标注框的下边框在所述正样本图像所示的道路的路面上。When the sample image is a positive sample image, the labeling result of the sample image is the labeling frame of the intersection on the road shown by the positive sample image, and the labeling frame represents the position of the intersection in the positive sample image , and the lower border of the labeling frame of the intersection on the road shown in the positive sample image is on the road surface of the road shown in the positive sample image.

可选地,所述正样本图像中包括道路的路口的停止线,所述正样本图像所示的道路上的路口的标注框的下边框与所述停止线对齐。Optionally, the positive sample image includes a stop line of a road intersection, and the lower border of the label box of the intersection on the road shown in the positive sample image is aligned with the stop line.

可选地,包含同一路口的多个正样本图像中的标注框的高度之差在预设范围内。Optionally, the difference between the heights of the annotation boxes in the multiple positive sample images including the same intersection is within a preset range.

可选地,当所述样本图像为负样本图像时,所述负样本图像中的道路上不存在路口,所述样本图像的标注结果包括所述负样本图像中不存在标注框。Optionally, when the sample image is a negative sample image, there is no intersection on the road in the negative sample image, and the annotation result of the sample image includes that there is no annotation frame in the negative sample image.

本公开实施例还提供了一种智能行驶装置,所述装置包括:获取模块和处理模块,其中,获取模块,用于获取道路图像;An embodiment of the present disclosure further provides an intelligent driving device, the device includes: an acquisition module and a processing module, wherein the acquisition module is used to acquire road images;

处理模块,用于根据上述任意一种路口检测方法,对所述道路图像进行路口检测;根据采集所述道路图像的智能行驶设备与所述路口之间的距离对所述设备进行行驶控制。The processing module is configured to perform intersection detection on the road image according to any one of the above-mentioned intersection detection methods; and control the driving of the device according to the distance between the intelligent driving device that collects the road image and the intersection.

本公开实施例还提供了一种电子设备,包括处理器和用于存储能够在处理器上运行的计算机程序的存储器;其中,Embodiments of the present disclosure also provide an electronic device, including a processor and a memory for storing a computer program that can be executed on the processor; wherein,

所述处理器用于运行所述计算机程序以执行上述任意一种路口检测方法或上述任意一种神经网络训练方法或上述任意一种智能行驶测方法。The processor is configured to run the computer program to execute any of the above-mentioned intersection detection methods or any of the above-mentioned neural network training methods or any of the above-mentioned intelligent driving testing methods.

本公开实施例还提供了一种计算机存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述任意一种路口检测方法或上述任意一种神经网络训练方法或上述任意一种智能行驶测方法。Embodiments of the present disclosure also provide a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, implements any of the above-mentioned intersection detection methods or any of the above-mentioned neural network training methods or any of the above-mentioned methods Intelligent driving test method.

本公开实施例提出的路口检测、神经网络训练及智能行驶方法、装置、电子设备和计算机存储介质中,路口检测方法包括:对道路图像进行特征提取,获得所述道路图像的特征图;根据所述道路图像的特征图,确定所述道路图像所示的道路上的路口的检测框;所述路口的检测框表示路口在所述道路图像中的区域;并且,由于本公开实施例中路口的检测框的下边框在道路的路面上,因此可以根据路口的检测框的下边框,确定采集所述道路图像的设备与所述路口之间的距离;如此,即使在无法获取到清晰的红绿灯或地面停止线图像,或路口没有红绿灯或地面停止线的情况下,本公开实施例也可以根据道路图像的特征图实现路口检测,从而确定采集所述道路图像的设备与所述路口之间的距离。In the method, device, electronic device, and computer storage medium for intersection detection, neural network training, and intelligent driving proposed in the embodiments of the present disclosure, the intersection detection method includes: performing feature extraction on a road image to obtain a feature map of the road image; The feature map of the road image is used to determine the detection frame of the intersection on the road shown by the road image; the detection frame of the intersection represents the area of the intersection in the road image; The lower border of the detection frame is on the road surface of the road, so the distance between the device collecting the road image and the intersection can be determined according to the lower border of the detection frame of the intersection; The ground stop line image, or when there are no traffic lights or ground stop lines at the intersection, the embodiment of the present disclosure can also implement intersection detection according to the feature map of the road image, so as to determine the distance between the device that collects the road image and the intersection .

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the technical solutions of the present disclosure.

图1为本公开实施例的路口检测方法的流程图;FIG. 1 is a flowchart of an intersection detection method according to an embodiment of the present disclosure;

图2为本公开实施例的神经网络训练方法的流程图;2 is a flowchart of a neural network training method according to an embodiment of the present disclosure;

图3的本公开实施例利用训练完成的神经网络进行路口检测的示例图;FIG. 3 is an example diagram of an embodiment of the present disclosure using a trained neural network for intersection detection;

图4为本公开实施例的智能行驶方法的流程图;4 is a flowchart of an intelligent driving method according to an embodiment of the present disclosure;

图5为本公开实施例的路口检测装置的组成结构示意图;FIG. 5 is a schematic diagram of the composition and structure of an intersection detection device according to an embodiment of the present disclosure;

图6为本公开实施例的神经网络训练装置的组成结构示意图;6 is a schematic diagram of the composition and structure of a neural network training apparatus according to an embodiment of the present disclosure;

图7为本公开实施例的智能行驶装置的组成结构示意图;7 is a schematic diagram of the composition and structure of an intelligent driving device according to an embodiment of the present disclosure;

图8为本公开实施例的电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.

具体实施方式Detailed ways

以下结合附图及实施例,对本公开进行进一步详细说明。应当理解,此处所提供的实施例仅仅用以解释本公开,并不用于限定本公开。另外,以下所提供的实施例是用于实施本公开的部分实施例,而非提供实施本公开的全部实施例,在不冲突的情况下,本公开实施例记载的技术方案可以任意组合的方式实施。The present disclosure will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present disclosure, but not to limit the present disclosure. In addition, the embodiments provided below are only some of the embodiments for implementing the present disclosure, rather than all the embodiments for implementing the present disclosure. In the case of no conflict, the technical solutions described in the embodiments of the present disclosure can be combined in any way. implement.

需要说明的是,在本公开实施例中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的方法或者装置不仅包括所明确记载的要素,而且还包括没有明确列出的其他要素,或者是还包括为实施方法或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个......”限定的要素,并不排除在包括该要素的方法或者装置中还存在另外的相关要素(例如方法中的步骤或者装置中的单元,例如的单元可以是部分电路、部分处理器、部分程序或软件等等)。It should be noted that, in the embodiments of the present disclosure, the terms "comprising", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a method or device including a series of elements not only includes the explicitly stated elements, but also other elements not expressly listed or inherent to the implementation of the method or apparatus. Without further limitation, an element defined by the phrase "comprises a..." does not preclude the presence of additional related elements (eg, steps in a method or a device) in which the element is included. A unit in an apparatus, for example, a unit may be part of a circuit, part of a processor, part of a program or software, etc.).

例如,本公开实施例提供的路口检测、神经网络训练方法和智能行驶方法包含了一系列的步骤,但是本公开实施例提供的路口检测、神经网络训练方法和智能行驶方法不限于所记载的步骤,同样地,本公开实施例提供的路口检测装置、神经网络训练装置和智能行驶装置包括了一系列模块,但是本公开实施例提供的装置不限于包括所明确记载的模块,还可以包括为获取相关信息、或基于信息进行处理时所需要设置的模块。For example, the intersection detection, neural network training method, and intelligent driving method provided by the embodiments of the present disclosure include a series of steps, but the intersection detection, neural network training method, and intelligent driving method provided by the embodiments of the present disclosure are not limited to the described steps , Similarly, the intersection detection device, neural network training device, and intelligent driving device provided by the embodiments of the present disclosure include a series of modules, but the devices provided by the embodiments of the present disclosure are not limited to including the explicitly recorded modules, and may also include modules for obtaining Related information, or modules that need to be set when processing based on information.

本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and A and B exist independently B these three cases. In addition, the term "at least one" herein refers to any combination of any one of the plurality or at least two of the plurality, for example, including at least one of A, B, and C, and may mean including from A, B, and C. Any one or more elements selected from the set of B and C.

本公开实施例可以应用于终端和服务器组成的计算机系统中,并可以与众多其它通用或专用计算系统环境或配置一起操作。这里,终端可以是瘦客户机、厚客户机、手持或膝上设备、基于微处理器的系统、机顶盒、可编程消费电子产品、网络个人电脑、小型计算机系统,等等,服务器可以是服务器计算机系统小型计算机系统﹑大型计算机系统和包括上述任何系统的分布式云计算技术环境,等等。Embodiments of the present disclosure can be applied to computer systems consisting of terminals and servers, and can operate with numerous other general-purpose or special-purpose computing system environments or configurations. Here, the terminals may be thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, minicomputer systems, etc., and the server may be a server computer Systems Small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above, etc.

终端、服务器等电子设备可以在由计算机系统执行的计算机系统可执行指令(诸如程序模块)的一般语境下描述。通常,程序模块可以包括例程、程序、目标程序、组件、逻辑、数据结构等等,它们执行特定的任务或者实现特定的抽象数据类型。计算机系统/服务器可以在分布式云计算环境中实施,分布式云计算环境中,任务是由通过通信网络链接的远程处理设备执行的。在分布式云计算环境中,程序模块可以位于包括存储设备的本地或远程计算系统存储介质上。Electronic devices such as terminals, servers, etc., may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, object programs, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. Computer systems/servers may be implemented in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located on local or remote computing system storage media including storage devices.

在辅助驾驶或者自动驾驶任务中,需要通过摄像头和雷达来感知周围信息,同时需要给出准确的决策信息,如加速、避让、减速等;路口区域的结构往往比较复杂,在车辆距离路口较远的时候,如何对路口进行准确的预测以及距离估计则显得尤为重要。一般来说,对路口区域进行准确检测的目的为:可以有效地为自动驾驶决策提供充足的反应时间,且可以预留出充足的时间用于车辆减速。在相关技术中,通常是利用车辆的摄像头拍摄的路口红绿灯或者地面停止线等信息进行判断;在车辆距离路口较远的情况下,无法获取到清晰的红绿灯或地面停止线图像,导致上述路口检测方案无法进行准确地路口检测;另外,一些路口并没有红绿灯或地面停止线,会导致上述路口检测方案无法实现路口检测。In assisted driving or automatic driving tasks, it is necessary to perceive surrounding information through cameras and radar, and at the same time, it is necessary to give accurate decision-making information, such as acceleration, avoidance, deceleration, etc.; the structure of the intersection area is often complex, and the vehicle is far away from the intersection. It is particularly important how to accurately predict the intersection and estimate the distance. Generally speaking, the purpose of accurate detection of intersection areas is to effectively provide sufficient reaction time for automatic driving decisions, and to reserve sufficient time for vehicle deceleration. In related technologies, information such as traffic lights at intersections or ground stop lines captured by the camera of the vehicle is usually used for judgment; when the vehicle is far away from the intersection, clear images of traffic lights or ground stop lines cannot be obtained, resulting in the above intersection detection. The scheme cannot perform accurate intersection detection; in addition, some intersections do not have traffic lights or ground stop lines, which will cause the above intersection detection scheme to fail to achieve intersection detection.

针对上述记载的问题,在本公开的一些实施例中,提出了一种路口检测方法,本公开实施例可以应用于自动驾驶、辅助驾驶等场景。In view of the above-mentioned problems, in some embodiments of the present disclosure, an intersection detection method is proposed, and the embodiments of the present disclosure can be applied to scenarios such as automatic driving and assisted driving.

图1为本公开实施例的路口检测方法的流程图,如图1所示,该流程可以包括:FIG. 1 is a flowchart of an intersection detection method according to an embodiment of the present disclosure. As shown in FIG. 1 , the flowchart may include:

步骤101:对道路图像进行特征提取,获得道路图像的特征图。Step 101: Perform feature extraction on the road image to obtain a feature map of the road image.

这里,道路图像为需要进行路口检测的图像。示例性地,道路图像的格式可以是联合图像专家小组(Joint Photographic Experts GROUP,JPEG)、位图(Bitmap,BMP)、便携式网络图形(Portable Network Graphics,PNG)或其他格式;需要说明的是,这里仅仅是对道路图像的格式进行了举例说明,本公开实施例并不对样本图像的格式进行限定。Here, the road image is an image that needs to be detected at the intersection. Exemplarily, the format of the road image may be Joint Photographic Experts Group (Joint Photographic Experts GROUP, JPEG), Bitmap (Bitmap, BMP), Portable Network Graphics (Portable Network Graphics, PNG) or other formats; it should be noted that, The format of the road image is only exemplified here, and the embodiment of the present disclosure does not limit the format of the sample image.

在实际应用中,可以从本地存储区域或网络获取道路图像,也可以利用图像采集设备采集道路图像,这里,图像采集设备可以包括在车辆上安装的摄像头等;在实际应用中,在车辆上可以设置一个或多个摄像头,用于采集车辆前方的道路图像。In practical applications, road images can be acquired from a local storage area or network, or road images can be acquired by using an image acquisition device. Here, the image acquisition device may include a camera installed on the vehicle, etc.; One or more cameras are set up to capture images of the road ahead of the vehicle.

本公开实施例中,道路图像的特征图可以用于表征道路图像的以下至少一种特征:颜色特征、纹理特征、形状特征、空间关系特征。对于本步骤的实现方式,在一个示例中,可以利用尺度不变特征变换(Scale-invariant feature transform,SIFT)方法或方向梯度直方图(Histogram of Oriented Gradient,HOG)特征提取方法提取道路图像的特征图;在另一个示例中,也可以利用预先训练的提取图像特征图的神经网络,对道路图像进行特征提取。In the embodiment of the present disclosure, the feature map of the road image may be used to represent at least one of the following features of the road image: color feature, texture feature, shape feature, and spatial relationship feature. For the implementation of this step, in an example, a scale-invariant feature transform (SIFT) method or a Histogram of Oriented Gradient (HOG) feature extraction method can be used to extract the features of the road image Figure; in another example, a pre-trained neural network for extracting image feature maps can also be used to perform feature extraction on road images.

步骤102:根据道路图像的特征图,确定道路图像所示的道路上的路口的检测框;路口的检测框表示路口在所述道路图像中的区域,所述路口的检测框的下边框在所述道路的路面上。Step 102: Determine the detection frame of the intersection on the road shown in the road image according to the feature map of the road image; the detection frame of the intersection represents the area of the intersection in the road image, and the lower border of the detection frame of the intersection is at the intersection. on the road surface.

本公开实施例中,可以根据道路图像的特征图判断道路图像所示的道路是否存在路口,得到判断结果,显然,判断结果包括以下两种情况:道路图像所示的道路存在路口、道路图像所示的道路不存在路口;在道路图像所示的道路存在路口时,可以根据道路图像的特征图,确定道路图像所示的道路上的路口的检测框,并输出路口的检测框;在道路图像所示的道路不存在路口时,不进行任何输出。In the embodiment of the present disclosure, it can be determined whether the road shown in the road image has an intersection according to the feature map of the road image, and the judgment result can be obtained. Obviously, the judgment result includes the following two situations: the road shown in the road image has an intersection, and the road shown in the road image has an intersection. There is no intersection on the road shown in the road image; when there is an intersection on the road shown in the road image, the detection frame of the intersection on the road shown in the road image can be determined according to the feature map of the road image, and the detection frame of the intersection is output; When there is no intersection on the road shown, nothing is output.

在实际应用中,在道路图像所示的道路存在路口时,可以利用预先训练的提取路口检测框的神经网络,确定道路图像所示的道路上的路口的检测框。In practical applications, when there is an intersection on the road shown in the road image, a pre-trained neural network for extracting intersection detection frames can be used to determine the detection frame of the intersection on the road shown in the road image.

本公开实施例中,并不对路口的检测框的形状进行限定,例如,路口的检测框的形状可以是矩形、梯形等;在一个具体的示例中,道路图像所示的道路存在路口,将道路图像的特征图输入至用于提取路口检测框的神经网络后,用于提取路口检测框的神经网络可以输出矩形的路口的检测框;在另一个具体的示例中,道路图像所示的道路不存在路口,将道路图像的特征图输入至用于提取路口检测框的神经网络后,用于提取路口检测框的神经网络不输出任何数据。In the embodiment of the present disclosure, the shape of the detection frame of the intersection is not limited. For example, the shape of the detection frame of the intersection may be a rectangle, a trapezoid, etc.; After the feature map of the image is input to the neural network for extracting the intersection detection frame, the neural network for extracting the intersection detection frame can output the rectangular intersection detection frame; in another specific example, the road shown in the road image is not. There is an intersection, and after the feature map of the road image is input to the neural network for extracting intersection detection frame, the neural network for extracting intersection detection frame does not output any data.

步骤103:根据路口的检测框的下边框,确定采集道路图像的设备与路口之间的距离。Step 103: According to the lower border of the detection frame of the intersection, determine the distance between the device that collects the road image and the intersection.

可以理解的,由于路口的检测框的下边框在道路的路面上,因而,可以根据路口的检测框的下边框确定路口的位置,进而,结合已知的采集道路图像的设备的位置,便可以确定出采集道路图像的设备与路口之间的距离。It can be understood that, since the lower border of the detection frame of the intersection is on the road surface, the position of the intersection can be determined according to the lower border of the detection frame of the intersection, and further, combined with the known position of the device that collects road images, it is possible to determine the position of the intersection. Determine the distance between the device capturing the road image and the intersection.

在实际应用中,步骤101至步骤103均可以利用电子设备中的处理器实现,上述处理器可以为特定用途集成电路(Application Specific Integrated Circuit,ASIC)、数字信号处理器(Digital Signal Processor,DSP)、数字信号处理装置(Digital SignalProcessing Device,DSPD)、可编程逻辑装置(Programmable Logic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、中央处理器(Central ProcessingUnit,CPU)、控制器、微控制器、微处理器中的至少一种。In practical applications, steps 101 to 103 can all be implemented by a processor in an electronic device, and the above-mentioned processor can be an Application Specific Integrated Circuit (ASIC) or a Digital Signal Processor (DSP) , Digital Signal Processing Device (DSPD), Programmable Logic Device (Programmable Logic Device, PLD), Field Programmable Gate Array (Field-Programmable Gate Array, FPGA), Central Processing Unit (Central Processing Unit, CPU), At least one of a controller, a microcontroller, and a microprocessor.

可以看出,本公开实施例中,首先,对道路图像进行特征提取,获得所述道路图像的特征图;然后,根据所述道路图像的特征图,确定所述道路图像所示的道路上的路口的检测框;并且,由于本公开实施例中路口的检测框的下边框在道路的路面上,因此可以根据路口的检测框的下边框,确定采集所述道路图像的设备与所述路口之间的距离;如此,即使在无法获取到清晰的红绿灯或地面停止线图像,或路口没有红绿灯或地面停止线的情况下,本公开实施例也可以根据道路图像的特征图实现路口检测,从而确定采集所述道路图像的设备与所述路口之间的距离。It can be seen that, in the embodiment of the present disclosure, first, a feature map of a road image is performed to obtain a feature map of the road image; then, according to the feature map of the road image, the In addition, since the lower border of the detection frame of the intersection in the embodiment of the present disclosure is on the road surface of the road, it can be determined according to the lower border of the detection frame of the intersection, the difference between the device that collects the road image and the intersection can be determined. In this way, even if a clear traffic light or ground stop line image cannot be obtained, or there is no traffic light or ground stop line at the intersection, the embodiment of the present disclosure can implement intersection detection according to the feature map of the road image, so as to determine The distance between the device capturing the road image and the intersection.

另外,本公开实施例的路口检测方法的普适性较强,在车辆上安装至少一个摄像头的情况下,可以对车辆前方的图像进行准确地路口检测,可以在距离路口较远的情况下实现路口检测,有利于为驾驶决策提供充足的反应时间,保证了驾驶安全性,例如可以为刹车提供充足的反应时间。In addition, the intersection detection method of the embodiment of the present disclosure has strong universality. When at least one camera is installed on the vehicle, the intersection detection can be accurately performed on the image in front of the vehicle, which can be realized when the distance from the intersection is far away. Intersection detection is conducive to providing sufficient reaction time for driving decisions and ensuring driving safety. For example, it can provide sufficient reaction time for braking.

可选地,针对一些不包含路口的道路图像,可以直接根据道路图像的特征图,确认道路图像所示的道路不存在路口,有利于对驾驶决策提供帮助,保证了驾驶安全性。Optionally, for some road images that do not contain intersections, it can be confirmed that there are no intersections on the road shown in the road images directly according to the feature map of the road images, which is helpful for providing assistance in driving decision-making and ensuring driving safety.

对于根据路口的检测框的下边框,确定采集道路图像的设备与路口之间的距离的实现方式,示例性地,可以根据路口的检测框的下边框在道路图像中的位置以及道路图像的平面和道路的路面之间的坐标转换关系,确定路口的检测框的下边框在道路上的位置;根据路口的检测框的下边框在道路上的位置与采集道路图像的设备在道路上的位置,得出采集道路图像的设备与路口之间的距离。For the implementation of determining the distance between the device that collects the road image and the intersection according to the lower border of the detection frame of the intersection, for example, the position of the lower border of the detection frame of the intersection in the road image and the plane of the road image can be used. According to the coordinate conversion relationship between the road surface and the road surface, determine the position of the lower border of the intersection detection frame on the road; according to the position of the lower border of the intersection detection frame on the road and the position of the device that collects the road image on the road, Find the distance between the device that captures the road image and the intersection.

在相关的路口检测方案中,无法确定路口与车辆之间的距离;而在本公开实施例中,在采集道路图像的设备位于车辆的情况下,可以将采集道路图像的设备与路口之间的距离作为车辆与路口之间的距离,也就是说,本公开实施例可以认为路口检测框的下边框会与路面贴合,根据路口的检测框的下边框在道路图像中的位置,可以准确地预估出车辆与路口之间的距离,有利于为驾驶决策提供充足的反应时间,保证了驾驶安全性。In the relevant intersection detection scheme, the distance between the intersection and the vehicle cannot be determined; while in the embodiment of the present disclosure, when the device for collecting road images is located in the vehicle, the distance between the device for collecting road images and the intersection can be determined. The distance is the distance between the vehicle and the intersection, that is to say, in this embodiment of the present disclosure, it can be considered that the lower border of the intersection detection frame will fit with the road surface, and according to the position of the lower border of the intersection detection frame in the road image, it can be accurately determined. Estimating the distance between the vehicle and the intersection is conducive to providing sufficient reaction time for driving decisions and ensuring driving safety.

在一实施方式中,可以根据道路图像的平面和道路的路面之间的坐标转换关系,将路口的检测框的下边框的位置坐标转换至世界坐标系,得到路口的检测框的下边框在世界坐标系的位置,即,得到路口的检测框的下边框在道路上的位置。In one embodiment, according to the coordinate conversion relationship between the plane of the road image and the road surface of the road, the position coordinates of the lower border of the detection frame of the intersection can be converted to the world coordinate system, and the lower border of the detection frame of the intersection can be obtained in the world. The position of the coordinate system, that is, the position of the lower border of the detection frame of the intersection on the road.

在实际应用中,道路图像的平面和道路的路面为两个不同的平面,如此,可以利用单应性(Homography)矩阵表示道路图像的平面和道路的路面之间的坐标转换关系,进而,可以根据单应性矩阵,将路口的检测框的下边框的位置坐标转换至世界坐标系;单应性矩阵可以通过道路图像与世界坐标系下的一些对应点计算得出,基于此单应性矩阵,可以准确地得出道路图像中的每一个点在世界坐标系下的位置。In practical applications, the plane of the road image and the pavement of the road are two different planes. In this way, a homography (Homography) matrix can be used to represent the coordinate transformation relationship between the plane of the road image and the pavement of the road. According to the homography matrix, the position coordinates of the lower border of the detection frame of the intersection are converted to the world coordinate system; the homography matrix can be calculated from the road image and some corresponding points in the world coordinate system. Based on this homography matrix , the position of each point in the road image in the world coordinate system can be accurately obtained.

作为一种实施方式,上述路口检测方法可以由神经网络执行,上述神经网络采用样本图像以及样本图像的标注结果训练得到,样本图像的标注结果包括正样本图像所示的道路上的路口的标注框,正样本图像所示的道路上的路口的标注框表征路口在正样本图像中的位置,且正样本图像所示的道路上的路口的标注框的下边框在正样本图像所示的道路的路面上。As an embodiment, the above-mentioned intersection detection method can be performed by a neural network, and the above-mentioned neural network is obtained by training a sample image and the labeling result of the sample image, and the labeling result of the sample image includes the labeling frame of the intersection on the road shown by the positive sample image. , the labeling frame of the intersection on the road shown in the positive sample image represents the position of the intersection in the positive sample image, and the lower border of the labeling frame of the intersection on the road shown in the positive sample image is on the side of the road shown in the positive sample image. on the road.

这里,样本图像的格式可以是联合图像专家小组(Joint Photographic ExpertsGROUP,JPEG)、位图(Bitmap,BMP)、便携式网络图形(Portable Network Graphics,PNG)或其他格式;需要说明的是,这里仅仅是对道路图像的格式进行了举例说明,本公开实施例并不对样本图像的格式进行限定。Here, the format of the sample image can be Joint Photographic Experts Group (Joint Photographic ExpertsGROUP, JPEG), Bitmap (Bitmap, BMP), Portable Network Graphics (Portable Network Graphics, PNG) or other formats; it should be noted that here is only The format of the road image is exemplified, and the embodiment of the present disclosure does not limit the format of the sample image.

在实际应用中,可以从本地存储区域或网络获取样本图像,也可以利用图像采集设备采集样本图像。In practical applications, sample images can be acquired from a local storage area or a network, or image acquisition devices can be used to acquire sample images.

可以理解地,由于正样本图像包括路口,因而,通过基于正样本图像进行神经网络的训练,有利于使训练完成的神经网络能够检测出道路图像中的路口。Understandably, since the positive sample images include intersections, the training of the neural network based on the positive sample images is beneficial to enable the trained neural network to detect the intersections in the road images.

下面结合附图示例性地说明上述神经网络的训练过程。The training process of the above-mentioned neural network is exemplarily described below with reference to the accompanying drawings.

图2为本公开实施例的神经网络训练方法的流程图,如图2所示,该流程可以包括:FIG. 2 is a flowchart of a neural network training method according to an embodiment of the present disclosure. As shown in FIG. 2 , the process may include:

步骤201:对样本图像进行特征提取,获得所述样本图像的特征图。Step 201: Perform feature extraction on the sample image to obtain a feature map of the sample image.

本公开实施例中,样本图像的特征图可以用于表征样本图像的以下至少一种特征:颜色特征、纹理特征、形状特征、空间关系特征;对于本步骤的实现方式,示例性地,可以将样本图像输入至神经网络中,利用神经网络对样本图像进行特征提取,获得样本图像的特征图。In this embodiment of the present disclosure, the feature map of the sample image may be used to represent at least one of the following features of the sample image: color feature, texture feature, shape feature, and spatial relationship feature; for the implementation of this step, exemplarily, the The sample image is input into the neural network, and the neural network is used to extract the feature of the sample image to obtain the feature map of the sample image.

本公开实施例中,并不对神经网络的种类进行限定,示例性地,神经网络可以是单步多框检测器(Single Shot MultiBox Detector,SSD)、你只看一次(You Only LookOnce,)、快速区域卷积神经网络(Faster Region-Convolutional Neural Networks,Faster RCNN)或其他基于深度学习的神经网络。本公开实施例中,也不对神经网络的网络结构进行限定,例如,神经网络的网络结构可以是50层的残差网络结构、VGG16网络结构或MobileNet网络结构等。In this embodiment of the present disclosure, the type of the neural network is not limited. Exemplarily, the neural network may be a Single Shot MultiBox Detector (SSD), You Only LookOnce (You Only LookOnce,), a fast Faster Region-Convolutional Neural Networks (Faster RCNN) or other deep learning-based neural networks. In the embodiments of the present disclosure, the network structure of the neural network is not limited. For example, the network structure of the neural network may be a 50-layer residual network structure, a VGG16 network structure, or a MobileNet network structure.

步骤202:根据样本图像的特征图,确定样本图像的检测结果。Step 202: Determine the detection result of the sample image according to the feature map of the sample image.

本公开实施例中,可以根据样本图像的特征图判断样本图像所示的道路是否存在路口,得到检测结果,显然,检测结果包括以下两种情况:样本图像所示的道路存在路口、样本图像所示的道路不存在路口。In the embodiment of the present disclosure, it can be determined whether the road shown in the sample image has an intersection according to the feature map of the sample image, and the detection result can be obtained. Obviously, the detection result includes the following two situations: the road shown in the sample image has an intersection, and the road shown in the sample image has an intersection, and the sample image has an intersection. There is no intersection on the road shown.

本公开实施例中,当样本图像为正样本图像时,样本图像的标注结果为正样本图像所示的道路上的路口的标注框,上述标注框表征路口在所述正样本图像中的位置,且上述标注框的下边框在正样本图像所示的道路的路面上;显然,当样本图像为正样本图像时,可以根据样本图像的特征图,确定样本图像的检测结果,即,确定路口的检测框。In the embodiment of the present disclosure, when the sample image is a positive sample image, the labeling result of the sample image is the labeling frame of the intersection on the road shown in the positive sample image, and the labeling frame represents the position of the intersection in the positive sample image, And the lower border of the above-mentioned marked frame is on the road surface of the road shown by the positive sample image; obviously, when the sample image is a positive sample image, the detection result of the sample image can be determined according to the feature map of the sample image, that is, the detection result of the junction can be determined. Check box.

步骤203:根据样本图像的标注结果和所述检测结果,调整神经网络的网络参数值。Step 203: Adjust the network parameter value of the neural network according to the labeling result of the sample image and the detection result.

对于本步骤的实现方式,示例性地,可以根据样本图像的标注结果和上述检测结果的差异,调整神经网络的网络参数值。在实际实施时,可以计算神经网络的损失,神经网络的损失用于表征样本图像的标注结果和上述检测结果的差异;然后,可以根据初始神经网络的损失,以减小初始神经网络的损失为目标,调整神经网络的网络参数值。For the implementation of this step, for example, the network parameter value of the neural network can be adjusted according to the difference between the labeling result of the sample image and the above-mentioned detection result. In actual implementation, the loss of the neural network can be calculated, and the loss of the neural network is used to represent the difference between the labeling result of the sample image and the above detection result; then, the loss of the initial neural network can be reduced according to the loss of the initial neural network as The goal is to adjust the network parameter values of the neural network.

步骤204:判断网络参数值调整后的神经网络对样本图像的检测结果是否满足设定的精度需求,如果不满足,则返回执行步骤201;如果满足,则执行步骤205。Step 204 : Determine whether the detection result of the sample image by the neural network after the adjustment of the network parameter value meets the set accuracy requirement, if not, return to step 201 ; if so, execute step 205 .

这里,设定的精度需求可以是样本图像的检测结果与样本图像的标注结果的差异在预设范围内。Here, the set accuracy requirement may be that the difference between the detection result of the sample image and the labeling result of the sample image is within a preset range.

步骤205:将网络参数值调整后的神经网络作为训练完成的神经网络。Step 205: Use the neural network adjusted by the network parameter values as the trained neural network.

在实际应用中,步骤201至步骤205可以利用电子设备中的处理器实现,上述处理器可以为ASIC、DSP、DSPD、PLD、FPGA、CPU、控制器、微控制器、微处理器中的至少一种。In practical applications, steps 201 to 205 may be implemented by a processor in an electronic device, and the above-mentioned processor may be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor. A sort of.

可以看出,本公开实施例中,在神经网络的训练过程中,由于可以根据样本图像的特征图,确定样本图像的检测结果;因而,可以使得训练完成的神经网络能够在无法获取到清晰的红绿灯或地面停止线图像,或路口没有红绿灯或地面停止线的情况下,也可以根据道路图像的特征图实现路口检测;并且,由于正样本图像包括路口,因而,通过基于正样本图像进行神经网络的训练,有利于使训练完成的神经网络能够检测出道路图像中的路口。It can be seen that, in the embodiment of the present disclosure, in the training process of the neural network, the detection result of the sample image can be determined according to the feature map of the sample image; therefore, the trained neural network can be able to obtain clear Traffic lights or ground stop line images, or when there are no traffic lights or ground stop lines at intersections, intersection detection can also be achieved based on the feature map of road images; and, since the positive sample images include intersections, the neural network based on the positive sample images is used to detect the intersection. It is beneficial to enable the trained neural network to detect intersections in road images.

在实际应用中,在针对正样本图像标注路口的标注框时,由于很多路口没有明显的标志物,因此在进行数据标注时,也存在很大的困难;针对该问题,在本公开实施例中,可以采用多种方式解决,下面通过几个示例进行说明。In practical applications, when marking the frame of intersections for positive sample images, since many intersections do not have obvious markers, there are also great difficulties in data labeling; for this problem, in the embodiments of the present disclosure , can be solved in a variety of ways, which are explained below with several examples.

在第一个示例中,正样本图像所示的道路上的路口的标注框的下边框在正样本图像所示的道路的路面上;这样,即使在路口没有明显的标志物时,可以确定出路口的标注框的下边框,有利于进行标注;进一步地,由于标注出路口的标注框在道路的路面上,因而,路口的标注框与实际情况相符,进而在样本图像所示的道路上的路口的标注框的基础上,可以使训练完成的神经网络能够准确地得出路口的检测框。In the first example, the lower border of the annotation box of the intersection on the road shown in the positive sample image is on the road surface of the road shown in the positive sample image; in this way, even when there are no obvious landmarks at the intersection, it can be determined that The lower border of the labeling box of the intersection is beneficial for labeling; further, since the labeling box marking the intersection is on the road surface, the labeling box of the intersection is consistent with the actual situation, and then the labeling box on the road shown in the sample image is on the road. On the basis of the annotation frame of the intersection, the trained neural network can accurately obtain the detection frame of the intersection.

在第一个示例中的基础上,作为一种可选的实施方式,在正样本图像中包括道路的路口的停止线的情况下,正样本图像所示的道路上的路口的标注框的下边框与上述停止线对齐;由于标注出路口的标注框的下边框与停止线对齐,因而,路口的标注框与实际情况相符,进而在样本图像所示的道路上的路口的标注框的基础上,可以使训练完成的神经网络能够准确地得出路口的检测框。On the basis of the first example, as an optional implementation, in the case where the positive sample image includes the stop line of the intersection of the road, the lower part of the labeling frame of the intersection on the road shown in the positive sample image The frame is aligned with the above-mentioned stop line; since the lower frame of the label box marking the intersection is aligned with the stop line, the label frame of the intersection is consistent with the actual situation, and then on the basis of the label frame of the intersection on the road shown in the sample image , so that the trained neural network can accurately obtain the detection frame of the intersection.

在第一个示例中的基础上,作为一种可选的实施方式,对正样本图像的路口利用矩形标注框标注,若路口距离较远时,需要根据经验和对路口区域的观察,将矩形标注框的下边框标注到路面上,同时将矩形标注框的高度设为固定值,例如,矩形标注框的高度为80个像素。On the basis of the first example, as an optional implementation, the intersection of the positive sample image is marked with a rectangular frame. The lower border of the callout box is marked on the road, and the height of the rectangle callout box is set to a fixed value, for example, the height of the rectangle callout box is 80 pixels.

在第二个示例中,包含同一路口的多个正样本图像中的标注框的高度之差在预设范围内;预设范围可以根据实际情况预先设置,例如,包含同一路口的多个正样本图像中的标注框的高度一致,均为80个像素。In the second example, the difference between the heights of the annotation boxes in the multiple positive sample images including the same intersection is within a preset range; the preset range can be preset according to the actual situation, for example, including multiple positive samples at the same intersection The heights of the annotation boxes in the images are the same, and they are all 80 pixels.

可以看出,由于包含同一路口的多个正样本图像中路口的标注框的高度之差在预设范围内,可以保证多个正样本图像的路口的标注框的一致性,在多个正样本图像的路口的标注框的基础上,有利于加快神经网络的训练过程。It can be seen that since the height difference of the labeling boxes of the intersections in the multiple positive sample images containing the same intersection is within the preset range, the consistency of the labeling boxes of the intersections of the multiple positive sample images can be guaranteed. On the basis of the annotation frame of the intersection of the image, it is beneficial to speed up the training process of the neural network.

在实际应用中,包含同一路口的多个正样本图像可以是连续拍摄到的图像。In practical applications, multiple positive sample images containing the same intersection may be images captured continuously.

在第三个示例中,在正样本图像中,当能够识别出前方路口时,则需要标注出路口的标注框。In the third example, in the positive sample image, when the intersection ahead can be identified, the annotation frame of the intersection needs to be marked.

在第四个示例中,在正样本图像中,当存在严重遮挡或者肉眼无法分辨是否是路口区域的情况时,不进行路口的标注。In the fourth example, in the positive sample image, when there is severe occlusion or the naked eye cannot distinguish whether it is an intersection area, the intersection is not marked.

可选地,当样本图像为负样本图像时,负样本图像中的道路上不存在路口,样本图像的标注结果表示负样本图像中不存在标注框。Optionally, when the sample image is a negative sample image, there is no intersection on the road in the negative sample image, and the annotation result of the sample image indicates that there is no annotation frame in the negative sample image.

可以看出,通过将负样本图像输入至神经网络,进行神经网络的网络训练,可以使训练完成的神经网络针对不包含路口区域的图像的错误检测率降低,即,可以较为准确地检测出不包含路口区域的图像。It can be seen that by inputting the negative sample image into the neural network and performing the network training of the neural network, the error detection rate of the trained neural network for images that do not contain the intersection area can be reduced, that is, it can be more accurately detected. Contains an image of the intersection area.

在一实施方式中,上述样本图像包括正样本图像和负样本图像时,正样本图像与负样本图像的比例大于设定比例阈值;如此,通过将足够多的正样本图像输入至神经网络,进行神经网络的网络训练,可以使训练完成的神经网络能够较为准确地检测出包含路口的图像的路口区域。In one embodiment, when the above-mentioned sample images include positive sample images and negative sample images, the ratio of the positive sample images to the negative sample images is greater than the set ratio threshold; in this way, by inputting enough positive sample images into the neural network, the The network training of the neural network can enable the trained neural network to more accurately detect the intersection area including the image of the intersection.

本公开实施例中,在得到训练完成的神经网络后,便可以将道路图像输入至训练完成的神经网络,利用训练完成的神经网络进行路口检测,进而,确定道路图像所示的道路上的路口的检测框,或,确定道路图像所示的道路不存在路口。In the embodiment of the present disclosure, after the trained neural network is obtained, the road image can be input into the trained neural network, and the trained neural network can be used to detect intersections, and then determine the intersection on the road shown by the road image. The detection box, or, determines that there is no intersection on the road shown by the road image.

图3的本公开实施例利用训练完成的神经网络进行路口检测的示例图,如图3所示,待检测图像表示利用车辆的单摄像头拍摄的道路图像,检测网络表示训练完成的神经网络,可以看出,路口检测结果包含一个表示路口的检测框,路口的检测框的下边框与路面贴合。FIG. 3 is an example diagram of an embodiment of the present disclosure using a trained neural network for intersection detection. As shown in FIG. 3 , the image to be detected represents a road image captured by a single camera of a vehicle, and the detection network represents a trained neural network. It can be seen that the intersection detection result includes a detection frame representing the intersection, and the lower border of the intersection detection frame fits the road surface.

在前述实施例提出的路口检测方法的基础上,本公开实施例还提出了一种智能行驶方法,可以应用于智能行驶设备中,这里,智能行驶设备包括但不限于自动驾驶车辆、装有高级驾驶辅助系统(Advanced Driving Assistant System,ADAS)的车辆、装有ADAS的机器人等。On the basis of the intersection detection method proposed in the foregoing embodiment, the embodiment of the present disclosure also proposes an intelligent driving method, which can be applied to an intelligent driving device. Here, the intelligent driving device includes but is not limited to automatic driving Vehicles with Advanced Driving Assistant System (ADAS), robots equipped with ADAS, etc.

图4为本公开实施例的智能行驶方法的流程图,如图4所示,该流程可以包括:FIG. 4 is a flowchart of an intelligent driving method according to an embodiment of the present disclosure. As shown in FIG. 4 , the flowchart may include:

步骤401:获取道路图像。Step 401: Obtain road images.

本步骤的实现方式已经在前述记载的内容中作出说明,这里不再赘述。The implementation manner of this step has been described in the foregoing description, and will not be repeated here.

步骤402:根据上述任意一种路口检测方法,对道路图像进行路口检测。Step 402: Perform intersection detection on the road image according to any of the above-mentioned intersection detection methods.

结合前述记载的内容,可以看出,对道路图像进行路口检测,得到的检测结果可以是确定道路图像所示的道路上的路口的检测框,或者,是确定道路图像所示的道路不存在路口;在确定路口的检测框的基础上,还可以确定采集道路图像的设备与路口之间的距离。Combining the above-mentioned contents, it can be seen that the detection result obtained by performing intersection detection on the road image can be a detection frame that determines the intersection on the road shown in the road image, or it can be determined that there is no intersection on the road shown in the road image. ; On the basis of determining the detection frame of the intersection, the distance between the device that collects the road image and the intersection can also be determined.

步骤403:根据采集道路图像的智能行驶设备与路口之间的距离对智能行驶设备进行行驶控制。Step 403: Control the driving of the smart driving device according to the distance between the smart driving device that collects the road image and the intersection.

在实际应用中,可以直接控制智能行驶设备行驶(自动驾驶以及机器人),也可以向驾驶员发送指令,由驾驶员来控制车辆(例如装有ADAS的车辆)行驶。In practical applications, it is possible to directly control the driving of intelligent driving devices (autonomous driving and robots), or send instructions to the driver, and the driver can control the driving of the vehicle (such as a vehicle equipped with ADAS).

可以看出,基于路口检测方法,可以得出采集道路图像的智能行驶设备与路口之间的距离,有利于根据采集道路图像的智能行驶设备与路口之间的距离,对车辆驾驶提供帮助,提高车辆驾驶的安全性。It can be seen that based on the intersection detection method, the distance between the intelligent driving device that collects road images and the intersection can be obtained, which is beneficial to provide assistance for vehicle driving according to the distance between the intelligent driving device that collects road images and the intersection. Safety of vehicle driving.

本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定Those skilled in the art can understand that in the above method of the specific implementation, the writing order of each step does not mean a strict execution order but constitutes any limitation on the implementation process, and the specific execution order of each step should be based on its function and possible Intrinsic logical determination

在前述实施例提出的路口检测方法的基础上,本公开实施例提出了一种路口检测装置。On the basis of the intersection detection method proposed in the foregoing embodiments, the embodiment of the present disclosure proposes an intersection detection apparatus.

图5为本公开实施例的路口检测装置的组成结构示意图,如图5所示,所述装置包括:第一提取模块501、检测模块502和第一确定模块503,其中,FIG. 5 is a schematic diagram of the composition and structure of an intersection detection apparatus according to an embodiment of the present disclosure. As shown in FIG. 5 , the apparatus includes: a first extraction module 501 , a detection module 502 and a first determination module 503 , wherein,

第一提取模块501,用于对道路图像进行特征提取,获得所述道路图像的特征图;a first extraction module 501, configured to perform feature extraction on a road image to obtain a feature map of the road image;

检测模块502,用于根据所述道路图像的特征图,确定所述道路图像所示的道路上的路口的检测框;所述路口的检测框表示路口在所述道路图像中的区域,所述路口的检测框的下边框在所述道路的路面上;The detection module 502 is configured to determine the detection frame of the intersection on the road shown in the road image according to the feature map of the road image; the detection frame of the intersection represents the area of the intersection in the road image, the The lower border of the detection frame of the intersection is on the road surface of the road;

第一确定模块503,用于根据所述路口的检测框的下边框,确定采集所述道路图像的设备与所述路口之间的距离。The first determination module 503 is configured to determine the distance between the device that collects the road image and the intersection according to the lower border of the detection frame of the intersection.

可选地,检测模块502,还用于根据所述道路图像的特征图,确定所述道路图像所示的道路不存在路口。Optionally, the detection module 502 is further configured to determine, according to the feature map of the road image, that there is no intersection on the road shown by the road image.

可选地,所述第一确定模块503,用于根据所述路口的检测框的下边框在所述道路图像中的位置以及所述道路图像的平面和所述道路的路面之间的坐标转换关系,确定所述路口的检测框的下边框在所述道路上的位置;根据所述路口的检测框的下边框在所述道路上的位置与采集所述道路图像的设备在所述道路上的位置,得出采集所述道路图像的设备与所述路口之间的距离。Optionally, the first determination module 503 is configured to convert the coordinates according to the position of the lower border of the detection frame of the intersection in the road image and the plane of the road image and the road surface of the road. determine the position of the lower border of the detection frame of the intersection on the road; according to the position of the lower border of the detection frame of the intersection on the road and the device that collects the road image on the road position, and obtain the distance between the device that collects the road image and the intersection.

可选地,所述装置是基于神经网络实现的,所述神经网络采用样本图像以及样本图像的标注结果训练得到,所述样本图像的标注结果包括正样本图像所示的道路上的路口的标注框,所述标注框表征路口在所述正样本图像中的位置,且所述标注框的下边框在所述正样本图像所示的道路的路面上。Optionally, the device is implemented based on a neural network, and the neural network is obtained by training a sample image and an annotation result of the sample image, and the annotation result of the sample image includes the annotation of the intersection on the road shown in the positive sample image. frame, the labeling frame represents the position of the intersection in the positive sample image, and the lower border of the labeling frame is on the road surface of the road shown in the positive sample image.

在实际应用中,第一提取模块501、检测模块502和第一确定模块503均可以利用电子设备中的处理器实现,上述处理器可以为ASIC、DSP、DSPD、PLD、FPGA、CPU、控制器、微控制器、微处理器中的至少一种。In practical applications, the first extraction module 501, the detection module 502 and the first determination module 503 can all be implemented by using a processor in an electronic device, and the above-mentioned processor can be an ASIC, DSP, DSPD, PLD, FPGA, CPU, controller , at least one of a microcontroller and a microprocessor.

图6为本公开实施例的神经网络训练装置的组成结构示意图,如图6所示,该装置可以包括第二提取模块601、第二确定模块602和调整模块603,其中,FIG. 6 is a schematic structural diagram of a neural network training apparatus according to an embodiment of the present disclosure. As shown in FIG. 6 , the apparatus may include a second extraction module 601, a second determination module 602, and an adjustment module 603, wherein,

第二提取模块601,用于对样本图像进行特征提取,获得所述样本图像的特征图;The second extraction module 601 is configured to perform feature extraction on the sample image to obtain a feature map of the sample image;

第二确定模块602,用于根据所述样本图像的特征图,确定所述样本图像的检测结果;A second determination module 602, configured to determine the detection result of the sample image according to the feature map of the sample image;

调整模块603,用于根据所述样本图像的标注结果和所述检测结果,调整所述神经网络的网络参数值;An adjustment module 603, configured to adjust the network parameter value of the neural network according to the labeling result of the sample image and the detection result;

当所述样本图像为正样本图像时,所述样本图像的标注结果为所述正样本图像所示的道路上的路口的标注框,所述标注框表征路口在所述正样本图像中的位置,且所述正样本图像所示的道路上的路口的标注框的下边框在所述正样本图像所示的道路的路面上。When the sample image is a positive sample image, the labeling result of the sample image is the labeling frame of the intersection on the road shown by the positive sample image, and the labeling frame represents the position of the intersection in the positive sample image , and the lower border of the labeling frame of the intersection on the road shown in the positive sample image is on the road surface of the road shown in the positive sample image.

可选地,所述正样本图像中包括道路的路口的停止线,所述正样本图像所示的道路上的路口的标注框的下边框与所述停止线对齐。Optionally, the positive sample image includes a stop line of a road intersection, and the lower border of the label box of the intersection on the road shown in the positive sample image is aligned with the stop line.

可选地,包含同一路口的多个正样本图像中的标注框的高度之差在预设范围内。Optionally, the difference between the heights of the annotation boxes in the multiple positive sample images including the same intersection is within a preset range.

可选地,当所述样本图像为负样本图像时,所述负样本图像中的道路上不存在路口,所述样本图像的标注结果包括所述负样本图像中不存在标注框。Optionally, when the sample image is a negative sample image, there is no intersection on the road in the negative sample image, and the annotation result of the sample image includes that there is no annotation frame in the negative sample image.

在实际应用中,第二提取模块601、第二确定模块602和调整模块603均可以利用电子设备中的处理器实现,上述处理器可以为ASIC、DSP、DSPD、PLD、FPGA、CPU、控制器、微控制器、微处理器中的至少一种。In practical applications, the second extraction module 601, the second determination module 602 and the adjustment module 603 can all be implemented by using a processor in an electronic device, and the above-mentioned processor can be an ASIC, DSP, DSPD, PLD, FPGA, CPU, controller , at least one of a microcontroller and a microprocessor.

图7为本公开实施例的智能行驶装置的组成结构示意图,如图7所示,所述装置包括:获取模块701和处理模块702,其中,FIG. 7 is a schematic structural diagram of an intelligent driving device according to an embodiment of the present disclosure. As shown in FIG. 7 , the device includes: an acquisition module 701 and a processing module 702 , wherein,

获取模块701,用于获取道路图像;an acquisition module 701, configured to acquire road images;

处理模块702,用于根据上述任意一种路口检测方法,对所述道路图像进行路口检测;根据采集所述道路图像的智能行驶设备与所述路口之间的距离对所述设备进行行驶控制。The processing module 702 is configured to perform intersection detection on the road image according to any of the above-mentioned intersection detection methods; and control the driving of the device according to the distance between the intelligent driving device that collects the road image and the intersection.

实际应用中,获取模块701和处理模块702均可以利用智能行驶设备中的处理器实现,上述处理器可以为ASIC、DSP、DSPD、PLD、FPGA、CPU、控制器、微控制器、微处理器中的至少一种。In practical applications, both the acquisition module 701 and the processing module 702 can be implemented by a processor in an intelligent driving device, and the above-mentioned processor can be an ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, or microprocessor. at least one of them.

另外,在本实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in this embodiment may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or can be implemented in the form of software function modules.

所述集成的单元如果以软件功能模块的形式实现并非作为独立的产品进行销售或使用时,可以存储在一个计算机可读取存储介质中,基于这样的理解,本实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或processor(处理器)执行本实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read OnlyMemory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or Said part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, the computer software product is stored in a storage medium and includes several instructions for making a computer device (which can be It is a personal computer, a server, or a network device, etc.) or a processor (processor) that executes all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes: U disk, removable hard disk, read only memory (Read Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes.

具体来讲,本实施例中的任意一种路口检测方法、神经网络训练方法或智能行驶方法对应的计算机程序指令可以被存储在光盘,硬盘,U盘等存储介质上,当存储介质中的与任意一种路口检测方法、神经网络训练方法或智能行驶方法对应的计算机程序指令被一电子设备读取或被执行时,实现前述实施例的任意一种路口检测方法、神经网络训练方法或智能行驶方法。Specifically, the computer program instructions corresponding to any intersection detection method, neural network training method, or intelligent driving method in this embodiment can be stored on a storage medium such as an optical disk, a hard disk, and a U disk. When the computer program instructions corresponding to any intersection detection method, neural network training method or intelligent driving method are read or executed by an electronic device, any intersection detection method, neural network training method or intelligent driving method of the foregoing embodiment is realized. method.

基于前述实施例相同的技术构思,参见图8,其示出了本公开实施例提供的一种电子设备80,可以包括:存储器81和处理器82;其中,Based on the same technical concept as the foregoing embodiments, see FIG. 8 , which shows an electronic device 80 provided by an embodiment of the present disclosure, which may include: a memory 81 and a processor 82 ; wherein,

所述存储器81,用于存储计算机程序和数据;The memory 81 is used to store computer programs and data;

所述处理器82,用于执行所述存储器中存储的计算机程序,以实现前述实施例的任意一种路口检测方法、神经网络训练方法或智能行驶方法。The processor 82 is configured to execute the computer program stored in the memory, so as to implement any one of the intersection detection methods, neural network training methods or intelligent driving methods in the foregoing embodiments.

在实际应用中,上述存储器81可以是易失性存储器(volatile memory),例如RAM;或者非易失性存储器(non-volatile memory),例如ROM,快闪存储器(flash memory),硬盘(Hard Disk Drive,HDD)或固态硬盘(Solid-State Drive,SSD);或者上述种类的存储器的组合,并向处理器82提供指令和数据。In practical applications, the above-mentioned memory 81 may be a volatile memory (volatile memory), such as RAM; or a non-volatile memory (non-volatile memory), such as ROM, flash memory (flash memory), hard disk (Hard Disk Drive, HDD) or solid-state drive (Solid-State Drive, SSD); or a combination of the above types of memory, and provide instructions and data to processor 82.

上述处理器82可以为ASIC、DSP、DSPD、PLD、FPGA、CPU、控制器、微控制器、微处理器中的至少一种。可以理解地,对于不同的设备,用于实现上述处理器功能的电子器件还可以为其它,本公开实施例不作具体限定。The above-mentioned processor 82 may be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor. It can be understood that, for different devices, the electronic device used to implement the function of the processor may also be other, which is not specifically limited in the embodiment of the present disclosure.

在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or modules included in the apparatuses provided in the embodiments of the present disclosure may be used to execute the methods described in the above method embodiments. For specific implementation, reference may be made to the descriptions of the above method embodiments. For brevity, here No longer.

上文对各个实施例的描述倾向于强调各个实施例之间的不同之处,其相同或相似之处可以互相参考,为了简洁,本文不再赘述The above description of the various embodiments tends to emphasize the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, details are not repeated herein.

本申请所提供的各方法实施例中所揭露的方法,在不冲突的情况下可以任意组合,得到新的方法实施例。The methods disclosed in each method embodiment provided in this application can be combined arbitrarily without conflict to obtain a new method embodiment.

本申请所提供的各产品实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的产品实施例。The features disclosed in each product embodiment provided in this application can be combined arbitrarily without conflict to obtain a new product embodiment.

本申请所提供的各方法或设备实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的方法实施例或设备实施例。The features disclosed in each method or device embodiment provided in this application can be combined arbitrarily without conflict to obtain a new method embodiment or device embodiment.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,这些均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the scope of protection of the present invention and the claims, many forms can be made, which all belong to the protection of the present invention.

Claims (10)

1. An intersection detection method, characterized in that the method comprises:
carrying out feature extraction on a road image to obtain a feature map of the road image;
determining a detection frame of an intersection on a road shown by the road image according to the characteristic diagram of the road image; the detection frame of the intersection represents the area of the intersection in the road image, and the lower frame of the detection frame of the intersection is on the road surface of the road;
and determining the distance between the equipment for acquiring the road image and the intersection according to the lower frame of the detection frame of the intersection.
2. The method of claim 1, further comprising:
and determining that the road shown by the road image has no intersection according to the characteristic diagram of the road image.
3. The method of claim 1, wherein determining the distance between the device for acquiring the road image and the intersection according to the lower border of the detection frame of the intersection comprises:
determining the position of the lower frame of the detection frame of the intersection on the road according to the position of the lower frame of the detection frame of the intersection in the road image and the coordinate conversion relation between the plane of the road image and the road surface of the road;
and obtaining the distance between the equipment for acquiring the road image and the intersection according to the position of the lower frame of the detection frame of the intersection on the road and the position of the equipment for acquiring the road image on the road.
4. A neural network training method, comprising:
carrying out feature extraction on a sample image to obtain a feature map of the sample image;
determining the detection result of the sample image according to the characteristic diagram of the sample image;
adjusting the network parameter value of the neural network according to the labeling result and the detection result of the sample image;
when the sample image is a positive sample image, the labeling result of the sample image is a labeling frame of the intersection on the road shown by the positive sample image, the labeling frame represents the position of the intersection in the positive sample image, and the lower frame of the labeling frame of the intersection on the road shown by the positive sample image is on the road surface of the road shown by the positive sample image.
5. An intelligent driving method, comprising:
acquiring a road image;
the method according to any one of claims 1-3, wherein intersection detection is performed on the road image;
and controlling the equipment to run according to the distance between the intelligent running equipment for collecting the road image and the intersection.
6. The intersection detection device is characterized by comprising a first extraction module, a detection module and a first determination module; wherein,
the first extraction module is used for extracting the characteristics of the road image to obtain a characteristic map of the road image;
the detection module is used for determining a detection frame of an intersection on a road shown by the road image according to the characteristic diagram of the road image; the detection frame of the intersection represents the area of the intersection in the road image, and the lower frame of the detection frame of the intersection is on the road surface of the road;
and the first determining module is used for determining the distance between the equipment for acquiring the road image and the intersection according to the lower frame of the detection frame of the intersection.
7. An apparatus for neural network training, the apparatus comprising: a second extraction module, a second determination module, and an adjustment module, wherein,
the second extraction module is used for extracting the characteristics of the sample image to obtain a characteristic diagram of the sample image;
the second determining module is used for determining the detection result of the sample image according to the feature map of the sample image;
the adjusting module is used for adjusting the network parameter value of the neural network according to the labeling result and the detection result of the sample image;
when the sample image is a positive sample image, the labeling result of the sample image is a labeling frame of the intersection on the road shown by the positive sample image, the labeling frame represents the position of the intersection in the positive sample image, and the lower frame of the labeling frame of the intersection on the road shown by the positive sample image is on the road surface of the road shown by the positive sample image.
8. An intelligent travel apparatus, characterized in that the apparatus comprises: an acquisition module and a processing module, wherein,
the acquisition module is used for acquiring a road image;
a processing module for performing intersection detection on the road image according to the method of any one of claims 1 to 3; and controlling the equipment to run according to the distance between the intelligent running equipment for collecting the road image and the intersection.
9. An electronic device comprising a processor and a memory for storing a computer program operable on the processor; wherein,
the processor is configured to run the computer program to execute the intersection detection method according to any one of claims 1 to 3, the neural network training method according to claim 4, or the intelligent driving method according to claim 5.
10. A computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the intersection detection method of any one of claims 1 to 3 or the neural network training method of claim 4 or the intelligent driving method of claim 5.
CN201911083615.4A 2019-11-07 2019-11-07 Intersection detection, neural network training and intelligent driving method, device and equipment Pending CN112784639A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201911083615.4A CN112784639A (en) 2019-11-07 2019-11-07 Intersection detection, neural network training and intelligent driving method, device and equipment
KR1020217016327A KR20210082518A (en) 2019-11-07 2020-09-08 Intersection detection, neural network training and smart driving methods, devices and devices
JP2021532862A JP2022512165A (en) 2019-11-07 2020-09-08 Intersection detection, neural network training and intelligent driving methods, equipment and devices
PCT/CN2020/114095 WO2021088504A1 (en) 2019-11-07 2020-09-08 Road junction detection method and apparatus, neural network training method and apparatus, intelligent driving method and apparatus, and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911083615.4A CN112784639A (en) 2019-11-07 2019-11-07 Intersection detection, neural network training and intelligent driving method, device and equipment

Publications (1)

Publication Number Publication Date
CN112784639A true CN112784639A (en) 2021-05-11

Family

ID=75747994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911083615.4A Pending CN112784639A (en) 2019-11-07 2019-11-07 Intersection detection, neural network training and intelligent driving method, device and equipment

Country Status (4)

Country Link
JP (1) JP2022512165A (en)
KR (1) KR20210082518A (en)
CN (1) CN112784639A (en)
WO (1) WO2021088504A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023107002A3 (en) * 2021-12-09 2023-08-31 Grabtaxi Holdings Pte. Ltd. System and method for adaptively predicting a road segment attribute based on a graph indicative of relationship between a road segment and a detection
GB2617866A (en) * 2022-04-21 2023-10-25 Continental Automotive Romania Srl Computer implemented method for training a decision tree model for detecting an intersection, computer implemented method detecting an intersection,

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113380035B (en) * 2021-06-16 2022-11-11 山东省交通规划设计院集团有限公司 Road intersection traffic volume analysis method and system
CN113486774A (en) * 2021-07-01 2021-10-08 中国矿业大学(北京) Pipeline radar map Mish residual error multi-scale network identification method
CN116503819B (en) * 2023-04-27 2025-11-21 重庆长安汽车股份有限公司 Vehicle-road collaborative end-to-end 3D target detection method, system, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100299000A1 (en) * 2007-05-31 2010-11-25 Aisin Aw Co., Ltd. Driving assistance apparatus
JP2014109875A (en) * 2012-11-30 2014-06-12 Fujitsu Ltd Intersection detecting method and intersection detecting system
CN107689157A (en) * 2017-08-30 2018-02-13 电子科技大学 Traffic intersection based on deep learning can passing road planing method
US10008110B1 (en) * 2017-02-16 2018-06-26 Mapbox, Inc. Detecting restrictions on turning paths in digital maps
CN108376235A (en) * 2018-01-15 2018-08-07 深圳市易成自动驾驶技术有限公司 Image detecting method, device and computer readable storage medium
CN108596116A (en) * 2018-04-27 2018-09-28 深圳市商汤科技有限公司 Distance measuring method, intelligent control method and device, electronic equipment and storage medium
CN108877267A (en) * 2018-08-06 2018-11-23 武汉理工大学 A kind of intersection detection method based on vehicle-mounted monocular camera
US20190333377A1 (en) * 2018-04-27 2019-10-31 Cubic Corporation Adaptively controlling traffic movements for driver safety

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002193025A (en) * 2000-12-27 2002-07-10 Koito Mfg Co Ltd Vehicular head lamp device
US20140267415A1 (en) * 2013-03-12 2014-09-18 Xueming Tang Road marking illuminattion system and method
KR102628654B1 (en) * 2016-11-07 2024-01-24 삼성전자주식회사 Method and apparatus of indicating lane
CN108216229B (en) * 2017-09-08 2020-01-10 北京市商汤科技开发有限公司 Vehicle, road line detection and driving control method and device
WO2019094843A1 (en) * 2017-11-10 2019-05-16 Nvidia Corporation Systems and methods for safe and reliable autonomous vehicles
CN108230817B (en) * 2017-11-30 2020-09-22 商汤集团有限公司 Vehicle driving simulation method and apparatus, electronic device, system, program, and medium
CN110059554B (en) * 2019-03-13 2022-07-01 重庆邮电大学 Multi-branch target detection method based on traffic scene

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100299000A1 (en) * 2007-05-31 2010-11-25 Aisin Aw Co., Ltd. Driving assistance apparatus
JP2014109875A (en) * 2012-11-30 2014-06-12 Fujitsu Ltd Intersection detecting method and intersection detecting system
US10008110B1 (en) * 2017-02-16 2018-06-26 Mapbox, Inc. Detecting restrictions on turning paths in digital maps
CN107689157A (en) * 2017-08-30 2018-02-13 电子科技大学 Traffic intersection based on deep learning can passing road planing method
CN108376235A (en) * 2018-01-15 2018-08-07 深圳市易成自动驾驶技术有限公司 Image detecting method, device and computer readable storage medium
CN108596116A (en) * 2018-04-27 2018-09-28 深圳市商汤科技有限公司 Distance measuring method, intelligent control method and device, electronic equipment and storage medium
US20190333377A1 (en) * 2018-04-27 2019-10-31 Cubic Corporation Adaptively controlling traffic movements for driver safety
CN108877267A (en) * 2018-08-06 2018-11-23 武汉理工大学 A kind of intersection detection method based on vehicle-mounted monocular camera

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023107002A3 (en) * 2021-12-09 2023-08-31 Grabtaxi Holdings Pte. Ltd. System and method for adaptively predicting a road segment attribute based on a graph indicative of relationship between a road segment and a detection
GB2617866A (en) * 2022-04-21 2023-10-25 Continental Automotive Romania Srl Computer implemented method for training a decision tree model for detecting an intersection, computer implemented method detecting an intersection,

Also Published As

Publication number Publication date
JP2022512165A (en) 2022-02-02
KR20210082518A (en) 2021-07-05
WO2021088504A1 (en) 2021-05-14

Similar Documents

Publication Publication Date Title
CN110163904B (en) Object labeling method, movement control method, device, equipment and storage medium
CN111738995B (en) RGBD image-based target detection method and device and computer equipment
CN112784639A (en) Intersection detection, neural network training and intelligent driving method, device and equipment
WO2022126377A1 (en) Traffic lane line detection method and apparatus, and terminal device and readable storage medium
WO2022083402A1 (en) Obstacle detection method and apparatus, computer device, and storage medium
CN112528878A (en) Method and device for detecting lane line, terminal device and readable storage medium
WO2022121283A1 (en) Vehicle key point information detection and vehicle control
CN117593454B (en) Three-dimensional reconstruction and target surface Ping Miandian cloud generation method
Liu et al. Vehicle detection and ranging using two different focal length cameras
CN110660113A (en) Method, device, acquisition device and storage medium for establishing feature map
CN116052120A (en) Excavator night object detection method based on image enhancement and multi-sensor fusion
TWI726278B (en) Driving detection method, vehicle and driving processing device
KR20110058262A (en) Vehicle detection device and method
CN112434657A (en) Drift carrier detection method, device, program, and computer-readable medium
CN112033419A (en) Method, electronic device, and medium for detecting automatic port driving lane line
CN114842453A (en) Method, device and vehicle for detecting obstacle
CN116883870B (en) A method and device for detecting falling rocks from drones based on deep learning
JP2018073275A (en) Image recognition device
CN112711973B (en) Assessment method and device for key point detection algorithm
CN116778262A (en) A three-dimensional target detection method and system based on virtual point cloud
CN112378333A (en) Method and device for measuring warehoused goods
CN116203576A (en) 3D target detection method and system based on environment awareness
CN111967290B (en) Object recognition method, device and vehicle
CN114331848A (en) Video image splicing method, device and equipment
CN116508067A (en) Process images to extract information about known objects

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210511