CN113103957B - A blind spot monitoring method, device, electronic equipment and storage medium - Google Patents
A blind spot monitoring method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113103957B CN113103957B CN202110467776.4A CN202110467776A CN113103957B CN 113103957 B CN113103957 B CN 113103957B CN 202110467776 A CN202110467776 A CN 202110467776A CN 113103957 B CN113103957 B CN 113103957B
- Authority
- CN
- China
- Prior art keywords
- frame
- distance information
- information
- monitoring image
- current
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 470
- 238000000034 method Methods 0.000 title claims abstract description 83
- 238000001514 detection method Methods 0.000 claims abstract description 72
- 230000000007 visual effect Effects 0.000 claims abstract description 9
- 230000008859 change Effects 0.000 claims description 81
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012806 monitoring device Methods 0.000 claims description 7
- 238000004891 communication Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 6
- 238000013527 convolutional neural network Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- PCTMTFRHKVHKIS-BMFZQQSSSA-N (1s,3r,4e,6e,8e,10e,12e,14e,16e,18s,19r,20r,21s,25r,27r,30r,31r,33s,35r,37s,38r)-3-[(2r,3s,4s,5s,6r)-4-amino-3,5-dihydroxy-6-methyloxan-2-yl]oxy-19,25,27,30,31,33,35,37-octahydroxy-18,20,21-trimethyl-23-oxo-22,39-dioxabicyclo[33.3.1]nonatriaconta-4,6,8,10 Chemical compound C1C=C2C[C@@H](OS(O)(=O)=O)CC[C@]2(C)[C@@H]2[C@@H]1[C@@H]1CC[C@H]([C@H](C)CCCC(C)C)[C@@]1(C)CC2.O[C@H]1[C@@H](N)[C@H](O)[C@@H](C)O[C@H]1O[C@H]1/C=C/C=C/C=C/C=C/C=C/C=C/C=C/[C@H](C)[C@@H](O)[C@@H](C)[C@H](C)OC(=O)C[C@H](O)C[C@H](O)CC[C@@H](O)[C@H](O)C[C@H](O)C[C@](O)(C[C@H](O)[C@H]2C(O)=O)O[C@H]2C1 PCTMTFRHKVHKIS-BMFZQQSSSA-N 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000009499 grossing Methods 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- NAWXUBYGYWOOIX-SFHVURJKSA-N (2s)-2-[[4-[2-(2,4-diaminoquinazolin-6-yl)ethyl]benzoyl]amino]-4-methylidenepentanedioic acid Chemical compound C1=CC2=NC(N)=NC(N)=C2C=C1CCC1=CC=C(C(=O)N[C@@H](CC(=C)C(O)=O)C(O)=O)C=C1 NAWXUBYGYWOOIX-SFHVURJKSA-N 0.000 description 1
- 102100034112 Alkyldihydroxyacetonephosphate synthase, peroxisomal Human genes 0.000 description 1
- 101000799143 Homo sapiens Alkyldihydroxyacetonephosphate synthase, peroxisomal Proteins 0.000 description 1
- 238000000848 angular dependent Auger electron spectroscopy Methods 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000008034 disappearance Effects 0.000 description 1
- 238000011478 gradient descent method Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R1/00—Optical viewing arrangements; Real-time viewing arrangements for drivers or passengers using optical image capturing systems, e.g. cameras or video systems specially adapted for use in or on vehicles
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R2300/00—Details of viewing arrangements using cameras and displays, specially adapted for use in a vehicle
- B60R2300/80—Details of viewing arrangements using cameras and displays, specially adapted for use in a vehicle characterised by the intended use of the viewing arrangement
- B60R2300/802—Details of viewing arrangements using cameras and displays, specially adapted for use in a vehicle characterised by the intended use of the viewing arrangement for monitoring and displaying vehicle exterior blind spot views
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/10—Internal combustion engine [ICE] based vehicles
- Y02T10/40—Engine management systems
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Mechanical Engineering (AREA)
- Traffic Control Systems (AREA)
- Closed-Circuit Television Systems (AREA)
Abstract
Description
技术领域technical field
本公开涉及图像处理技术领域,具体而言,涉及一种盲区监测方法、装置、电子设备及存储介质。The present disclosure relates to the technical field of image processing, and in particular, to a blind spot monitoring method, device, electronic equipment, and storage medium.
背景技术Background technique
在车辆、机器人的行车过程中,由于可以观测到的范围有限,因此容易出现行车盲区。由于盲区的存在,极易造成驾驶人员或者自动驾驶车辆的判断和操作失误,降低行车的安全性。During the driving process of vehicles and robots, due to the limited range that can be observed, driving blind spots are prone to appear. Due to the existence of blind spots, it is very easy to cause judgment and operation errors of the driver or the self-driving vehicle, reducing the safety of driving.
发明内容Contents of the invention
本公开实施例至少提供一种盲区监测方法、装置、电子设备及存储介质。Embodiments of the present disclosure at least provide a blind spot monitoring method, device, electronic equipment, and storage medium.
第一方面,本公开实施例提供了一种盲区监测方法,包括:获取目标车辆上的采集设备采集得到的当前帧监测图像;对所述当前帧监测图像进行对象检测,得到所述当前帧监测图像中包括的对象的类型信息和位置;根据所述对象的位置和所述目标车辆的视野盲区,确定位于所述目标车辆的视野盲区中的目标对象;根据所述目标对象的类型信息和位置以及所述目标车辆的行车状态,生成监测结果。In the first aspect, an embodiment of the present disclosure provides a blind spot monitoring method, including: acquiring the current frame monitoring image collected by the acquisition device on the target vehicle; performing object detection on the current frame monitoring image to obtain the current frame monitoring The type information and position of the object included in the image; according to the position of the object and the blind spot of the target vehicle, determine the target object located in the blind spot of the target vehicle; according to the type information and position of the target object and the driving state of the target vehicle to generate a monitoring result.
本公开实施例通过获取目标车辆上的采集设备采集得到的当前帧监测图像,并对当前帧监测图像进行对象检测,确定当前帧监测图像中包括的对象的类型信息和位置,然后根据对象的位置和目标车辆的视野盲区,判断位于目标车辆的视野盲区中的目标对象;然后根据目标对象的类型信息和位置、以及目标车辆的行车状态,生成监测结果。这样,能够针对不同类型的目标对象产生不同的监测结果,从而提升行车安全以及盲区监测性能。In the embodiment of the present disclosure, by acquiring the current frame monitoring image collected by the acquisition device on the target vehicle, and performing object detection on the current frame monitoring image, determining the type information and position of the object included in the current frame monitoring image, and then according to the position of the object and the blind spot of the target vehicle to determine the target object located in the blind spot of the target vehicle; and then generate monitoring results according to the type information and position of the target object, as well as the driving state of the target vehicle. In this way, different monitoring results can be generated for different types of target objects, thereby improving driving safety and blind spot monitoring performance.
在一种可能的实施方式中,所述监测结果包括告警信息,所述目标车辆的行车状态包括所述目标车辆的转向信息;所述根据所述目标对象的类型信息和位置以及所述目标车辆的行车状态,生成监测结果,包括:根据所述目标对象的类型信息和位置以及所述目标车辆的转向信息,确定告警信息的级别;生成确定的级别的告警信息并提示。In a possible implementation manner, the monitoring result includes warning information, the driving state of the target vehicle includes steering information of the target vehicle; generating monitoring results, including: determining the level of warning information according to the type information and position of the target object and the steering information of the target vehicle; generating and prompting warning information of the determined level.
在一种可能的实施方式中,所述监测结果包括车辆控制指令,所述目标车辆的行车状态包括所述目标车辆的转向信息;所述根据所述目标对象的类型信息和位置以及所述目标车辆的行车状态,生成监测结果,包括:根据所述目标对象的类型信息和位置以及所述目标车辆的转向信息,生成所述车辆控制指令;所述盲区监测方法还包括:基于所述车辆控制指令,控制所述目标车辆行驶。In a possible implementation manner, the monitoring result includes vehicle control instructions, the driving state of the target vehicle includes steering information of the target vehicle; The driving state of the vehicle, generating monitoring results, including: generating the vehicle control instruction according to the type information and position of the target object and the steering information of the target vehicle; the blind spot monitoring method also includes: based on the vehicle control instruction to control the target vehicle to travel.
这样,可以根据目标对象的类型信息和位置以及目标车辆的行车状态,生成更具针对性、更准确的监测结果。In this way, more targeted and accurate monitoring results can be generated according to the type information and location of the target object and the driving state of the target vehicle.
在一种可能的实施方式中,根据所述对象的位置和所述目标车辆的视野盲区,确定位于所述目标车辆的视野盲区中的目标对象,包括:根据所述当前帧监测图像中所述对象的位置,确定所述目标车辆与所述当前帧监测图像中所述对象的当前第一距离信息;根据所述当前第一距离信息,确定位于所述目标车辆的视野盲区中的目标对象。In a possible implementation manner, determining the target object located in the blind spot of the target vehicle according to the position of the object and the blind spot of the target vehicle includes: The position of the object is to determine the current first distance information between the target vehicle and the object in the current frame monitoring image; according to the current first distance information, determine the target object located in the blind spot of the target vehicle.
这样,可以准确将位于目标车辆的视野盲区中的目标对象,从当前帧监测图像包括的所有对象中检测出来。In this way, the target object located in the blind spot of the target vehicle's field of view can be accurately detected from all objects included in the monitoring image of the current frame.
在一种可能的实施方式中,所述根据所述当前帧监测图像中所述对象的位置,确定所述目标车辆与所述当前帧监测图像中所述对象的当前第一距离信息,包括:基于所述当前帧监测图像,确定所述目标车辆与所述当前帧监测图像中的对象的待调整距离信息;基于所述对象在所述采集设备采集的多帧历史帧监测图像中相邻两帧监测图像中的尺度之间的尺度变化信息、以及所述多帧历史帧监测图像中每帧历史帧监测图像中的所述对象与所述目标车辆之间的历史第一距离信息,对所述待调整距离信息进行调整,得到所述目标车辆与所述对象之间的当前第一距离信息。In a possible implementation manner, the determining the current first distance information between the target vehicle and the object in the current frame monitoring image according to the position of the object in the current frame monitoring image includes: Based on the current frame monitoring image, determine the distance to be adjusted between the target vehicle and the object in the current frame monitoring image; Scale change information between scales in the frame monitoring images, and historical first distance information between the object and the target vehicle in each frame of the historical frame monitoring images in the multiple frames of historical frame monitoring images, for all The distance information to be adjusted is adjusted to obtain the current first distance information between the target vehicle and the object.
在一种可能的实施方式中,所述对所述待调整距离信息进行调整,得到所述目标车辆与所述对象之间的当前第一距离信息,包括:对所述待调整距离信息进行调整,直至所述尺度变化信息的误差量最小,得到调整后的距离信息;其中,所述误差量基于所述待调整距离信息、所述尺度变化信息以及所述多帧历史帧监测图像中每帧历史帧监测图像对应的历史第一距离信息确定;基于所述调整后的距离信息,确定所述当前第一距离信息。In a possible implementation manner, the adjusting the distance information to be adjusted to obtain the current first distance information between the target vehicle and the object includes: adjusting the distance information to be adjusted , until the error amount of the scale change information is minimum, and the adjusted distance information is obtained; wherein, the error amount is based on the distance information to be adjusted, the scale change information, and each frame in the multi-frame historical frame monitoring image Determining historical first distance information corresponding to historical frame monitoring images; determining the current first distance information based on the adjusted distance information.
本公开实施例中,通过对对象在当前帧监测图像和与当前帧监测图像相邻的历史帧监测图像中的尺度之间的尺度变化信息进行不断优化,可以降低获取到的对象在当前帧监测图像和与当前帧监测图像相邻的历史帧监测图像中的尺度之间的尺度变化信息的误差,从而提高调整后的距离信息的稳定性。In the embodiment of the present disclosure, by continuously optimizing the scale change information of the object between the scales of the current frame monitoring image and the historical frame monitoring images adjacent to the current frame monitoring image, the obtained object can be reduced The error of the scale change information between the image and the scale in the historical frame monitoring image adjacent to the current frame monitoring image, thereby improving the stability of the adjusted distance information.
在一种可能的实施方式中,所述基于所述调整后的距离信息,确定所述当前第一距离信息之前,所述盲区监测方法还包括:对所述当前帧监测图像进行目标检测,确定所述当前帧监测图像中包含的所述对象的检测框的位置信息;基于所述检测框的位置信息、以及所述采集设备的标定参数,确定当前第二距离信息;所述基于所述调整后的距离信息,确定所述当前第一距离信息,包括:基于所述当前第二距离信息、所述多帧历史帧监测图像中的每帧历史帧监测图像中所述对象与所述目标车辆之间的历史第二距离信息、该帧历史帧监测图像对应的所述历史第一距离信息以及所述调整后的距离信息,确定针对所述调整后的距离信息的距离偏置信息;基于所述距离偏置信息对所述调整后的距离信息进行调整,得到所述当前第一距离信息。In a possible implementation manner, before determining the current first distance information based on the adjusted distance information, the blind spot monitoring method further includes: performing target detection on the current frame monitoring image, and determining The position information of the detection frame of the object contained in the current frame monitoring image; based on the position information of the detection frame and the calibration parameters of the acquisition device, determine the current second distance information; the adjustment based on the Determining the current first distance information includes: based on the current second distance information, each frame of the multiple historical frame monitoring images in the multiple historical frame monitoring images, the object and the target vehicle Between the historical second distance information, the historical first distance information corresponding to the frame historical frame monitoring image, and the adjusted distance information, determine the distance offset information for the adjusted distance information; based on the The distance offset information is used to adjust the adjusted distance information to obtain the current first distance information.
本公开实施例中,在得到距离偏置信息后,可以对调整后的距离信息进行进一步调整,从而得到目标车辆和对象在当前准确度较高的距离信息。In the embodiment of the present disclosure, after the distance offset information is obtained, the adjusted distance information may be further adjusted, so as to obtain the current distance information with high accuracy between the target vehicle and the object.
在一种可能的实施方式中,所述基于所述当前第二距离信息、所述多帧历史帧监测图像中的每帧历史帧监测图像中所述对象与所述目标车辆之间的历史第二距离信息、该帧历史帧监测图像对应的所述历史第一距离信息以及所述调整后的距离信息,确定针对所述调整后的距离信息的距离偏置信息,包括:基于所述当前第二距离信息以及所述多帧历史帧监测图像中的每帧历史帧监测图像对应的所述历史第二距离信息,确定由所述多帧历史帧监测图像中的每帧历史帧监测图像对应的所述历史第二距离信息和所述当前第二距离信息拟合成的第一拟合曲线的第一线性拟合系数;基于所述多帧历史帧监测图像中的每帧历史帧监测图像对应的所述历史第一距离信息以及所述调整后的距离信息,确定由所述多帧历史帧监测图像中的每帧历史帧监测图像对应的所述历史第一距离信息和所述调整后的距离信息拟合成的第二拟合曲线的第二线性拟合系数;基于所述第一线性拟合系数和所述第二线性拟合系数,确定针对所述调整后的距离信息的距离偏置信息。In a possible implementation manner, the historical second distance between the object and the target vehicle in each frame of the multi-frame historical frame monitoring image based on the current second distance information is Two distance information, the historical first distance information corresponding to the historical frame monitoring image of the frame, and the adjusted distance information, and determining distance offset information for the adjusted distance information includes: based on the current first distance information The second distance information and the historical second distance information corresponding to each frame of the historical frame monitoring image in the multiple frames of the historical frame monitoring image determine the distance corresponding to each frame of the historical frame monitoring image in the multiple frames of the historical frame monitoring image The first linear fitting coefficient of the first fitting curve fitted by the historical second distance information and the current second distance information; each frame of the historical frame monitoring image based on the multiple frames of historical frame monitoring images corresponds to The historical first distance information and the adjusted distance information, determine the historical first distance information and the adjusted historical first distance information corresponding to each frame of the historical frame monitoring image in the multi-frame historical frame monitoring image The second linear fitting coefficient of the second fitting curve fitted by the distance information; based on the first linear fitting coefficient and the second linear fitting coefficient, determine the distance deviation for the adjusted distance information configuration information.
在一种可能的实施方式中,所述基于所述检测框的位置信息、以及所述采集设备的标定参数,确定所述当前第二距离信息,包括:基于所述检测框的位置信息,获取所述检测框中设定角点的像素坐标值;基于所述设定角点的像素坐标值、所述采集设备的标定参数以及在确定所述采集设备的标定参数时使用的车道线消失点的像素坐标值,确定所述当前第二距离信息。In a possible implementation manner, the determining the current second distance information based on the position information of the detection frame and the calibration parameters of the acquisition device includes: obtaining the current second distance information based on the position information of the detection frame The pixel coordinate value of the corner point set in the detection frame; based on the pixel coordinate value of the set corner point, the calibration parameter of the acquisition device, and the lane line vanishing point used when determining the calibration parameter of the acquisition device The pixel coordinate value of is used to determine the current second distance information.
在一种可能的实施方式中,所述采集设备的标定参数包括所述采集设备相对于地面的第一高度值以及所述采集设备的焦距;所述基于所述设定角点的像素坐标值、所述采集设备的标定参数以及在确定所述采集设备的标定参数时使用的车道线消失点的像素坐标值,确定所述当前第二距离信息,包括:基于所述车道线消失点的像素坐标值以及所述检测框中设定角点的像素坐标值,确定所述采集设备相对于地面的第一像素高度值;基于所述设定角点的像素坐标值,确定所述当前帧监测图像中的所述对象相对于地面的第二像素高度值;基于所述第一像素高度值、所述第二像素高度值以及所述第一高度值,确定所述对象相对于地面的第二高度值;基于所述第二高度值、所述采集设备的焦距以及所述第二像素高度值,确定所述当前第二距离信息。In a possible implementation manner, the calibration parameters of the collection device include a first height value of the collection device relative to the ground and a focal length of the collection device; the pixel coordinate value based on the set corner point , the calibration parameters of the collection device and the pixel coordinate values of the vanishing point of the lane line used when determining the calibration parameters of the collection device, and determining the current second distance information includes: based on the pixel of the vanishing point of the lane line The coordinate value and the pixel coordinate value of the set corner point in the detection frame determine the first pixel height value of the acquisition device relative to the ground; based on the pixel coordinate value of the set corner point, determine the current frame monitoring A second pixel height value of the object relative to the ground in the image; based on the first pixel height value, the second pixel height value and the first height value, determine the second pixel height value of the object relative to the ground A height value: determining the current second distance information based on the second height value, the focal length of the acquisition device, and the second pixel height value.
本公开实施例中,在能够检测出当前帧监测图像中的对象的完整检测框的情况下,可以通过引入车道线消失点的像素坐标值、采集设备的标定参数快速准确的得到对象的实际高度值,进一步可以快速准确地确定出目标车辆与对象的当前第二距离信息。In the embodiment of the present disclosure, when the complete detection frame of the object in the current frame monitoring image can be detected, the actual height of the object can be quickly and accurately obtained by introducing the pixel coordinate value of the vanishing point of the lane line and the calibration parameters of the acquisition device value, and can further quickly and accurately determine the current second distance information between the target vehicle and the object.
在一种可能的实施方式中,所述基于所述当前帧监测图像,确定所述目标车辆与所述当前帧监测图像中的对象的待调整距离信息,包括:获取所述对象在所述当前帧监测图像中的尺度和在与所述当前帧监测图像相邻的历史帧监测图像中的尺度之间的尺度变化信息;基于所述尺度变化信息、以及与所述当前帧监测图像相邻的历史帧监测图像对应的所述历史第一距离信息,确定所述待调整距离信息。In a possible implementation manner, the determining the to-be-adjusted distance information between the target vehicle and the object in the current frame monitoring image based on the current frame monitoring image includes: Scale change information between the scale in the frame monitoring image and the scale in the historical frame monitoring image adjacent to the current frame monitoring image; based on the scale change information and the adjacent to the current frame monitoring image The historical first distance information corresponding to the historical frame monitoring image is used to determine the distance information to be adjusted.
本公开实施例中,通过与当前帧监测图像相邻的历史帧监测图像对应的准确度较高的历史第一距离信息,以及所述对象在当前帧监测图像和与当前帧监测图像相邻的历史帧监测图像中的尺度之间的尺度变化信息,可以较为准确的得到待调整距离信息,以便在后期基于该待调整距离信息确定当前第一距离信息时,能够提高调整速度。In the embodiment of the present disclosure, the historical first distance information with higher accuracy corresponding to the historical frame monitoring image adjacent to the current frame monitoring image, and the distance between the current frame monitoring image and the current frame monitoring image of the object adjacent to the current frame monitoring image The scale change information between the scales in the historical frame monitoring image can obtain the distance information to be adjusted more accurately, so that the adjustment speed can be increased when the current first distance information is determined based on the distance information to be adjusted later.
在一种可能的实施方式中,按照以下方式确定所述对象在相邻两帧监测图像中的尺度之间的尺度变化信息:分别提取所述对象包含的多个特征点在所述相邻两帧监测图像中前一帧监测图像中的第一位置信息,以及在后一帧监测图像中的第二位置信息;基于所述第一位置信息和所述第二位置信息,确定所述对象在相邻两帧监测图像中的尺度之间的尺度变化信息。In a possible implementation manner, the scale change information between the scales of the object in two adjacent frames of monitoring images is determined in the following manner: respectively extracting a plurality of feature points included in the object in the two adjacent frames The first position information in the previous frame monitoring image in the frame monitoring image, and the second position information in the following frame monitoring image; based on the first position information and the second position information, it is determined that the object is in Scale change information between scales in two adjacent frames of monitoring images.
在一种可能的实施方式中,所述基于所述第一位置信息和所述第二位置信息,确定所述对象在相邻两帧监测图像中的尺度之间的尺度变化信息,包括:基于所述第一位置信息,确定所述对象包含的多个特征点所构成的目标线段在所述前一帧监测图像中的第一尺度值;基于所述第二位置信息,确定所述目标线段在所述后一帧监测图像中的第二尺度值;基于所述第一尺度值和所述第二尺度值,确定所述对象在相邻两帧监测图像中的尺度之间的尺度变化信息。In a possible implementation manner, the determining the scale change information of the object between the scales of two adjacent frames of monitoring images based on the first position information and the second position information includes: based on The first position information is to determine the first scale value of the target line segment formed by the multiple feature points contained in the object in the previous frame of the monitoring image; based on the second position information, determine the target line segment The second scale value in the monitoring image of the next frame; based on the first scale value and the second scale value, determine the scale change information of the object between the scales in two adjacent monitoring images .
本公开实施例中,通过提取对象包含的多个特征点在监测图像中的位置信息,可以更加准确的表示对象在监测图像中位置信息,从而得到更加准确的尺度变化信息,便于在基于该尺度变化信息调整待调整距离信息时,能够得到更加准确的当前第一距离信息。In the embodiment of the present disclosure, by extracting the location information of multiple feature points contained in the object in the monitoring image, the location information of the object in the monitoring image can be represented more accurately, so as to obtain more accurate scale change information, which is convenient for the When the change information adjusts the distance information to be adjusted, more accurate current first distance information can be obtained.
第二方面,本公开实施例提供了一种盲区监测装置,包括:In a second aspect, an embodiment of the present disclosure provides a blind spot monitoring device, including:
获取模块,用于获取目标车辆上的采集设备采集得到的当前帧监测图像;An acquisition module, configured to acquire the current frame monitoring image collected by the acquisition device on the target vehicle;
检测模块,用于对所述当前帧监测图像进行对象检测,得到所述图像中包括的对象的类型信息和位置;A detection module, configured to perform object detection on the current frame monitoring image to obtain type information and positions of objects included in the image;
确定模块,用于根据所述对象的位置和所述目标车辆的视野盲区,确定位于所述目标车辆的视野盲区中的目标对象;A determining module, configured to determine the target object located in the blind spot of the target vehicle according to the position of the object and the blind spot of the target vehicle;
生成模块,用于根据所述目标对象的类型信息和位置以及所述目标车辆的行车状态,生成监测结果。A generating module, configured to generate monitoring results according to the type information and location of the target object and the driving state of the target vehicle.
第三方面,本公开实施例提供了一种电子设备,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行如第一方面所述的盲区监测方法的步骤。In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor, a memory, and a bus, the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processing The processor communicates with the memory through a bus, and when the machine-readable instructions are executed by the processor, the steps of the blind spot monitoring method as described in the first aspect are executed.
第四方面,本公开实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如第一方面所述的盲区监测方法的步骤。In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the blind spot monitoring method as described in the first aspect is executed. step.
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并构成本说明书中的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present disclosure more clearly, the following will briefly introduce the accompanying drawings used in the embodiments. The accompanying drawings here are incorporated into the specification and constitute a part of the specification. The drawings show the embodiments consistent with the present disclosure, and are used together with the description to explain the technical solutions of the present disclosure. It should be understood that the following drawings only show some embodiments of the present disclosure, and therefore should not be regarded as limiting the scope. For those skilled in the art, they can also make From these drawings other related drawings are obtained.
图1示出了本公开实施例所提供的一种盲区监测方法的流程图;FIG. 1 shows a flow chart of a blind spot monitoring method provided by an embodiment of the present disclosure;
图2示出了本公开实施例所提供的一种确定视野盲区的示意图;FIG. 2 shows a schematic diagram of determining a blind area of vision provided by an embodiment of the present disclosure;
图3示出了本公开实施例所提供的一种确定当前第一距离信息的具体方法的流程图;FIG. 3 shows a flow chart of a specific method for determining current first distance information provided by an embodiment of the present disclosure;
图4示出了本公开实施例所提供的一种确定尺度变化信息的方法流程图;FIG. 4 shows a flowchart of a method for determining scale change information provided by an embodiment of the present disclosure;
图5示出了本公开实施例所提供的一种确定待调整距离信息的方法流程图;FIG. 5 shows a flow chart of a method for determining distance information to be adjusted provided by an embodiment of the present disclosure;
图6示出了本公开实施例所提供的一种确定当前第一距离信息的方法流程图;FIG. 6 shows a flowchart of a method for determining current first distance information provided by an embodiment of the present disclosure;
图7示出了本公开实施例所提供的一种确定当前第二距离信息的方法流程图;FIG. 7 shows a flowchart of a method for determining current second distance information provided by an embodiment of the present disclosure;
图8示出了本公开实施例所提供的一种目标装置、采集设备和目标对象之间的位置关系示意图;FIG. 8 shows a schematic diagram of the positional relationship between a target device, a collection device, and a target object provided by an embodiment of the present disclosure;
图9示出了本公开实施例所提供的一种目标对象的检测框的示意图;FIG. 9 shows a schematic diagram of a detection frame of a target object provided by an embodiment of the present disclosure;
图10示出了本公开实施例所提供的一种确定当前第二距离信息的原理示意图;Fig. 10 shows a schematic diagram of the principle of determining the current second distance information provided by an embodiment of the present disclosure;
图11示出了本公开实施例所提供的一种确定当前第二距离信息的场景示意图;Fig. 11 shows a schematic diagram of a scenario for determining the current second distance information provided by an embodiment of the present disclosure;
图12示出了本公开实施例所提供的一种盲区监测装置的结构示意图;Fig. 12 shows a schematic structural diagram of a blind spot monitoring device provided by an embodiment of the present disclosure;
图13示出了本公开实施例所提供的一种电子设备的示意图。Fig. 13 shows a schematic diagram of an electronic device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only It is a part of the embodiments of the present disclosure, but not all of them. The components of the disclosed embodiments generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative effort shall fall within the protection scope of the present disclosure.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.
本文中术语“和/或”,仅仅是描述一种关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article only describes an association relationship, which means that there can be three kinds of relationships, for example, A and/or B can mean: there is A alone, A and B exist at the same time, and B exists alone. situation. In addition, the term "at least one" herein means any one of a variety or any combination of at least two of the more, for example, including at least one of A, B, and C, which may mean including from A, Any one or more elements selected from the set formed by B and C.
经研究发现,在利用雷达监测盲区中的目标对象时,由于雷达在扫描时得到的点云点是针对盲区的整个范围的,因此在监测时除了关注车辆、行人和标识牌外,还会监测到其他非关注的物体。通过该种方式进行盲区监测时,一旦通过雷达监测到有物体位于车辆的视野盲区内,就会产生告警。但实际上,并非是所有的物体位于视野盲区内时,都会对车辆行车安全造成影响,这就导致了存在很多无效告警,造成当前的盲区监测方法存在监测性能较差的问题。After research, it is found that when using radar to monitor the target object in the blind area, since the point cloud points obtained by the radar during scanning are aimed at the entire range of the blind area, in addition to paying attention to vehicles, pedestrians and signage during monitoring, it will also monitor to other non-concerned objects. When blind spot monitoring is carried out in this way, once an object is detected by the radar in the blind spot of the vehicle, an alarm will be generated. But in fact, not all objects will affect the driving safety of vehicles when they are located in the blind area of vision, which leads to many invalid alarms, resulting in the problem of poor monitoring performance in the current blind area monitoring method.
基于上述研究,本公开实施例提供了一种盲区监测方法,本公开实施例通过获取目标车辆上的采集设备采集得到的当前帧监测图像,并对当前帧监测图像进行对象检测,确定当前帧监测图像中包括的对象的类型信息和位置,然后根据对象的位置和目标车辆的视野盲区,判断位于目标车辆的视野盲区中的目标对象;然后根据目标对象的类型信息和位置、以及目标车辆的行车状态,生成监测结果。这样,能够针对不同类型的目标对象产生不同的监测结果,从而提升盲区监测性能,并提高行车安全性。Based on the above research, the embodiments of the present disclosure provide a blind spot monitoring method. The embodiments of the present disclosure obtain the current frame monitoring image collected by the acquisition device on the target vehicle, and perform object detection on the current frame monitoring image to determine the current frame monitoring image. The type information and position of the object included in the image, and then according to the position of the object and the blind spot of the target vehicle, judge the target object located in the blind spot of the target vehicle; then according to the type information and position of the target object, and the driving of the target vehicle Status, generate monitoring results. In this way, different monitoring results can be generated for different types of target objects, thereby improving blind spot monitoring performance and driving safety.
为便于对本实施例进行理解,首先对本公开实施例所公开的一种盲区监测方法进行详细介绍,本公开实施例所提供的盲区监测方法的执行主体一般为具有一定计算能力的计算机设备,该计算机设备例如包括:终端设备或服务器或其它处理设备,终端设备可以为计算设备、车载设备等。在一些可能的实现方式中,该盲区监测方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。In order to facilitate the understanding of this embodiment, a blind spot monitoring method disclosed in the embodiments of the present disclosure is first introduced in detail. The execution subject of the blind spot monitoring method provided in the embodiments of the present disclosure is generally a computer device with a certain computing power. The computer The device includes, for example: a terminal device or a server or other processing device, and the terminal device may be a computing device, a vehicle-mounted device, or the like. In some possible implementation manners, the blind spot monitoring method may be implemented by a processor invoking computer-readable instructions stored in a memory.
参见图1所示,为本公开实施例提供的一种盲区监测方法的流程图,该盲区监测方法包括以下S101~S104:Referring to FIG. 1 , which is a flow chart of a blind spot monitoring method provided by an embodiment of the present disclosure, the blind spot monitoring method includes the following S101-S104:
S101,获取目标车辆上的采集设备采集得到的当前帧监测图像;S101, acquiring the current frame monitoring image collected by the collection device on the target vehicle;
S102,对当前帧监测图像进行对象检测,得到当前帧监测图像中包括的对象的类型信息和位置;S102. Perform object detection on the current frame monitoring image to obtain type information and positions of objects included in the current frame monitoring image;
S103,根据对象的位置和目标车辆的视野盲区,确定位于目标车辆的视野盲区中的目标对象;S103. Determine the target object located in the blind spot of the target vehicle according to the position of the object and the blind spot of the target vehicle;
S104,根据目标对象的类型信息和位置以及目标车辆的行车状态,生成监测结果。S104. Generate a monitoring result according to the type information and location of the target object and the driving state of the target vehicle.
针对上述S101,在不同的场景中,对应的目标车辆也有所不同。For the above S101, in different scenarios, the corresponding target vehicles are also different.
示例性的,在驾驶员驾驶车辆的场景中,目标车辆例如可以包含驾驶员驾驶的车辆;在自动驾驶场景中时,目标车辆例如可以包括自动驾驶车辆;在仓储货运场景中时,目标车辆例如可以包括货运机器人。本公开实施例以目标车辆为车辆为例进行说明。Exemplarily, in the scenario where the driver drives the vehicle, the target vehicle may include, for example, a vehicle driven by the driver; in the scenario of automatic driving, the target vehicle may include, for example, an autonomous vehicle; Cargo robots can be included. Embodiments of the present disclosure are described by taking the target vehicle as an example.
在目标车辆上还可以搭载有采集设备,采集设备可以为设置于目标车辆上的单目相机,用于在目标车辆行驶过程中进行拍摄。示例性的,若目标区域包括:车辆的视野盲区,可以将采集设备安装在车辆的立柱上,并且采集设备的拍摄镜头朝向车辆的视野盲区。A collection device may also be mounted on the target vehicle, and the collection device may be a monocular camera installed on the target vehicle for shooting while the target vehicle is driving. Exemplarily, if the target area includes: a blind spot of the vehicle, the collection device may be installed on a column of the vehicle, and the photographing lens of the collection device faces the blind spot of the vehicle.
其中,不同的目标车辆由于其车型的不同,对应的视野盲区可能会有所区别。本公开实施例参考国标标准确定视野盲区,具体参见图2所示,为本公开实施例提供的一种确定视野盲区的示意图。在图2中,车辆1上搭载采集设备2,采集设备2采集的目标区域包括的视野盲区包括3和4指示的位置。Among them, different target vehicles may have different corresponding blind spots due to their different models. The embodiments of the present disclosure refer to the national standard to determine the blind area of the field of view. For details, see FIG. 2 , which is a schematic diagram of determining the blind area of the field of view provided by the embodiment of the present disclosure. In FIG. 2 , a vehicle 1 is equipped with a collection device 2 , and the target area collected by the collection device 2 includes the blind spots in the field of vision including the positions indicated by 3 and 4 .
具体地,在获取目标车辆上的采集设备采集的当前帧监测图像时,例如可以采用下述方式:获取目标车辆上的采集设备对目标区域进行图像采集得到的监测视频;从监测视频中确定当前帧监测图像;其中,目标区域包括:位于采集设备拍摄视野范围内的区域。Specifically, when acquiring the current frame monitoring image collected by the acquisition device on the target vehicle, for example, the following method can be adopted: obtain the monitoring video obtained by the acquisition device on the target vehicle from image acquisition of the target area; determine the current frame from the monitoring video A frame monitoring image; wherein, the target area includes: an area within the field of view of the acquisition device.
在利用采集设备对目标区域进行拍摄时,其拍摄的方向可以预先设定好;在目标车辆上搭载好采集设备后,即可以确定拍摄的目标区域即为采集设备拍摄视野范围内的区域。在车辆行驶或者停止的过程中,采集设备均可以对目标区域进行图像采集,获取监测视频,并从监测视频中确定当前帧监测图像。When the acquisition equipment is used to photograph the target area, the shooting direction can be set in advance; after the acquisition equipment is mounted on the target vehicle, it can be determined that the target area to be photographed is the area within the field of view of the acquisition equipment. When the vehicle is running or stopping, the acquisition device can collect images of the target area, obtain the monitoring video, and determine the current frame monitoring image from the monitoring video.
其中,在利用监测视频确定当前帧监测图像时,可以采用从监测视频中确定视频帧图像的方式确定,例如将拍摄的视频帧图像中距离当前时间最近的一帧作为当前帧监测图像。Wherein, when using the monitoring video to determine the monitoring image of the current frame, it can be determined by determining the video frame image from the monitoring video, for example, taking the frame closest to the current time among the captured video frame images as the monitoring image of the current frame.
针对上述S102,在利用上述S101采集得到当前帧监测图像后,还可以对当前帧监测图像进行对象检测,以得到当前帧监测图像中包括的对象的类型信息和位置。With respect to the above S102, after the current frame monitoring image is collected by the above S101, object detection may also be performed on the current frame monitoring image to obtain the type information and position of the object included in the current frame monitoring image.
在具体实施中,在对当前帧监测图像进行对象检测,确定图像中包括的对象的类型信息时,例如可以利用预先训练的目标检测神经网络对当前帧监测图像进行对象检测(object detection)处理,示例性的,在对当前帧监测图像进行对象检测时,利用可以采用下述至少一种对象检测算法:卷积神经网络(Convolutional Neural Networks,CNN)、目标检测网络(Region-based CNN,RCNN)、快速神经网络(Fast RCNN)以及和更快速神经网络(Faster RCNN)。In a specific implementation, when performing object detection on the current frame monitoring image and determining the type information of the object included in the image, for example, a pre-trained target detection neural network can be used to perform object detection (object detection) processing on the current frame monitoring image, Exemplarily, when performing object detection on the current frame monitoring image, at least one of the following object detection algorithms can be used: convolutional neural network (Convolutional Neural Networks, CNN), target detection network (Region-based CNN, RCNN) , Fast Neural Network (Fast RCNN) and Faster Neural Network (Faster RCNN).
在利用对象检测算法对当前帧监测图形进行对象监测时,能够检测到的对象,例如包括:其他驾驶车辆、行人、路面设施、以及路面障碍物等。When the object detection algorithm is used to monitor the current frame of the monitoring graphics, the objects that can be detected include, for example, other driving vehicles, pedestrians, road facilities, and road obstacles.
在对当前帧监测图像进行对象检测时,还可以得到图像中包括的对象的位置。通过检测出的对象在图像中的位置,可以进一步确定在目标车辆的实际行驶过程中,该对象所处的实际位置。When performing object detection on the monitoring image of the current frame, the position of the object included in the image can also be obtained. Through the detected position of the object in the image, the actual position of the object during the actual driving of the target vehicle can be further determined.
针对上述S103,利用对象的位置和目标车辆的视野盲区,可以采用下述方式确定位于目标车辆的视野盲区中的目标对象:根据当前帧监测图像中对象的位置,确定目标车辆与当前帧监测图像中对象的当前第一距离信息;根据当前第一距离信息,确定位于目标车辆的视野盲区中的目标对象。For the above S103, using the position of the object and the blind spot of the target vehicle, the following method can be used to determine the target object located in the blind spot of the target vehicle: according to the position of the object in the current frame monitoring image, determine the target vehicle and the current frame monitoring image The current first distance information of the object in the center; according to the current first distance information, determine the target object located in the blind spot of the target vehicle.
目前,利用单目相机采集的图像来确定距离时,装载在智能汽车上的单目相机因为智能汽车行驶过程中,随着行驶路况的变化,会存在道路颠簸或者障碍物遮挡等问题,这种情况下在基于当前帧监测图像中对象对应的检测框进行测距时,可能无法检测出与对象之间的准确距离,比如采集设备因路面颠簸,采集到监测图像中的检测框的尺寸不稳定,因此在基于检测框持续检测与对象之间的距离时,得到的智能汽车与对象之间的距离在时序上的稳定性不高。At present, when using the image collected by the monocular camera to determine the distance, the monocular camera mounted on the smart car will have problems such as road bumps or obstructions due to changes in driving conditions during the driving of the smart car. Under certain circumstances, when performing distance measurement based on the detection frame corresponding to the object in the current frame monitoring image, the accurate distance to the object may not be detected. For example, due to the bumpy road surface of the acquisition device, the size of the detection frame collected in the monitoring image is unstable. , so when the distance between the smart car and the object is continuously detected based on the detection frame, the obtained distance between the smart car and the object is not stable in timing.
为了利用单目相机采集的图像尽可能准确并稳定地检测出目标车辆与对象之间的距离,本公开实施例还提出了一种距离检测方案,In order to use the image collected by the monocular camera to detect the distance between the target vehicle and the object as accurately and stably as possible, the embodiment of the present disclosure also proposes a distance detection scheme,
参见图3所示,为本公开实施例提供的一种确定当前第一距离信息的具体方法的流程图,该方法包括下述S301~S302:Referring to FIG. 3 , it is a flow chart of a specific method for determining the current first distance information provided by an embodiment of the present disclosure. The method includes the following S301-S302:
S301,基于当前帧监测图像,确定目标车辆与当前帧监测图像中的对象的待调整距离信息。S301. Determine distance information to be adjusted between the target vehicle and an object in the current frame of the monitoring image based on the current frame of the monitoring image.
示例性地,对象可以包括但不限于车辆、行人、固定障碍物等,本公开是实施例以对象为车辆为例进行介绍。Exemplarily, the object may include, but not limited to, a vehicle, a pedestrian, a fixed obstacle, etc., and the present disclosure is introduced by taking the object as an example in the embodiment.
示例性地,本公开实施例提供的当前帧监测图像均为非首次检测到对象的监测图像,如果当前帧监测图像是首次检测到对象的监测图像,可以直接基于对象在当前帧监测图像中的位置信息,以及上述标定过程中得到的采集设备的参数信息以及消失点的像素坐标值确定与对象之间的当前第二距离信息,可以将当前第二距离信息直接作为当前第一距离信息,具体确定当前第二距离信息的过程详见后文介绍。Exemplarily, the current frame monitoring images provided by the embodiments of the present disclosure are all monitoring images in which an object is not detected for the first time. If the current frame monitoring image is a monitoring image in which an object is detected for the first time, it can be directly based on the position of the object in the current frame monitoring image. Position information, as well as the parameter information of the acquisition device obtained in the above calibration process and the pixel coordinate value of the vanishing point determine the current second distance information between the object and the current second distance information, and the current second distance information can be directly used as the current first distance information, specifically The process of determining the current second distance information is described in detail later.
示例性地,在当前帧监测图像为非首次采集到对象的情况下,当前帧监测图像对应的当前第一距离信息,或者每帧历史帧监测图像对应的历史第一距离信息均表示经过调整后得到的距离信息。Exemplarily, in the case that the current frame monitoring image is not an object collected for the first time, the current first distance information corresponding to the current frame monitoring image, or the historical first distance information corresponding to each frame of historical frame monitoring image all represent the adjusted The obtained distance information.
示例性地,这里在基于当前帧监测图像,确定目标车辆与对象的待调整距离信息时,可以基于与当前帧监测图像相邻的历史帧监测图像对应的历史第一距离信息、以及当前帧监测图像和与当前帧监测图像相邻的历史帧监测图像中的尺度之间的尺度变化信息来确定,后续再对该待调整距离信息进行调整。Exemplarily, when determining the distance information to be adjusted between the target vehicle and the object based on the current frame monitoring image, it may be based on the historical first distance information corresponding to the historical frame monitoring image adjacent to the current frame monitoring image, and the current frame monitoring image. The scale change information between the image and the scales in the historical frame monitoring image adjacent to the current frame monitoring image is determined, and then the to-be-adjusted distance information is adjusted subsequently.
S302,基于对象在采集设备采集的多帧历史帧监测图像中相邻两帧监测图像中的尺度之间的尺度变化信息、以及多帧历史帧监测图像中每帧历史帧监测图像中的对象与目标车辆之间的历史第一距离信息,对待调整距离信息进行调整,得到目标车辆与对象之间的当前第一距离信息。S302, based on the scale change information of the object in the multi-frame historical frame monitoring image collected by the acquisition device between the scales in two adjacent frames of the monitoring image, and the relationship between the object in each frame of the multi-frame historical frame monitoring image and the object in the historical frame monitoring image The historical first distance information between the target vehicles is adjusted to the distance information to be adjusted to obtain the current first distance information between the target vehicle and the object.
示例性地,对象在采集设备采集的多帧历史帧监测图像中相邻两帧监测图像(比如包括监测图像i和监测图像j)中的尺度变化信息包括对象在后一帧监测图像j中的尺度与对象在前一帧监测图像i中的尺度的比值,具体确定过程将在后文进行阐述。Exemplarily, the scale change information of the object in two adjacent frames of monitoring images (such as including monitoring image i and monitoring image j) in the multiple frames of historical frame monitoring images collected by the acquisition device includes the object's scale change information in the next frame of monitoring image j. The ratio of the scale to the scale of the object in the previous frame of monitoring image i, the specific determination process will be described later.
示例性地,本公开实施例确定每帧历史帧监测图像对应的目标车辆与对象之间的历史第一距离信息的方式与确定目标车辆与对象之间的当前第一距离信息的方式相同,因此本公开实施例将不再对确定历史第一距离信息的过程进行赘述。Exemplarily, the embodiment of the present disclosure determines the historical first distance information between the target vehicle and the object corresponding to each frame of the historical frame monitoring image in the same manner as the method of determining the current first distance information between the target vehicle and the object, so The embodiment of the present disclosure will not repeat the process of determining the historical first distance information.
本公开实施例中,可以根据基于对象在多帧历史帧监测图像中相邻两帧监测图像中的尺度变化信息、以及历史过程中已经调整得到的目标车辆与对象之间的历史第一距离信息,对基于当前监测图像获取的待调整距离信息进行调整,这样可以使得相邻两帧监测图像对应目标车辆与对象之间的距离变化较为平稳,能够真实反应目标车辆在行驶过程中与对象之间的实际距离变化情况,可以提高预测得到的目标车辆与对象之间的距离在时序的稳定性。In the embodiment of the present disclosure, it can be based on the scale change information of the object in two adjacent frames of monitoring images in multiple frames of historical frame monitoring images, and the historical first distance information between the target vehicle and the object that has been adjusted in the historical process , adjust the distance information to be adjusted based on the current monitoring image, so that the distance between the target vehicle and the object corresponding to two adjacent frames of monitoring images can be changed more smoothly, and can truly reflect the distance between the target vehicle and the object during driving. The actual distance changes can improve the stability of the predicted distance between the target vehicle and the object in time series.
另外,对象在相邻两帧监测图像中的尺度变化信息同样可以反应目标车辆与对象之间的距离变化,多帧历史帧监测图像中每帧历史帧监测图像对应目标车辆与对象之间的历史第一距离信息为经过调整得到的较为准确的距离信息,因此在基于对象在采集设备采集的多帧历史帧监测图像中相邻两帧监测图像中的尺度变化信息、以及多帧历史帧监测图像中每帧历史帧监测图像对应的所述目标车辆与对象之间的历史第一距离信息对待调整距离信息进行调整后,可以得到较为准确的当前第一距离信息。In addition, the scale change information of the object in two adjacent frames of monitoring images can also reflect the distance change between the target vehicle and the object. In the multiple frames of historical frame monitoring images, each frame of historical frame monitoring images corresponds to the historical distance between the target vehicle and the object. The first distance information is the relatively accurate distance information obtained after adjustment. Therefore, in the multi-frame historical frame monitoring images collected by the acquisition device based on the object, the scale change information in two adjacent frames of monitoring images and the multi-frame historical frame monitoring images After the historical first distance information between the target vehicle and the object corresponding to each frame of the historical frame monitoring image is adjusted, more accurate current first distance information can be obtained.
在本公开实施例中,在确定当前第一距离信息时,可以根据基于对象在多帧历史帧监测图像中相邻两帧监测图像中的尺度之间的尺度变化信息、以及历史过程中已经调整得到的目标车辆与对象之间的历史第一距离信息,对基于当前监测图像获取的待调整距离信息进行调整,这样可以使得相邻两帧监测图像中的同一对象与目标车辆之间的距离变化较为平稳,能够真实反应目标车辆在行驶过程中与对象之间的实际距离变化情况,可以提高预测得到的目标车辆与对象之间的距离在时序的稳定性。In the embodiment of the present disclosure, when determining the current first distance information, it can be based on the scale change information between the scales of the object in two adjacent frames of monitoring images in multiple frames of historical frame monitoring images, and the information that has been adjusted in the historical process The historical first distance information between the target vehicle and the object is obtained, and the distance information to be adjusted based on the current monitoring image is adjusted, so that the distance between the same object and the target vehicle in two adjacent monitoring images can change It is relatively stable, can truly reflect the actual distance change between the target vehicle and the object during driving, and can improve the stability of the predicted distance between the target vehicle and the object in time series.
首先针对上述提到的尺度变化信息,如图4所示,可以按照以下方式确定对象在相邻两帧监测图像中的尺度之间的尺度变化信息,包括以下S401~S402:First, for the scale change information mentioned above, as shown in Figure 4, the scale change information between the scales of the object in two adjacent frames of monitoring images can be determined in the following manner, including the following S401-S402:
S401,分别提取对象包含的多个特征点在相邻两帧监测图像中前一帧监测图像中的第一位置信息,以及在后一帧监测图像中的第二位置信息。S401. Extract first position information of a plurality of feature points included in the object in a previous frame of monitoring image and second position information of a subsequent frame of monitoring image in two adjacent frames of monitoring images.
示例性地,可以基于预先训练的目标检测模型对监测图像进行目标检测,得到用于表示对象在监测图像中的位置的检测框,然后可以在检测框内提取构成对象的多个特征点,这些特征点是指可以是对象中像素变化比较剧烈的点,比如拐点、角点等。Exemplarily, target detection can be performed on the monitoring image based on the pre-trained target detection model, and a detection frame used to represent the position of the object in the monitoring image can be obtained, and then a plurality of feature points constituting the object can be extracted in the detection frame, these A feature point refers to a point in an object where pixels change drastically, such as an inflection point, a corner point, and the like.
S402,基于第一位置信息和第二位置信息,确定对象在相邻两帧监测图像中的尺度之间的尺度变化信息。S402. Based on the first position information and the second position information, determine scale change information between scales of the object in two adjacent frames of monitoring images.
示例性地,多个特征点中的任意两个特征点在同一帧监测图像中的连线可以构成线段,这样由任意两个特征点在前一帧监测图像中的第一位置信息,可以得到任意两个特征点构成的线段在前一帧监测图像中的尺度,同样,由任意两个特征点在后一帧监测图像中的第二位置信息,可以得到任意两个特征点构成的线段在后一帧监测图像中的尺度,按照该方式可以得到对象上的多条线段分别在前一帧监测图像中的尺度,以及分别在后一帧监测图像中的尺度。Exemplarily, the connection of any two feature points in the same frame of the monitoring image can constitute a line segment, so that the first position information of any two feature points in the previous frame of the monitoring image can be obtained The scale of the line segment formed by any two feature points in the previous frame monitoring image, similarly, from the second position information of any two feature points in the next frame monitoring image, the line segment formed by any two feature points can be obtained in The scales in the monitoring image of the next frame can be obtained in this way, respectively, the scales of the multiple line segments on the object in the monitoring image of the previous frame, and the scales of the multiple line segments in the monitoring image of the next frame respectively.
进一步,可以根据多条线段分别在前一帧监测图像中的尺度,以及分别在后一帧监测图像中的尺度,确定对象在相邻两帧监测图像中的尺度变化信息。Further, according to the scales of the multiple line segments in the previous frame of the monitoring image and the scales of the multiple line segments in the subsequent frame of the monitoring image, the scale change information of the object in two adjacent frames of monitoring images can be determined.
具体地,针对S402,在基于第一位置信息和第二位置信息,确定对象在相邻两帧监测图像中的尺度之间的尺度变化信息时,包括以下S4021~S4023:Specifically, for S402, when determining the scale change information between the scales of the object in two adjacent frames of monitoring images based on the first position information and the second position information, the following S4021-S4023 are included:
S4021,基于第一位置信息,确定对象包含的多个特征点所构成的目标线段在前一帧监测图像中的第一尺度值。S4021. Based on the first position information, determine a first scale value of a target line segment formed by a plurality of feature points included in the object in the previous frame of the monitoring image.
S4022,基于第二位置信息,确定目标线段在后一帧监测图像中的第二尺度值。S4022. Based on the second position information, determine a second scale value of the target line segment in the next frame of the monitoring image.
示例性地,目标线段包含n条,n大于或等于1,且小于设定阈值,基于每条目标线段包含的特征点的第一位置信息,可以得到该条目标线段对应的第一尺度值,以及,基于每条目标线段包含的特征点的第二位置信息,可以得到该条目标线段对应的第二尺度值。Exemplarily, the target line segment contains n lines, n is greater than or equal to 1, and is smaller than the set threshold, based on the first position information of the feature points contained in each target line segment, the first scale value corresponding to the target line segment can be obtained, And, based on the second position information of the feature points contained in each target line segment, the second scale value corresponding to the target line segment can be obtained.
S4023,基于第一尺度值和第二尺度值,确定对象在相邻两帧监测图像中的尺度之间的尺度变化信息。S4023. Based on the first scale value and the second scale value, determine scale change information between scales of the object in two adjacent frames of monitoring images.
示例性地,可以通过任一条目标线段分别对应的第二尺度值和第一尺度值之间的比值,表示该条目标线段对应的尺度变化信息,进一步根据多条目标线段分别对应的尺度变化信息,确定对象在相邻两帧监测图像中的尺度变化信息,比如,可以将设定条数的目标线段对应的尺度变化信息的平均值作为对象在相邻两帧监测图像中的尺度变化信息。Exemplarily, the ratio of the second scale value corresponding to any target line segment to the first scale value can be used to represent the scale change information corresponding to the target line segment, and further according to the scale change information corresponding to multiple target line segments , determine the scale change information of the object in two adjacent frames of monitoring images, for example, the average value of the scale change information corresponding to the set number of target line segments can be used as the scale change information of the object in two adjacent frames of monitoring images.
相比通过检测框的两个角点在监测图像中的位置信息来表示对象的尺度的方式,比如通过检测框的左上角点和右下角点在监测图像中的位置信息表示对象在监测图像中的尺度的方式,本公开实施例通过选择多个特征点分别在相邻两帧监测图像中的位置信息,确定出的对象在相邻两帧监测图像中的尺度变化信息,该方式通过提取对象包含的多个特征点在监测图像中的位置信息,可以更加准确的表示对象在监测图像中位置信息,从而得到更加准确的尺度变化信息。Compared with the method of expressing the scale of the object through the position information of the two corner points of the detection frame in the monitoring image, for example, the position information of the upper left corner point and the lower right corner point of the detection frame in the monitoring image indicates that the object is in the monitoring image In the way of scale, the embodiment of the present disclosure determines the scale change information of the object in two adjacent frames of monitoring images by selecting the position information of a plurality of feature points in two adjacent frames of monitoring images. The included position information of multiple feature points in the monitoring image can more accurately represent the position information of the object in the monitoring image, thereby obtaining more accurate scale change information.
本公开实施例中,通过提取对象包含的多个特征点在监测图像中的位置信息,可以更加准确的表示对象在监测图像中位置信息,从而得到更加准确的尺度变化信息,便于在基于该尺度变化信息调整待调整距离信息时,能够得到更加准确的当前第一距离信息。In the embodiment of the present disclosure, by extracting the location information of multiple feature points contained in the object in the monitoring image, the location information of the object in the monitoring image can be represented more accurately, so as to obtain more accurate scale change information, which is convenient for the When the change information adjusts the distance information to be adjusted, more accurate current first distance information can be obtained.
针对上述S302,在基于当前帧监测图像,确定目标车辆与当前帧监测图像中的对象的待调整距离信息时,如图5所示,可以包括以下S501~S502:For the above S302, when determining the distance information to be adjusted between the target vehicle and the object in the current frame monitoring image based on the current frame monitoring image, as shown in FIG. 5, the following S501-S502 may be included:
S501,获取对象在当前帧监测图像中的尺度和在与当前帧监测图像相邻的历史帧监测图像中的尺度之间的尺度变化信息。S501. Obtain scale change information between the scale of the object in the current frame of the monitored image and the scale of the historical frame of the adjacent monitored image.
示例性地,与当前帧监测图像相邻的历史帧监测图像是指采集时刻位于当前帧监测图像之前的前一帧监测图像,对象在当前帧监测图像和与当前帧监测图像相邻的历史帧监测图像之间的尺度变化信息可以通过对象在当前帧监测图像中的尺度与对象在与当前帧监测图像相邻的历史帧监测图像中的尺度的比值来表示,具体确定过程将在后文进行阐述。Exemplarily, the historical frame monitoring image adjacent to the current frame monitoring image refers to the previous frame monitoring image at the acquisition time before the current frame monitoring image, and the object is in the current frame monitoring image and the current frame monitoring image adjacent to the historical frame The scale change information between monitored images can be represented by the ratio of the scale of the object in the current frame monitored image to the scale of the object in the historical frame monitored image adjacent to the current frame monitored image. The specific determination process will be carried out later elaborate.
S502,基于尺度变化信息、以及与当前帧监测图像相邻的历史帧监测图像对应的历史第一距离信息,确定待调整距离信息。S502. Based on the scale change information and the historical first distance information corresponding to the historical frame monitoring image adjacent to the current frame monitoring image, determine distance information to be adjusted.
考虑到目标车辆与对象在靠近的过程中,采集到的监测图像中对象的尺度会逐渐增大,即对象在相邻两帧监测图像中的尺度和这两帧监测图像对应的目标车辆与对象之间的距离之间存在比例关系,基于此,可以通过以下公式(1)来确定待调整距离信息:Considering that the target vehicle and the object are approaching, the scale of the object in the collected monitoring images will gradually increase, that is, the scale of the object in two adjacent monitoring images and the target vehicle and object corresponding to the two frames of monitoring images There is a proportional relationship between the distances. Based on this, the distance information to be adjusted can be determined by the following formula (1):
d0_scale=scale×D1_final; (1);d 0_scale = scale×D 1_final ; (1);
其中,d0_scale表示待调整距离信息;scale表示对象在当前帧监测图像中的尺度与对象在与当前帧监测图像相邻的历史帧监测图像中的尺度的比值;D1_final表示与当前帧监测图像相邻的历史帧监测图像对应的历史第一距离信息。Among them, d 0_scale represents the distance information to be adjusted; scale represents the ratio of the scale of the object in the current frame monitoring image to the scale of the object in the historical frame monitoring image adjacent to the current frame monitoring image; D 1_final represents the current frame monitoring image The historical first distance information corresponding to the adjacent historical frame monitoring images.
本公开实施例中,通过与当前帧监测图像相邻的历史帧监测图像对应的历史第一距离信息,以及对象在当前帧监测图像和与当前帧监测图像相邻的历史帧监测图像中的尺度之间的尺度变化信息,可以得到较为准确的待调整距离信息,以便在后期基于该待调整距离信息确定当前第一距离信息时,能够提高调整速度。In the embodiment of the present disclosure, the historical first distance information corresponding to the historical frame monitoring image adjacent to the current frame monitoring image, and the scale of the object in the current frame monitoring image and the historical frame monitoring image adjacent to the current frame monitoring image The scale change information between them can obtain more accurate distance information to be adjusted, so that when the current first distance information is determined based on the distance information to be adjusted later, the adjustment speed can be increased.
示例性地,上述获取到的对象在当前帧监测图像和与当前帧监测图像相邻的历史帧监测图像之间的尺度变化信息可能会存在误差,比如在拍摄当前监测图像时发生抖动,或者检测的对象错误,基于此得到的尺度变化信息相比多帧历史帧监测图像中相邻两帧监测图像中的尺度变化信息会存在突变情况,这样基于此得到的待调整距离信息相比相邻的历史第一距离信息也会存在突变情况,此时,可以通过对象在采集设备采集的多帧历史帧监测图像中相邻两帧监测图像中的尺度变化信息、以及多帧历史帧监测图像中每帧历史帧监测图像对应的历史第一距离信息对该待调整距离信息进行调整。Exemplarily, there may be errors in the acquired scale change information of the object between the current frame monitoring image and the historical frame monitoring images adjacent to the current frame monitoring image, such as shaking when the current monitoring image is taken, or detection The object error, the scale change information obtained based on this will have a sudden change compared with the scale change information in two adjacent frames of monitoring images in multiple frames of historical frame monitoring images, so the distance information to be adjusted based on this is compared with the adjacent There will also be sudden changes in the first distance information in history. At this time, the scale change information in two adjacent frames of monitoring images in the multi-frame historical frame monitoring images collected by the acquisition device, and the scale change information in each of the multi-frame historical frame monitoring images can be used. The historical first distance information corresponding to the frame history frame monitoring image is used to adjust the distance information to be adjusted.
具体地,在对待调整距离信息进行调整,得到目标车辆与对象之间的当前第一距离信息时,如图6所示,可以包括以下S601~S603:Specifically, when adjusting the distance information to be adjusted to obtain the current first distance information between the target vehicle and the object, as shown in FIG. 6 , the following steps S601-S603 may be included:
S601,对待调整距离信息进行调整,直至尺度变化信息的误差量最小,得到调整后的距离信息;其中,误差量基于待调整距离信息、尺度变化信息以及多帧历史帧监测图像中每帧历史帧监测图像对应的历史第一距离信息确定。S601, adjust the distance information to be adjusted until the error amount of the scale change information is the smallest, and obtain the adjusted distance information; wherein, the error amount is based on the distance information to be adjusted, the scale change information, and each historical frame in the multi-frame historical frame monitoring image The historical first distance information corresponding to the monitoring image is determined.
示例性地,可以基于以下公式(2)来预测用于表示对象在当前帧监测图像和与当前帧监测图像相邻的历史帧监测图像之间的尺度变化信息的误差量:Exemplarily, the error amount used to represent the scale change information of the object between the current frame monitoring image and the historical frame monitoring images adjacent to the current frame monitoring image can be predicted based on the following formula (2):
其中,E表示对象在当前帧监测图像和与当前帧监测图像相邻的历史帧监测图像之间的尺度变化信息的误差量;T包含对象的监测图像的帧数,T小于或等于预设帧数;t用于指示历史帧监测图像,表示从当前帧监测图像开始的第t帧历史帧监测图像,比如t=1表示从当前帧监测图像开始的第一帧历史帧监测图像;Lt表示从当前帧监测图像开始的第t帧历史帧监测图像在确定误差量E时的预设权重,Dt_final表示从当前帧监测图像开始的第t帧历史帧监测图像对应的历史第一距离信息;scalei表示从当前帧监测图像开始的第i帧历史帧监测图像和第i+1帧历史帧监测图像之间的尺度变化信息。Among them, E represents the error amount of the scale change information of the object between the current frame monitoring image and the historical frame monitoring image adjacent to the current frame monitoring image; T includes the frame number of the object’s monitoring image, and T is less than or equal to the preset frame number; t is used to indicate the historical frame monitoring image, representing the tth frame historical frame monitoring image starting from the current frame monitoring image, such as t=1 representing the first frame historical frame monitoring image starting from the current frame monitoring image; L t represents The preset weight of the tth frame historical frame monitoring image starting from the current frame monitoring image when determining the error amount E, D t_final represents the first distance information in history corresponding to the tth frame historical frame monitoring image starting from the current frame monitoring image; scale i represents the scale change information between the i-th historical frame monitoring image starting from the current frame monitoring image and the i+1-th historical frame monitoring image.
示例性地,可以通过多种优化方式对上述公式(2)进行优化,比如可以包含但不限于牛顿梯度下降法的方式对上述公式(2)中的d0_scale进行调整,在E最小时,得到调整后的距离信息D0_scale。Exemplarily, the above formula (2) can be optimized through various optimization methods, such as adjusting the d 0_scale in the above formula (2) by including but not limited to the Newton gradient descent method. When E is the smallest, we get Adjusted distance information D 0_scale .
通过上述方式对对象在当前帧监测图像和与当前帧监测图像相邻的历史帧监测图像之间的尺度变化信息进行不断优化,可以降低获取到的对象在当前帧监测图像中和在与当前帧监测图像相邻的历史帧监测图像之间的尺度变化信息的误差,从而提高确定的调整后的距离信息的稳定性。Through the above method, the scale change information of the object between the current frame monitoring image and the historical frame monitoring image adjacent to the current frame monitoring image is continuously optimized, which can reduce the obtained objects in the current frame monitoring image and the current frame monitoring image. The error of the scale change information between the adjacent historical frames of the monitoring image is monitored, thereby improving the stability of the determined adjusted distance information.
S602,基于调整后的距离信息,确定当前第一距离信息。S602. Determine current first distance information based on the adjusted distance information.
示例性地,在得到调整后的距离信息后,为了进一步提高调整后的距离信息的准确度,还可以进一步对调整后的距离信息进行调整,得到目标车辆与对象之间的当前第一距离信息。Exemplarily, after the adjusted distance information is obtained, in order to further improve the accuracy of the adjusted distance information, the adjusted distance information may be further adjusted to obtain the current first distance information between the target vehicle and the object .
具体地,在基于调整后的距离信息,确定当前第一距离信息之前,如图7所示,本公开实施例提供的盲区监测方法还包括以下S701~S702:Specifically, before determining the current first distance information based on the adjusted distance information, as shown in FIG. 7 , the blind spot monitoring method provided by the embodiment of the present disclosure further includes the following S701-S702:
S701,对当前帧监测图像进行目标检测,确定当前帧监测图像中包含的对象的检测框的位置信息。S701. Perform target detection on the current frame of monitoring image, and determine position information of a detection frame of an object contained in the current frame of monitoring image.
S702,基于检测框的位置信息、以及采集设备的标定参数,确定当前第二距离信息。S702. Determine the current second distance information based on the position information of the detection frame and the calibration parameters of the acquisition device.
示例性地,在目标车辆行驶之前,可以对设置在目标车辆上的采集设备进行标定,比如将采集设备安装于目标车辆的顶部,如图6所示,使得目标车辆位于平行车道线中间,保持采集设备的光轴与水平地面平行,且与目标车里前进方向平行,按照该方式可以获取到采集设备的焦距(fx,fy)以及采集设备相对于地面的高度Hc。Exemplarily, before the target vehicle travels, the acquisition device installed on the target vehicle can be calibrated, for example, the acquisition device is installed on the top of the target vehicle, as shown in Figure 6, so that the target vehicle is located in the middle of the parallel lane line, keeping The optical axis of the acquisition device is parallel to the horizontal ground and parallel to the forward direction of the target vehicle. In this way, the focal length (f x , f y ) of the acquisition device and the height H c of the acquisition device relative to the ground can be obtained.
示例性地,可以通过预先训练的目标检测模型对当前帧监测图像进行目标检测,得到当前帧监测图像中包含的对象,以及该对象对应的检测框,如图8所示,检测框的位置信息可以包含检测框的角点在当前帧监测图像中的位置信息,比如可以包含角点A、B、C和D在当前帧监测图像中的像素坐标值。Exemplarily, a pre-trained target detection model can be used to perform target detection on the current frame monitoring image to obtain the object contained in the current frame monitoring image and the corresponding detection frame of the object, as shown in Figure 8, the position information of the detection frame It can contain the position information of the corner points of the detection frame in the current frame of the monitoring image, for example, it can contain the pixel coordinate values of the corner points A, B, C and D in the current frame of the monitoring image.
进一步地,按照小孔成像原理,可以得到以下公式(3)和公式(4):Further, according to the principle of pinhole imaging, the following formulas (3) and (4) can be obtained:
其中,Hx表示对象的实际宽度;Hy表示对象相对于地面的实际高度;wb表示对象在当前帧监测图像中的像素宽度,可以通过对象的检测框ABCD的像素宽确定;hb表示对象相对于地面的像素高度,可以通过对象的检测框ABCD的像素高确定;D0表示目标车辆与对象之间的当前第二距离信息。Among them, H x represents the actual width of the object; H y represents the actual height of the object relative to the ground; w b represents the pixel width of the object in the current frame monitoring image, which can be determined by the pixel width of the detection frame ABCD of the object; h b represents The pixel height of the object relative to the ground can be determined by the pixel height of the detection frame ABCD of the object; D 0 represents the current second distance information between the target vehicle and the object.
示例性地,在一种实施方式中,Hx和Hy可以通过检测出的对象的类型进行确定,比如对象为车辆时,可以基于检测出的目标车辆的类型,以及预先存储的车辆类型和车辆对应的高度、以及宽度之间的对应关系,确定目标车辆的实际宽度和实际高度。Exemplarily, in one embodiment, H x and H y can be determined by the type of the detected object. For example, when the object is a vehicle, it can be determined based on the detected type of the target vehicle, and the pre-stored vehicle type and The corresponding height of the vehicle and the corresponding relationship between the width determine the actual width and actual height of the target vehicle.
示例性地,对象在当前帧监测图像中的宽度wb可以通过如图9中的检测框ABCD中的角点AB在当前帧监测图像中的像素坐标值确定,或者通过角点CD在当前帧监测图像中的像素坐标值确定;对象在当前帧监测图像中的高度hb可以通过角点BC在当前帧监测图像中的像素坐标值确定,或者通过角点AD在当前帧监测图像中的像素坐标值确定,在此不进行赘述。Exemplarily, the width w b of the object in the current frame monitoring image can be determined by the pixel coordinate value of the corner point AB in the current frame monitoring image in the detection frame ABCD as shown in Figure 9, or by the corner point CD in the current frame The pixel coordinate value in the monitoring image is determined; the height h b of the object in the monitoring image of the current frame can be determined by the pixel coordinate value of the corner point BC in the monitoring image of the current frame, or by the pixel of the corner point AD in the monitoring image of the current frame The coordinate values are determined, and details are not described here.
考虑到存在无法识别出对象的类型的情况,因此可能无法直接获取到对象的实际高度或者实际宽度,本公开实施例以确定对象的实际高度为例进行阐述,针对上述S702,在基于检测框的位置信息、以及采集设备的标定参数,确定当前第二距离信息时,包括以下S7021~S7022:Considering that the type of the object cannot be identified, it may not be possible to directly obtain the actual height or actual width of the object. The embodiment of the present disclosure takes determining the actual height of the object as an example. For the above S702, based on the detection frame When the position information and the calibration parameters of the collection device are determined to determine the current second distance information, the following steps S7021-S7022 are included:
S7021,基于检测框的位置信息,获取检测框中设定角点的像素坐标值。S7021. Based on the position information of the detection frame, acquire the pixel coordinate value of the set corner point in the detection frame.
S7022,基于设定角点的像素坐标值、采集设备的标定参数以及在确定采集设备的标定参数时使用的车道线消失点的像素坐标值,确定当前第二距离信息。S7022. Determine the current second distance information based on the pixel coordinate value of the set corner point, the calibration parameter of the acquisition device, and the pixel coordinate value of the vanishing point of the lane line used when determining the calibration parameter of the acquisition device.
下面将结合图10所示,对这里基于设定角点的像素坐标值、采集设备的标定参数以及在确定采集设备的标定参数时使用的车道线消失点的像素坐标值,确定当前第二距离信息的原理进行说明:The current second distance will be determined based on the pixel coordinate value of the set corner point, the calibration parameter of the collection device, and the pixel coordinate value of the vanishing point of the lane line used when determining the calibration parameter of the collection device, as shown in Figure 10 below. The principle of the information is explained:
示例性地,在初始对采集设备进行标定过程中,可以将目标车辆停放在平行车道线之间,远处的平行车道线在采集设备的相平面投影时相交于一点,可以称为车道线消失点,车道线消失点近似与图10中的V点重合,可以通过该车道线消失点表示采集设备在监测图像中的投影位置,该车道线消失点的像素坐标值可以表示采集设备在当前帧监测图像中的像素坐标值。For example, in the initial calibration process of the acquisition device, the target vehicle can be parked between the parallel lane lines, and the distant parallel lane lines intersect at one point when the phase plane projection of the acquisition device is projected, which can be called lane line disappearance point, the vanishing point of the lane line approximately coincides with the V point in Figure 10, the projected position of the acquisition device in the monitoring image can be represented by the vanishing point of the lane line, and the pixel coordinate value of the vanishing point of the lane line can indicate that the acquisition device is in the current frame Monitor pixel coordinate values in an image.
如图10所示,EG两点之间的距离可以表示采集设备相对于地面的实际高度Hc;FG两点之间的距离可以表示对象相对于地面的实际高度Hy;MN两点之间的距离可以表示对象相对于地面的像素高度hb;MV两点之间的距离可以表示采集设备相对于地面的像素高度。As shown in Figure 10, the distance between the two points of EG can represent the actual height H c of the acquisition device relative to the ground; the distance between the two points of FG can represent the actual height H y of the object relative to the ground; The distance of can represent the pixel height h b of the object relative to the ground; the distance between two points of MV can represent the pixel height of the acquisition device relative to the ground.
进一步地,如图10所示,根据小孔成像原理,确定采集设备在拍摄当前帧监测图像时,采集设备相对于地面的实际高度Hc和对象相对于地面的实际高度Hy的比值,等于采集设备相对于地面的像素高度和对象相对于地面的像素高度hb的比值,这样,在确定出M点、V点以及N点的像素坐标值后,可以进一步确定出标对象相对于地面的像素高度hb以及采集设备相对于地面的像素高度,从而预测出对象相对于地面的实际高度Hy。Further, as shown in Fig. 10, according to the pinhole imaging principle, when the acquisition device captures the current frame monitoring image, the ratio of the actual height H c of the acquisition device relative to the ground to the actual height H y of the object relative to the ground is equal to The ratio of the pixel height of the acquisition device relative to the ground to the pixel height h b of the object relative to the ground, so that after determining the pixel coordinate values of point M, point V and point N, the position of the target object relative to the ground can be further determined The pixel height h b and the pixel height of the acquisition device relative to the ground are used to predict the actual height H y of the object relative to the ground.
进一步地,在预测出对象相对于地面的实际高度后,可以结合上述公式(3)确定出当前第二距离信息。Further, after the actual height of the object relative to the ground is predicted, the current second distance information may be determined in combination with the above formula (3).
上述结合图10对确定当前第二距离信息的原理进行了介绍,下面将结合图11所示,介绍如何确定当前第二距离信息的具体过程:The principle of determining the current second distance information is introduced above in conjunction with FIG. 10 . The following will introduce the specific process of how to determine the current second distance information in conjunction with FIG. 11 :
如图11所示,在对当前帧监测图像进行去畸变处理后,针对当前帧监测图像建立图像坐标系,在该图像坐标系中标记道路线消失点V的像素坐标值(xv,yv);对象的检测框的左上角点A的像素坐标值(xtl,ytl),右下点C的像素坐标值(xbr,ybr),进一步地,可以通过角点AC沿y轴方向上的像素坐标值确定如图10所示MN两点之间的距离;可以通过角点CV沿y轴方向上的像素坐标值确定如图10所示MV两点之间的距离。As shown in Figure 11, after de-distorting the current frame monitoring image, an image coordinate system is established for the current frame monitoring image, and the pixel coordinate value (x v , y v ); the pixel coordinate value (x tl , y tl ) of the upper left corner point A of the detection frame of the object, and the pixel coordinate value (x br , y br ) of the lower right point C, and further, you can pass the corner point AC along the y-axis The pixel coordinate value in the direction determines the distance between the two points MN as shown in Figure 10; the distance between the two points MV as shown in Figure 10 can be determined by the pixel coordinate value of the corner point CV along the y-axis direction.
具体地,采集设备的标定参数包括采集设备相对于地面的第一高度值以及采集设备的焦距;针对上述S7022,在基于设定角点的像素坐标值、采集设备的标定参数以及在确定采集设备的标定参数时使用的车道线消失点的像素坐标值,确定当前第二距离信息时,包括以下S70221~S70224:Specifically, the calibration parameters of the collection device include the first height value of the collection device relative to the ground and the focal length of the collection device; for the above S7022, based on the pixel coordinate value of the set corner point, the calibration parameters of the collection device, and the determination of the collection device The pixel coordinate value of the vanishing point of the lane line used when calibrating the parameters, and when determining the current second distance information, include the following S70221-S70224:
S70221,基于车道线消失点的像素坐标值以及检测框中设定角点的像素坐标值,确定采集设备相对于地面的第一像素高度值。S70221. Based on the pixel coordinate value of the disappearing point of the lane line and the pixel coordinate value of the set corner point in the detection frame, determine a first pixel height value of the collection device relative to the ground.
结合上图11所示,可以得到第一像素高度值:ybr-yv。Combining with what is shown in Figure 11 above, the first pixel height value can be obtained: y br -y v .
S70222,基于设定角点的像素坐标值,确定当前帧监测图像中的对象相对于地面的第二像素高度值。S70222. Based on the pixel coordinate value of the set corner point, determine a second pixel height value of the object in the current frame monitoring image relative to the ground.
比如可以将上述图11中AC两角点沿y轴上的像素坐标值之间的差值作为这里的第二像素高度值,可以通过hb来表示。For example, the difference between the pixel coordinate values of the two corner points AC in FIG. 11 along the y-axis can be used as the second pixel height value here, which can be represented by h b .
S70223,基于第一像素高度值、第二像素高度值以及第一高度值,确定对象相对于地面的第二高度值。S70223. Based on the first pixel height value, the second pixel height value and the first height value, determine a second height value of the object relative to the ground.
其中,Hc表示第一高度值,用来表示采集设备相对于地面的实际高度,可以在对采集设备进行标定时获取;Hy表示第二高度值,用来表示对象相对于地面的实际高度。Among them, H c represents the first height value, which is used to represent the actual height of the collection device relative to the ground, which can be obtained when the collection device is calibrated; Hy represents the second height value, which is used to represent the actual height of the object relative to the ground .
S70224,基于第二高度值、采集设备的焦距以及第二像素高度值,确定当前第二距离信息。S70224. Determine the current second distance information based on the second height value, the focal length of the acquisition device, and the second pixel height value.
示例性地,当前第二距离信息可以通过上述公式(3)进行确定。Exemplarily, the current second distance information may be determined by the above formula (3).
本公开实施例中,在能够检测出当前帧监测图像中的对象对应的完整检测框的情况下,可以通过引入车道线消失点的像素坐标值、采集设备的标定参数快速准确的得到对象的实际高度值,进一步可以快速准确的确定出目标车辆与对象的当前第二距离信息。In the embodiment of the present disclosure, when the complete detection frame corresponding to the object in the current frame monitoring image can be detected, the actual value of the object can be quickly and accurately obtained by introducing the pixel coordinate value of the vanishing point of the lane line and the calibration parameters of the acquisition device. The height value can further quickly and accurately determine the current second distance information between the target vehicle and the object.
在得到目标车辆与对象的当前第二距离信息后,针对上述S603在基于调整后的距离信息,确定当前第一距离信息时,包括以下S6031~S6032:After obtaining the current second distance information between the target vehicle and the object, when determining the current first distance information based on the adjusted distance information in the above S603, the following S6031-S6032 are included:
S6031,基于当前第二距离信息、多帧历史帧监测图像中的每帧历史帧监测图像中对象与目标车辆之间的历史第二距离信息、该帧历史帧监测图像对应的历史第一距离信息以及调整后的距离信息,确定针对调整后的距离信息的距离偏置信息。S6031, based on the current second distance information, the historical second distance information between the object and the target vehicle in each frame of the multi-frame historical frame monitoring image, and the historical first distance information corresponding to the historical frame monitoring image and the adjusted distance information, determining distance offset information for the adjusted distance information.
示例性地,当前第二距离信息和每个历史第二距离信息均为基于单帧监测图像确定的目标车辆与对象之间的距离信息,该方式在确定第二距离信息时,如果能够检测到对象准确完整的检测框,可以基于该检测框的位置信息得到目标车辆与对象之间准确度较高的第二距离信息,反之,若无法检测到对象准确的检测框,或者检测到的对象的检测框不完整,得到的第二距离信息的准确度较低,因此在基于该方式确定的多个第二距离信息的准确度较高,但是波动较大。Exemplarily, the current second distance information and each historical second distance information are the distance information between the target vehicle and the object determined based on a single-frame monitoring image. In this way, when determining the second distance information, if it can be detected The accurate and complete detection frame of the object can be based on the position information of the detection frame to obtain the second distance information with high accuracy between the target vehicle and the object. On the contrary, if the accurate detection frame of the object cannot be detected, or the detected object’s The detection frame is incomplete, and the accuracy of the obtained second distance information is low. Therefore, the accuracy of multiple second distance information determined based on this method is high, but fluctuates greatly.
示例性地,每个历史第一距离信息为基于多帧监测图像确定得到的距离信息,调整后的距离信息也为基于多个历史第一距离信息调整后得到的距离信息,因此,基于该方式得到的多个历史第一距离信息和调整后的距离信息之间波动较小,但是由于在确定历史第一距离信息以及调整后的距离信息时,使用到了相邻两帧监测图像对应的尺度变化信息,而尺度变化信息的确定过程依赖于识别对象的特征点在监测图像中的位置信息,当存在误差时,误差会进行累计,因此确定的多个历史第一距离信息以及调整后的距离信息的准确度相比基于完整的检测框确定出的第二距离信息的准确度。Exemplarily, each historical first distance information is distance information determined based on multiple frames of monitoring images, and the adjusted distance information is also adjusted distance information based on multiple historical first distance information. Therefore, based on this method The fluctuations between the obtained multiple historical first distance information and the adjusted distance information are small, but when determining the historical first distance information and the adjusted distance information, the scale changes corresponding to two adjacent frames of monitoring images are used information, and the determination process of the scale change information depends on the position information of the feature points of the recognized object in the monitoring image. When there is an error, the error will be accumulated. Therefore, the determined multiple historical first distance information and the adjusted distance information The accuracy of is compared with the accuracy of the second distance information determined based on the complete detection frame.
考虑到基于检测框确定的当前第二距离信息和历史第二距离信息的准确度高,基于尺度变化信息确定的历史第一距离信息和调整后得到的距离信息之间的稳定性高,为了得到准确度高且稳定性的当前第一距离信息,可以通过两种方式分别对确定的多帧监测图像对应的目标车辆与对象之间的距离信息对调整后的距离信息进行进一步调整。Considering the high accuracy of the current second distance information determined based on the detection frame and the historical second distance information, and the high stability between the historical first distance information determined based on the scale change information and the adjusted distance information, in order to obtain For the current first distance information with high accuracy and stability, the adjusted distance information can be further adjusted to the determined distance information between the target vehicle and the object corresponding to the determined multi-frame monitoring images in two ways.
S6032,基于距离偏置信息对调整后的距离信息进行调整,得到当前第一距离信息。S6032. Adjust the adjusted distance information based on the distance offset information to obtain the current first distance information.
示例性地,在得到距离偏置信息后,可以基于该距离偏置信息对调整后的距离信息进行进一步调整,使得当前第一距离信息更加准确。Exemplarily, after the distance offset information is obtained, the adjusted distance information may be further adjusted based on the distance offset information, so that the current first distance information is more accurate.
本公开实施例中,在得到距离偏置信息后,可以对调整后的距离信息进行进一步调整,从而得到目标车辆和对象在当前准确度较高的距离信息。In the embodiment of the present disclosure, after the distance offset information is obtained, the adjusted distance information may be further adjusted, so as to obtain the current distance information with high accuracy between the target vehicle and the object.
在一种实施方式中,在基于当前第二距离信息、多帧历史帧监测图像中的每帧历史帧监测图像中对象与目标车辆之间的历史第二距离信息、该帧历史帧监测图像对应的历史第一距离信息以及调整后的距离信息,确定针对调整后的距离信息的距离偏置信息时,可以包括以下S60311~S60313:In one embodiment, based on the current second distance information, the historical second distance information between the object and the target vehicle in each frame of the multiple frames of historical frame monitoring images, the frame of historical frame monitoring images corresponds to When determining the distance offset information for the adjusted distance information, the following steps S60311-S60313 may be included:
S60311,基于当前第二距离信息以及多帧历史帧监测图像中的每帧历史帧监测图像对应的历史第二距离信息,确定由多帧历史帧监测图像中的每帧历史帧监测图像对应的历史第二距离信息和当前第二距离信息拟合成的第一拟合曲线的第一线性拟合系数。S60311, based on the current second distance information and the historical second distance information corresponding to each frame of the historical frame monitoring image in the multi-frame historical frame monitoring image, determine the history corresponding to each frame of the historical frame monitoring image in the multi-frame historical frame monitoring image The first linear fitting coefficient of the first fitting curve formed by fitting the second distance information and the current second distance information.
示例性地,可以通过D0表示当前第二距离信息,分别通过D1、D2、D3…表示多个历史第二距离信息,可以通过D0和D1、D2、D3…进行线性拟合,得到由多个历史第二距离信息和当前第二距离信息构成的第一拟合曲线,该第一拟合曲线可以通过以下公式(6)表示:Exemplarily , the current second distance information can be represented by D 0 , and a plurality of historical second distance information can be represented by D 1 , D 2 , D 3 . Linear fitting is obtained by a plurality of historical second distance information and the first fitting curve formed by the current second distance information, the first fitting curve can be represented by the following formula (6):
y1=ax+bx2+c (6);y 1 =ax+bx 2 +c (6);
在拟合过程中,可以将确定多个第二距离信息时使用的监测图像的帧号0,1,2,3…作为x值,以及与帧号分别对应的第二距离信息D0、D1、D2、D3…作为y值输入公式(6),可以得到第一线性拟合系数:a,b,c。In the fitting process, the frame numbers 0, 1, 2, 3... of the monitoring images used when determining multiple second distance information can be used as x values, and the second distance information D 0 , D corresponding to the frame numbers respectively 1 , D 2 , D 3 . . . input formula (6) as the y value, and the first linear fitting coefficients: a, b, c can be obtained.
S60312,基于多帧历史帧监测图像中的每帧历史帧监测图像对应的历史第一距离信息以及调整后的距离信息,确定由多帧历史帧监测图像中的每帧历史帧监测图像对应的历史第一距离信息和调整后的距离信息拟合成的第二拟合曲线的第二线性拟合系数。S60312, based on the historical first distance information corresponding to each frame of the historical frame monitoring image in the multiple frames of historical frame monitoring images and the adjusted distance information, determine the history corresponding to each frame of the historical frame monitoring images in the multiple frames of historical frame monitoring images A second linear fitting coefficient of a second fitting curve formed by fitting the first distance information and the adjusted distance information.
示例性地,可以通过D0_scale表示调整后的距离信息,分别通过D1_final、D2_final、D3_final…表示多个历史第一距离信息,可以通过D0_scale和D1_final、D2_final、D3_final…进行线性拟合,得到由多个历史第一距离信息和调整后的距离信息构成的第二拟合曲线,该第二拟合曲线可以通过以下公式(7)表示:Exemplarily, the adjusted distance information can be represented by D 0_scale , and multiple historical first distance information can be represented by D 1_final , D 2_final , D 3_final . Linear fitting, obtains the second fitting curve that is made of multiple historical first distance information and adjusted distance information, this second fitting curve can be represented by following formula (7):
y2=a′x+b′x2+c′ (7);y 2 =a'x+b'x 2 +c'(7);
在拟合过程中,可以将确定多个历史第一距离信息以及调整后的距离信息时使用的监测图像的帧号0,1,2,3…作为x值,以及与帧号分别对应的调整后的距离信息和多个历史第一距离信息D0_scale、D1_final、D2_final、D3_final…作为y值输入公式(7),可以得到第二线性拟合系数:a′,b′,c′。In the fitting process, the frame numbers 0, 1, 2, 3... of the monitoring images used when determining multiple historical first distance information and adjusted distance information can be used as x values, and the adjustments corresponding to the frame numbers respectively The last distance information and multiple historical first distance information D 0_scale , D 1_final , D 2_final , D 3_final . .
S60313,基于第一线性拟合系数和第二线性拟合系数,确定针对调整后的距离信息的距离偏置信息。S60313. Determine distance offset information for the adjusted distance information based on the first linear fitting coefficient and the second linear fitting coefficient.
示例性地,可以通过以下公式(8)来确定距离偏置信息:Exemplarily, the distance bias information can be determined by the following formula (8):
L=(a/a′+b/b′+c/c′)/3 (8);L=(a/a'+b/b'+c/c')/3 (8);
通过该方式确定的距离偏置信息,可以按照以下公式(9)来对待调整的距离信息进行调整,得到当前第一距离信息D0_final:The distance offset information determined in this way can be adjusted according to the following formula (9) to adjust the distance information to be adjusted to obtain the current first distance information D 0_final :
D0_final=D0_scale×L (9);D 0_final = D 0_scale × L (9);
在另一种实施方式中,在基于当前第二距离信息、多帧历史帧监测图像中的每帧历史帧监测图像中对象与目标车辆之间的历史第二距离信息、该帧历史帧监测图像对应的历史第一距离信息以及调整后的距离信息,确定针对调整后的距离信息的距离偏置信息时,还可以通过卡尔曼滤波算法进行确定,进一步基于卡尔曼滤波算法确定出当前第一距离信息。In another embodiment, based on the current second distance information, the historical second distance information between the object and the target vehicle in each frame of the multi-frame historical frame monitoring image, the historical frame monitoring image of the frame The corresponding historical first distance information and the adjusted distance information, when determining the distance offset information for the adjusted distance information, can also be determined by the Kalman filter algorithm, and further determine the current first distance based on the Kalman filter algorithm information.
在基于卡尔曼滤波算法确定当前第一距离信息时,可以通过以下公式(10)进行确定:When determining the current first distance information based on the Kalman filter algorithm, it can be determined by the following formula (10):
D0_final=kal(D0_scale,D0,R,Q) (10);D 0_final =kal(D 0_scale ,D 0 ,R,Q) (10);
其中,R表示D0_scale和D1_final、D2_final、D3_final…的方差;Q表示D0和D1、D2、D3…的方差,通过R和Q可以确定针对D0_scale的距离偏置信息,进一步基于该距离偏置信息对调整后的距离信息进行修正,得到准确度较高的当前第一距离信息。Among them, R represents the variance of D 0_scale and D 1_final , D 2_final , D 3_final ...; Q represents the variance of D 0 and D 1 , D 2 , D 3 ..., and the distance bias information for D 0_scale can be determined through R and Q , further correcting the adjusted distance information based on the distance offset information to obtain the current first distance information with high accuracy.
在确定当前第一距离信息后,即可以根据当前帧图像中的各对象分别和目标车辆的当前第一距离信息,确定位于目标车辆的视野盲区中的目标对象。After the current first distance information is determined, the target object located in the blind spot of the target vehicle can be determined according to the current first distance information between each object in the current frame image and the target vehicle.
示例性的,可以根据上述图2示出确定目标车辆的视野盲区的方式,可以确定目标车辆对应的视野盲区。另外,利用当前第一距离信息、以及确定的目标车辆的视野盲区,可以确定检测到的对象中落入视野盲区的对象,也即目标对象。Exemplarily, according to the manner of determining the blind spot of the target vehicle shown in FIG. 2 above, the blind spot of the target vehicle can be determined. In addition, using the current first distance information and the determined blind spot of the target vehicle, the detected object falling into the blind spot of the visual field, that is, the target object, can be determined.
此处,目标对象例如可以包括上述对象中的其他驾驶车辆、行人、路面设施、以及路面障碍物中的部分。Here, the target object may include, for example, other driving vehicles, pedestrians, road facilities, and parts of road obstacles among the above objects.
针对上述S104,根据目标对象的类型信息和位置,以及目标车辆的行车状态,即可以生成监测结果。Regarding the above S104, the monitoring result can be generated according to the type information and location of the target object, and the driving state of the target vehicle.
此处,由于生成的监测结果是根据图像确定的,而在利用监测结果引导自动驾驶车辆、或者辅助驾驶员行驶时,通常是需要在连续的一段时间内不断的生成监测结果的。在这段连续的时间内,会获取到多帧图像,但多帧图像相对于这段连续的时间是离散的。为了得到更对目标对象进行更为准确的监测,还可以对连续帧图像进行对象监测时进行跟踪平滑处理,例如采用插值的方式,以进一步提升精度。Here, since the generated monitoring results are determined based on images, when the monitoring results are used to guide the self-driving vehicle or assist the driver in driving, it is usually necessary to continuously generate the monitoring results for a continuous period of time. During this continuous time, multiple frames of images will be acquired, but the multiple frames of images are discrete relative to this continuous time. In order to obtain a more accurate monitoring of the target object, it is also possible to perform tracking and smoothing processing on continuous frame images during object monitoring, for example, by using interpolation to further improve accuracy.
另外,由于利用跟踪平滑处理的方式可以利用多帧对应离散时间的监测图像确定连续时间内目标对象与目标车辆的距离,因此该种方式还可以缓解采集设备需要快速连续获取多帧监测图像的设备压力,并减少设备损耗。In addition, since the distance between the target object and the target vehicle in continuous time can be determined using multiple frames of monitoring images corresponding to discrete time by using the tracking smoothing method, this method can also alleviate the need for acquisition equipment to quickly and continuously acquire multiple frames of monitoring images. pressure and reduce equipment wear and tear.
示例性的,为了使得到的监测结果离散程度更低,以保证目标车辆在行驶时的安全性,则相应的需要在0.1秒获取一帧监测图像;若是按照0.5秒获取一帧监测图像,在车速较快的场景下时,可能在0.5秒内会发生突然的撞击,也即无法保证安全性。但以0.1秒获取一帧监测图像的频率,对于采集设备而言,相较于0.2秒获取一帧监测图像的频率需要更大的功耗;同时,利用插值的方式也可以确定在该0.2秒内,处于0.1秒时较为准确的一帧预测监测图像,也即能够保证安全性。Exemplarily, in order to make the obtained monitoring results less discrete, to ensure the safety of the target vehicle while driving, it is correspondingly necessary to obtain a frame of monitoring image in 0.1 seconds; if a frame of monitoring image is obtained in 0.5 seconds, in In a fast-speed scene, a sudden impact may occur within 0.5 seconds, which means that safety cannot be guaranteed. However, the frequency of acquiring a frame of monitoring images in 0.1 seconds requires more power consumption for acquisition equipment than the frequency of acquiring a frame of monitoring images in 0.2 seconds; Within 0.1 second, a relatively accurate frame of predicted monitoring image can guarantee safety.
另外,在确定了目标对象后,不同位置的不同目标对象对于目标车辆而言的影响不同,因此,还可以结合目标对象的类型信息、位置、以及目标车辆的行车状态,对不同的目标对象确定对应的监测结果。In addition, after the target object is determined, different target objects at different locations have different influences on the target vehicle. Therefore, it is also possible to determine the Corresponding monitoring results.
具体地,监测结果例如可以包括告警信息。目标车辆的行车状态例如可以包括目标车辆的转向信息。Specifically, the monitoring result may include warning information, for example. The driving state of the target vehicle may include steering information of the target vehicle, for example.
在具体实施中,根据目标对象的类型信息和位置以及目标车辆的行车状态,生成监测结果时,例如可以采用下述方式:根据目标对象的类型信息和位置以及目标车辆的转向信息,确定告警信息的级别;生成确定的级别的告警信息并提示。In a specific implementation, when generating monitoring results according to the type information and position of the target object and the driving state of the target vehicle, for example, the following method can be adopted: determine the warning information according to the type information and position of the target object and the steering information of the target vehicle level; generate a certain level of alarm information and prompt.
其中,目标对象的类型信息例如可以包括行人。由于目标对象位于目标车辆的视野盲区内,也即目标车辆可能会由于目标对象位于该目标车辆的视野盲区而对行车安全造成影响,则可以生成包含告警信息的监测结果。Wherein, the type information of the target object may include, for example, pedestrians. Since the target object is located in the blind spot of the target vehicle, that is, the target vehicle may affect driving safety due to the target object being located in the blind spot of the target vehicle, a monitoring result including warning information can be generated.
在一种可能的实施方式中,在目标车辆的转向信息表征目标车辆左转,且目标对象的位置表征目标对象在目标车辆左侧盲区;或者,在目标车辆的转向信息表征目标车辆右转,且目标对象的位置表征目标对象在目标车辆右侧盲区时,认为目标车辆在行车时对目标对象的安全的影响较大,例如目标车辆在行驶中可能与行人碰撞,则监测结果可以包括最高级别的监测结果。此处,例如还可以将监测结果划分多个级别,例如一级、二级、三级、以及四级;级数越高,表征对目标车辆的行车安全的影响越大,相应的告警信息也对应表征对目标车辆的行车安全的影响较大。In a possible implementation manner, the steering information of the target vehicle indicates that the target vehicle is turning left, and the position of the target object indicates that the target object is in the blind spot on the left side of the target vehicle; or, the steering information of the target vehicle indicates that the target vehicle is turning right, And the position of the target object indicates that when the target object is in the blind spot on the right side of the target vehicle, it is considered that the target vehicle has a greater impact on the safety of the target object while driving. For example, the target vehicle may collide with pedestrians while driving, and the monitoring results can include the highest level monitoring results. Here, for example, the monitoring results can also be divided into multiple levels, such as level 1, level 2, level 3, and level 4; the higher the level, the greater the impact on the driving safety of the target vehicle, and the corresponding warning information also The corresponding representation has a great influence on the driving safety of the target vehicle.
以第一监测结果为例,第一监测结果例如对应一级,并包括较高频率发出的“嘀”声音频,或者语音提示信息“当前距车辆过近,请小心驾驶”。Taking the first monitoring result as an example, the first monitoring result, for example, corresponds to level one, and includes a relatively high-frequency "beep" audio, or a voice prompt message "the vehicle is too close, please drive carefully".
另外,还可以根据目标对象的位置再进一步细化第一监测结果。以在目标装置的行车状态为向左侧行驶,目标对象的位置表征在目标车辆的左侧有目标对象为例,若第一监测结果表征目标装置在不断向目标对象靠近,则逐渐提高“嘀”声发出的频率,或者生成“当前距离左侧行人1米”、“当前距离左侧行人0.5米”等具有更为准确的提示信息的告警信息。In addition, the first monitoring result may be further refined according to the location of the target object. Taking the driving state of the target device as driving to the left, and the position of the target object indicates that there is a target object on the left side of the target vehicle, if the first monitoring result indicates that the target device is constantly approaching the target object, then gradually increase ", or generate warning messages with more accurate prompt information such as "the current distance is 1 meter from the pedestrian on the left", "the current distance is 0.5 meters from the pedestrian on the left".
在另一种可能的实施方式中,在目标车辆的转向信息表征目标车辆左转,且目标对象的位置表征目标对象在目标车辆右侧盲区;或者,在目标车辆的转向信息表征目标车辆右转,且目标对象的位置表征目标对象在目标车辆左侧盲区时,认为目标车辆在行车时有相当概率对安全会造成一定的影响,例如行人在向目标车辆靠近时,可能会发生碰撞,则监测结果可以对应二级,包括相较于对应一级的监测结果较低频率发出的“嘀”声音频,或者语音提示信息“当前距行人较近,请小心驾驶”。In another possible implementation, the steering information of the target vehicle indicates that the target vehicle is turning left, and the position of the target object indicates that the target object is in the blind spot on the right side of the target vehicle; or, the steering information of the target vehicle indicates that the target vehicle is turning right , and the position of the target object indicates that when the target object is in the blind spot on the left side of the target vehicle, it is considered that the target vehicle has a certain probability of causing a certain impact on safety when driving. For example, when a pedestrian approaches the target vehicle, a collision may occur, then monitor The results can correspond to the second level, including the "beep" sound audio with a lower frequency than the monitoring results corresponding to the first level, or the voice prompt message "currently close to pedestrians, please drive carefully".
另外,目标对象的类型信息例如还可以包括车辆;此处,该车辆为除目标车辆外的其他车辆。In addition, the type information of the target object may also include, for example, a vehicle; here, the vehicle is other vehicles except the target vehicle.
与上述针对类型信息表征目标对象为行人时,确定监测结果的方式相似,在一种可能的实施方式中,在目标车辆的转向信息表征目标车辆左转,且当前目标对象的位置表征目标对象在目标车辆左侧盲区;或者,在目标车辆的转向信息表征目标车辆右转,且当前目标对象的位置表征目标对象在目标车辆右侧盲区时,认为目标车辆在行车时对安全的影响较大,例如目标车辆在转向时可能会与其他车辆发生碰撞,则监测结果可以包括三级级别对应的监测结果。Similar to the above method of determining the monitoring result when the type information indicates that the target object is a pedestrian, in a possible implementation, the steering information of the target vehicle indicates that the target vehicle is turning left, and the current position of the target object indicates that the target object is in The blind spot on the left side of the target vehicle; or, when the steering information of the target vehicle indicates that the target vehicle is turning right, and the current position of the target object indicates that the target object is in the blind spot on the right side of the target vehicle, it is considered that the target vehicle has a greater impact on safety when driving, For example, the target vehicle may collide with other vehicles when turning, and the monitoring results may include monitoring results corresponding to three levels.
另外,还可以根据行车状态再进一步细化监测结果。以在目标车辆的行车状态表征目标车辆左转,监测结果表征在目标车辆的左侧有目标对象为例,若监测结果表征目标车辆在不断向目标对象靠近,则逐渐提高“嘀”声发出的频率,或者生成“当前距离左侧车辆1米”、“当前距离左侧车辆0.5米”等具有更为准确的提示信息的告警信息。In addition, the monitoring results can be further refined according to the driving status. Take the driving state of the target vehicle as an example of the target vehicle turning left, and the monitoring result indicates that there is a target object on the left side of the target vehicle. Frequency, or generate warning information with more accurate prompt information such as "the current distance is 1 meter from the left vehicle" and "the current distance is 0.5 meters from the left vehicle".
在另一种可能的实施方式中,在目标车辆的转向信息表征目标车辆左转,且目标对象的位置表征目标对象在目标车辆右侧盲区;或者,在目标车辆的转向信息表征目标车辆右转,且目标对象的位置表征目标对象在目标车辆左侧盲区时,认为目标对象在行车时有相当概率对目标车辆的安全会造成一定的影响,例如目标车辆在行驶时,其他车辆可能会与目标车辆发生碰撞,则监测结果可以对应四级,包括相较于对应三级的监测结果以较低频率发出的“嘀”声音频,或者语音提示信息“当前距车辆较近,请小心驾驶”。In another possible implementation, the steering information of the target vehicle indicates that the target vehicle is turning left, and the position of the target object indicates that the target object is in the blind spot on the right side of the target vehicle; or, the steering information of the target vehicle indicates that the target vehicle is turning right , and the position of the target object indicates that when the target object is in the blind spot on the left side of the target vehicle, it is considered that the target object has a certain probability of affecting the safety of the target vehicle when driving. For example, when the target vehicle is driving, other vehicles may collide with the target vehicle When a vehicle collides, the monitoring result can correspond to level 4, including a "beep" audio at a lower frequency than the monitoring result corresponding to level 3, or a voice prompt message "the vehicle is currently close, please drive carefully".
这样,通过较为准确且快速的生成告警信息,可以指导控制目标车辆的驾驶人员更加安全的驾驶。In this way, by generating the warning information more accurately and quickly, the driver controlling the target vehicle can be guided to drive more safely.
另外,监测结果例如还可以包括车辆控制指令。对应的,目标车辆的行车状态例如可以包括目标车辆的转向信息。In addition, the monitoring results may also include vehicle control instructions, for example. Correspondingly, the driving state of the target vehicle may include steering information of the target vehicle, for example.
此处,由于可以较为高效且准确的获取目标对象的类型信息和位置,因此还可以生成包括车辆控制指令的监测结果,以控制行驶装置等的安全驾驶。其中,行驶装置例如但不限于下述任一种:自动驾驶车辆、装有高级驾驶辅助系统(Advanced DrivingAssistance System,ADAS)的车辆、或者机器人等。Here, since the type information and position of the target object can be obtained more efficiently and accurately, monitoring results including vehicle control commands can also be generated to control the safe driving of the driving device and the like. Wherein, the driving device is, for example but not limited to, any of the following: an autonomous vehicle, a vehicle equipped with an Advanced Driving Assistance System (Advanced Driving Assistance System, ADAS), or a robot.
在具体实施中,在根据目标对象的类型信息和位置以及目标车辆的行车状态,生成监测结果时,例如可以根据目标对象的类型信息和位置以及目标车辆的转向信息,生成车辆控制指令。In a specific implementation, when generating monitoring results according to the type information and location of the target object and the driving state of the target vehicle, for example, a vehicle control instruction may be generated according to the type information and location of the target object and the steering information of the target vehicle.
此处,根据目标对象的类型信息和位置以及目标车辆的转向信息,生成车辆控制指令时,例如可以依据目标对象的类型信息和位置判断目标车辆确定生成的车辆控制指令,以保证目标车辆可以避免与目标对象发生碰撞,保证安全行驶。Here, according to the type information and position of the target object and the steering information of the target vehicle, when generating the vehicle control command, for example, the target vehicle can be determined according to the type information and position of the target object to determine the generated vehicle control command, so as to ensure that the target vehicle can avoid Collide with the target object to ensure safe driving.
这样,监测结果更利于部署在智能行驶装置中,提高自动驾驶控制过程中,智能行驶装置的安全性,也即能更好的满足自动驾驶领域的需求。In this way, the monitoring results are more conducive to deployment in the intelligent driving device, improving the safety of the intelligent driving device during the automatic driving control process, that is, it can better meet the needs of the automatic driving field.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above method of specific implementation, the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possible The inner logic is OK.
基于同一技术构思,本公开实施例中还提供了与盲区监测方法对应的盲区监测装置,由于本公开实施例中的装置解决问题的原理与本公开实施例上述盲区监测方法相似,因此装置的实施可以参见方法的实施,重复之处不再赘述。Based on the same technical idea, the embodiment of the present disclosure also provides a blind spot monitoring device corresponding to the blind spot monitoring method. Since the problem-solving principle of the device in the embodiment of the present disclosure is similar to the blind spot monitoring method described above in the embodiment of the present disclosure, the implementation of the device Reference can be made to the implementation of the method, and repeated descriptions will not be repeated.
参照图12所示,为本公开实施例提供的一种盲区监测装置的示意图,该盲区监测装置包括:获取模块121、检测模块122、确定模块123、以及生成模块124;其中,Referring to FIG. 12 , it is a schematic diagram of a blind spot monitoring device provided by an embodiment of the present disclosure. The blind spot monitoring device includes: an acquisition module 121, a detection module 122, a determination module 123, and a generation module 124; wherein,
获取模块121,用于获取目标车辆上的采集设备采集得到的当前帧监测图像;An acquisition module 121, configured to acquire the current frame monitoring image collected by the acquisition device on the target vehicle;
检测模块122,用于对所述当前帧监测图像进行对象检测,得到所述图像中包括的对象的类型信息和位置;The detection module 122 is configured to perform object detection on the current frame monitoring image to obtain type information and positions of objects included in the image;
确定模块123,用于根据所述对象的位置和所述目标车辆的视野盲区,确定位于所述目标车辆的视野盲区中的目标对象;A determining module 123, configured to determine the target object located in the blind spot of the target vehicle according to the position of the object and the blind spot of the target vehicle;
生成模块124,用于根据所述目标对象的类型信息和位置以及所述目标车辆的行车状态,生成监测结果。The generation module 124 is configured to generate a monitoring result according to the type information and location of the target object and the driving state of the target vehicle.
在一种可能的实施方式中,所述监测结果包括告警信息,所述目标车辆的行车状态包括所述目标车辆的转向信息;所述生成模块124在根据所述目标对象的类型信息和位置以及所述目标车辆的行车状态,生成监测结果时,用于:根据所述目标对象的类型信息和位置以及所述目标车辆的转向信息,确定告警信息的级别;生成确定的级别的告警信息并提示。In a possible implementation manner, the monitoring result includes warning information, and the driving state of the target vehicle includes steering information of the target vehicle; The driving state of the target vehicle, when generating the monitoring result, is used to: determine the level of warning information according to the type information and position of the target object and the steering information of the target vehicle; generate a certain level of warning information and prompt .
在一种可能的实施方式中,所述监测结果包括车辆控制指令,所述目标车辆的行车状态包括所述目标车辆的转向信息;所述生成模块124在根据所述目标对象的类型信息和位置以及所述目标车辆的行车状态,生成监测结果时,用于:根据所述目标对象的类型信息和位置以及所述目标车辆的转向信息,生成所述车辆控制指令;所述盲区监测装置还包括控制模块125,用于:基于所述车辆控制指令,控制所述目标车辆行驶。In a possible implementation manner, the monitoring results include vehicle control instructions, and the driving state of the target vehicle includes steering information of the target vehicle; And the driving state of the target vehicle, when generating the monitoring result, it is used to: generate the vehicle control instruction according to the type information and position of the target object and the steering information of the target vehicle; the blind spot monitoring device also includes The control module 125 is configured to: control the running of the target vehicle based on the vehicle control instruction.
在一种可能的实施方式中,所述确定模块123在根据所述对象的位置和所述目标车辆的视野盲区,确定位于所述目标车辆的视野盲区中的目标对象时,用于:根据所述当前帧监测图像中所述对象的位置,确定所述目标车辆与所述当前帧监测图像中所述对象的当前第一距离信息;根据所述当前第一距离信息,确定位于所述目标车辆的视野盲区中的目标对象。In a possible implementation manner, when determining the target object located in the blind spot of the target vehicle according to the position of the object and the blind spot of the target vehicle, the determining module 123 is configured to: The position of the object in the current frame monitoring image is determined to determine the current first distance information between the target vehicle and the object in the current frame monitoring image; according to the current first distance information, it is determined that the target vehicle is located Target objects in the blind zone of the field of view.
在一种可能的实施方式中,所述确定模块123在根据所述当前帧监测图像中所述对象的位置,确定所述目标车辆与所述当前帧监测图像中所述对象的当前第一距离信息时,用于:基于所述当前帧监测图像,确定所述目标车辆与所述当前帧监测图像中的所述对象的待调整距离信息;基于所述对象在所述采集设备采集的多帧历史帧监测图像中相邻两帧监测图像中的尺度之间的尺度变化信息、以及所述多帧历史帧监测图像中每帧历史帧监测图像中的所述对象与所述目标车辆之间的历史第一距离信息,对所述待调整距离信息进行调整,得到所述目标车辆与所述对象之间的当前第一距离信息。In a possible implementation manner, the determining module 123 determines the current first distance between the target vehicle and the object in the current frame monitoring image according to the position of the object in the current frame monitoring image information, used for: determining the distance to be adjusted between the target vehicle and the object in the current frame monitoring image based on the current frame monitoring image; based on the multiple frames of the object collected by the acquisition device Scale change information between scales in two adjacent frames of monitoring images in the historical frame monitoring images, and the distance between the object and the target vehicle in each frame of the historical frame monitoring images in the multiple frames of historical frame monitoring images The historical first distance information is adjusted to the to-be-adjusted distance information to obtain the current first distance information between the target vehicle and the object.
在一种可能的实施方式中,所述确定模块123在对所述待调整距离信息进行调整,得到所述目标车辆与所述对象之间的当前第一距离信息时,用于:对所述待调整距离信息进行调整,直至所述尺度变化信息的误差量最小,得到调整后的距离信息;其中,所述误差量基于所述待调整距离信息、所述尺度变化信息以及所述多帧历史帧监测图像中每帧历史帧监测图像对应的历史第一距离信息确定;基于所述调整后的距离信息,确定所述当前第一距离信息。In a possible implementation manner, when the determining module 123 adjusts the distance information to be adjusted to obtain the current first distance information between the target vehicle and the object, it is configured to: The distance information to be adjusted is adjusted until the error amount of the scale change information is the smallest, and the adjusted distance information is obtained; wherein the error amount is based on the distance information to be adjusted, the scale change information, and the multi-frame history Determining the historical first distance information corresponding to each frame of the historical frame monitoring image in the frame monitoring image; determining the current first distance information based on the adjusted distance information.
在一种可能的实施方式中,在基于所述调整后的距离信息,确定所述当前第一距离信息之前,所述确定模块123还用于:基于所述当前帧监测图像中所述对象的位置、以及所述采集设备的标定参数,确定当前第二距离信息;所述确定模块123在基于所述调整后的距离信息,确定所述当前第一距离信息时,用于:基于所述当前第二距离信息、所述多帧历史帧监测图像中的每帧历史帧监测图像中所述对象与所述目标车辆之间的历史第二距离信息、该帧历史帧监测图像对应的所述历史第一距离信息以及所述调整后的距离信息,确定针对所述调整后的距离信息的距离偏置信息;基于所述距离偏置信息对所述调整后的距离信息进行调整,得到所述当前第一距离信息。In a possible implementation manner, before determining the current first distance information based on the adjusted distance information, the determining module 123 is further configured to: monitor the distance of the object in the image based on the current frame position, and the calibration parameters of the acquisition device to determine the current second distance information; when the determination module 123 determines the current first distance information based on the adjusted distance information, it is configured to: based on the current The second distance information, the historical second distance information between the object and the target vehicle in each frame of the historical frame monitoring image of the multiple frames of historical frame monitoring images, the history corresponding to the frame of historical frame monitoring images First distance information and the adjusted distance information, determining distance offset information for the adjusted distance information; adjusting the adjusted distance information based on the distance offset information to obtain the current First distance information.
在一种可能的实施方式中,所述确定模块123在基于所述当前第二距离信息、所述多帧历史帧监测图像中的每帧历史帧监测图像中所述对象与所述目标车辆之间的历史第二距离信息、该帧历史帧监测图像对应的所述历史第一距离信息以及所述调整后的距离信息,确定针对所述调整后的距离信息的距离偏置信息时,用于:基于所述当前第二距离信息以及所述多帧历史帧监测图像中的每帧历史帧监测图像对应的所述历史第二距离信息,确定由所述多帧历史帧监测图像中的每帧历史帧监测图像对应的所述历史第二距离信息和所述当前第二距离信息拟合成的第一拟合曲线的第一线性拟合系数;基于所述多帧历史帧监测图像中的每帧历史帧监测图像对应的所述历史第一距离信息以及所述调整后的距离信息,确定由所述多帧历史帧监测图像中的每帧历史帧监测图像对应的所述历史第一距离信息和所述调整后的距离信息拟合成的第二拟合曲线的第二线性拟合系数;基于所述第一线性拟合系数和所述第二线性拟合系数,确定针对所述调整后的距离信息的距离偏置信息。In a possible implementation manner, the determination module 123 is based on the current second distance information, and the distance between the object and the target vehicle in each frame of the multiple frames of historical frame monitoring images. The historical second distance information between the frames, the historical first distance information corresponding to the historical frame monitoring image, and the adjusted distance information, when determining the distance offset information for the adjusted distance information, used : Based on the current second distance information and the historical second distance information corresponding to each frame of the multiple frames of historical frame monitoring images, determine each frame in the multiple frames of historical frame monitoring images The historical second distance information corresponding to the historical frame monitoring image and the first linear fitting coefficient of the first fitting curve fitted by the current second distance information; based on each of the multi-frame historical frame monitoring images The historical first distance information corresponding to the frame historical frame monitoring image and the adjusted distance information, determine the historical first distance information corresponding to each frame of the historical frame monitoring image in the multi-frame historical frame monitoring image The second linear fitting coefficient of the second fitting curve fitted with the adjusted distance information; based on the first linear fitting coefficient and the second linear fitting coefficient, determine the adjusted The distance offset information of the distance information.
在一种可能的实施方式中,所述确定模块123在基于所述当前帧监测图像中所述对象的位置、以及所述采集设备的标定参数,确定所述当前第二距离信息时,用于:基于所述对象在所述当前帧监测图像中的检测框的位置信息,获取所述检测框中设定角点的像素坐标值;基于所述设定角点的像素坐标值、所述采集设备的标定参数以及在确定所述采集设备的标定参数时使用的车道线消失点的像素坐标值,确定所述当前第二距离信息。In a possible implementation manner, when determining the current second distance information based on the position of the object in the current frame monitoring image and the calibration parameters of the acquisition device, the determining module 123 is used to : Based on the position information of the detection frame of the object in the current frame monitoring image, obtain the pixel coordinate value of the set corner point in the detection frame; based on the pixel coordinate value of the set corner point, the acquisition The calibration parameters of the device and the pixel coordinate values of the vanishing point of the lane line used when determining the calibration parameters of the acquisition device determine the current second distance information.
在一种可能的实施方式中,所述采集设备的标定参数包括所述采集设备相对于地面的第一高度值以及所述采集设备的焦距;所述确定模块123在基于所述设定角点的像素坐标值、所述采集设备的标定参数以及在确定所述采集设备的标定参数时使用的车道线消失点的像素坐标值,确定所述当前第二距离信息时,用于:基于所述车道线消失点的像素坐标值以及所述检测框中设定角点的像素坐标值,确定所述采集设备相对于地面的第一像素高度值;基于所述设定角点的像素坐标值,确定所述当前帧监测图像中的所述对象相对于地面的第二像素高度值;基于所述第一像素高度值、所述第二像素高度值以及所述第一高度值,确定所述对象相对于地面的第二高度值;基于所述第二高度值、所述采集设备的焦距以及所述第二像素高度值,确定所述当前第二距离信息。In a possible implementation manner, the calibration parameters of the collection device include a first height value of the collection device relative to the ground and a focal length of the collection device; The pixel coordinate value of the pixel coordinate value, the calibration parameter of the collection device, and the pixel coordinate value of the vanishing point of the lane line used when determining the calibration parameter of the collection device, when determining the current second distance information, it is used to: based on the The pixel coordinate value of the disappearing point of the lane line and the pixel coordinate value of the set corner point in the detection frame determine the first pixel height value of the collection device relative to the ground; based on the pixel coordinate value of the set corner point, Determining a second pixel height value of the object in the current frame monitoring image relative to the ground; based on the first pixel height value, the second pixel height value, and the first height value, determine the object A second height value relative to the ground; determining the current second distance information based on the second height value, the focal length of the acquisition device, and the second pixel height value.
在一种可能的实施方式中,所述确定模块123在基于所述当前帧监测图像,确定所述目标车辆与所述当前帧监测图像中的所述对象的待调整距离信息时,用于:获取所述对象在所述当前帧监测图像中的尺度和在与所述当前帧监测图像相邻的历史帧监测图像中的尺度之间的尺度变化信息;基于所述尺度变化信息、以及与所述当前帧监测图像相邻的历史帧监测图像对应的所述历史第一距离信息,确定所述待调整距离信息。In a possible implementation manner, the determining module 123 is configured to: when determining the distance information to be adjusted between the target vehicle and the object in the current frame monitoring image based on the current frame monitoring image: Obtaining scale change information between the scale of the object in the current frame monitoring image and the scale in the historical frame monitoring image adjacent to the current frame monitoring image; based on the scale change information and the The historical first distance information corresponding to the historical frame monitoring image adjacent to the current frame monitoring image is used to determine the to-be-adjusted distance information.
在一种可能的实施方式中,所述确定模块123按照以下方式确定所述对象在相邻两帧监测图像中的尺度之间的尺度变化信息:分别提取所述对象包含的多个特征点在所述相邻两帧监测图像中前一帧监测图像中的第一位置信息,以及在后一帧监测图像中的第二位置信息;基于所述第一位置信息和所述第二位置信息,确定所述对象在相邻两帧监测图像中的尺度之间的尺度变化信息。In a possible implementation manner, the determination module 123 determines the scale change information of the object between the scales of two adjacent frames of monitoring images in the following manner: respectively extracting a plurality of feature points contained in the object in The first position information in the previous frame of the monitoring image in the two adjacent frames of monitoring images, and the second position information in the following frame of monitoring images; based on the first position information and the second position information, Determine scale change information of the object between scales in two adjacent frames of monitoring images.
在一种可能的实施方式中,所述确定模块123基于所述第一位置信息和所述第二位置信息,确定所述对象在相邻两帧监测图像中的尺度之间的尺度变化信息时,用于:基于所述第一位置信息,确定所述对象包含的多个特征点所构成的目标线段在所述前一帧监测图像中的第一尺度值;基于所述第二位置信息,确定所述目标线段在所述后一帧监测图像中的第二尺度值;基于所述第一尺度值和所述第二尺度值,确定所述对象在相邻两帧监测图像中的尺度之间的尺度变化信息。In a possible implementation manner, the determination module 123 determines the scale change information between the scales of the object in two adjacent frames of monitoring images based on the first position information and the second position information. , for: based on the first position information, determine the first scale value of the target line segment formed by the plurality of feature points contained in the object in the previous frame monitoring image; based on the second position information, Determining a second scale value of the target line segment in the next frame of the monitoring image; based on the first scale value and the second scale value, determining the difference between the scales of the object in two adjacent frames of monitoring images Information about scale changes between them.
对应于图1中的盲区监测方法,本公开实施例还提供了一种电子设备1300,如图13所示,为本公开实施例提供的电子设备1300结构示意图,包括:Corresponding to the blind spot monitoring method in FIG. 1, an embodiment of the present disclosure also provides an electronic device 1300. As shown in FIG. 13, it is a schematic structural diagram of the electronic device 1300 provided by the embodiment of the present disclosure, including:
处理器10、存储器20、和总线30;存储器20用于存储执行指令,包括内存210和外部存储器220;这里的内存210也称内存储器,用于暂时存放处理器10中的运算数据,以及与硬盘等外部存储器220交换的数据,处理器10通过内存210与外部存储器220进行数据交换,当电子设备1300运行时,处理器10与存储器20之间通过总线30通信,使得处理器10执行以下指令:获取目标车辆上的采集设备采集得到的当前帧监测图像;对所述当前帧监测图像进行对象检测,得到所述当前帧监测图像中包括的对象的类型信息和位置;根据所述对象的位置和所述目标车辆的视野盲区,确定位于所述目标车辆的视野盲区中的目标对象;根据所述目标对象的类型信息和位置以及所述目标车辆的行车状态,生成监测结果。Processor 10, memory 20, and bus 30; memory 20 is used for storing and executing instructions, and includes memory 210 and external memory 220; memory 210 here is also called internal memory, and is used for temporarily storing computing data in processor 10, and The data exchanged by the external memory 220 such as hard disk, the processor 10 exchanges data with the external memory 220 through the memory 210, when the electronic device 1300 is running, the processor 10 communicates with the memory 20 through the bus 30, so that the processor 10 executes the following instructions : Obtain the current frame monitoring image collected by the acquisition device on the target vehicle; perform object detection on the current frame monitoring image to obtain the type information and position of the object included in the current frame monitoring image; according to the position of the object and the blind spot of the target vehicle, determining a target object located in the blind spot of the target vehicle; generating a monitoring result according to the type information and position of the target object and the driving state of the target vehicle.
本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的盲区监测方法的步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。Embodiments of the present disclosure further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the steps of the blind spot monitoring method described in the foregoing method embodiments are executed. Wherein, the storage medium may be a volatile or non-volatile computer-readable storage medium.
本公开实施例还提供一种计算机程序产品,该计算机程序产品承载有程序代码,所述程序代码包括的指令可用于执行上述方法实施例中所述的盲区监测方法的步骤,具体可参见上述方法实施例,在此不再赘述。The embodiment of the present disclosure also provides a computer program product, the computer program product carries a program code, and the instructions included in the program code can be used to execute the steps of the blind spot monitoring method described in the above method embodiment, for details, please refer to the above method The embodiment will not be repeated here.
其中,上述计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。Wherein, the above-mentioned computer program product may be specifically implemented by means of hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium. In another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. wait.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described system and device can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage medium includes: U disk, mobile 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.
最后应说明的是:以上所述实施例,仅为本公开的具体实施方式,用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that: the above-mentioned embodiments are only specific implementations of the present disclosure, and are used to illustrate the technical solutions of the present disclosure, rather than limit them, and the protection scope of the present disclosure is not limited thereto, although referring to the aforementioned The embodiments have described the present disclosure in detail, and those skilled in the art should understand that any person familiar with the technical field can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present disclosure Changes can be easily imagined, or equivalent replacements can be made to some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in this disclosure. within the scope of protection. Therefore, the protection scope of the present disclosure should be defined by the protection scope of the claims.
Claims (12)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110467776.4A CN113103957B (en) | 2021-04-28 | 2021-04-28 | A blind spot monitoring method, device, electronic equipment and storage medium |
| PCT/CN2022/084399 WO2022228023A1 (en) | 2021-04-28 | 2022-03-31 | Blind area monitoring method and apparatus, electronic device, and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110467776.4A CN113103957B (en) | 2021-04-28 | 2021-04-28 | A blind spot monitoring method, device, electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113103957A CN113103957A (en) | 2021-07-13 |
| CN113103957B true CN113103957B (en) | 2023-07-28 |
Family
ID=76720492
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110467776.4A Expired - Fee Related CN113103957B (en) | 2021-04-28 | 2021-04-28 | A blind spot monitoring method, device, electronic equipment and storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN113103957B (en) |
| WO (1) | WO2022228023A1 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113103957B (en) * | 2021-04-28 | 2023-07-28 | 上海商汤临港智能科技有限公司 | A blind spot monitoring method, device, electronic equipment and storage medium |
| CN116184992B (en) * | 2021-11-29 | 2025-11-21 | 上海商汤临港智能科技有限公司 | Vehicle control method, device, electronic equipment and storage medium |
| CN115063774B (en) * | 2022-05-27 | 2025-05-30 | 浙江大华技术股份有限公司 | Safety warning method, device and computer-readable storage medium for blind spots |
| CN119445296B (en) * | 2024-11-07 | 2025-08-29 | 深圳市小飞达电子有限公司 | A blind spot accuracy assessment method and system based on AI camera technology |
| CN120716710A (en) * | 2025-08-20 | 2025-09-30 | 浙江鼎深智能科技有限公司 | Method and system for blind spot braking of commercial vehicles |
Family Cites Families (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4045862B2 (en) * | 2002-06-03 | 2008-02-13 | 日産自動車株式会社 | Optical axis deviation detection device for in-vehicle camera |
| US8164628B2 (en) * | 2006-01-04 | 2012-04-24 | Mobileye Technologies Ltd. | Estimating distance to an object using a sequence of images recorded by a monocular camera |
| CN105279770A (en) * | 2015-10-21 | 2016-01-27 | 浪潮(北京)电子信息产业有限公司 | Target tracking control method and device |
| CN106524922B (en) * | 2016-10-28 | 2019-01-15 | 深圳地平线机器人科技有限公司 | Ranging calibration method, device and electronic equipment |
| CN110386065B (en) * | 2018-04-20 | 2021-09-21 | 比亚迪股份有限公司 | Vehicle blind area monitoring method and device, computer equipment and storage medium |
| CN108596116B (en) * | 2018-04-27 | 2021-11-05 | 深圳市商汤科技有限公司 | Distance measuring method, intelligent control method and device, electronic equipment and storage medium |
| CN109311425A (en) * | 2018-08-23 | 2019-02-05 | 深圳市锐明技术股份有限公司 | A monitoring and alarming method, device, equipment and storage medium for blind spot of automobile |
| WO2020151560A1 (en) * | 2019-01-24 | 2020-07-30 | 杭州海康汽车技术有限公司 | Vehicle blind spot detection method, apparatus and system |
| CN111942282B (en) * | 2019-05-17 | 2022-09-06 | 比亚迪股份有限公司 | Vehicle and driving blind area early warning method, device and system thereof and storage medium |
| CN111998780B (en) * | 2019-05-27 | 2022-07-01 | 杭州海康威视数字技术股份有限公司 | Target ranging method, device and system |
| CN111829484B (en) * | 2020-06-03 | 2022-05-03 | 江西江铃集团新能源汽车有限公司 | Target distance measuring and calculating method based on vision |
| CN112489136B (en) * | 2020-11-30 | 2024-04-16 | 商汤集团有限公司 | Calibration method, position determination method, device, electronic device and storage medium |
| CN113103957B (en) * | 2021-04-28 | 2023-07-28 | 上海商汤临港智能科技有限公司 | A blind spot monitoring method, device, electronic equipment and storage medium |
-
2021
- 2021-04-28 CN CN202110467776.4A patent/CN113103957B/en not_active Expired - Fee Related
-
2022
- 2022-03-31 WO PCT/CN2022/084399 patent/WO2022228023A1/en not_active Ceased
Also Published As
| Publication number | Publication date |
|---|---|
| WO2022228023A1 (en) | 2022-11-03 |
| CN113103957A (en) | 2021-07-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113103957B (en) | A blind spot monitoring method, device, electronic equipment and storage medium | |
| US20250388207A1 (en) | Vehicular automated parking system | |
| US12346498B2 (en) | Primary preview region and gaze based driver distraction detection | |
| JP7228652B2 (en) | OBJECT DETECTION DEVICE, OBJECT DETECTION METHOD AND PROGRAM | |
| KR102399963B1 (en) | Road plane output with lateral slope | |
| JP6799150B2 (en) | Vehicle control device | |
| JP6473571B2 (en) | TTC measuring device and TTC measuring program | |
| JP6547292B2 (en) | IMAGE PROCESSING APPARATUS, DEVICE CONTROL SYSTEM, AND IMAGE PROCESSING PROGRAM | |
| EP3659898B1 (en) | Parking support apparatus | |
| CN118115557A (en) | Correlating LIDAR and image data | |
| CN111797657A (en) | Vehicle surrounding obstacle detection method, device, storage medium and electronic device | |
| CN116385997A (en) | Method, system and storage medium for accurate perception of vehicle obstacles | |
| CN111469127A (en) | Cost map updating method and device, robot and storage medium | |
| CN110667474B (en) | General obstacle detection method and device and automatic driving system | |
| CN114763136A (en) | Guide vehicle driving auxiliary system based on deep learning | |
| US20230162513A1 (en) | Vehicle environment modeling with a camera | |
| US20220253634A1 (en) | Event-based vehicle pose estimation using monochromatic imaging | |
| US12412403B2 (en) | Boundary estimation | |
| CN120308155A (en) | Trajectory optimization method and device, and perception model training method and device | |
| CN113188509B (en) | Distance measurement method and device, electronic equipment and storage medium | |
| KR102497488B1 (en) | Image recognition apparatus for adjusting recognition range according to driving speed of autonomous vehicle | |
| CN118269954A (en) | Automatic parking method, device, vehicle and computer-readable storage medium | |
| JP7131131B2 (en) | VEHICLE LINE DETECTION DEVICE AND METHOD | |
| HK40049824A (en) | Blind spot monitoring method, equipment, electronic device and storage medium | |
| WO2023129856A1 (en) | Boundary estimation apparatus and method |
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 | ||
| REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40049824 Country of ref document: HK |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20230728 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |