WO2019192145A1 - Method and apparatus for adjusting field of view of panoramic image, storage medium, and electronic device - Google Patents

Method and apparatus for adjusting field of view of panoramic image, storage medium, and electronic device Download PDF

Info

Publication number
WO2019192145A1
WO2019192145A1 PCT/CN2018/104419 CN2018104419W WO2019192145A1 WO 2019192145 A1 WO2019192145 A1 WO 2019192145A1 CN 2018104419 W CN2018104419 W CN 2018104419W WO 2019192145 A1 WO2019192145 A1 WO 2019192145A1
Authority
WO
WIPO (PCT)
Prior art keywords
view
vehicle
field
initial
obstacle
Prior art date
Application number
PCT/CN2018/104419
Other languages
French (fr)
Chinese (zh)
Inventor
龙思源
杨珩
郭涛
郑祥祥
胡金水
Original Assignee
科大讯飞股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 科大讯飞股份有限公司 filed Critical 科大讯飞股份有限公司
Publication of WO2019192145A1 publication Critical patent/WO2019192145A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/24Aligning, centring, orientation detection or correction of the image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/56Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
    • G06V20/58Recognition of moving objects or obstacles, e.g. vehicles or pedestrians; Recognition of traffic objects, e.g. traffic signs, traffic lights or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30248Vehicle exterior or interior
    • G06T2207/30252Vehicle exterior; Vicinity of vehicle
    • G06T2207/30261Obstacle

Definitions

  • the present disclosure relates to the field of intelligent technologies, and in particular, to a method and device for adjusting a field of view of a panorama, a storage medium, and an electronic device.
  • the 360-degree panoramic system of the vehicle mainly collects images around the vehicle body through fisheye cameras installed in the front, rear, left and right directions of the vehicle; and then passes through a predefined front field of view range d f , a rear field of view range d b , and a left field of view range d l , the right field of view range d r , through homography transformation, to generate a panoramic view of the bird's eye view with a fixed field of view.
  • the d f , d b , d l , and d r parameters are set by the manufacturer and configured in the system, and remain unchanged during subsequent use, which results in the actual generated panoramic view of the bird's eye view.
  • Fixed field of view in a certain range nearby which is less flexible and prone to the following problems:
  • the panorama shows a lot of redundant information that has no reference value to the user's current driving behavior; because the field of view is limited, some of the current driving to the user is caused. Obstacles with behavioral reference values are not shown in the panorama, especially obstacles in vehicle blind spots. Whether it contains redundant information or missing valuable obstacles, it will have an impact on safe driving, making users who rely on panoramic systems more prone to security incidents.
  • the main purpose of the present disclosure is to provide a method and device for adjusting the field of view of a panoramic image, a storage medium, and an electronic device, which can flexibly adjust the field of view of the panorama display, help reduce redundant information, and avoid missing information of dangerous obstacles.
  • the present disclosure provides a method for adjusting a field of view of a panorama, the method comprising:
  • the determining a dangerous obstacle around the vehicle includes:
  • An obstacle having a collision distance s smaller than the preset distance s 0 and/or an obstacle having a collision time t smaller than the preset time t 0 is determined as the dangerous obstacle.
  • the collision distance s and the collision time t between each obstacle and the vehicle are obtained according to the driving data of the vehicle and the obstacle information of the obstacle around the vehicle, including:
  • the manner of obtaining the obstacle information is:
  • Obstacle information of obstacles around the vehicle is collected by radar.
  • the determining an initial field of view of the panorama includes:
  • An initial field of view of the panorama is determined based on a steering wheel angle of the vehicle.
  • the vehicle body center is used as the origin, the vehicle body is laterally oriented to the right as the positive X-axis direction, and the vehicle body is longitudinally oriented toward the front of the vehicle head as the positive direction of the Y-axis, and a coordinate system is established, then the steering wheel angle is determined according to the vehicle.
  • the initial field of view of the panorama including:
  • the initial front visual field range df 0 , the initial rear visual field range db 0 , the initial left visual field range dl 0 , and the initial right visual field range dr 0 satisfy the following relationship:
  • dr 0 or dl 0 Based on the steering wheel angle of the vehicle, dr 0 or dl 0 can be obtained:
  • h min represents the longitudinal length covered by the panorama when the minimum field of view is included;
  • w min represents the lateral width of the panorama coverage when the minimum field of view is included;
  • l car represents the length of the vehicle;
  • w car represents the vehicle Width;
  • p represents an adjustable parameter;
  • the steering angle of the front wheel is calculated from the steering wheel angle.
  • the determining the adjusted visual field range of the panoramic image according to the initial visual field range and the position information of the dangerous obstacle relative to the vehicle includes:
  • the initial field of view is not adjusted; otherwise, the initial field of view of the field of view that needs attention is adjusted, so that the dangerous obstacle is located Adjusted within the field of view.
  • the direction of the visual field to be concerned includes a left side, a right side, and a rear side of the vehicle, and the initial visual field range of the visual field direction that needs attention is adjusted, so that the dangerous obstacle is located after the adjustment Within the field of view, including:
  • the initial rear view range is adjusted so that the dangerous obstacle behind the vehicle is located within the adjusted rear view range
  • the visual field direction that needs to be concerned includes a left side, a right side, and a front side of the vehicle, and the initial visual field range of the visual field direction that needs attention is adjusted, so that the dangerous obstacle is located within the adjusted visual field range.
  • the initial front field of view is adjusted such that the dangerous obstacle in front of the vehicle is within the adjusted front field of view.
  • the adjusted field of view of the panorama is not greater than the maximum field of view.
  • the present disclosure provides a field of view adjustment device for a panoramic view, the device comprising:
  • a dangerous obstacle determination module for determining a dangerous obstacle around the vehicle
  • An initial field of view range determining module for determining an initial field of view of the panorama
  • the adjusted visual field range determining module is configured to determine an adjusted visual field range of the panoramic image according to the initial visual field range and the position information of the dangerous obstacle relative to the vehicle, where the adjusted visual field range includes A dangerous obstacle.
  • the dangerous obstacle determination module includes:
  • a collision distance and time obtaining module configured to obtain a collision distance s and a collision time t between each obstacle and the vehicle according to the driving data of the vehicle and the obstacle information of the obstacle around the vehicle;
  • the dangerous obstacle determination sub-module is configured to determine an obstacle that has a collision distance s smaller than the preset distance s 0 and/or an obstacle whose collision time t is less than the preset time t 0 as the dangerous obstacle.
  • the collision distance and time obtaining module is configured to determine a traffic area of the vehicle according to the driving data; and obtain each obstacle and the vehicle according to the traffic area and the obstacle information.
  • the device further includes:
  • An obstacle information acquiring module configured to collect image data around the vehicle body through the camera; perform obstacle detection on the image data to obtain obstacle information of the obstacle around the vehicle; and/or collect the surrounding of the vehicle by radar Obstacle information for obstacles.
  • the initial field of view range determining module is configured to determine an initial field of view of the panorama according to a preset fixed field of view; or determine an initial field of view of the panorama according to a steering wheel angle of the vehicle range.
  • the vehicle body center is used as the origin, the vehicle body is laterally oriented to the right as the positive X-axis direction, and the vehicle body is longitudinally oriented toward the front of the vehicle head as the positive direction of the Y-axis, and a coordinate system is established, then the steering wheel angle is determined according to the vehicle.
  • the initial field of view of the panorama including:
  • the initial front visual field range df 0 , the initial rear visual field range db 0 , the initial left visual field range dl 0 , and the initial right visual field range dr 0 satisfy the following relationship:
  • dr 0 or dl 0 Based on the steering wheel angle of the vehicle, dr 0 or dl 0 can be obtained:
  • h min represents the longitudinal length covered by the panorama when the minimum field of view is included;
  • w min represents the lateral width of the panorama coverage when the minimum field of view is included;
  • l car represents the length of the vehicle;
  • w car represents the vehicle Width;
  • p represents an adjustable parameter;
  • the steering angle of the front wheel is calculated from the steering wheel angle.
  • the adjusted field of view range determining module is configured to determine whether a dangerous obstacle in a visual field direction that the user needs to pay attention to is located in the initial visual field; if the dangerous obstacle in the visual field direction that needs attention If the first field of view is within the initial field of view, the initial field of view is not adjusted; otherwise, the initial field of view of the field of view that needs to be focused is adjusted so that the dangerous obstacle is located within the adjusted field of view.
  • the direction of the visual field to be concerned includes a left side, a right side, and a rear side of the vehicle, and the initial visual field range of the visual field direction that needs attention is adjusted, so that the dangerous obstacle is located after the adjustment Within the field of view, including:
  • the initial rear view range is adjusted so that the dangerous obstacle behind the vehicle is located within the adjusted rear view range
  • the visual field direction that needs to be concerned includes a left side, a right side, and a front side of the vehicle, and the initial visual field range of the visual field direction that needs attention is adjusted, so that the dangerous obstacle is located within the adjusted visual field range.
  • the initial front field of view is adjusted such that the dangerous obstacle in front of the vehicle is within the adjusted front field of view.
  • the adjusted field of view of the panorama is not greater than the maximum field of view.
  • the present disclosure provides a storage medium in which a plurality of instructions are stored, the instructions being loaded by a processor to perform the steps of the field of view adjustment method of the above-described panorama.
  • the present disclosure provides an electronic device, the electronic device including:
  • a processor for executing instructions in the storage medium.
  • the dangerous obstacles having reference value to the current driving behavior, and the initial visual field range of the panoramic map may be determined first, and then the initial visual field range and the position information of the dangerous obstacle relative to the vehicle are obtained, and the panoramic map is adjusted.
  • the field of view allows the adjusted field of view to include dangerous obstacles. This adjusted field of view helps reduce redundant information, avoids the absence of dangerous obstacle information, and improves the usability of the panorama during actual driving.
  • FIG. 1 is a schematic flow chart of a method for adjusting a field of view of a panoramic view of the present disclosure
  • FIG. 2 is a schematic flow chart of determining a dangerous obstacle in the solution of the present disclosure
  • FIG. 3 is a schematic diagram showing the relationship between l m , w car , d b , and d f in the scheme of the present disclosure
  • Figure 4 is a schematic view of a traffic area when reversing in the solution of the present disclosure
  • Figure 5 is a schematic view of a passage area when advancing in the solution of the present disclosure
  • Figure 6 is a trajectory curve of an obstacle relative to a vehicle in the disclosed embodiment
  • Figure 7 is a schematic diagram of a minimum field of view in the disclosed embodiment.
  • FIG. 10 is a schematic structural diagram of a field of view adjusting device of a panoramic view of the present disclosure
  • FIG. 11 is a schematic structural diagram of an electronic device for performing field of view adjustment of a panoramic view according to an embodiment of the present disclosure.
  • FIG. 1 a flow chart of a method of adjusting a field of view of a panoramic view of the present disclosure is shown. The steps can be included:
  • At least the dangerous obstacles around the vehicle can be determined in the following manner:
  • the attribute of the obstacle may be embodied as follows: whether it is in the preset detection range, whether the living body, the moving speed is too fast, whether the volume is too large, or the like, and the present disclosure does not specifically limit this.
  • S201 Obtain a collision distance s and a collision time t between each obstacle and the vehicle according to the driving data of the vehicle and the obstacle information of the obstacle around the vehicle.
  • the travel data in the present disclosure may include: a gear position of the vehicle, a travel speed, and a steering wheel angle.
  • the process of obtaining driving data can be implemented by referring to related technologies, and will not be described in detail herein.
  • the obstacle information in the present disclosure may include: position information of the obstacle relative to the vehicle, and motion state information of the obstacle.
  • the coordinate system corresponding to the position information can take the center of the vehicle body as the origin, the lateral direction of the vehicle body is the positive direction of the X axis, the longitudinal direction of the vehicle body is the positive direction of the Y axis; the v indicates the instantaneous speed of the obstacle relative to the vehicle, and ⁇ indicates the world.
  • the direction of motion in the coordinate system can take the center of the vehicle body as the origin, the lateral direction of the vehicle body is the positive direction of the X axis, the longitudinal direction of the vehicle body is the positive direction of the Y axis; the v indicates the instantaneous speed of the obstacle relative to the vehicle, and ⁇ indicates the world.
  • the direction of motion in the coordinate system can take the center of the vehicle body as the origin, the lateral direction of the vehicle body is the positive direction of the X axis, the longitudinal direction of the vehicle body is the positive direction of the Y axis; the v indicates the instantaneous speed of the obstacle relative to the vehicle, and ⁇ indicates
  • the disclosed solution can obtain obstacle information of an obstacle around the vehicle at least by:
  • image data around the vehicle body is collected by the camera; obstacle detection is performed on the image data, and obstacle information of the obstacle around the vehicle is obtained.
  • At least four cameras can be installed in the front, rear, left and right directions of the vehicle, or at least one camera that can rotate 360° can be installed on the roof, as long as the image data around the vehicle body can be captured by the camera.
  • the type of camera can be a fisheye camera and/or a depth camera and/or a binocular camera.
  • four fisheye cameras can be installed around the body, supplemented by other types of cameras to capture images around the body. data.
  • the present disclosure does not specifically limit the type of the camera, the installation position, and the like.
  • the process of acquiring image data by the camera can be implemented by referring to related technologies, and will not be described in detail herein.
  • the collected image data may be preprocessed, for example, image noise may be removed by a median filtering or a Gaussian filtering algorithm, and contrast is enhanced by an image histogram equalization method.
  • image noise may be removed by a median filtering or a Gaussian filtering algorithm, and contrast is enhanced by an image histogram equalization method.
  • the manner of pre-processing may not be specifically limited, and may be determined in combination with actual application requirements.
  • the disclosed solution can perform obstacle detection at least by the following methods: depth learning based object detection, machine vision based moving object detection.
  • the sample image data with the labeled information can be used for model training in advance to generate a target detection and recognition model, wherein the annotation information can be embodied as an obstacle category, for example, a pedestrian, a car, Non-motor vehicles, etc., may be specific to the actual application.
  • the target detection and recognition model obtained by the training can detect and identify the specific type of objects of the image data collected by the camera, and obtain the position of the obstacles in the image and the category of the obstacles.
  • the position information of the obstacle relative to the vehicle can be determined according to any point of the obstacle, for example, the point where the obstacle is closest to the vehicle body is determined as an obstacle.
  • the position information (x i , y i ) is obtained with respect to the position of the vehicle.
  • the disclosure solution is not limited thereto, and can be determined in combination with actual application requirements.
  • each camera can take a corresponding image data, that is, at least four image data can be obtained through the camera, and in the actual application process, obstacle detection can be performed on all image data.
  • obstacle detection can be performed on some image data according to driving needs. For example, combined with the driving data, the user is reversing. At this time, the user is more concerned with the obstacle information in the rear, left, and right directions of the vehicle, so that the obstacle detection can be performed for the image data of the three directions.
  • the obstacle information of the obstacle around the vehicle is collected by radar.
  • the process of detecting obstacles based on the data collected by the radar can be implemented by referring to relevant technologies, and will not be described in detail herein.
  • the radar accuracy can be determined in combination with the use requirements.
  • a millimeter wave radar can be used, and the present disclosure does not specifically limit this.
  • the radar can be mounted around the body or can be mounted on the roof for a 360° scan, as long as the obstacle information around the vehicle is collected by the radar.
  • the above two methods can also be combined, that is, the obstacle information of the obstacle around the vehicle is acquired by the camera and the radar, so as to find the obstacles around the vehicle as comprehensively as possible, and perform obstacles as accurately as possible.
  • Object location the implementation scheme of the present disclosure may not specifically limit the implementation manner of acquiring obstacle information.
  • the collision distance s between the obstacle and the vehicle and the collision time t can be calculated in the following manner.
  • the possible running trajectory and the traffic area of the vehicle can be calculated based on the driving data of the vehicle.
  • the lateral direction of the vehicle body is the positive direction of the X-axis
  • the longitudinal direction of the vehicle body is the positive direction of the Y-axis
  • a coordinate system is established.
  • the equations of the trajectory of the four vertices of the left rear, right rear, left front and right front of the vehicle can be embodied as:
  • (x bL , y bL ) represents the trajectory coordinates of the left rear vertex;
  • (x bR , y bR ) represents the trajectory coordinates of the right rear vertex;
  • (x fL , y fL ) represents the trajectory coordinates of the left front vertex;
  • (x fR , y fR ) represents the trajectory coordinates of the right front vertex;
  • Indicates the steering angle of the front wheel which can be defined as the positive direction, which can be calculated from the steering wheel angle;
  • l m represents the front and rear axle distance of the vehicle;
  • l car represents the length of the vehicle;
  • w car represents the width of the vehicle;
  • d b Indicates the distance from the rear axle to the rear of the vehicle;
  • d f represents the distance from the front axle to the front.
  • the traveling direction of the vehicle can be obtained by combining the traveling direction of the vehicle, such as front or rear; and the steering direction of the vehicle, for example, left or right.
  • FIG. 4 shows a schematic view of a traffic area when the vehicle is traveling backwards, that is, to the left
  • FIG. 5 is a schematic view of the traffic area when the vehicle is traveling forward, that is, to the left.
  • the motion state information of the obstacle can be combined to establish a motion model, and the collision point when the obstacle collides with the vehicle while maintaining the motion state is calculated, thereby obtaining an obstacle from the obstacle.
  • the vehicle can be used as a reference system. Since the vehicle is in a momentary uniform circular motion, the obstacle instantaneously moves in a uniform linear motion, so the speed of the obstacle relative to the vehicle can be decomposed into: linear velocity of uniform circular motion v r , uniform linear motion speed v l .
  • the parameter equation of the obstacle's trajectory coordinates with respect to time can be expressed as:
  • (x i , y i ) represents the current position coordinate of the i-th obstacle, that is, the position information of the obstacle relative to the vehicle;
  • R represents the radius of motion of the circular motion, which can be obtained by the trajectory line equation;
  • ⁇ i represents the angle between the current position and the X axis;
  • v lx represents the x component of the linear motion velocity v l ;
  • v ly represents the y component of the linear motion velocity v l .
  • the motion trajectory curve of the obstacle relative to the vehicle can be obtained, as shown in FIG. 6 .
  • l car represents the length of the vehicle
  • w car represents the width of the vehicle
  • the obstacle is relative to the trajectory curve of the vehicle and the rectangular frame at the edge of the vehicle body, and the point at which the two intersect is the collision point. After the coordinates of the collision point are obtained, the obstacle can be calculated from the current position to the collision by the integral operation.
  • Point collision distance s :
  • an obstacle with a collision distance s smaller than the preset distance s 0 , and/or an obstacle with a collision time t less than the preset time t 0 is determined as the dangerous obstacle.
  • the dangerous obstacles that have a great influence on the current driving behavior can be determined according to s and/or t.
  • an obstacle having an s smaller than the preset distance s 0 and/or an obstacle having a t less than the preset time t 0 may be determined as a dangerous obstacle.
  • the values of s 0 and t 0 of the present disclosure may not be specifically limited, and may be set in combination with actual application requirements.
  • the initial field of view of the panorama can be determined at least in the following manner:
  • the initial field of view of the panorama can be determined according to a preset fixed field of view.
  • the fixed field of view may be a certain value; or it may be a range of values that may be used.
  • the size of the fixed field of view may not be specifically limited by the disclosed solution.
  • the size of each field of view direction can be determined in advance in combination with the size of the fixed field of view, and the initial field of view of the panorama is obtained.
  • the size of each field of view direction may be determined in real time in combination with the size of the fixed field of view and the position information of the dangerous obstacle relative to the vehicle to obtain an initial field of view of the panorama. For example, if there are fewer dangerous obstacles on the left side of the vehicle and are closer to the vehicle, and the dangerous obstacles on the right side of the vehicle are more and more dispersed, the size of the initial left-view range may be smaller than the size of the initial right-view range.
  • the method of the present disclosure may not specifically limit the manner of determining the initial field of view of the panorama by using the fixed field of view.
  • the initial field of view of the panorama can be determined based on the steering wheel angle of the vehicle. See the description below for details.
  • the minimum field of view of a panorama may be preset, so that the initial field of view determined by the present disclosure is not less than the minimum field of view.
  • the minimum field of view of the panorama may include: a minimum front field of view range df min , a minimum back field of view range db min , a minimum left field of view range dl min , and a minimum right field of view range dr min .
  • df min +db min +l car h min , which represents the longitudinal length of the panorama coverage in the minimum field of view
  • dl min +dr min +w car w min , which represents the lateral width of the panorama coverage in the minimum field of view
  • the minimum field of view can satisfy the following conditions:
  • the minimum left field of view can be set to dl min ⁇ d 1 , and d 1 represents the maximum steering angle when the vehicle turns right. Corresponding maximum field of view on the left side of the vehicle.
  • the minimum right field of view can be set to dr min ⁇ d 2 , and d 2 represents the maximum steering angle when the vehicle turns left. Corresponding maximum field of view on the right side of the vehicle.
  • the initial front field of view range df 0 the initial back field of view range db 0 , the initial left field of view range dl 0 , and the initial right field of view range dr 0 may satisfy the following relationship:
  • df 0 and db 0 can be set to a constant value.
  • dl 0 , dr 0 can change sinusoidally with the steering wheel angle. Therefore, when determining dl 0 and dr 0 , an initial field of view can be determined based on the steering wheel angle. For example, first determine dr0, and then determine another initial field of view based on dr 0 +dl 0 +w car ⁇ w min . For example, let dl0 satisfy dl 0 ⁇ w min -w car -dr 0 .
  • the lateral direction of the vehicle body is the positive direction of the X-axis
  • the longitudinal direction of the vehicle body is the positive direction of the Y-axis
  • the initial right-view range dr 0 corresponding to the current driving behavior can be expressed as:
  • the initial left-view range dl 0 corresponding to the current driving behavior may be embodied as:
  • p represents an adjustable parameter.
  • the sine function can be stretched by adjusting the value of p to achieve a better visual effect.
  • the sinusoidal image is compressed in the horizontal direction when p is increased, and the sinusoidal image is stretched in the horizontal direction when p is decreased.
  • located in the interval a sinusoid within a period of no more than one cycle and greater than half a cycle, ie
  • the order of the present disclosure for determining the dangerous obstacle and determining the initial visual field range may not be specifically limited, as long as the dangerous obstacle and the initial visual field range are obtained before the visual field range adjustment is performed.
  • S102 Determine, according to the initial visual field range and the position information of the dangerous obstacle relative to the vehicle, an adjusted visual field range of the panoramic view, where the adjusted visual field range includes the dangerous obstacle.
  • the adjusted field of view of the panorama can be determined accordingly.
  • all dangerous obstacles may be included in the adjusted field of view; or some dangerous obstacles may be selected after sorting the dangerous obstacles, which are included in the adjusted field of view, and the present disclosure may not do this. Specifically limited.
  • the obstacle category in addition to the use of s, t for dangerous obstacle sorting, if the obstacle category is specified at the time of obstacle detection, it may also be sorted based on the priority of the obstacle category, for example, the pedestrian has a high priority.
  • the priority of the non-motor vehicle and the non-motor vehicle is higher than that of the automobile, and the present disclosure does not specifically limit this.
  • the adjustment process of the visual field range may be: determining whether the dangerous obstacle in the visual field direction that the user needs to pay attention to is located in the initial visual field; if the dangerous obstacle in the visual field direction that needs attention is located in the In the initial field of view, the initial field of view is not adjusted; otherwise, the initial field of view of the field of view that needs to be focused is adjusted so that the dangerous obstacle is within the adjusted field of view.
  • the direction of the visual field that the user needs to pay attention to may be four directions of the front, rear, left, and right of the vehicle; or, the user may set the visual field direction that needs attention according to the needs of the user.
  • the rear of the vehicle may be Set to the direction of the field of view that needs attention; or, in combination with the direction of travel of the vehicle, determine the direction of the field of view that needs attention.
  • the direction of the field of view that needs attention may include: left, right, and rear of the vehicle;
  • the direction of view that needs attention may include: the left side, the right side, and the front side of the vehicle.
  • the traveling direction of the vehicle can be determined by the vehicle gear position, which is not specifically limited in the disclosure.
  • the adjusted field of view of the panorama can be:
  • the adjusted front field of view can be df 1 ⁇ df 0 .
  • df 1 df 0 .
  • the adjusted field of view of the panorama can be:
  • the adjusted left-view range dl 1 and the adjusted right-view range dr 1 are the same as when the vehicle is reversed. For details, refer to the above description, and details are not described here.
  • the vehicle does not need to pay much attention to the information of the rear view range when the vehicle advances, so the adjusted rear view range can be db 1 ⁇ db 0 .
  • db 1 db 0 .
  • the theoretical field of view can reach infinity, that is, the maximum field of view of the panorama is not limited, but in consideration of the actual application process, when the obstacle data information is acquired by the image data collected by the camera Due to the different degree of clarity of the camera, the obstacle pixels in the distance may be blurred to the panorama, and the effect presented to the user is poor.
  • the present disclosure may also preset a maximum field of view of a panorama without affecting the panoramic view to display valuable information, which may include: a maximum front field of view range df max The maximum back visual field range db max , the maximum left visual field range dl max , and the maximum right visual field range dr max .
  • the maximum field of view can satisfy the following conditions:
  • the adjusted field of view of the panorama in the present disclosure may be no larger than the maximum field of view.
  • the adjusted field of view of the panorama can be:
  • the adjusted left field of view is specifically:
  • the adjusted right field of view is specifically:
  • the field of view is specifically:
  • the adjusted front field of view may be df max ⁇ df 1 ⁇ df 0 .
  • the adjusted field of view of the panorama can be:
  • the adjusted left-view range dl 1 and the adjusted right-view range dr 1 are the same as when the vehicle is reversed. For details, refer to the above description, and details are not described here.
  • the adjusted front field of view is specifically:
  • the field of view can be db max ⁇ db 1 ⁇ db 0 .
  • the homography transformation is performed only by four fisheye images to generate a panoramic view of a fixed visual field range
  • the disclosed solution can flexibly adjust the visual field range to generate a panoramic view of the variable visual field range, and the variable
  • the panoramic view of the field of view can better show the user the information related to the current driving behavior, improve the usability of the panorama during the actual driving process, and minimize the possibility of a safety accident caused by the user who relies on the panoramic system.
  • a panorama that better displays information related to current driving behavior refers to minimizing redundant information that has no reference value to current driving behavior, and/or maximizing reference to current driving behavior. Obstacle information.
  • the device can include:
  • a dangerous obstacle determination module 301 configured to determine a dangerous obstacle around the vehicle
  • the adjusted visual field range determining module 303 is configured to determine an adjusted visual field range of the panoramic image according to the initial visual field range and the position information of the dangerous obstacle relative to the vehicle, where the adjusted visual field range includes The dangerous obstacle.
  • the dangerous obstacle determination module 301 includes:
  • a collision distance and time obtaining module configured to obtain a collision distance s and a collision time t between each obstacle and the vehicle according to the driving data of the vehicle and the obstacle information of the obstacle around the vehicle;
  • the dangerous obstacle determination sub-module is configured to determine an obstacle that has a collision distance s smaller than the preset distance s 0 and/or an obstacle whose collision time t is less than the preset time t 0 as the dangerous obstacle.
  • the collision distance and time obtaining module is configured to determine a traffic area of the vehicle according to the driving data; and obtain each obstacle and the vehicle according to the traffic area and the obstacle information.
  • the device further includes:
  • An obstacle information acquiring module configured to collect image data around the vehicle body through the camera; perform obstacle detection on the image data to obtain obstacle information of the obstacle around the vehicle; and/or collect the surrounding of the vehicle by radar Obstacle information for obstacles.
  • the initial field of view range determining module 302 is configured to determine an initial field of view of the panorama according to a preset fixed field of view; or determine an initial of the panorama according to a steering wheel angle of the vehicle. visual field.
  • the vehicle body center is used as the origin, the vehicle body is laterally oriented to the right as the positive X-axis direction, and the vehicle body is longitudinally oriented toward the front of the vehicle head as the positive direction of the Y-axis, and a coordinate system is established, then the steering wheel angle is determined according to the vehicle.
  • the initial field of view of the panorama including:
  • the initial front visual field range df 0 , the initial rear visual field range db 0 , the initial left visual field range dl 0 , and the initial right visual field range dr 0 satisfy the following relationship:
  • dr 0 or dl 0 Based on the steering wheel angle of the vehicle, dr 0 or dl 0 can be obtained:
  • h min represents the longitudinal length covered by the panorama when the minimum field of view is included;
  • w min represents the lateral width of the panorama coverage when the minimum field of view is included;
  • l car represents the length of the vehicle;
  • w car represents the vehicle Width;
  • p represents an adjustable parameter;
  • the steering angle of the front wheel is calculated from the steering wheel angle.
  • the adjusted visual field range determining module 303 is configured to determine whether a dangerous obstacle in a visual field direction that the user needs to pay attention to is located in the initial visual field; if the dangerous visual direction in the visual field direction that needs attention If the object is located within the initial field of view, the initial field of view is not adjusted; otherwise, the initial field of view of the field of view that needs to be focused is adjusted so that the dangerous obstacle is located within the adjusted field of view.
  • the direction of the visual field to be concerned includes a left side, a right side, and a rear side of the vehicle, and the initial visual field range of the visual field direction that needs attention is adjusted, so that the dangerous obstacle is located after the adjustment Within the field of view, including:
  • the initial rear view range is adjusted so that the dangerous obstacle behind the vehicle is located within the adjusted rear view range
  • the visual field direction that needs to be concerned includes a left side, a right side, and a front side of the vehicle, and the initial visual field range of the visual field direction that needs attention is adjusted, so that the dangerous obstacle is located within the adjusted visual field range.
  • the initial front field of view is adjusted such that the dangerous obstacle in front of the vehicle is within the adjusted front field of view.
  • the adjusted field of view of the panorama is not greater than the maximum field of view.
  • the electronic device 400 may include at least a processor 401 and a storage medium 402.
  • the processor 401 and the storage medium 402 may be connected by a bus or other means, as shown in Fig. 11 by way of a bus connection.
  • the number of processors 401 may be one or more, and one processor is taken as an example in FIG.
  • the processor 401 can be configured to load instructions in the storage medium to perform the field of view adjustment method of the above-described panorama.

Abstract

Provided in the present disclosure are a method and an apparatus for adjusting the field of view of a panoramic image, a storage medium, and an electronic device. The method comprises: determining dangerous obstacles around a vehicle and an initial field of view range of a panoramic image; and, on the basis of the initial field of view range and position information of the vehicle relative to the dangerous obstacles, determining an adjusted field of view range of the panoramic image, the adjusted field of view range comprising the dangerous obstacles. The present solution can flexibly adjust the field of view range of the panoramic image display, reducing redundant information and avoiding missing information of dangerous obstacles.

Description

全景图的视野调整方法及装置、存储介质、电子设备Method and device for adjusting vision of panoramic view, storage medium, electronic device 【技术领域】[Technical Field]
本公开涉及智能化技术领域,具体地,涉及一种全景图的视野调整方法及装置、存储介质、电子设备。The present disclosure relates to the field of intelligent technologies, and in particular, to a method and device for adjusting a field of view of a panorama, a storage medium, and an electronic device.
【背景技术】【Background technique】
随着智能化技术的不断发展,自动驾驶、辅助驾驶被广泛应用于汽车领域,车载360度全景系统作为基础功能,在汽车的安全行驶中发挥着巨大作用。With the continuous development of intelligent technology, autonomous driving and assisted driving are widely used in the automotive field, and the 360-degree panoramic system of the vehicle as a basic function plays a huge role in the safe driving of the automobile.
目前,车载360度全景系统主要是通过安装在车辆前后左右四个方向的鱼眼摄像头,采集车身四周的图像;然后通过预先定义的前视野范围d f、后视野范围d b、左视野范围d l、右视野范围d r,经单应性变换,生成一张具有固定视野范围的俯瞰全景图。 At present, the 360-degree panoramic system of the vehicle mainly collects images around the vehicle body through fisheye cameras installed in the front, rear, left and right directions of the vehicle; and then passes through a predefined front field of view range d f , a rear field of view range d b , and a left field of view range d l , the right field of view range d r , through homography transformation, to generate a panoramic view of the bird's eye view with a fixed field of view.
通常,d f、d b、d l、d r参数由生产厂家设定并配置于系统中,且在后续使用过程中保持不变,这就导致实际生成的俯瞰全景图仅能向用户展示车身附近一定范围内的固定视野,灵活性较差,且容易出现以下问题:全景图中展示了很多对用户当前驾驶行为没有参考价值的冗余信息;因为视野范围受限,导致部分对用户当前驾驶行为有参考价值的障碍物,未展示在全景图中,特别是车辆盲区的障碍物。不论是包含冗余信息,还是遗漏有价值的障碍物,均会对安全驾驶产生一定影响,导致依赖全景系统的用户更易发生安全事故。 Usually, the d f , d b , d l , and d r parameters are set by the manufacturer and configured in the system, and remain unchanged during subsequent use, which results in the actual generated panoramic view of the bird's eye view. Fixed field of view in a certain range nearby, which is less flexible and prone to the following problems: The panorama shows a lot of redundant information that has no reference value to the user's current driving behavior; because the field of view is limited, some of the current driving to the user is caused. Obstacles with behavioral reference values are not shown in the panorama, especially obstacles in vehicle blind spots. Whether it contains redundant information or missing valuable obstacles, it will have an impact on safe driving, making users who rely on panoramic systems more prone to security incidents.
【发明内容】[Summary of the Invention]
本公开的主要目的是提供一种全景图的视野调整方法及装置、存储介质、电子设备,可以灵活调整全景图展示的视野范围,有助于减少冗余信息,避免危险障碍物信息缺失。The main purpose of the present disclosure is to provide a method and device for adjusting the field of view of a panoramic image, a storage medium, and an electronic device, which can flexibly adjust the field of view of the panorama display, help reduce redundant information, and avoid missing information of dangerous obstacles.
为了实现上述目的,本公开提供一种全景图的视野调整方法,所述方法包括:In order to achieve the above object, the present disclosure provides a method for adjusting a field of view of a panorama, the method comprising:
确定出车辆周围的危险障碍物以及全景图的初始视野范围;Identify dangerous obstacles around the vehicle and the initial field of view of the panorama;
根据所述初始视野范围、以及所述危险障碍物相对所述车辆的位置信息,确定出所述全景图的调整后视野范围,所述调整后视野范围包括所述危险障碍物。And determining an adjusted visual field range of the panoramic image according to the initial visual field range and the position information of the dangerous obstacle relative to the vehicle, the adjusted visual field range including the dangerous obstacle.
可选地,所述确定出车辆周围的危险障碍物,包括:Optionally, the determining a dangerous obstacle around the vehicle includes:
根据车辆的行驶数据以及车辆周围障碍物的障碍物信息,得到各障碍物与所述车辆之间的碰撞距离s以及碰撞时间t;Obtaining a collision distance s between each obstacle and the vehicle and a collision time t according to the driving data of the vehicle and the obstacle information of the obstacle around the vehicle;
将碰撞距离s小于预设距离s 0的障碍物,和/或碰撞时间t小于预设时间t 0的障碍物,确定为所述危险障碍物。 An obstacle having a collision distance s smaller than the preset distance s 0 and/or an obstacle having a collision time t smaller than the preset time t 0 is determined as the dangerous obstacle.
可选地,所述根据车辆的行驶数据以及车辆周围障碍物的障碍物信息,得到各障碍物与所述车辆之间的碰撞距离s以及碰撞时间t,包括:Optionally, the collision distance s and the collision time t between each obstacle and the vehicle are obtained according to the driving data of the vehicle and the obstacle information of the obstacle around the vehicle, including:
根据所述行驶数据,确定出所述车辆的通行区域;Determining a traffic area of the vehicle according to the driving data;
根据所述通行区域以及所述障碍物信息,得到各障碍物与所述车辆之间的碰撞距离s以及碰撞时间t。Based on the passing area and the obstacle information, a collision distance s between each obstacle and the vehicle and a collision time t are obtained.
可选地,获取所述障碍物信息的方式为:Optionally, the manner of obtaining the obstacle information is:
通过摄像头采集车身周围的图像数据;针对所述图像数据进行障碍物检测,得到所述车辆周围障碍物的障碍物信息;Collecting image data around the vehicle body through the camera; performing obstacle detection on the image data to obtain obstacle information of the obstacle around the vehicle;
和/或,and / or,
通过雷达采集所述车辆周围障碍物的障碍物信息。Obstacle information of obstacles around the vehicle is collected by radar.
可选地,所述确定出全景图的初始视野范围,包括:Optionally, the determining an initial field of view of the panorama includes:
根据预设的固定视野范围,确定所述全景图的初始视野范围;或者,Determining an initial field of view of the panorama according to a preset fixed field of view; or
根据所述车辆的方向盘转角,确定所述全景图的初始视野范围。An initial field of view of the panorama is determined based on a steering wheel angle of the vehicle.
可选地,如果以车身中心作为原点,车身横向向右作为X轴正方向,车身纵向朝车头方向作为Y轴正方向,建立坐标系,则所述根据所述车辆的方向盘转角,确定所述全景图的初始视野范围,包括:Optionally, if the vehicle body center is used as the origin, the vehicle body is laterally oriented to the right as the positive X-axis direction, and the vehicle body is longitudinally oriented toward the front of the vehicle head as the positive direction of the Y-axis, and a coordinate system is established, then the steering wheel angle is determined according to the vehicle. The initial field of view of the panorama, including:
初始前视野范围df 0、初始后视野范围db 0、初始左视野范围dl 0、初始右视野范围dr 0满足以下关系: The initial front visual field range df 0 , the initial rear visual field range db 0 , the initial left visual field range dl 0 , and the initial right visual field range dr 0 satisfy the following relationship:
df 0+db 0+l car≥h min Df 0 +db 0 +l car ≥h min
dr 0+dl 0+w car≥w min Dr 0 +dl 0 +w car ≥w min
基于所述车辆的方向盘转角,能够得到dr 0或者dl 0Based on the steering wheel angle of the vehicle, dr 0 or dl 0 can be obtained:
Figure PCTCN2018104419-appb-000001
Figure PCTCN2018104419-appb-000001
Figure PCTCN2018104419-appb-000002
Figure PCTCN2018104419-appb-000002
其中,h min表示在所述最小视野范围时,全景图覆盖的纵向长度;w min表示在所述最小视野范围时,全景图覆盖的横向宽度;l car表示车辆的长度;w car表示车辆的宽度;p表示可调节参数;
Figure PCTCN2018104419-appb-000003
表示车前轮转向角,由所述方向盘转角计算得到。
Where h min represents the longitudinal length covered by the panorama when the minimum field of view is included; w min represents the lateral width of the panorama coverage when the minimum field of view is included; l car represents the length of the vehicle; w car represents the vehicle Width; p represents an adjustable parameter;
Figure PCTCN2018104419-appb-000003
The steering angle of the front wheel is calculated from the steering wheel angle.
可选地,所述根据所述初始视野范围、以及所述危险障碍物相对所述车辆的位置信息,确定出所述全景图的调整后视野范围,包括:Optionally, the determining the adjusted visual field range of the panoramic image according to the initial visual field range and the position information of the dangerous obstacle relative to the vehicle includes:
判断用户需要关注的视野方向上的危险障碍物,是否位于所述初始视野范围内;Determining whether a dangerous obstacle in the direction of the visual field that the user needs to pay attention to is located within the initial visual field;
如果所述需要关注的视野方向上的危险障碍物均位于所述初始视野范围内,则不调整所述初始视野范围;否则调整所述需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内。If the dangerous obstacle in the direction of the field of view that needs attention is located within the initial field of view, the initial field of view is not adjusted; otherwise, the initial field of view of the field of view that needs attention is adjusted, so that the dangerous obstacle is located Adjusted within the field of view.
可选地,当所述车辆倒车时,所述需要关注的视野方向包括车辆左侧、右侧以及后方,所述调整所述需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内,包括:Optionally, when the vehicle is backing up, the direction of the visual field to be concerned includes a left side, a right side, and a rear side of the vehicle, and the initial visual field range of the visual field direction that needs attention is adjusted, so that the dangerous obstacle is located after the adjustment Within the field of view, including:
如果车辆左侧的危险障碍物超出初始左视野范围,则调整所述初始左视野范围,使车辆左侧的危险障碍物位于调整后左视野范围内;If the dangerous obstacle on the left side of the vehicle exceeds the initial left-view range, adjust the initial left-view range so that the dangerous obstacle on the left side of the vehicle is within the adjusted left-view range;
如果车辆右侧的危险障碍物超出初始右视野范围,则调整所述初始右视野范围,使车辆右侧的危险障碍物位于调整后右视野范围内;If the dangerous obstacle on the right side of the vehicle exceeds the initial right field of view, adjust the initial right field of view so that the dangerous obstacle on the right side of the vehicle is within the adjusted right field of view;
如果车辆后方的危险障碍物超出初始后视野范围,则调整所述初始后视野范围,使车辆后方的危险障碍物位于调整后后视野范围内;If the dangerous obstacle behind the vehicle exceeds the initial rear view range, the initial rear view range is adjusted so that the dangerous obstacle behind the vehicle is located within the adjusted rear view range;
或者,or,
当所述车辆前进时,所述需要关注的视野方向包括车辆左侧、右侧以及前方,所述 调整所述需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内,包括:When the vehicle is moving forward, the visual field direction that needs to be concerned includes a left side, a right side, and a front side of the vehicle, and the initial visual field range of the visual field direction that needs attention is adjusted, so that the dangerous obstacle is located within the adjusted visual field range. include:
如果车辆左侧的危险障碍物超出初始左视野范围,则调整所述初始左视野范围,使车辆左侧的危险障碍物位于调整后左视野范围内;If the dangerous obstacle on the left side of the vehicle exceeds the initial left-view range, adjust the initial left-view range so that the dangerous obstacle on the left side of the vehicle is within the adjusted left-view range;
如果车辆右侧的危险障碍物超出初始右视野范围,则调整所述初始右视野范围,使车辆右侧的危险障碍物位于调整后右视野范围内;If the dangerous obstacle on the right side of the vehicle exceeds the initial right field of view, adjust the initial right field of view so that the dangerous obstacle on the right side of the vehicle is within the adjusted right field of view;
如果车辆前方的危险障碍物超出初始前视野范围,则调整所述初始前视野范围,使车辆前方的危险障碍物位于调整后前视野范围内。If the dangerous obstacle in front of the vehicle exceeds the initial front field of view, the initial front field of view is adjusted such that the dangerous obstacle in front of the vehicle is within the adjusted front field of view.
可选地,如果预设有最大视野范围,则所述全景图的调整后视野范围不大于所述最大视野范围。Optionally, if the maximum field of view is pre-set, the adjusted field of view of the panorama is not greater than the maximum field of view.
本公开提供一种全景图的视野调整装置,所述装置包括:The present disclosure provides a field of view adjustment device for a panoramic view, the device comprising:
危险障碍物确定模块,用于确定出车辆周围的危险障碍物;a dangerous obstacle determination module for determining a dangerous obstacle around the vehicle;
初始视野范围确定模块,用于确定出全景图的初始视野范围;An initial field of view range determining module for determining an initial field of view of the panorama;
调整后视野范围确定模块,用于根据所述初始视野范围、以及所述危险障碍物相对所述车辆的位置信息,确定出所述全景图的调整后视野范围,所述调整后视野范围包括所述危险障碍物。The adjusted visual field range determining module is configured to determine an adjusted visual field range of the panoramic image according to the initial visual field range and the position information of the dangerous obstacle relative to the vehicle, where the adjusted visual field range includes A dangerous obstacle.
可选地,所述危险障碍物确定模块包括:Optionally, the dangerous obstacle determination module includes:
碰撞距离和时间得到模块,用于根据车辆的行驶数据以及车辆周围障碍物的障碍物信息,得到各障碍物与所述车辆之间的碰撞距离s以及碰撞时间t;a collision distance and time obtaining module, configured to obtain a collision distance s and a collision time t between each obstacle and the vehicle according to the driving data of the vehicle and the obstacle information of the obstacle around the vehicle;
危险障碍物确定子模块,用于将碰撞距离s小于预设距离s 0的障碍物,和/或碰撞时间t小于预设时间t 0的障碍物,确定为所述危险障碍物。 The dangerous obstacle determination sub-module is configured to determine an obstacle that has a collision distance s smaller than the preset distance s 0 and/or an obstacle whose collision time t is less than the preset time t 0 as the dangerous obstacle.
可选地,所述碰撞距离和时间得到模块,用于根据所述行驶数据,确定出所述车辆的通行区域;根据所述通行区域以及所述障碍物信息,得到各障碍物与所述车辆之间的碰撞距离s以及碰撞时间t。Optionally, the collision distance and time obtaining module is configured to determine a traffic area of the vehicle according to the driving data; and obtain each obstacle and the vehicle according to the traffic area and the obstacle information. The collision distance s between and the collision time t.
可选地,所述装置还包括:Optionally, the device further includes:
障碍物信息获取模块,用于通过摄像头采集车身周围的图像数据;针对所述图像数据进行障碍物检测,得到所述车辆周围障碍物的障碍物信息;和/或,通过雷达采集所述车辆周围障碍物的障碍物信息。An obstacle information acquiring module, configured to collect image data around the vehicle body through the camera; perform obstacle detection on the image data to obtain obstacle information of the obstacle around the vehicle; and/or collect the surrounding of the vehicle by radar Obstacle information for obstacles.
可选地,所述初始视野范围确定模块,用于根据预设的固定视野范围,确定所述全景图的初始视野范围;或者,根据所述车辆的方向盘转角,确定所述全景图的初始视野范围。Optionally, the initial field of view range determining module is configured to determine an initial field of view of the panorama according to a preset fixed field of view; or determine an initial field of view of the panorama according to a steering wheel angle of the vehicle range.
可选地,如果以车身中心作为原点,车身横向向右作为X轴正方向,车身纵向朝车头方向作为Y轴正方向,建立坐标系,则所述根据所述车辆的方向盘转角,确定所述全景图的初始视野范围,包括:Optionally, if the vehicle body center is used as the origin, the vehicle body is laterally oriented to the right as the positive X-axis direction, and the vehicle body is longitudinally oriented toward the front of the vehicle head as the positive direction of the Y-axis, and a coordinate system is established, then the steering wheel angle is determined according to the vehicle. The initial field of view of the panorama, including:
初始前视野范围df 0、初始后视野范围db 0、初始左视野范围dl 0、初始右视野范围dr 0满足以下关系: The initial front visual field range df 0 , the initial rear visual field range db 0 , the initial left visual field range dl 0 , and the initial right visual field range dr 0 satisfy the following relationship:
df 0+db 0+l car≥h min Df 0 +db 0 +l car ≥h min
dr 0+dl 0+w car≥w min Dr 0 +dl 0 +w car ≥w min
基于所述车辆的方向盘转角,能够得到dr 0或者dl 0Based on the steering wheel angle of the vehicle, dr 0 or dl 0 can be obtained:
Figure PCTCN2018104419-appb-000004
Figure PCTCN2018104419-appb-000004
Figure PCTCN2018104419-appb-000005
Figure PCTCN2018104419-appb-000005
其中,h min表示在所述最小视野范围时,全景图覆盖的纵向长度;w min表示在所述最小视野范围时,全景图覆盖的横向宽度;l car表示车辆的长度;w car表示车辆的宽度;p表示可调节参数;
Figure PCTCN2018104419-appb-000006
表示车前轮转向角,由所述方向盘转角计算得到。
Where h min represents the longitudinal length covered by the panorama when the minimum field of view is included; w min represents the lateral width of the panorama coverage when the minimum field of view is included; l car represents the length of the vehicle; w car represents the vehicle Width; p represents an adjustable parameter;
Figure PCTCN2018104419-appb-000006
The steering angle of the front wheel is calculated from the steering wheel angle.
可选地,所述调整后视野范围确定模块,用于判断用户需要关注的视野方向上的危险障碍物,是否位于所述初始视野范围内;如果所述需要关注的视野方向上的危险障碍物均位于所述初始视野范围内,则不调整所述初始视野范围;否则调整所述需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内。Optionally, the adjusted field of view range determining module is configured to determine whether a dangerous obstacle in a visual field direction that the user needs to pay attention to is located in the initial visual field; if the dangerous obstacle in the visual field direction that needs attention If the first field of view is within the initial field of view, the initial field of view is not adjusted; otherwise, the initial field of view of the field of view that needs to be focused is adjusted so that the dangerous obstacle is located within the adjusted field of view.
可选地,当所述车辆倒车时,所述需要关注的视野方向包括车辆左侧、右侧以及后方,所述调整所述需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内,包括:Optionally, when the vehicle is backing up, the direction of the visual field to be concerned includes a left side, a right side, and a rear side of the vehicle, and the initial visual field range of the visual field direction that needs attention is adjusted, so that the dangerous obstacle is located after the adjustment Within the field of view, including:
如果车辆左侧的危险障碍物超出初始左视野范围,则调整所述初始左视野范围,使车辆左侧的危险障碍物位于调整后左视野范围内;If the dangerous obstacle on the left side of the vehicle exceeds the initial left-view range, adjust the initial left-view range so that the dangerous obstacle on the left side of the vehicle is within the adjusted left-view range;
如果车辆右侧的危险障碍物超出初始右视野范围,则调整所述初始右视野范围,使车辆右侧的危险障碍物位于调整后右视野范围内;If the dangerous obstacle on the right side of the vehicle exceeds the initial right field of view, adjust the initial right field of view so that the dangerous obstacle on the right side of the vehicle is within the adjusted right field of view;
如果车辆后方的危险障碍物超出初始后视野范围,则调整所述初始后视野范围,使车辆后方的危险障碍物位于调整后后视野范围内;If the dangerous obstacle behind the vehicle exceeds the initial rear view range, the initial rear view range is adjusted so that the dangerous obstacle behind the vehicle is located within the adjusted rear view range;
或者,or,
当所述车辆前进时,所述需要关注的视野方向包括车辆左侧、右侧以及前方,所述调整所述需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内,包括:When the vehicle is moving forward, the visual field direction that needs to be concerned includes a left side, a right side, and a front side of the vehicle, and the initial visual field range of the visual field direction that needs attention is adjusted, so that the dangerous obstacle is located within the adjusted visual field range. include:
如果车辆左侧的危险障碍物超出初始左视野范围,则调整所述初始左视野范围,使车辆左侧的危险障碍物位于调整后左视野范围内;If the dangerous obstacle on the left side of the vehicle exceeds the initial left-view range, adjust the initial left-view range so that the dangerous obstacle on the left side of the vehicle is within the adjusted left-view range;
如果车辆右侧的危险障碍物超出初始右视野范围,则调整所述初始右视野范围,使车辆右侧的危险障碍物位于调整后右视野范围内;If the dangerous obstacle on the right side of the vehicle exceeds the initial right field of view, adjust the initial right field of view so that the dangerous obstacle on the right side of the vehicle is within the adjusted right field of view;
如果车辆前方的危险障碍物超出初始前视野范围,则调整所述初始前视野范围,使车辆前方的危险障碍物位于调整后前视野范围内。If the dangerous obstacle in front of the vehicle exceeds the initial front field of view, the initial front field of view is adjusted such that the dangerous obstacle in front of the vehicle is within the adjusted front field of view.
可选地,如果预设有最大视野范围,则所述全景图的调整后视野范围不大于所述最大视野范围。Optionally, if the maximum field of view is pre-set, the adjusted field of view of the panorama is not greater than the maximum field of view.
本公开提供一种存储介质,其中存储有多条指令,所述指令由处理器加载,执行上述全景图的视野调整方法的步骤。The present disclosure provides a storage medium in which a plurality of instructions are stored, the instructions being loaded by a processor to perform the steps of the field of view adjustment method of the above-described panorama.
本公开提供一种电子设备,所述电子设备包括;The present disclosure provides an electronic device, the electronic device including:
上述的存储介质;以及The above storage medium;
处理器,用于执行所述存储介质中的指令。a processor for executing instructions in the storage medium.
本公开方案中,可以先确定出对当前驾驶行为有参考价值的危险障碍物,以及全景图的初始视野范围,再结合初始视野范围、危险障碍物相对车辆的位置信息,得到全景图的调整后视野范围,使调整后视野范围包括危险障碍物。该调整后视野范围有助于减 少冗余信息,避免危险障碍物信息缺失,可提高全景图在实际驾驶过程中的可用性。In the solution of the present disclosure, the dangerous obstacles having reference value to the current driving behavior, and the initial visual field range of the panoramic map may be determined first, and then the initial visual field range and the position information of the dangerous obstacle relative to the vehicle are obtained, and the panoramic map is adjusted. The field of view allows the adjusted field of view to include dangerous obstacles. This adjusted field of view helps reduce redundant information, avoids the absence of dangerous obstacle information, and improves the usability of the panorama during actual driving.
本公开的其他特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the present disclosure will be described in detail in the detailed description which follows.
【附图说明】[Description of the Drawings]
附图是用来提供对本公开的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本公开,但并不构成对本公开的限制。在附图中:The drawings are intended to provide a further understanding of the disclosure, and are in the In the drawing:
图1为本公开方案全景图的视野调整方法的流程示意图;1 is a schematic flow chart of a method for adjusting a field of view of a panoramic view of the present disclosure;
图2为本公开方案中确定危险障碍物的流程示意图;2 is a schematic flow chart of determining a dangerous obstacle in the solution of the present disclosure;
图3为本公开方案中l m、w car、d b、d f之间的关系示意图; 3 is a schematic diagram showing the relationship between l m , w car , d b , and d f in the scheme of the present disclosure;
图4为本公开方案中倒车时的通行区域示意图;Figure 4 is a schematic view of a traffic area when reversing in the solution of the present disclosure;
图5为本公开方案中前进时的通行区域示意图;Figure 5 is a schematic view of a passage area when advancing in the solution of the present disclosure;
图6为本公开方案中障碍物相对于车辆的运动轨迹曲线;Figure 6 is a trajectory curve of an obstacle relative to a vehicle in the disclosed embodiment;
图7为本公开方案中最小视野范围的示意图;Figure 7 is a schematic diagram of a minimum field of view in the disclosed embodiment;
图8为本公开方案中倒车时方向盘转角与初始视野范围之间的对应关系;8 is a correspondence relationship between a steering wheel angle and an initial visual field range when reversing in the solution of the present disclosure;
图9为本公开方案中前进时方向盘转角与初始视野范围之间的对应关系;9 is a correspondence relationship between a steering wheel rotation angle and an initial visual field range in advance in the solution of the present disclosure;
图10为本公开方案全景图的视野调整装置的构成示意图;10 is a schematic structural diagram of a field of view adjusting device of a panoramic view of the present disclosure;
图11为本公开方案用于进行全景图的视野调整的电子设备的结构示意图。FIG. 11 is a schematic structural diagram of an electronic device for performing field of view adjustment of a panoramic view according to an embodiment of the present disclosure.
【具体实施方式】【detailed description】
以下结合附图对本公开的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本公开,并不用于限制本公开。The specific embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are not to be construed
参见图1,示出了本公开全景图的视野调整方法的流程示意图。可以包括以下步骤:Referring to FIG. 1, a flow chart of a method of adjusting a field of view of a panoramic view of the present disclosure is shown. The steps can be included:
S101,确定出车辆周围的危险障碍物以及全景图的初始视野范围。S101, determining a dangerous obstacle around the vehicle and an initial field of view of the panorama.
本公开方案中,至少可以按照以下方式确定出车辆周围的危险障碍物:In the solution of the present disclosure, at least the dangerous obstacles around the vehicle can be determined in the following manner:
(1)为了避免遗漏有价值的障碍物,可以将车辆周围检测到的全部障碍物,均确定为危险障碍物。(1) In order to avoid missing valuable obstacles, all obstacles detected around the vehicle can be identified as dangerous obstacles.
(2)可以结合障碍物的属性,将车辆周围检测到的部分障碍物,确定为危险障碍物。举例来说,障碍物的属性可以体现为:是否位于预设检测范围内、是否活体、运动速度是否过快、体积是否过大等,本公开方案对此可不做具体限定。(2) Some obstacles detected around the vehicle can be identified as dangerous obstacles in combination with the attributes of the obstacle. For example, the attribute of the obstacle may be embodied as follows: whether it is in the preset detection range, whether the living body, the moving speed is too fast, whether the volume is too large, or the like, and the present disclosure does not specifically limit this.
(3)可以结合用户当前的驾驶行为,将车辆周围检测到的部分障碍物,确定为危险障碍物。具体可参见图2所示流程示意图。可以包括以下步骤:(3) Some obstacles detected around the vehicle can be determined as dangerous obstacles in combination with the user's current driving behavior. For details, see the schematic diagram of the process shown in Figure 2. The steps can be included:
S201,根据车辆的行驶数据以及车辆周围障碍物的障碍物信息,得到各障碍物与所述车辆之间的碰撞距离s以及碰撞时间t。S201: Obtain a collision distance s and a collision time t between each obstacle and the vehicle according to the driving data of the vehicle and the obstacle information of the obstacle around the vehicle.
作为一种示例,本公开方案中的行驶数据可以包括:车辆的档位、行驶速度以及方向盘转角。获取行驶数据的过程可参照相关技术实现,此处不做详述。As an example, the travel data in the present disclosure may include: a gear position of the vehicle, a travel speed, and a steering wheel angle. The process of obtaining driving data can be implemented by referring to related technologies, and will not be described in detail herein.
作为一种示例,本公开方案中的障碍物信息可以包括:障碍物相对车辆的位置信息、以及障碍物的运动状态信息。举例来说,N个障碍物相对车辆的位置信息可以表示为Location={(x 1,y 1),(x 2,y 2),...,(x i,y i),...,(x N,y N)},运动状态信息可以表示为 Motion={(v 1,θ 1),(v 2,θ 2),...,(v i,θ i),...,(v N,θ N)}。其中,位置信息对应的坐标系可以将车身中心作为原点,车身横向向右作为X轴正方向,车身纵向朝车头方向作为Y轴正方向;v表示障碍物相对车辆的瞬时速度,θ表示在世界坐标系下的运动方向。 As an example, the obstacle information in the present disclosure may include: position information of the obstacle relative to the vehicle, and motion state information of the obstacle. For example, the position information of the N obstacles relative to the vehicle can be expressed as Location={(x 1 , y 1 ), (x 2 , y 2 ), ..., (x i , y i ),... , (x N , y N )}, the motion state information can be expressed as Motion={(v 1 , θ 1 ), (v 2 , θ 2 ), ..., (v i , θ i ),... , (v N , θ N )}. Wherein, the coordinate system corresponding to the position information can take the center of the vehicle body as the origin, the lateral direction of the vehicle body is the positive direction of the X axis, the longitudinal direction of the vehicle body is the positive direction of the Y axis; the v indicates the instantaneous speed of the obstacle relative to the vehicle, and θ indicates the world. The direction of motion in the coordinate system.
举例来说,本公开方案至少可以通过以下方式,获取车辆周围障碍物的障碍物信息:For example, the disclosed solution can obtain obstacle information of an obstacle around the vehicle at least by:
方式一,通过摄像头采集车身周围的图像数据;针对所述图像数据进行障碍物检测,得到所述车辆周围障碍物的障碍物信息。In the first method, image data around the vehicle body is collected by the camera; obstacle detection is performed on the image data, and obstacle information of the obstacle around the vehicle is obtained.
在实际应用过程中,可以在车辆前后左右四个方向上安装至少四个摄像头,或者,可以在车顶安装至少一个可360°旋转的摄像头,只要通过摄像头能拍摄车身周围的图像数据即可。举例来说,摄像头的类型可以为鱼眼摄像头和/或深度摄像头和/或双目摄像头,例如,可以在车身四周安装4个鱼眼摄像头,再辅以其他类型的摄像头,采集车身周围的图像数据。本公开方案对摄像头的类型、安装位置等可不做具体限定,通过摄像头采集图像数据的过程等可参照相关技术实现,此处不做详述。In the actual application process, at least four cameras can be installed in the front, rear, left and right directions of the vehicle, or at least one camera that can rotate 360° can be installed on the roof, as long as the image data around the vehicle body can be captured by the camera. For example, the type of camera can be a fisheye camera and/or a depth camera and/or a binocular camera. For example, four fisheye cameras can be installed around the body, supplemented by other types of cameras to capture images around the body. data. The present disclosure does not specifically limit the type of the camera, the installation position, and the like. The process of acquiring image data by the camera can be implemented by referring to related technologies, and will not be described in detail herein.
需要说明的是,为了增强图像中有关信息,可以对采集到的图像数据进行预处理,例如,可以通过中值滤波或者高斯滤波算法去除图像噪声,通过图像直方图均衡方法增强对比度,本公开方案对预处理的方式可不做具体限定,可以结合实际应用需求确定。It should be noted that, in order to enhance related information in the image, the collected image data may be preprocessed, for example, image noise may be removed by a median filtering or a Gaussian filtering algorithm, and contrast is enhanced by an image histogram equalization method. The manner of pre-processing may not be specifically limited, and may be determined in combination with actual application requirements.
举例来说,本公开方案至少可以通过以下方法进行障碍物检测:基于深度学习的物体检测、基于机器视觉的运动物体检测。以基于深度学习的物体检测方法为例,可以预先利用带标注信息的样本图像数据进行模型训练,生成一个目标检测识别模型,其中,标注信息可以体现为障碍物的类别,例如,行人、汽车、非机动车等,具体可结合实际应用情况而定。训练得到的目标检测识别模型,可以对摄像头采集到的图像数据进行特定类别物体的检测和识别,得到这些障碍物在图像中的位置以及障碍物的类别。For example, the disclosed solution can perform obstacle detection at least by the following methods: depth learning based object detection, machine vision based moving object detection. Taking the object detection method based on deep learning as an example, the sample image data with the labeled information can be used for model training in advance to generate a target detection and recognition model, wherein the annotation information can be embodied as an obstacle category, for example, a pedestrian, a car, Non-motor vehicles, etc., may be specific to the actual application. The target detection and recognition model obtained by the training can detect and identify the specific type of objects of the image data collected by the camera, and obtain the position of the obstacles in the image and the category of the obstacles.
得到障碍物在图像中的位置后,可以通过坐标系变换,将障碍物在图像上的位置转换到世界坐标系中;然后结合同一障碍物在上一帧图像中的位置,或者使用光流法,计算得到当前帧相对于上一帧的瞬时速度v和运动方向θ,即障碍物的运动状态信息。此外,在实际应用过程中,考虑到障碍物通常具有一定的大小,故可以根据障碍物的任一点确定障碍物相对车辆的位置信息,例如,将障碍物距离车身最近的点,确定为障碍物相对车辆的位置,得到位置信息(x i,y i),本公开方案对此可不做具体限定,可以结合实际应用需求确定。 After obtaining the position of the obstacle in the image, you can transform the position of the obstacle on the image into the world coordinate system by coordinate system transformation; then combine the position of the same obstacle in the image of the previous frame, or use the optical flow method Calculate the instantaneous velocity v of the current frame relative to the previous frame and the motion direction θ, that is, the motion state information of the obstacle. In addition, in the actual application process, considering that the obstacle usually has a certain size, the position information of the obstacle relative to the vehicle can be determined according to any point of the obstacle, for example, the point where the obstacle is closest to the vehicle body is determined as an obstacle. The position information (x i , y i ) is obtained with respect to the position of the vehicle. The disclosure solution is not limited thereto, and can be determined in combination with actual application requirements.
以在车身四周安装至少四个摄像头为例,每个摄像头可以拍摄一张对应的图像数据,即通过摄像头至少可以得到四张图像数据,在实际应用过程中,可以对所有图像数据进行障碍物检测;或者,为了减少计算量,可以根据驾驶需求,对部分图像数据进行障碍物检测。举例来说,结合行驶数据可知,用户正在倒车,此时用户更关注的是车辆后、左、右三个方向的障碍物信息,故可以针对这三个方向的图像数据,进行障碍物检测。For example, if at least four cameras are installed around the vehicle body, each camera can take a corresponding image data, that is, at least four image data can be obtained through the camera, and in the actual application process, obstacle detection can be performed on all image data. Or, in order to reduce the amount of calculation, it is possible to perform obstacle detection on some image data according to driving needs. For example, combined with the driving data, the user is reversing. At this time, the user is more concerned with the obstacle information in the rear, left, and right directions of the vehicle, so that the obstacle detection can be performed for the image data of the three directions.
方式二,通过雷达采集所述车辆周围障碍物的障碍物信息。基于雷达采集到的数据进行障碍物检测的过程,可参照相关技术实现,此处不做详述。在实际应用过程中,可以结合使用需求确定雷达精度,例如可以采用毫米波雷达,本公开方案对此可不做具体限定。作为一种示例,雷达可以安装在车身四周,或者可以安装在车顶进行360°扫描,只要通过雷达采集到车辆周围的障碍物信息即可。In the second method, the obstacle information of the obstacle around the vehicle is collected by radar. The process of detecting obstacles based on the data collected by the radar can be implemented by referring to relevant technologies, and will not be described in detail herein. In the actual application process, the radar accuracy can be determined in combination with the use requirements. For example, a millimeter wave radar can be used, and the present disclosure does not specifically limit this. As an example, the radar can be mounted around the body or can be mounted on the roof for a 360° scan, as long as the obstacle information around the vehicle is collected by the radar.
可以理解地,在实际应用过程中,还可以结合上述两种方式,即通过摄像头和雷达获取车辆周围障碍物的障碍物信息,以便尽量全面的发现车辆周围的障碍物,并尽量精 准的进行障碍物定位。本公开方案对获取障碍物信息的实现方式可不做具体限定。Understandably, in the actual application process, the above two methods can also be combined, that is, the obstacle information of the obstacle around the vehicle is acquired by the camera and the radar, so as to find the obstacles around the vehicle as comprehensively as possible, and perform obstacles as accurately as possible. Object location. The implementation scheme of the present disclosure may not specifically limit the implementation manner of acquiring obstacle information.
作为一种示例,得到行驶数据以及障碍物信息后,可以按照以下方式计算障碍物与车辆之间的碰撞距离s以及碰撞时间t。As an example, after the travel data and the obstacle information are obtained, the collision distance s between the obstacle and the vehicle and the collision time t can be calculated in the following manner.
首先,可以结合车辆的行驶数据,计算出车辆可能的运行轨迹以及通行区域。First, the possible running trajectory and the traffic area of the vehicle can be calculated based on the driving data of the vehicle.
同样地,若以车身中心作为原点,车身横向向右作为X轴正方向,车身纵向朝车头方向作为Y轴正方向,建立坐标系。对应地,车辆左后、右后、左前、右前四个顶点的运动轨迹方程可以体现为:Similarly, if the center of the vehicle body is used as the origin, the lateral direction of the vehicle body is the positive direction of the X-axis, and the longitudinal direction of the vehicle body is the positive direction of the Y-axis, and a coordinate system is established. Correspondingly, the equations of the trajectory of the four vertices of the left rear, right rear, left front and right front of the vehicle can be embodied as:
Figure PCTCN2018104419-appb-000007
Figure PCTCN2018104419-appb-000007
其中,(x bL,y bL)表示左后顶点的轨迹坐标;(x bR,y bR)表示右后顶点的轨迹坐标;(x fL,y fL)表示左前顶点的轨迹坐标;(x fR,y fR)表示右前顶点的轨迹坐标;
Figure PCTCN2018104419-appb-000008
表示车前轮转向角,可以将向右转定义为正方向角度,可由方向盘转角计算得到;l m表示车辆的前后轴轴距;l car表示车辆的长度;w car表示车辆的宽度;d b表示后轮轴到车尾的距离;d f表示前轮轴到车头的距离,具体关系可参见图3所示示意图。
Where (x bL , y bL ) represents the trajectory coordinates of the left rear vertex; (x bR , y bR ) represents the trajectory coordinates of the right rear vertex; (x fL , y fL ) represents the trajectory coordinates of the left front vertex; (x fR , y fR ) represents the trajectory coordinates of the right front vertex;
Figure PCTCN2018104419-appb-000008
Indicates the steering angle of the front wheel, which can be defined as the positive direction, which can be calculated from the steering wheel angle; l m represents the front and rear axle distance of the vehicle; l car represents the length of the vehicle; w car represents the width of the vehicle; d b Indicates the distance from the rear axle to the rear of the vehicle; d f represents the distance from the front axle to the front. For the specific relationship, see the diagram shown in Figure 3.
根据以上运动轨迹方程计算出四个顶点的轨迹线后,可以结合车辆的行驶方向,例如前或后;以及车辆的转向方向,例如左或右,得到车辆的通行区域。作为一种示例,图4示出了车辆在倒车,即向左后行驶时的通行区域示意图;图5示出了车辆在前进,即向左前行驶时的通行区域示意图。After calculating the trajectory of the four vertices according to the above motion trajectory equation, the traveling direction of the vehicle can be obtained by combining the traveling direction of the vehicle, such as front or rear; and the steering direction of the vehicle, for example, left or right. As an example, FIG. 4 shows a schematic view of a traffic area when the vehicle is traveling backwards, that is, to the left, and FIG. 5 is a schematic view of the traffic area when the vehicle is traveling forward, that is, to the left.
其次,在得到车辆的通行区域后,还可以结合障碍物的运动状态信息,建立运动模型,计算出障碍物在维持该运动状态的情况下与车辆发生碰撞时的碰撞点,进而得到障碍物从当前位置到碰撞点的碰撞距离s、碰撞时间t。可以理解地,如果障碍物与车辆不发生碰撞,则s=∞,t=∞。Secondly, after obtaining the traffic area of the vehicle, the motion state information of the obstacle can be combined to establish a motion model, and the collision point when the obstacle collides with the vehicle while maintaining the motion state is calculated, thereby obtaining an obstacle from the obstacle. The collision distance s of the current position to the collision point and the collision time t. It can be understood that if the obstacle does not collide with the vehicle, then s=∞, t=∞.
举例来说,可以以车辆为参考系,由于车辆做的是瞬间匀速圆周运动,障碍物瞬间做的是匀速直线运动,所以障碍物相对于车辆的速度可以分解为:匀速圆周运动的线速度v r、匀速直线运动速度v l。对应于此,障碍物的轨迹坐标关于时间的参数方程可以表示为: For example, the vehicle can be used as a reference system. Since the vehicle is in a momentary uniform circular motion, the obstacle instantaneously moves in a uniform linear motion, so the speed of the obstacle relative to the vehicle can be decomposed into: linear velocity of uniform circular motion v r , uniform linear motion speed v l . Corresponding to this, the parameter equation of the obstacle's trajectory coordinates with respect to time can be expressed as:
Figure PCTCN2018104419-appb-000009
Figure PCTCN2018104419-appb-000009
其中,(x i,y i)表示第i个障碍物的当前位置坐标,即障碍物相对车辆的位置信息;R表示圆周运动的运动半径,可以通过轨迹线方程求出;ω表示圆周运动的角速度,ω=v r/R;θ i表示当前位置与X轴之间的角度;v lx表示直线运动速度v l的x分量;v ly表示直线运动速度v l的y分量。 Where (x i , y i ) represents the current position coordinate of the i-th obstacle, that is, the position information of the obstacle relative to the vehicle; R represents the radius of motion of the circular motion, which can be obtained by the trajectory line equation; ω represents the circular motion Angular velocity, ω=v r /R; θ i represents the angle between the current position and the X axis; v lx represents the x component of the linear motion velocity v l ; v ly represents the y component of the linear motion velocity v l .
基于上述参数方程,可以得到障碍物相对于车辆的运动轨迹曲线,具体可参见图6所示。Based on the above parameter equation, the motion trajectory curve of the obstacle relative to the vehicle can be obtained, as shown in FIG. 6 .
如此,便可结合如下表示车身边缘的矩形框方程,求解得到碰撞点的坐标、以及对 应的碰撞时间t:In this way, the rectangular frame equation representing the edge of the vehicle body can be combined to obtain the coordinates of the collision point and the corresponding collision time t:
Figure PCTCN2018104419-appb-000010
Figure PCTCN2018104419-appb-000010
其中,l car表示车辆的长度;w car表示车辆的宽度。 Where l car represents the length of the vehicle; w car represents the width of the vehicle.
可以理解地,障碍物相对于车辆的运动轨迹曲线、车身边缘的矩形框,二者相交的点即为碰撞点,得到碰撞点的坐标后,可以通过积分运算计算出障碍物从当前位置到碰撞点的碰撞距离s:It can be understood that the obstacle is relative to the trajectory curve of the vehicle and the rectangular frame at the edge of the vehicle body, and the point at which the two intersect is the collision point. After the coordinates of the collision point are obtained, the obstacle can be calculated from the current position to the collision by the integral operation. Point collision distance s:
Figure PCTCN2018104419-appb-000011
Figure PCTCN2018104419-appb-000011
如此,便可得到每个障碍物与车辆碰撞点之间的碰撞距离集合S={s 1,s 2,…,s N}、以及对应的碰撞时间集合T={t 1,t 2,…,t N}。 In this way, the collision distance set S={s 1 , s 2 , . . . , s N } between each obstacle and the collision point of the vehicle can be obtained, and the corresponding collision time set T={t 1 , t 2 ,... , t N }.
S202,将碰撞距离s小于预设距离s 0的障碍物,和/或碰撞时间t小于预设时间t 0的障碍物,确定为所述危险障碍物。 S202, an obstacle with a collision distance s smaller than the preset distance s 0 , and/or an obstacle with a collision time t less than the preset time t 0 is determined as the dangerous obstacle.
得到碰撞距离集合和碰撞时间集合后,可以根据s和/或t确定出对当前驾驶行为影响较大的危险障碍物。具体地,可以将s小于预设距离s 0的障碍物,和/或t小于预设时间t 0的障碍物,确定为危险障碍物。本公开方案对的s 0、t 0取值可不做具体限定,可以结合实际应用需求设置。 After obtaining the collision distance set and the collision time set, the dangerous obstacles that have a great influence on the current driving behavior can be determined according to s and/or t. Specifically, an obstacle having an s smaller than the preset distance s 0 and/or an obstacle having a t less than the preset time t 0 may be determined as a dangerous obstacle. The values of s 0 and t 0 of the present disclosure may not be specifically limited, and may be set in combination with actual application requirements.
本公开方案中,至少可以按照以下方式确定出全景图的初始视野范围:In the disclosed solution, the initial field of view of the panorama can be determined at least in the following manner:
(1)可以根据预设的固定视野范围,确定全景图的初始视野范围。(1) The initial field of view of the panorama can be determined according to a preset fixed field of view.
举例来说,固定视野范围可以是一个确定数值;或者,可以是一个可用的数值范围,本公开方案对固定视野范围的大小可不做具体限定。For example, the fixed field of view may be a certain value; or it may be a range of values that may be used. The size of the fixed field of view may not be specifically limited by the disclosed solution.
在实际应用过程中,可以结合固定视野范围的大小,预先确定好每个视野方向的尺寸,得到全景图的初始视野范围。或者,可以结合固定视野范围的大小、危险障碍物相对车辆的位置信息,实时确定每个视野方向的尺寸,得到全景图的初始视野范围。例如,车辆左侧的危险障碍物较少且距离车辆较近,车辆右侧的危险障碍物较多且较为分散,则可使初始左视野范围的尺寸小于初始右视野范围的尺寸。本公开方案对利用固定视野范围确定全景图的初始视野范围的方式,可不做具体限定。In the actual application process, the size of each field of view direction can be determined in advance in combination with the size of the fixed field of view, and the initial field of view of the panorama is obtained. Alternatively, the size of each field of view direction may be determined in real time in combination with the size of the fixed field of view and the position information of the dangerous obstacle relative to the vehicle to obtain an initial field of view of the panorama. For example, if there are fewer dangerous obstacles on the left side of the vehicle and are closer to the vehicle, and the dangerous obstacles on the right side of the vehicle are more and more dispersed, the size of the initial left-view range may be smaller than the size of the initial right-view range. The method of the present disclosure may not specifically limit the manner of determining the initial field of view of the panorama by using the fixed field of view.
(2)可以根据车辆的方向盘转角,确定出全景图的初始视野范围。具体可参见下文所做介绍。(2) The initial field of view of the panorama can be determined based on the steering wheel angle of the vehicle. See the description below for details.
在实际应用过程中,为了保证各个方向的安全,可以预设一个全景图的最小视野范围,使本公开方案确定出的初始视野范围不小于最小视野范围。In the actual application process, in order to ensure the safety in all directions, the minimum field of view of a panorama may be preset, so that the initial field of view determined by the present disclosure is not less than the minimum field of view.
全景图的最小视野范围可以包括:最小前视野范围df min、最小后视野范围db min、最小左视野范围dl min、最小右视野范围dr min。其中,df min+db min+l car=h min,表示最小视野范 围时全景图覆盖的纵向长度;dl min+dr min+w car=w min,表示最小视野范围时全景图覆盖的横向宽度,具体可参见图7所示最小视野范围的示意图。 The minimum field of view of the panorama may include: a minimum front field of view range df min , a minimum back field of view range db min , a minimum left field of view range dl min , and a minimum right field of view range dr min . Where df min +db min +l car =h min , which represents the longitudinal length of the panorama coverage in the minimum field of view; dl min +dr min +w car =w min , which represents the lateral width of the panorama coverage in the minimum field of view, For details, refer to the schematic diagram of the minimum field of view shown in FIG. 7.
作为一种示例,最小视野范围可以满足以下条件:As an example, the minimum field of view can satisfy the following conditions:
举例来说,最小左视野范围可以设置为dl min≥d 1,d 1表示车辆右转时,最大转向角
Figure PCTCN2018104419-appb-000012
对应的车辆左侧的最大视野。
For example, the minimum left field of view can be set to dl min ≥d 1 , and d 1 represents the maximum steering angle when the vehicle turns right.
Figure PCTCN2018104419-appb-000012
Corresponding maximum field of view on the left side of the vehicle.
举例来说,最小右视野范围可以设置为dr min≥d 2,d 2表示车辆左转时,最大转向角
Figure PCTCN2018104419-appb-000013
对应的车辆右侧的最大视野。
For example, the minimum right field of view can be set to dr min ≥d 2 , and d 2 represents the maximum steering angle when the vehicle turns left.
Figure PCTCN2018104419-appb-000013
Corresponding maximum field of view on the right side of the vehicle.
具体地,
Figure PCTCN2018104419-appb-000014
specifically,
Figure PCTCN2018104419-appb-000014
举例来说,最小前视野范围可以设置为l car/8≤df min≤l car/4,例如,df min=l car/6,本公开方案对此可不做具体限定。 For example, the minimum front visual field range can be set to l car / 8≤df min ≤l car / 4, e.g., df min = l car / 6 , this embodiment of the present disclosure may be not particularly limited.
举例来说,最小后视野范围可以设置为l car/6≤db min≤l car/3,例如,db min=l car/4,本公开方案对此可不做具体限定。 For example, the field of view can be set to the minimum l car / 6≤db min ≤l car / 3, e.g., db min = l car / 4 , this embodiment of the present disclosure may be not particularly limited.
下面结合最小视野范围,对本公开方案中根据车辆的方向盘转角,确定全景图的初始视野范围的过程,进行解释说明。The process of determining the initial field of view of the panorama according to the steering wheel angle of the vehicle in the present disclosure will be explained below in conjunction with the minimum field of view.
举例来说,初始前视野范围df 0、初始后视野范围db 0、初始左视野范围dl 0、初始右视野范围dr 0可以满足以下关系: For example, the initial front field of view range df 0 , the initial back field of view range db 0 , the initial left field of view range dl 0 , and the initial right field of view range dr 0 may satisfy the following relationship:
df 0+db 0+l car≥h min Df 0 +db 0 +l car ≥h min
dr 0+dl 0+w car≥w min Dr 0 +dl 0 +w car ≥w min
此外,参见图8所示倒车时方向盘转角与初始视野范围之间的对应关系、图9所示前进时方向盘转角与初始视野范围之间的对应关系可知,df 0、db 0可以定为恒定值,dl 0、dr 0则可随方向盘转角呈正弦变化。故在确定dl 0、dr 0时,可以先基于方向盘转角,确定出一个初始视野范围,例如先确定出dr0,再基于dr 0+dl 0+w car≥w min,确定出另一个初始视野范围,例如使dl0满足dl 0≥w min-w car-dr 0即可。 In addition, referring to the correspondence relationship between the steering wheel rotation angle and the initial visual field range when reversing, and the correspondence between the steering wheel rotation angle and the initial visual field range shown in FIG. 9 , df 0 and db 0 can be set to a constant value. , dl 0 , dr 0 can change sinusoidally with the steering wheel angle. Therefore, when determining dl 0 and dr 0 , an initial field of view can be determined based on the steering wheel angle. For example, first determine dr0, and then determine another initial field of view based on dr 0 +dl 0 +w car ≥w min . For example, let dl0 satisfy dl 0 ≥ w min -w car -dr 0 .
具体地,如果以车身中心作为原点,车身横向向右作为X轴正方向,车身纵向朝车头方向作为Y轴正方向,建立坐标系,则Specifically, if the center of the vehicle body is used as the origin, the lateral direction of the vehicle body is the positive direction of the X-axis, and the longitudinal direction of the vehicle body is the positive direction of the Y-axis, and the coordinate system is established.
结合方向盘转角,与当前驾驶行为相对应的初始右视野范围dr 0可以体现为: Combined with the steering wheel angle, the initial right-view range dr 0 corresponding to the current driving behavior can be expressed as:
Figure PCTCN2018104419-appb-000015
Figure PCTCN2018104419-appb-000015
或者,结合方向盘转角,与当前驾驶行为相对应的初始左视野范围dl 0可以体现为: Alternatively, in combination with the steering wheel angle, the initial left-view range dl 0 corresponding to the current driving behavior may be embodied as:
Figure PCTCN2018104419-appb-000016
Figure PCTCN2018104419-appb-000016
其中,p表示可调节参数。在实际应用过程中,可以通过调节p的取值对正弦函数进行拉伸,达到较好的可视效果。具体地,p增大时正弦图像在水平方向压缩,p减小时正弦图像在水平方向拉伸。作为一种示例,在实际应用过程中,位于区间
Figure PCTCN2018104419-appb-000017
内的正弦曲线,不超过一个周期且大于半个周期,即
Figure PCTCN2018104419-appb-000018
Where p represents an adjustable parameter. In the actual application process, the sine function can be stretched by adjusting the value of p to achieve a better visual effect. Specifically, the sinusoidal image is compressed in the horizontal direction when p is increased, and the sinusoidal image is stretched in the horizontal direction when p is decreased. As an example, in the actual application process, located in the interval
Figure PCTCN2018104419-appb-000017
a sinusoid within a period of no more than one cycle and greater than half a cycle, ie
Figure PCTCN2018104419-appb-000018
需要说明的是,本公开方案对确定危险障碍物、确定初始视野范围的顺序,可不做具体限定,只要在进行视野范围调整之前得到危险障碍物以及初始视野范围即可。It should be noted that the order of the present disclosure for determining the dangerous obstacle and determining the initial visual field range may not be specifically limited, as long as the dangerous obstacle and the initial visual field range are obtained before the visual field range adjustment is performed.
S102,根据所述初始视野范围、以及所述危险障碍物相对所述车辆的位置信息,确 定出所述全景图的调整后视野范围,所述调整后视野范围包括所述危险障碍物。S102. Determine, according to the initial visual field range and the position information of the dangerous obstacle relative to the vehicle, an adjusted visual field range of the panoramic view, where the adjusted visual field range includes the dangerous obstacle.
得到危险障碍物、初始视野范围后,可以据此确定出全景图的调整后视野范围。在实际应用过程中,调整后视野范围中可以包括所有危险障碍物;或者,也可以对危险障碍物排序后选取出部分危险障碍物,包含于调整后视野范围中,本公开方案对此可不做具体限定。After obtaining the dangerous obstacle and the initial field of view, the adjusted field of view of the panorama can be determined accordingly. In the actual application process, all dangerous obstacles may be included in the adjusted field of view; or some dangerous obstacles may be selected after sorting the dangerous obstacles, which are included in the adjusted field of view, and the present disclosure may not do this. Specifically limited.
作为一种示例,除了可以利用s、t进行危险障碍物排序之外,若在障碍物检测时明确了障碍物类别,还可以基于障碍物类别的优先级进行排序,例如,行人的优先级高于非机动车、非机动车的优先级高于汽车,本公开方案对此亦可不做具体限定。As an example, in addition to the use of s, t for dangerous obstacle sorting, if the obstacle category is specified at the time of obstacle detection, it may also be sorted based on the priority of the obstacle category, for example, the pedestrian has a high priority. The priority of the non-motor vehicle and the non-motor vehicle is higher than that of the automobile, and the present disclosure does not specifically limit this.
具体地,视野范围的调整过程可以体现为:判断用户需要关注的视野方向上的危险障碍物,是否位于所述初始视野范围内;如果所述需要关注的视野方向上的危险障碍物均位于所述初始视野范围内,则不调整所述初始视野范围;否则调整所述需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内。Specifically, the adjustment process of the visual field range may be: determining whether the dangerous obstacle in the visual field direction that the user needs to pay attention to is located in the initial visual field; if the dangerous obstacle in the visual field direction that needs attention is located in the In the initial field of view, the initial field of view is not adjusted; otherwise, the initial field of view of the field of view that needs to be focused is adjusted so that the dangerous obstacle is within the adjusted field of view.
作为一种示例,用户需要关注的视野方向可以是车辆前后左右四个方向;或者,可以由用户根据自身需求设置需要关注的视野方向,例如用户更希望查看车辆后方的景象,则可将车辆后方设置为需要关注的视野方向;或者,还可以结合车辆的行驶方向,确定需要关注的视野方向,例如,当车辆倒车时,需要关注的视野方向可以包括:车辆左侧、右侧以及后方;当车辆前进时,需要关注的视野方向可以包括:车辆左侧、右侧以及前方。As an example, the direction of the visual field that the user needs to pay attention to may be four directions of the front, rear, left, and right of the vehicle; or, the user may set the visual field direction that needs attention according to the needs of the user. For example, if the user prefers to view the rear view of the vehicle, the rear of the vehicle may be Set to the direction of the field of view that needs attention; or, in combination with the direction of travel of the vehicle, determine the direction of the field of view that needs attention. For example, when the vehicle is backing up, the direction of the field of view that needs attention may include: left, right, and rear of the vehicle; When the vehicle is moving forward, the direction of view that needs attention may include: the left side, the right side, and the front side of the vehicle.
作为一种示例,可以通过车辆档位,确定车辆的行驶方向,本公开方案对此可不做具体限定。As an example, the traveling direction of the vehicle can be determined by the vehicle gear position, which is not specifically limited in the disclosure.
举例来说,当车辆倒车时,调整需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内,可以体现为:For example, when the vehicle is reversing, adjust the initial field of view of the field of view that needs attention, so that the dangerous obstacle is located within the adjusted field of view, which can be reflected as:
如果车辆左侧的危险障碍物超出初始左视野范围,则调整初始左视野范围,使车辆左侧的危险障碍物位于调整后左视野范围内;If the dangerous obstacle on the left side of the vehicle exceeds the initial left-view range, adjust the initial left-view range so that the dangerous obstacle on the left side of the vehicle is within the adjusted left-view range;
如果车辆右侧的危险障碍物超出初始右视野范围,则调整初始右视野范围,使车辆右侧的危险障碍物位于调整后右视野范围内;If the dangerous obstacle on the right side of the vehicle exceeds the initial right field of view, adjust the initial right field of view so that the dangerous obstacle on the right side of the vehicle is within the adjusted right field of view;
如果车辆后方的危险障碍物超出初始后视野范围,则调整初始后视野范围,使车辆后方的危险障碍物位于调整后后视野范围内。If the dangerous obstacle behind the vehicle exceeds the initial rear view range, adjust the initial rear view range so that the dangerous obstacle behind the vehicle is within the adjusted rear view range.
也就是说,全景图的调整后视野范围可以为:In other words, the adjusted field of view of the panorama can be:
对于调整后左视野范围dl 1来说,若位于车辆左侧的危险障碍物未超过dl 0,则dl 1=dl 0;否则
Figure PCTCN2018104419-appb-000019
例如,
For the adjusted left-view range dl 1 , if the dangerous obstacle on the left side of the vehicle does not exceed dl 0 , then dl 1 = dl 0 ; otherwise
Figure PCTCN2018104419-appb-000019
E.g,
Figure PCTCN2018104419-appb-000020
Figure PCTCN2018104419-appb-000020
对于调整后右视野范围dr 1来说,若位于车辆右侧的危险障碍物未超过dr 0,则dr 1=dr 0;否则
Figure PCTCN2018104419-appb-000021
例如,
For the adjusted right-view range dr 1 , if the dangerous obstacle on the right side of the vehicle does not exceed dr 0 , then dr 1 =dr 0 ; otherwise
Figure PCTCN2018104419-appb-000021
E.g,
Figure PCTCN2018104419-appb-000022
Figure PCTCN2018104419-appb-000022
对于调整后后视野范围db 1来说,若位于车辆后方的危险障碍物未超过db 0,则db 1=db 0;否则
Figure PCTCN2018104419-appb-000023
例如,
For the adjusted rear field of view range db 1 , if the dangerous obstacle located behind the vehicle does not exceed db 0 , then db 1 =db 0 ; otherwise
Figure PCTCN2018104419-appb-000023
E.g,
Figure PCTCN2018104419-appb-000024
Figure PCTCN2018104419-appb-000024
对于调整后前视野范围df 1来说,用户倒车时不需要过多关注前视野范围的信息,故调整后前视野范围可以为df 1≥df 0。例如,df 1=df 0For the adjusted front field of view range df 1 , the user does not need to pay much attention to the information of the front field of view when reversing, so the adjusted front field of view can be df 1 ≥df 0 . For example, df 1 =df 0 .
举例来说,当车辆前进时,调整需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内,可以体现为:For example, when the vehicle is moving forward, adjust the initial field of view of the field of view that needs attention, so that the dangerous obstacle is located within the adjusted field of view, which can be embodied as:
如果车辆左侧的危险障碍物超出初始左视野范围,则调整初始左视野范围,使车辆左侧的危险障碍物位于调整后左视野范围内;If the dangerous obstacle on the left side of the vehicle exceeds the initial left-view range, adjust the initial left-view range so that the dangerous obstacle on the left side of the vehicle is within the adjusted left-view range;
如果车辆右侧的危险障碍物超出初始右视野范围,则调整初始右视野范围,使车辆右侧的危险障碍物位于调整后右视野范围内;If the dangerous obstacle on the right side of the vehicle exceeds the initial right field of view, adjust the initial right field of view so that the dangerous obstacle on the right side of the vehicle is within the adjusted right field of view;
如果车辆前方的危险障碍物超出初始前视野范围,则调整初始前视野范围,使车辆前方的危险障碍物位于调整后前视野范围内。If the dangerous obstacle in front of the vehicle exceeds the initial front field of view, adjust the initial front field of view so that the dangerous obstacle in front of the vehicle is within the adjusted front field of view.
也就是说,全景图的调整后视野范围可以为:In other words, the adjusted field of view of the panorama can be:
调整后左视野范围dl 1、调整后右视野范围dr 1与车辆倒车时相同,具体可参见上文所做介绍,此处不再赘述。 The adjusted left-view range dl 1 and the adjusted right-view range dr 1 are the same as when the vehicle is reversed. For details, refer to the above description, and details are not described here.
对于调整后前视野范围df 1来说,若位于车辆前方的危险障碍物未超过df 0,则df 1=df 0;否则
Figure PCTCN2018104419-appb-000025
例如,
For the adjusted front field of view range df 1 , if the dangerous obstacle located in front of the vehicle does not exceed df 0 , then df 1 =df 0 ; otherwise
Figure PCTCN2018104419-appb-000025
E.g,
Figure PCTCN2018104419-appb-000026
Figure PCTCN2018104419-appb-000026
对于调整后后视野范围db 1来说,车辆前进时不需要过多关注后视野范围的信息,故调整后后视野范围可以为db 1≥db 0。例如,db 1=db 0For the adjusted rear view range db 1 , the vehicle does not need to pay much attention to the information of the rear view range when the vehicle advances, so the adjusted rear view range can be db 1 ≥ db 0 . For example, db 1 =db 0 .
可以理解地,上文公式中,Understandably, in the above formula,
|min(x)|表示危险障碍物相对车辆的位置信息中X轴最小值的绝对值;|min(x)| represents the absolute value of the minimum value of the X-axis in the position information of the dangerous obstacle relative to the vehicle;
|max(x)|表示危险障碍物相对车辆的位置信息中X轴最大值的绝对值;|max(x)| represents the absolute value of the maximum value of the X-axis in the position information of the dangerous obstacle relative to the vehicle;
|min(y)|表示危险障碍物相对车辆的位置信息中Y轴最小值的绝对值;|min(y)| represents the absolute value of the minimum value of the Y-axis in the position information of the dangerous obstacle relative to the vehicle;
|max(y)|表示危险障碍物相对车辆的位置信息中Y轴最大值的绝对值。|max(y)| indicates the absolute value of the maximum value of the Y-axis in the position information of the dangerous obstacle relative to the vehicle.
作为一种示例,在进行全景图生成时,理论上视野范围可以达到无穷远,即不限定全景图的最大视野范围,但考虑到实际应用过程中,通过摄像头采集的图像数据获取障碍物信息时,由于摄像头清晰程度不同,远处的障碍物像素拉伸到全景图上可能会变的较为模糊,呈现给用户查看的效果较差。针对于此,为了保证全景图的整体视觉效果,在不影响全景图展示有价值信息的前提下,本公开方案还可以预设一个全景图的最大视野范围,可以包括:最大前视野范围df max、最大后视野范围db max、最大左视野范围dl max、 最大右视野范围dr maxAs an example, when performing panorama generation, the theoretical field of view can reach infinity, that is, the maximum field of view of the panorama is not limited, but in consideration of the actual application process, when the obstacle data information is acquired by the image data collected by the camera Due to the different degree of clarity of the camera, the obstacle pixels in the distance may be blurred to the panorama, and the effect presented to the user is poor. To this end, in order to ensure the overall visual effect of the panorama, the present disclosure may also preset a maximum field of view of a panorama without affecting the panoramic view to display valuable information, which may include: a maximum front field of view range df max The maximum back visual field range db max , the maximum left visual field range dl max , and the maximum right visual field range dr max .
作为一种示例,最大视野范围可以满足以下条件:As an example, the maximum field of view can satisfy the following conditions:
举例来说,最大前视野范围可以设置为l car≤df max≤2.5×l car,例如,df max=1.5×l car,本公开方案对此可不做具体限定。 For example, the maximum field of view may be provided before l car ≤df max ≤2.5 × l car , e.g., df max = 1.5 × l car , this embodiment of the present disclosure may be not particularly limited.
举例来说,最大后视野范围可以设置为l car≤db max≤2.5×l car,例如,db max=1.5×l car,本公开方案对此可不做具体限定。 For example, the maximum field of view can be set to l car ≤db max ≤2.5 × l car , e.g., db max = 1.5 × l car , this embodiment of the present disclosure may be not particularly limited.
举例来说,最大左视野范围可以设置为1.5×l car≤dl max≤3×l car,例如,dl max=2×l car,本公开方案对此可不做具体限定。 For example, the maximum left-view range may be set to 1.5 × l car ≤dl max ≤3 × l car, for example, dl max = 2 × l car , this embodiment of the present disclosure may be not particularly limited.
举例来说,最大右视野范围可以设置为1.5×l car≤dr max≤3×l car,例如,dr max=2×l car,本公开方案对此可不做具体限定。 For example, the maximum right-view range may be set to 1.5×1 car ≤dr max ≤3×l car , for example, dr max =2×l car , which is not specifically limited in the present disclosure.
对应于此,本公开方案中全景图的调整后视野范围可以不大于最大视野范围。Corresponding to this, the adjusted field of view of the panorama in the present disclosure may be no larger than the maximum field of view.
举例来说,当车辆倒车时,全景图的调整后视野范围可以为:For example, when the vehicle is backing up, the adjusted field of view of the panorama can be:
若位于车辆左侧的危险障碍物超过dl 0,则
Figure PCTCN2018104419-appb-000027
例如,调整后左视野范围具体为:
If the dangerous obstacle on the left side of the vehicle exceeds dl 0 , then
Figure PCTCN2018104419-appb-000027
For example, the adjusted left field of view is specifically:
Figure PCTCN2018104419-appb-000028
Figure PCTCN2018104419-appb-000028
若位于车辆右侧的危险障碍物超过dr 0,则
Figure PCTCN2018104419-appb-000029
例如,调整后右视野范围具体为:
If the dangerous obstacle on the right side of the vehicle exceeds dr 0 , then
Figure PCTCN2018104419-appb-000029
For example, the adjusted right field of view is specifically:
Figure PCTCN2018104419-appb-000030
Figure PCTCN2018104419-appb-000030
若位于车辆后方的危险障碍物超过db 0,则
Figure PCTCN2018104419-appb-000031
例如,调整后后视野范围具体为:
If the dangerous obstacle behind the vehicle exceeds db 0 , then
Figure PCTCN2018104419-appb-000031
For example, after adjustment, the field of view is specifically:
Figure PCTCN2018104419-appb-000032
Figure PCTCN2018104419-appb-000032
调整后前视野范围可以为df max≥df 1≥df 0。例如,调整后前视野范围具体为:df 1=df 0The adjusted front field of view may be df max ≥df 1 ≥df 0 . For example, the adjusted front field of view is specifically: df 1 =df 0 .
举例来说,当车辆前进时,全景图的调整后视野范围可以为:For example, when the vehicle is moving forward, the adjusted field of view of the panorama can be:
调整后左视野范围dl 1、调整后右视野范围dr 1与车辆倒车时相同,具体可参见上文所做介绍,此处不再赘述。 The adjusted left-view range dl 1 and the adjusted right-view range dr 1 are the same as when the vehicle is reversed. For details, refer to the above description, and details are not described here.
若位于车辆前方的危险障碍物超过df 0,则
Figure PCTCN2018104419-appb-000033
例如,调整后前视野范围具体为:
If the dangerous obstacle in front of the vehicle exceeds df 0 , then
Figure PCTCN2018104419-appb-000033
For example, the adjusted front field of view is specifically:
Figure PCTCN2018104419-appb-000034
Figure PCTCN2018104419-appb-000034
调整后后视野范围可以为db max≥db 1≥db 0。例如,调整后后视野范围具体为:db 1=db 0After adjustment, the field of view can be db max ≥ db 1 ≥ db 0 . For example, after adjustment, the field of view is specifically: db 1 = db 0 .
综上,相对于现有技术仅通过四张鱼眼图像进行单应性变换,生成固定视野范围的全景图,本公开方案可以灵活调整视野范围,生成可变视野范围的全景图,该可变视野范围的全景图能更好的向用户展示与当前驾驶行为相关的信息,提高全景图在实际驾驶过程中的可用性,尽量降低依赖全景系统的用户发生安全事故的可能性。In summary, compared with the prior art, the homography transformation is performed only by four fisheye images to generate a panoramic view of a fixed visual field range, and the disclosed solution can flexibly adjust the visual field range to generate a panoramic view of the variable visual field range, and the variable The panoramic view of the field of view can better show the user the information related to the current driving behavior, improve the usability of the panorama during the actual driving process, and minimize the possibility of a safety accident caused by the user who relies on the panoramic system.
作为一种示例,全景图能更好的展示与当前驾驶行为相关的信息指的是,尽量减少对当前驾驶行为没有参考价值的冗余信息,和/或尽量增加对当前驾驶行为有参考价值的障碍物信息。As an example, a panorama that better displays information related to current driving behavior refers to minimizing redundant information that has no reference value to current driving behavior, and/or maximizing reference to current driving behavior. Obstacle information.
参见图10,示出了本公开全景图的视野调整装置的构成示意图。所述装置可以包括:Referring to Fig. 10, there is shown a schematic configuration diagram of a field of view adjusting device of the panoramic view of the present disclosure. The device can include:
危险障碍物确定模块301,用于确定出车辆周围的危险障碍物;a dangerous obstacle determination module 301, configured to determine a dangerous obstacle around the vehicle;
初始视野范围确定模块302,用于确定出全景图的初始视野范围;An initial field of view range determining module 302, configured to determine an initial field of view of the panorama;
调整后视野范围确定模块303,用于根据所述初始视野范围、以及所述危险障碍物相对所述车辆的位置信息,确定出所述全景图的调整后视野范围,所述调整后视野范围包括所述危险障碍物。The adjusted visual field range determining module 303 is configured to determine an adjusted visual field range of the panoramic image according to the initial visual field range and the position information of the dangerous obstacle relative to the vehicle, where the adjusted visual field range includes The dangerous obstacle.
可选地,所述危险障碍物确定模块301包括:Optionally, the dangerous obstacle determination module 301 includes:
碰撞距离和时间得到模块,用于根据车辆的行驶数据以及车辆周围障碍物的障碍物信息,得到各障碍物与所述车辆之间的碰撞距离s以及碰撞时间t;a collision distance and time obtaining module, configured to obtain a collision distance s and a collision time t between each obstacle and the vehicle according to the driving data of the vehicle and the obstacle information of the obstacle around the vehicle;
危险障碍物确定子模块,用于将碰撞距离s小于预设距离s 0的障碍物,和/或碰撞时间t小于预设时间t 0的障碍物,确定为所述危险障碍物。 The dangerous obstacle determination sub-module is configured to determine an obstacle that has a collision distance s smaller than the preset distance s 0 and/or an obstacle whose collision time t is less than the preset time t 0 as the dangerous obstacle.
可选地,所述碰撞距离和时间得到模块,用于根据所述行驶数据,确定出所述车辆的通行区域;根据所述通行区域以及所述障碍物信息,得到各障碍物与所述车辆之间的碰撞距离s以及碰撞时间t。Optionally, the collision distance and time obtaining module is configured to determine a traffic area of the vehicle according to the driving data; and obtain each obstacle and the vehicle according to the traffic area and the obstacle information. The collision distance s between and the collision time t.
可选地,所述装置还包括:Optionally, the device further includes:
障碍物信息获取模块,用于通过摄像头采集车身周围的图像数据;针对所述图像数据进行障碍物检测,得到所述车辆周围障碍物的障碍物信息;和/或,通过雷达采集所述车辆周围障碍物的障碍物信息。An obstacle information acquiring module, configured to collect image data around the vehicle body through the camera; perform obstacle detection on the image data to obtain obstacle information of the obstacle around the vehicle; and/or collect the surrounding of the vehicle by radar Obstacle information for obstacles.
可选地,所述初始视野范围确定模块302,用于根据预设的固定视野范围,确定所述全景图的初始视野范围;或者,根据所述车辆的方向盘转角,确定所述全景图的初始视野范围。Optionally, the initial field of view range determining module 302 is configured to determine an initial field of view of the panorama according to a preset fixed field of view; or determine an initial of the panorama according to a steering wheel angle of the vehicle. visual field.
可选地,如果以车身中心作为原点,车身横向向右作为X轴正方向,车身纵向朝车头方向作为Y轴正方向,建立坐标系,则所述根据所述车辆的方向盘转角,确定所述全景图的初始视野范围,包括:Optionally, if the vehicle body center is used as the origin, the vehicle body is laterally oriented to the right as the positive X-axis direction, and the vehicle body is longitudinally oriented toward the front of the vehicle head as the positive direction of the Y-axis, and a coordinate system is established, then the steering wheel angle is determined according to the vehicle. The initial field of view of the panorama, including:
初始前视野范围df 0、初始后视野范围db 0、初始左视野范围dl 0、初始右视野范围 dr 0满足以下关系: The initial front visual field range df 0 , the initial rear visual field range db 0 , the initial left visual field range dl 0 , and the initial right visual field range dr 0 satisfy the following relationship:
df 0+db 0+l car≥h min Df 0 +db 0 +l car ≥h min
dr 0+dl 0+w car≥w min Dr 0 +dl 0 +w car ≥w min
基于所述车辆的方向盘转角,能够得到dr 0或者dl 0Based on the steering wheel angle of the vehicle, dr 0 or dl 0 can be obtained:
Figure PCTCN2018104419-appb-000035
Figure PCTCN2018104419-appb-000035
Figure PCTCN2018104419-appb-000036
Figure PCTCN2018104419-appb-000036
其中,h min表示在所述最小视野范围时,全景图覆盖的纵向长度;w min表示在所述最小视野范围时,全景图覆盖的横向宽度;l car表示车辆的长度;w car表示车辆的宽度;p表示可调节参数;
Figure PCTCN2018104419-appb-000037
表示车前轮转向角,由所述方向盘转角计算得到。
Where h min represents the longitudinal length covered by the panorama when the minimum field of view is included; w min represents the lateral width of the panorama coverage when the minimum field of view is included; l car represents the length of the vehicle; w car represents the vehicle Width; p represents an adjustable parameter;
Figure PCTCN2018104419-appb-000037
The steering angle of the front wheel is calculated from the steering wheel angle.
可选地,所述调整后视野范围确定模块303,用于判断用户需要关注的视野方向上的危险障碍物,是否位于所述初始视野范围内;如果所述需要关注的视野方向上的危险障碍物均位于所述初始视野范围内,则不调整所述初始视野范围;否则调整所述需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内。Optionally, the adjusted visual field range determining module 303 is configured to determine whether a dangerous obstacle in a visual field direction that the user needs to pay attention to is located in the initial visual field; if the dangerous visual direction in the visual field direction that needs attention If the object is located within the initial field of view, the initial field of view is not adjusted; otherwise, the initial field of view of the field of view that needs to be focused is adjusted so that the dangerous obstacle is located within the adjusted field of view.
可选地,当所述车辆倒车时,所述需要关注的视野方向包括车辆左侧、右侧以及后方,所述调整所述需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内,包括:Optionally, when the vehicle is backing up, the direction of the visual field to be concerned includes a left side, a right side, and a rear side of the vehicle, and the initial visual field range of the visual field direction that needs attention is adjusted, so that the dangerous obstacle is located after the adjustment Within the field of view, including:
如果车辆左侧的危险障碍物超出初始左视野范围,则调整所述初始左视野范围,使车辆左侧的危险障碍物位于调整后左视野范围内;If the dangerous obstacle on the left side of the vehicle exceeds the initial left-view range, adjust the initial left-view range so that the dangerous obstacle on the left side of the vehicle is within the adjusted left-view range;
如果车辆右侧的危险障碍物超出初始右视野范围,则调整所述初始右视野范围,使车辆右侧的危险障碍物位于调整后右视野范围内;If the dangerous obstacle on the right side of the vehicle exceeds the initial right field of view, adjust the initial right field of view so that the dangerous obstacle on the right side of the vehicle is within the adjusted right field of view;
如果车辆后方的危险障碍物超出初始后视野范围,则调整所述初始后视野范围,使车辆后方的危险障碍物位于调整后后视野范围内;If the dangerous obstacle behind the vehicle exceeds the initial rear view range, the initial rear view range is adjusted so that the dangerous obstacle behind the vehicle is located within the adjusted rear view range;
或者,or,
当所述车辆前进时,所述需要关注的视野方向包括车辆左侧、右侧以及前方,所述调整所述需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内,包括:When the vehicle is moving forward, the visual field direction that needs to be concerned includes a left side, a right side, and a front side of the vehicle, and the initial visual field range of the visual field direction that needs attention is adjusted, so that the dangerous obstacle is located within the adjusted visual field range. include:
如果车辆左侧的危险障碍物超出初始左视野范围,则调整所述初始左视野范围,使车辆左侧的危险障碍物位于调整后左视野范围内;If the dangerous obstacle on the left side of the vehicle exceeds the initial left-view range, adjust the initial left-view range so that the dangerous obstacle on the left side of the vehicle is within the adjusted left-view range;
如果车辆右侧的危险障碍物超出初始右视野范围,则调整所述初始右视野范围,使车辆右侧的危险障碍物位于调整后右视野范围内;If the dangerous obstacle on the right side of the vehicle exceeds the initial right field of view, adjust the initial right field of view so that the dangerous obstacle on the right side of the vehicle is within the adjusted right field of view;
如果车辆前方的危险障碍物超出初始前视野范围,则调整所述初始前视野范围,使车辆前方的危险障碍物位于调整后前视野范围内。If the dangerous obstacle in front of the vehicle exceeds the initial front field of view, the initial front field of view is adjusted such that the dangerous obstacle in front of the vehicle is within the adjusted front field of view.
可选地,如果预设有最大视野范围,则所述全景图的调整后视野范围不大于所述最大视野范围。Optionally, if the maximum field of view is pre-set, the adjusted field of view of the panorama is not greater than the maximum field of view.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。With regard to the apparatus in the above embodiments, the specific manner in which the respective modules perform the operations has been described in detail in the embodiment relating to the method, and will not be explained in detail herein.
参见图11,示出了本公开用于进行全景图的视野调整的电子设备400的结构示意图。电子设备400至少可以包括处理器401和存储介质402,作为一种示例,处理器401和 存储介质402可以通过总线或其它方式连接,图11所示以通过总线连接为例。处理器401的数量可以为一个或者多个,图11所示以一个处理器为例。存储介质402所代表的存储设备资源,用于存储可由处理器401执行的指令,例如应用程序。此外,处理器401可以被配置为加载存储介质中的指令,以执行上述全景图的视野调整方法。Referring to FIG. 11, a schematic structural diagram of an electronic device 400 for performing field of view adjustment of a panoramic view of the present disclosure is shown. The electronic device 400 may include at least a processor 401 and a storage medium 402. As an example, the processor 401 and the storage medium 402 may be connected by a bus or other means, as shown in Fig. 11 by way of a bus connection. The number of processors 401 may be one or more, and one processor is taken as an example in FIG. A storage device resource represented by storage medium 402 for storing instructions executable by processor 401, such as an application. Moreover, the processor 401 can be configured to load instructions in the storage medium to perform the field of view adjustment method of the above-described panorama.
以上结合附图详细描述了本公开的优选实施方式,但是,本公开并不限于上述实施方式中的具体细节,在本公开的技术构思范围内,可以对本公开的技术方案进行多种简单变型,这些简单变型均属于本公开的保护范围。The preferred embodiments of the present disclosure have been described in detail above with reference to the accompanying drawings. However, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications can be made to the technical solutions of the present disclosure within the scope of the technical idea of the present disclosure. These simple variations are all within the scope of the disclosure.
另外需要说明的是,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合,为了避免不必要的重复,本公开对各种可能的组合方式不再另行说明。It should be further noted that the specific technical features described in the above specific embodiments may be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure is applicable to various possibilities. The combination method will not be described separately.
此外,本公开的各种不同的实施方式之间也可以进行任意组合,只要其不违背本公开的思想,其同样应当视为本公开所公开的内容。In addition, any combination of various embodiments of the present disclosure may be made as long as it does not deviate from the idea of the present disclosure, and should also be regarded as the disclosure of the present disclosure.

Claims (20)

  1. 一种全景图的视野调整方法,其中,所述方法包括:A method for adjusting a field of view of a panorama, wherein the method comprises:
    确定出车辆周围的危险障碍物以及全景图的初始视野范围;Identify dangerous obstacles around the vehicle and the initial field of view of the panorama;
    根据所述初始视野范围、以及所述危险障碍物相对所述车辆的位置信息,确定出所述全景图的调整后视野范围,所述调整后视野范围包括所述危险障碍物。And determining an adjusted visual field range of the panoramic image according to the initial visual field range and the position information of the dangerous obstacle relative to the vehicle, the adjusted visual field range including the dangerous obstacle.
  2. 根据权利要求1所述的方法,其中,所述确定出车辆周围的危险障碍物,包括:The method of claim 1 wherein said determining a dangerous obstacle around the vehicle comprises:
    根据车辆的行驶数据以及车辆周围障碍物的障碍物信息,得到各障碍物与所述车辆之间的碰撞距离s以及碰撞时间t;Obtaining a collision distance s between each obstacle and the vehicle and a collision time t according to the driving data of the vehicle and the obstacle information of the obstacle around the vehicle;
    将碰撞距离s小于预设距离s 0的障碍物,和/或碰撞时间t小于预设时间t 0的障碍物,确定为所述危险障碍物。 An obstacle having a collision distance s smaller than the preset distance s 0 and/or an obstacle having a collision time t smaller than the preset time t 0 is determined as the dangerous obstacle.
  3. 根据权利要求2所述的方法,其中,所述根据车辆的行驶数据以及车辆周围障碍物的障碍物信息,得到各障碍物与所述车辆之间的碰撞距离s以及碰撞时间t,包括:The method according to claim 2, wherein the collision distance s and the collision time t between each obstacle and the vehicle are obtained according to the driving data of the vehicle and the obstacle information of the obstacle around the vehicle, including:
    根据所述行驶数据,确定出所述车辆的通行区域;Determining a traffic area of the vehicle according to the driving data;
    根据所述通行区域以及所述障碍物信息,得到各障碍物与所述车辆之间的碰撞距离s以及碰撞时间t。Based on the passing area and the obstacle information, a collision distance s between each obstacle and the vehicle and a collision time t are obtained.
  4. 根据权利要求2或3所述的方法,其中,获取所述障碍物信息的方式为:The method according to claim 2 or 3, wherein the manner of acquiring the obstacle information is:
    通过摄像头采集车身周围的图像数据;针对所述图像数据进行障碍物检测,得到所述车辆周围障碍物的障碍物信息;Collecting image data around the vehicle body through the camera; performing obstacle detection on the image data to obtain obstacle information of the obstacle around the vehicle;
    和/或,and / or,
    通过雷达采集所述车辆周围障碍物的障碍物信息。Obstacle information of obstacles around the vehicle is collected by radar.
  5. 根据权利要求1所述的方法,其中,所述确定出全景图的初始视野范围,包括:The method of claim 1 wherein said determining an initial field of view of the panorama comprises:
    根据预设的固定视野范围,确定所述全景图的初始视野范围;或者,Determining an initial field of view of the panorama according to a preset fixed field of view; or
    根据所述车辆的方向盘转角,确定所述全景图的初始视野范围。An initial field of view of the panorama is determined based on a steering wheel angle of the vehicle.
  6. 根据权利要求5所述的方法,其中,如果以车身中心作为原点,车身横向向右作为X轴正方向,车身纵向朝车头方向作为Y轴正方向,建立坐标系,则所述根据所述车辆的方向盘转角,确定所述全景图的初始视野范围,包括:The method according to claim 5, wherein the vehicle body is used as an origin, the vehicle body is laterally oriented to the right as the positive X-axis direction, and the vehicle body is longitudinally oriented toward the front of the vehicle as the positive direction of the Y-axis, and a coordinate system is established. The steering wheel angle determines the initial field of view of the panorama, including:
    初始前视野范围df 0、初始后视野范围db 0、初始左视野范围dl 0、初始右视野范围dr 0满足以下关系: The initial front visual field range df 0 , the initial rear visual field range db 0 , the initial left visual field range dl 0 , and the initial right visual field range dr 0 satisfy the following relationship:
    df 0+db 0+l car≥h min Df 0 +db 0 +l car ≥h min
    dr 0+dl 0+w car≥w min Dr 0 +dl 0 +w car ≥w min
    基于所述车辆的方向盘转角,能够得到dr 0或者dl 0Based on the steering wheel angle of the vehicle, dr 0 or dl 0 can be obtained:
    Figure PCTCN2018104419-appb-100001
    Figure PCTCN2018104419-appb-100001
    Figure PCTCN2018104419-appb-100002
    Figure PCTCN2018104419-appb-100002
    其中,h min表示在所述最小视野范围时,全景图覆盖的纵向长度;w min表示在所述最小视野范围时,全景图覆盖的横向宽度;l car表示车辆的长度;w car表示车辆的宽度;p表示可调节参数;
    Figure PCTCN2018104419-appb-100003
    表示车前轮转向角,由所述方向盘转角计算得到。
    Where h min represents the longitudinal length covered by the panorama when the minimum field of view is included; w min represents the lateral width of the panorama coverage when the minimum field of view is included; l car represents the length of the vehicle; w car represents the vehicle Width; p represents an adjustable parameter;
    Figure PCTCN2018104419-appb-100003
    The steering angle of the front wheel is calculated from the steering wheel angle.
  7. 根据权利要求1所述的方法,其中,所述根据所述初始视野范围、以及所述危险障碍物相对所述车辆的位置信息,确定出所述全景图的调整后视野范围,包括:The method according to claim 1, wherein the determining the adjusted visual field range of the panoramic image according to the initial visual field range and the position information of the dangerous obstacle relative to the vehicle comprises:
    判断用户需要关注的视野方向上的危险障碍物,是否位于所述初始视野范围内;Determining whether a dangerous obstacle in the direction of the visual field that the user needs to pay attention to is located within the initial visual field;
    如果所述需要关注的视野方向上的危险障碍物均位于所述初始视野范围内,则不调整所述初始视野范围;否则调整所述需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内。If the dangerous obstacle in the direction of the field of view that needs attention is located within the initial field of view, the initial field of view is not adjusted; otherwise, the initial field of view of the field of view that needs attention is adjusted, so that the dangerous obstacle is located Adjusted within the field of view.
  8. 根据权利要求7所述的方法,其中,The method of claim 7 wherein
    当所述车辆倒车时,所述需要关注的视野方向包括车辆左侧、右侧以及后方,所述调整所述需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内,包括:When the vehicle is reversed, the direction of the field of view that needs to be concerned includes the left side, the right side, and the rear of the vehicle, and the initial field of view of the field of view direction that needs to be focused is adjusted, so that the dangerous obstacle is located within the adjusted field of view. include:
    如果车辆左侧的危险障碍物超出初始左视野范围,则调整所述初始左视野范围,使车辆左侧的危险障碍物位于调整后左视野范围内;If the dangerous obstacle on the left side of the vehicle exceeds the initial left-view range, adjust the initial left-view range so that the dangerous obstacle on the left side of the vehicle is within the adjusted left-view range;
    如果车辆右侧的危险障碍物超出初始右视野范围,则调整所述初始右视野范围,使车辆右侧的危险障碍物位于调整后右视野范围内;If the dangerous obstacle on the right side of the vehicle exceeds the initial right field of view, adjust the initial right field of view so that the dangerous obstacle on the right side of the vehicle is within the adjusted right field of view;
    如果车辆后方的危险障碍物超出初始后视野范围,则调整所述初始后视野范围,使车辆后方的危险障碍物位于调整后后视野范围内;If the dangerous obstacle behind the vehicle exceeds the initial rear view range, the initial rear view range is adjusted so that the dangerous obstacle behind the vehicle is located within the adjusted rear view range;
    或者,or,
    当所述车辆前进时,所述需要关注的视野方向包括车辆左侧、右侧以及前方,所述调整所述需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内,包括:When the vehicle is moving forward, the visual field direction that needs to be concerned includes a left side, a right side, and a front side of the vehicle, and the initial visual field range of the visual field direction that needs attention is adjusted, so that the dangerous obstacle is located within the adjusted visual field range. include:
    如果车辆左侧的危险障碍物超出初始左视野范围,则调整所述初始左视野范围,使车辆左侧的危险障碍物位于调整后左视野范围内;If the dangerous obstacle on the left side of the vehicle exceeds the initial left-view range, adjust the initial left-view range so that the dangerous obstacle on the left side of the vehicle is within the adjusted left-view range;
    如果车辆右侧的危险障碍物超出初始右视野范围,则调整所述初始右视野范围,使车辆右侧的危险障碍物位于调整后右视野范围内;If the dangerous obstacle on the right side of the vehicle exceeds the initial right field of view, adjust the initial right field of view so that the dangerous obstacle on the right side of the vehicle is within the adjusted right field of view;
    如果车辆前方的危险障碍物超出初始前视野范围,则调整所述初始前视野范围,使车辆前方的危险障碍物位于调整后前视野范围内。If the dangerous obstacle in front of the vehicle exceeds the initial front field of view, the initial front field of view is adjusted such that the dangerous obstacle in front of the vehicle is within the adjusted front field of view.
  9. 根据权利要求7或8所述的方法,其中,如果预设有最大视野范围,则所述全景图的调整后视野范围不大于所述最大视野范围。The method according to claim 7 or 8, wherein if the maximum field of view is pre-set, the adjusted field of view of the panorama is not greater than the maximum field of view.
  10. 一种全景图的视野调整装置,其中,所述装置包括:A panoramic field of view adjusting device, wherein the device comprises:
    危险障碍物确定模块,用于确定出车辆周围的危险障碍物;a dangerous obstacle determination module for determining a dangerous obstacle around the vehicle;
    初始视野范围确定模块,用于确定出全景图的初始视野范围;An initial field of view range determining module for determining an initial field of view of the panorama;
    调整后视野范围确定模块,用于根据所述初始视野范围、以及所述危险障碍物相对所述车辆的位置信息,确定出所述全景图的调整后视野范围,所述调整后视野范围包括所述危险障碍物。The adjusted visual field range determining module is configured to determine an adjusted visual field range of the panoramic image according to the initial visual field range and the position information of the dangerous obstacle relative to the vehicle, where the adjusted visual field range includes A dangerous obstacle.
  11. 根据权利要求10所述的装置,其中,所述危险障碍物确定模块包括:The apparatus of claim 10, wherein the dangerous obstacle determination module comprises:
    碰撞距离和时间得到模块,用于根据车辆的行驶数据以及车辆周围障碍物的障碍物信息,得到各障碍物与所述车辆之间的碰撞距离s以及碰撞时间t;a collision distance and time obtaining module, configured to obtain a collision distance s and a collision time t between each obstacle and the vehicle according to the driving data of the vehicle and the obstacle information of the obstacle around the vehicle;
    危险障碍物确定子模块,用于将碰撞距离s小于预设距离s 0的障碍物,和/或碰撞时间t小于预设时间t 0的障碍物,确定为所述危险障碍物。 The dangerous obstacle determination sub-module is configured to determine an obstacle that has a collision distance s smaller than the preset distance s 0 and/or an obstacle whose collision time t is less than the preset time t 0 as the dangerous obstacle.
  12. 根据权利要求11所述的装置,其中,The apparatus according to claim 11, wherein
    所述碰撞距离和时间得到模块,用于根据所述行驶数据,确定出所述车辆的通行区域;根据所述通行区域以及所述障碍物信息,得到各障碍物与所述车辆之间的碰撞距离s以及碰撞时间t。The collision distance and time obtaining module is configured to determine a traffic area of the vehicle according to the driving data; and obtain a collision between each obstacle and the vehicle according to the traffic area and the obstacle information Distance s and collision time t.
  13. 根据权利要求11或12所述的装置,其中,所述装置还包括:The device according to claim 11 or 12, wherein the device further comprises:
    障碍物信息获取模块,用于通过摄像头采集车身周围的图像数据;针对所述图像数据进行障碍物检测,得到所述车辆周围障碍物的障碍物信息;和/或,通过雷达采集所述车辆周围障碍物的障碍物信息。An obstacle information acquiring module, configured to collect image data around the vehicle body through the camera; perform obstacle detection on the image data to obtain obstacle information of the obstacle around the vehicle; and/or collect the surrounding of the vehicle by radar Obstacle information for obstacles.
  14. 根据权利要求10所述的装置,其中,The device according to claim 10, wherein
    所述初始视野范围确定模块,用于根据预设的固定视野范围,确定所述全景图的初始视野范围;或者,根据所述车辆的方向盘转角,确定所述全景图的初始视野范围。The initial field of view range determining module is configured to determine an initial field of view of the panorama according to a preset fixed field of view; or determine an initial field of view of the panorama according to a steering wheel angle of the vehicle.
  15. 根据权利要求14所述的装置,其中,如果以车身中心作为原点,车身横向向右作为X轴正方向,车身纵向朝车头方向作为Y轴正方向,建立坐标系,则所述根据所述车辆的方向盘转角,确定所述全景图的初始视野范围,包括:The apparatus according to claim 14, wherein if the vehicle body center is used as an origin, the vehicle body laterally faces the right direction as the X-axis positive direction, and the vehicle body longitudinally faces the front direction as the Y-axis positive direction to establish a coordinate system, the vehicle is The steering wheel angle determines the initial field of view of the panorama, including:
    初始前视野范围df 0、初始后视野范围db 0、初始左视野范围dl 0、初始右视野范围dr 0满足以下关系: The initial front visual field range df 0 , the initial rear visual field range db 0 , the initial left visual field range dl 0 , and the initial right visual field range dr 0 satisfy the following relationship:
    df 0+db 0+l car≥h min Df 0 +db 0 +l car ≥h min
    dr 0+dl 0+w car≥w min Dr 0 +dl 0 +w car ≥w min
    基于所述车辆的方向盘转角,能够得到dr 0或者dl 0Based on the steering wheel angle of the vehicle, dr 0 or dl 0 can be obtained:
    Figure PCTCN2018104419-appb-100004
    Figure PCTCN2018104419-appb-100004
    Figure PCTCN2018104419-appb-100005
    Figure PCTCN2018104419-appb-100005
    其中,h min表示在所述最小视野范围时,全景图覆盖的纵向长度;w min表示在所述最小视野范围时,全景图覆盖的横向宽度;l car表示车辆的长度;w car表示车辆的宽度;p表示可调节参数;
    Figure PCTCN2018104419-appb-100006
    表示车前轮转向角,由所述方向盘转角计算得到。
    Where h min represents the longitudinal length covered by the panorama when the minimum field of view is included; w min represents the lateral width of the panorama coverage when the minimum field of view is included; l car represents the length of the vehicle; w car represents the vehicle Width; p represents an adjustable parameter;
    Figure PCTCN2018104419-appb-100006
    The steering angle of the front wheel is calculated from the steering wheel angle.
  16. 根据权利要求10所述的装置,其中,The device according to claim 10, wherein
    所述调整后视野范围确定模块,用于判断用户需要关注的视野方向上的危险障碍物,是否位于所述初始视野范围内;如果所述需要关注的视野方向上的危险障碍物均位于所述初始视野范围内,则不调整所述初始视野范围;否则调整所述需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内。The adjusted visual field range determining module is configured to determine whether a dangerous obstacle in a visual field direction that the user needs to pay attention to is located in the initial visual field; if the dangerous obstacle in the visual field direction that needs attention is located in the In the initial field of view, the initial field of view is not adjusted; otherwise, the initial field of view of the field of view to be focused is adjusted so that the dangerous obstacle is within the adjusted field of view.
  17. 根据权利要求16所述的装置,其中,The device according to claim 16, wherein
    当所述车辆倒车时,所述需要关注的视野方向包括车辆左侧、右侧以及后方,所述调整所述需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内,包括:When the vehicle is reversed, the direction of the field of view that needs to be concerned includes the left side, the right side, and the rear of the vehicle, and the initial field of view of the field of view direction that needs to be focused is adjusted, so that the dangerous obstacle is located within the adjusted field of view. include:
    如果车辆左侧的危险障碍物超出初始左视野范围,则调整所述初始左视野范围,使车辆左侧的危险障碍物位于调整后左视野范围内;If the dangerous obstacle on the left side of the vehicle exceeds the initial left-view range, adjust the initial left-view range so that the dangerous obstacle on the left side of the vehicle is within the adjusted left-view range;
    如果车辆右侧的危险障碍物超出初始右视野范围,则调整所述初始右视野范围,使车辆右侧的危险障碍物位于调整后右视野范围内;If the dangerous obstacle on the right side of the vehicle exceeds the initial right field of view, adjust the initial right field of view so that the dangerous obstacle on the right side of the vehicle is within the adjusted right field of view;
    如果车辆后方的危险障碍物超出初始后视野范围,则调整所述初始后视野范围,使车辆后方的危险障碍物位于调整后后视野范围内;If the dangerous obstacle behind the vehicle exceeds the initial rear view range, the initial rear view range is adjusted so that the dangerous obstacle behind the vehicle is located within the adjusted rear view range;
    或者,or,
    当所述车辆前进时,所述需要关注的视野方向包括车辆左侧、右侧以及前方,所述调整所述需要关注的视野方向的初始视野范围,使危险障碍物位于调整后视野范围内,包括:When the vehicle is moving forward, the visual field direction that needs to be concerned includes a left side, a right side, and a front side of the vehicle, and the initial visual field range of the visual field direction that needs attention is adjusted, so that the dangerous obstacle is located within the adjusted visual field range. include:
    如果车辆左侧的危险障碍物超出初始左视野范围,则调整所述初始左视野范围,使车辆左侧的危险障碍物位于调整后左视野范围内;If the dangerous obstacle on the left side of the vehicle exceeds the initial left-view range, adjust the initial left-view range so that the dangerous obstacle on the left side of the vehicle is within the adjusted left-view range;
    如果车辆右侧的危险障碍物超出初始右视野范围,则调整所述初始右视野范围,使车辆右侧的危险障碍物位于调整后右视野范围内;If the dangerous obstacle on the right side of the vehicle exceeds the initial right field of view, adjust the initial right field of view so that the dangerous obstacle on the right side of the vehicle is within the adjusted right field of view;
    如果车辆前方的危险障碍物超出初始前视野范围,则调整所述初始前视野范围,使车辆前方的危险障碍物位于调整后前视野范围内。If the dangerous obstacle in front of the vehicle exceeds the initial front field of view, the initial front field of view is adjusted such that the dangerous obstacle in front of the vehicle is within the adjusted front field of view.
  18. 根据权利要求16或17所述的装置,其中,如果预设有最大视野范围,则所述全景图的调整后视野范围不大于所述最大视野范围。The apparatus according to claim 16 or 17, wherein the adjusted field of view of the panorama is not larger than the maximum field of view if a maximum field of view is pre-set.
  19. 一种存储介质,其中存储有多条指令,其中,所述指令由处理器加载,执行权利要求1至9任一项所述方法的步骤。A storage medium in which a plurality of instructions are stored, wherein the instructions are loaded by a processor to perform the steps of the method of any one of claims 1 to 9.
  20. 一种电子设备,其中,所述电子设备包括;An electronic device, wherein the electronic device includes;
    权利要求19所述的存储介质;以及The storage medium of claim 19;
    处理器,用于执行所述存储介质中的指令。a processor for executing instructions in the storage medium.
PCT/CN2018/104419 2018-04-04 2018-09-06 Method and apparatus for adjusting field of view of panoramic image, storage medium, and electronic device WO2019192145A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810300003.5 2018-04-04
CN201810300003.5A CN108765490B (en) 2018-04-04 2018-04-04 Panorama view adjusting method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
WO2019192145A1 true WO2019192145A1 (en) 2019-10-10

Family

ID=63980925

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/104419 WO2019192145A1 (en) 2018-04-04 2018-09-06 Method and apparatus for adjusting field of view of panoramic image, storage medium, and electronic device

Country Status (2)

Country Link
CN (1) CN108765490B (en)
WO (1) WO2019192145A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112016039A (en) * 2020-08-19 2020-12-01 深圳安智杰科技有限公司 Vehicle passing area construction method and device, electronic equipment and readable storage medium
CN113092133A (en) * 2021-04-07 2021-07-09 冒坚 Ultrasonic radar in-loop automatic driving test method based on Gaussian clustering

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109466449A (en) * 2018-11-21 2019-03-15 北汽福田汽车股份有限公司 Display control method, system and the vehicle of vehicle
CN109743539B (en) * 2018-12-07 2020-05-29 吉林大学 Panoramic driving auxiliary device with adjustable visual field and adjusting method thereof
CN111712827A (en) * 2019-04-30 2020-09-25 深圳市大疆创新科技有限公司 Method, device and system for adjusting observation field, storage medium and mobile device
CN110614951A (en) * 2019-09-25 2019-12-27 的卢技术有限公司 Lens conversion method and system for reconstructing surrounding environment of vehicle
CN111169381A (en) * 2019-10-10 2020-05-19 中国第一汽车股份有限公司 Vehicle image display method and device, vehicle and storage medium
CN112954263A (en) * 2019-12-10 2021-06-11 北京车和家信息技术有限公司 Road condition image acquisition method and system and vehicle
CN111368641A (en) * 2020-02-11 2020-07-03 北京百度网讯科技有限公司 Obstacle screening method, obstacle screening device, electronic device and storage medium
CN114743433B (en) * 2021-12-23 2023-03-24 中国科学院软件研究所 Multi-channel alarm presenting method and device for simulating threats in flight training environment
CN114633694B (en) * 2022-03-24 2023-06-20 岚图汽车科技有限公司 Obstacle display control method, device, equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104786933A (en) * 2015-03-04 2015-07-22 江苏大学 Panoramic image driving auxiliary device and panoramic image driving auxiliary method
CN106097357A (en) * 2016-06-17 2016-11-09 深圳市灵动飞扬科技有限公司 The bearing calibration of auto-panorama photographic head
CN106355546A (en) * 2015-07-13 2017-01-25 比亚迪股份有限公司 Vehicle panorama generating method and apparatus
US20170032197A1 (en) * 2015-07-29 2017-02-02 Mando Corporation Camera device for vehicle
CN107757479A (en) * 2016-08-22 2018-03-06 何长伟 A kind of drive assist system and method based on augmented reality Display Technique

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108068697A (en) * 2016-11-11 2018-05-25 法乐第(北京)网络科技有限公司 Camera system, method and automobile based on automobile

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104786933A (en) * 2015-03-04 2015-07-22 江苏大学 Panoramic image driving auxiliary device and panoramic image driving auxiliary method
CN106355546A (en) * 2015-07-13 2017-01-25 比亚迪股份有限公司 Vehicle panorama generating method and apparatus
US20170032197A1 (en) * 2015-07-29 2017-02-02 Mando Corporation Camera device for vehicle
CN106097357A (en) * 2016-06-17 2016-11-09 深圳市灵动飞扬科技有限公司 The bearing calibration of auto-panorama photographic head
CN107757479A (en) * 2016-08-22 2018-03-06 何长伟 A kind of drive assist system and method based on augmented reality Display Technique

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112016039A (en) * 2020-08-19 2020-12-01 深圳安智杰科技有限公司 Vehicle passing area construction method and device, electronic equipment and readable storage medium
CN112016039B (en) * 2020-08-19 2024-02-09 深圳安智杰科技有限公司 Vehicle passing area construction method and device, electronic equipment and readable storage medium
CN113092133A (en) * 2021-04-07 2021-07-09 冒坚 Ultrasonic radar in-loop automatic driving test method based on Gaussian clustering
CN113092133B (en) * 2021-04-07 2024-03-22 冒坚 Ultrasonic radar in-loop automatic driving test method based on Gaussian clustering

Also Published As

Publication number Publication date
CN108765490A (en) 2018-11-06
CN108765490B (en) 2021-04-30

Similar Documents

Publication Publication Date Title
WO2019192145A1 (en) Method and apparatus for adjusting field of view of panoramic image, storage medium, and electronic device
JP6675448B2 (en) Vehicle position detecting method and device
CN108638999B (en) Anti-collision early warning system and method based on 360-degree look-around input
WO2021259344A1 (en) Vehicle detection method and device, vehicle, and storage medium
US11216673B2 (en) Direct vehicle detection as 3D bounding boxes using neural network image processing
CN107577988B (en) Method, device, storage medium and program product for realizing side vehicle positioning
US6734787B2 (en) Apparatus and method of recognizing vehicle travelling behind
JP4530060B2 (en) Parking support apparatus and method
CN105678787A (en) Heavy-duty lorry driving barrier detection and tracking method based on binocular fisheye camera
CN112158197B (en) Vehicle blind area obstacle avoiding method, device and system
CN106463062A (en) Apparatus and method for generating peripheral image of vehicle
CN103204104B (en) Monitored control system and method are driven in a kind of full visual angle of vehicle
CN108944668B (en) Auxiliary driving early warning method based on vehicle-mounted 360-degree look-around input
US11236991B2 (en) Method for determining a current distance and/or a current speed of a target object based on a reference point in a camera image, camera system and motor vehicle
CN110636263A (en) Panoramic annular view generation method, vehicle-mounted equipment and vehicle-mounted system
CN108399394A (en) Barrier method for early warning, device and terminal
US20210049382A1 (en) Non-line of sight obstacle detection
JP5773334B2 (en) Optical flow processing apparatus and display radius map generation apparatus
CN108454619A (en) A kind of driving assistance method and system
CN113459951A (en) Vehicle exterior environment display method and device, vehicle, equipment and storage medium
CN112208438B (en) Driving auxiliary image generation method and system
DE112020001581T5 (en) INFORMATION PROCESSING DEVICE, INFORMATION PROCESSING METHOD AND PROGRAM
CN111754542A (en) Target object determination method, tracking method, device, equipment and storage medium thereof
KR20140088779A (en) Rear Monitoring Apparatus and Method in Vehicle
WO2021132227A1 (en) Information processing device, sensing device, moving body, and information processing method

Legal Events

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

Ref document number: 18913220

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18913220

Country of ref document: EP

Kind code of ref document: A1