Target overlapping display optimization method and device, vehicle and storage medium
By constructing overlapping areas and performing offset compensation, the problem of discrepancies between the displayed target overlap and the actual road conditions was solved, thus improving the user's visual experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHONGQING CHANGAN AUTOMOBILE CO LTD
- Filing Date
- 2022-12-13
- Publication Date
- 2026-06-26
AI Technical Summary
In existing technologies, the overlapping display of targets does not match the actual road conditions, resulting in a poor visual experience for users.
By constructing an overlapping area, the size information of the target vehicle is obtained, it is determined whether the center point coordinates are within the overlapping area, and the optimal overlapping display strategy is determined based on the relative position to perform offset compensation, ensuring that the target vehicle does not overlap on the display terminal.
It enhances the user's visual experience, reflects actual road conditions, and reduces unnecessary technical wear and tear.
Smart Images

Figure CN115937484B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and in particular to an optimization method, apparatus, vehicle, and storage medium for target overlay display. Background Technology
[0002] Intelligent driving utilizes modern sensing technology, information and communication technology, automatic control technology, computer technology, and artificial intelligence to enable vehicles to have the ability to perceive and locate, plan routes, control autonomously, and interact intelligently. For example, the target vehicle's instrument panel can display the target in real time, allowing more people to experience the charm of technology.
[0003] In related technologies, the instrument display of the target vehicle is fixed in the middle of the lane, and the distance to the target is displayed in real time based on the horizontal and vertical distances.
[0004] However, while the relevant technologies can display the horizontal and vertical distances of targets in real time, they may not reflect the actual road conditions when targets overlap, which urgently needs to be addressed. Summary of the Invention
[0005] This application provides an optimization method, apparatus, vehicle, and storage medium for target overlap display. By constructing an overlap region, and when the target vehicle overlaps with the overlap region, the display area of the target vehicle is optimized based on the optimal overlap display strategy determined by the positional relationship between the target vehicle and the current vehicle. This solves the problem of target display overlap that does not match the actual road conditions and improves the user's visual experience.
[0006] The first aspect of this application provides an optimization method for target overlap display, comprising the following steps:
[0007] Obtain the size information of the first target vehicle and the second target vehicle in multiple directions for the current vehicle;
[0008] An overlapping region is constructed based on the size information of the first target vehicle and the size information of the second target vehicle, and it is determined whether the center point coordinates of the second target vehicle are within the overlapping region; and
[0009] If the center point coordinates of the second target vehicle are within the overlapping area, the current optimal overlapping display strategy is determined based on the relative position of the second target vehicle and the current vehicle, and the second target vehicle is offset compensated according to the optimal overlapping display strategy so that the display range of the first target vehicle and the second target vehicle on the display terminal does not overlap.
[0010] Based on the aforementioned technical means, the method of constructing overlapping areas and determining the optimal overlapping display strategy based on the positional relationship between the target vehicle and the current vehicle to offset the target vehicle solves the problem of target display overlap and inconsistency with actual road conditions, thereby improving the user's visual experience.
[0011] Further, the step of constructing the overlapping region based on the size information of the first target vehicle and the size information of the second target vehicle includes:
[0012] Obtain the first length and first width of the first target vehicle from the size information of the first target vehicle, and obtain the second length and second width of the second target vehicle from the size information of the second target vehicle;
[0013] The first to fourth coordinate points of the overlapping area are determined based on the first length, the first width, the second length, and the second width;
[0014] Using the front axle of the first target vehicle as the origin of the coordinate system, the overlapping region is constructed based on the first to fourth coordinate points.
[0015] Based on the above technical means, the size information of the target vehicle is obtained through vehicle sensors, and the first to fourth coordinate points are determined, thereby constructing an overlapping area, making the research scope more accurate and reducing unnecessary technical losses.
[0016] Further, determining the first to fourth coordinate points of the overlapping region based on the first length, the first width, the second length, and the second width includes:
[0017] The horizontal coordinate of the first coordinate point is obtained by multiplying the sum of the first width and the second width by the first preset value, and the vertical coordinate of the first coordinate point is obtained by multiplying the second length by the second preset value.
[0018] The horizontal coordinate of the second coordinate point is obtained by multiplying the sum of the first width and the second width by the second preset value, and the vertical coordinate of the second coordinate point is obtained by multiplying the second length by the second preset value.
[0019] The horizontal coordinate of the third coordinate point is obtained by multiplying the sum of the first width and the second width with the first preset value; the first initial vertical coordinate is obtained by multiplying the sum of the product of the second length and the second preset value with the first length; and the vertical coordinate of the third coordinate point is obtained by multiplying the first initial vertical coordinate with the third preset value.
[0020] The horizontal coordinate of the fourth coordinate point is obtained by multiplying the sum of the first width and the second width with the second preset value; the second initial vertical coordinate is obtained by multiplying the sum of the second length and the second preset value with the first length; and the vertical coordinate of the fourth coordinate point is obtained by multiplying the second initial vertical coordinate with the third preset value.
[0021] Based on the above technical means, the coordinate points are obtained by calculating the relationship between the target vehicle's size information and the corresponding preset values. The calculation method is simple and facilitates subsequent operations.
[0022] Further, determining the current optimal overlap display strategy based on the relative position of the second target vehicle and the current vehicle includes:
[0023] If the second target vehicle is in front of or behind the current vehicle, the current optimal overlap display strategy is to move the center point ordinate of the second target vehicle forward according to the overlap length.
[0024] If the second target vehicle is to the left of the current vehicle, the current optimal overlap display strategy is to move the horizontal coordinate of the center point of the second target vehicle to the left according to the overlap length;
[0025] If the second target vehicle is to the right of the current vehicle, then the current optimal overlap display strategy is to move the horizontal coordinate of the center point of the second target vehicle to the right according to the overlap length.
[0026] Based on the aforementioned technical means, by using the relative positional relationship between the target vehicle and the current vehicle, and by performing corresponding coordinate transformations based on pre-calculated coordinate points, the optimal overlapping display area can be directly determined, reflecting the actual road conditions and facilitating better perception and judgment by the user.
[0027] Furthermore, after acquiring the size information of the first target vehicle and the second target vehicle in the multiple directions, the method further includes:
[0028] The length and width of the 3D car model on the display terminal are determined based on the vehicle types of the first target vehicle and the second target vehicle.
[0029] Based on the aforementioned technical means, the in-vehicle system will match the vehicle type according to the size information of the target vehicle obtained by the sensors, thereby displaying the length and width of the 3D car model on the display terminal, enhancing the user's visual experience.
[0030] A second aspect of this application provides an optimization apparatus for target overlap display, comprising:
[0031] The acquisition module is used to acquire the size information of the first target vehicle and the second target vehicle in multiple directions of the current vehicle;
[0032] A construction module is used to construct an overlapping region based on the size information of the first target vehicle and the size information of the second target vehicle, and to determine whether the center point coordinates of the second target vehicle are within the overlapping region; and
[0033] An optimization module is configured to determine the current optimal overlap display strategy based on the relative position of the second target vehicle and the current vehicle if the center point coordinates of the second target vehicle are located in the overlapping area, and to perform offset compensation on the second target vehicle according to the optimal overlap display strategy so that the display range of the first target vehicle and the second target vehicle on the display terminal does not overlap.
[0034] Furthermore, the building module is specifically used for:
[0035] Obtain the first length and first width of the first target vehicle from the size information of the first target vehicle, and obtain the second length and second width of the second target vehicle from the size information of the second target vehicle;
[0036] The first to fourth coordinate points of the overlapping area are determined based on the first length, the first width, the second length, and the second width;
[0037] Using the front axle of the first target vehicle as the origin of the coordinate system, the overlapping region is constructed based on the first to fourth coordinate points.
[0038] Further, the construction module, which determines the first to fourth coordinate points of the overlapping region based on the first length, the first width, the second length, and the second width, is specifically used for:
[0039] The horizontal coordinate of the first coordinate point is obtained by multiplying the sum of the first width and the second width by the first preset value, and the vertical coordinate of the first coordinate point is obtained by multiplying the second length by the second preset value.
[0040] The horizontal coordinate of the second coordinate point is obtained by multiplying the sum of the first width and the second width by the second preset value, and the vertical coordinate of the second coordinate point is obtained by multiplying the second length by the second preset value.
[0041] The horizontal coordinate of the third coordinate point is obtained by multiplying the sum of the first width and the second width with the first preset value; the first initial vertical coordinate is obtained by multiplying the sum of the product of the second length and the second preset value with the first length; and the vertical coordinate of the third coordinate point is obtained by multiplying the first initial vertical coordinate with the third preset value.
[0042] The horizontal coordinate of the fourth coordinate point is obtained by multiplying the sum of the first width and the second width with the second preset value; the second initial vertical coordinate is obtained by multiplying the sum of the second length and the second preset value with the first length; and the vertical coordinate of the fourth coordinate point is obtained by multiplying the second initial vertical coordinate with the third preset value.
[0043] Furthermore, the optimization module is specifically used for:
[0044] If the second target vehicle is in front of or behind the current vehicle, the current optimal overlap display strategy is to move the center point ordinate of the second target vehicle forward according to the overlap length.
[0045] If the second target vehicle is to the left of the current vehicle, the current optimal overlap display strategy is to move the horizontal coordinate of the center point of the second target vehicle to the left according to the overlap length;
[0046] If the second target vehicle is to the right of the current vehicle, then the current optimal overlap display strategy is to move the horizontal coordinate of the center point of the second target vehicle to the right according to the overlap length.
[0047] Furthermore, after acquiring the size information of the first target vehicle and the second target vehicle in the multiple directions, the acquisition module is further configured to:
[0048] The length and width of the 3D car model on the display terminal are determined based on the vehicle types of the first target vehicle and the second target vehicle.
[0049] A third aspect of this application provides a vehicle, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the target overlay display optimization method as described in the above embodiments.
[0050] A fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the optimization method for target overlay display as described in the above embodiments.
[0051] Therefore, by acquiring the size information of the first target vehicle and the second target vehicle in multiple directions, an overlapping region is constructed. It is then determined whether the center point coordinates of the second target vehicle are within this overlapping region. If they are, the optimal overlapping display strategy is determined based on the relative position of the second target vehicle and the current vehicle. Offset compensation is then applied to the second target vehicle to ensure that the display areas of the first and second target vehicles on the display terminal do not overlap. Thus, by constructing an overlapping region and determining the optimal overlapping display strategy based on the positional relationship between the target vehicles and the current vehicle, the method of offsetting the target vehicle solves the problem of overlapping targets that do not match actual road conditions, thereby improving the user's visual experience.
[0052] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0053] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0054] Figure 1 This is a flowchart of an optimization method for target overlap display according to an embodiment of this application;
[0055] Figure 2 This is a schematic diagram of the target anti-overlap area according to an embodiment of this application;
[0056] Figure 3 This is a schematic diagram of the target length / width according to an embodiment of this application;
[0057] Figure 4 This is a block diagram of an optimization system for target overlay display according to an embodiment of this application;
[0058] Figure 5 This is a flowchart of an optimization method for target overlap display according to an embodiment of this application;
[0059] Figure 6 This is a block diagram of an optimization device for target overlap display according to an embodiment of this application;
[0060] Figure 7 This is a structural schematic diagram of a vehicle according to an embodiment of this application. Detailed Implementation
[0061] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0062] The following describes an optimization method, apparatus, vehicle, and storage medium for target overlap display according to embodiments of this application, with reference to the accompanying drawings. Addressing the problem of target overlap display that does not match actual road conditions mentioned in the background art, this application provides an optimization method for target overlap display. In this method, an overlap region is constructed by acquiring the size information of a first target vehicle and a second target vehicle in multiple directions. It is then determined whether the center point coordinates of the second target vehicle are within the overlap region. If they are, the optimal overlap display strategy is determined based on the relative position of the second target vehicle and the current vehicle. Offset compensation is then applied to the second target vehicle to ensure that the display areas of the first and second target vehicles on the display terminal do not overlap. Therefore, by optimizing the target overlap display method, the problem of target overlap display that does not match actual road conditions is solved, thereby improving the user's visual experience.
[0063] Specifically, Figure 1 This is a flowchart illustrating an optimization method for target overlap display provided in an embodiment of this application.
[0064] like Figure 1 As shown, the optimization method for overlapping target display includes the following steps:
[0065] In step S101, the size information of the first target vehicle and the size information of the second target vehicle in multiple directions of the current vehicle are obtained.
[0066] The target vehicle's dimensions include its length and width. Vehicle information can be acquired through sensors, such as forward-facing smart cameras and / or millimeter-wave radar, to collect relevant information about current vehicles and the target vehicle on the road ahead.
[0067] Specifically, embodiments of this application can acquire lane line information of the road where the current vehicle is located and vehicle information of the target vehicle in real time through a forward-looking intelligent camera and / or millimeter-wave radar. The vehicle information includes the target vehicle's lateral distance, longitudinal distance, type, recognition status, TrackID, target direction, and other information. Among them, lane line information includes the recognition status of the lane line ahead, the distance from the vehicle to the lane lines on both sides, lane line type, lane line curvature, etc.
[0068] In step S102, an overlapping region is constructed based on the size information of the first target vehicle and the size information of the second target vehicle, and it is determined whether the center point coordinates of the second target vehicle are within the overlapping region.
[0069] The overlapping area refers to the area where the first target vehicle and the second target vehicle cover each other in the front-back and left-right directions of the two-dimensional plane; the center point coordinates of the target vehicle are selected from the center position coordinates of the front bumper of the vehicle.
[0070] Furthermore, in some embodiments, constructing an overlapping region based on the size information of the first target vehicle and the size information of the second target vehicle includes: obtaining the first length and first width of the first target vehicle from the size information of the first target vehicle, and obtaining the second length and second width of the second target vehicle from the size information of the second target vehicle; determining the first to fourth coordinate points of the overlapping region based on the first length, the first width, the second length and the second width; and constructing the overlapping region based on the first to fourth coordinate points with the front axle of the first target vehicle as the origin of the coordinate system.
[0071] Further, in some embodiments, determining the first to fourth coordinate points of the overlapping area based on the first length, the first width, the second length, and the second width includes: obtaining the abscissa of the first coordinate point by multiplying the sum of the first width and the second width by a first preset value, and obtaining the ordinate of the first coordinate point by multiplying the second length and the second preset value; obtaining the abscissa of the second coordinate point by multiplying the sum of the first width and the second width by a second preset value, and obtaining the ordinate of the second coordinate point by multiplying the second length and the second preset value; obtaining the abscissa of the third coordinate point by multiplying the sum of the first width and the second width by a first preset value, obtaining a first initial ordinate by multiplying the sum of the product of the second length and the second preset value and the first length, and obtaining the ordinate of the third coordinate point by multiplying the first initial ordinate by a third preset value; obtaining the abscissa of the fourth coordinate point by multiplying the sum of the first width and the second width by a second preset value, obtaining a second initial ordinate by multiplying the sum of the second length and the second preset value and the first length, and obtaining the ordinate of the fourth coordinate point by multiplying the second initial ordinate by a third preset value.
[0072] The preset value can be a value set by the user, a value obtained through a limited number of experiments, or a value obtained through a limited number of computer simulations; no specific limitation is made here.
[0073] In other words, this application embodiment obtains the length and width of two target vehicles, and obtains the first to fourth coordinate points according to a certain calculation mode. Then, an overlapping area is constructed with the front axle of one of the target vehicles as the coordinate origin, and the study area is further divided for more accurate display.
[0074] For example, assuming the length of the first target vehicle A is L0 and the width is W0, and the length of the second target vehicle B is L1 and the width is W1, the embodiments of this application can construct an overlapping region based on the length and width of the first target vehicle A and the length and width of the second target vehicle B, such as... Figure 2 As shown, the four coordinate points of the overlapping region can be:
[0075] ①【0.5*(W0+W1),0.5*L1】,
[0076] ②
-0.5*(W0+W1),0.5*L1
[0077] ③【0.5*(W0+W1),-(L0+0.5*L1)】,
[0078] ④
-0.5*(W0+W1),-(L0+0.5*L1)
[0079] Furthermore, after constructing the overlapping region, this embodiment of the application can determine whether the second target vehicle and the overlapping region overlap based on the center point coordinates of the second target vehicle. That is, if the center point coordinates of the second target vehicle fall within the overlapping region, it indicates that the second target vehicle and the overlapping region overlap; otherwise, the second target vehicle and the overlapping region do not overlap.
[0080] In step S103, if the center point coordinates of the second target vehicle are in the overlapping area, the current optimal overlapping display strategy is determined based on the relative position of the second target vehicle and the current vehicle, and the second target vehicle is offset compensated according to the optimal overlapping display strategy so that the display range of the first target vehicle and the second target vehicle on the display terminal does not overlap.
[0081] The optimal overlap display strategy is determined based on the relative positional relationship between the second target vehicle and the current vehicle on the two-dimensional plane; the offset compensation is based on the optimal overlap display strategy to transform the center coordinates of the second target vehicle accordingly.
[0082] Furthermore, in some embodiments, determining the current optimal overlap display strategy based on the relative position of the second target vehicle and the current vehicle includes: if the second target vehicle is in front of or behind the current vehicle, the current optimal overlap display strategy is to move the vertical coordinate of the center point of the second target vehicle forward by the overlap length; if the second target vehicle is to the left of the current vehicle, the current optimal overlap display strategy is to move the horizontal coordinate of the center point of the second target vehicle to the left by the overlap length; if the second target vehicle is to the right of the current vehicle, the current optimal overlap display strategy is to move the horizontal coordinate of the center point of the second target vehicle to the right by the overlap length.
[0083] It should be understood that when the center point coordinates of the second target vehicle are in the overlapping area, it indicates that the second target vehicle is in the overlapping area. In order to ensure that the display range of the first target vehicle and the second target vehicle do not overlap on the display terminal, the embodiments of this application can perform offset compensation on the image of the second target vehicle according to a relative positional relationship between the second target vehicle and the current vehicle.
[0084] Specifically, there are three possible relative positions between the second target vehicle and the current vehicle: (1) the second target vehicle is located in front of or behind the current vehicle; (2) the second target vehicle is located to the left of the current vehicle; and (3) the second target vehicle is located to the right of the current vehicle.
[0085] When the second target vehicle is located in front of or behind the current vehicle, the optimal overlap display strategy is as follows:
[0086] Obtain the overlap length △L1 of the target vehicle in the front-rear direction, and shift the ordinate of the center of the target vehicle in front forward by △L1.
[0087] When the second target vehicle is located to the left of the current vehicle, the optimal overlap display strategy is:
[0088] Obtain the overlap length △L2 of the target vehicle in the left and right directions, and shift the x-coordinate of the center of the left target vehicle to the left by △L2.
[0089] When the second target vehicle is located to the right of the current vehicle, the optimal overlap display strategy is:
[0090] Obtain the overlap length △L3 of the target vehicle in the left and right directions, and shift the x-coordinate of the center of the target vehicle on the right to the right by △L3.
[0091] Therefore, after determining the relative position of the second target vehicle and the current vehicle, the second target vehicle is offset compensated by matching the above-mentioned optimal overlap display strategy. This ensures that the display range of the first target vehicle and the second target vehicle does not overlap on the display terminal, which not only simplifies the offset compensation of the target vehicle, but also makes the operation more convenient.
[0092] Furthermore, in some embodiments, after obtaining the size information of the first target vehicle and the second target vehicle in multiple directions, the method further includes: determining the length and width of the 3D vehicle model of the display terminal based on the vehicle types of the first target vehicle and the second target vehicle.
[0093] Specifically, size information can include length information and width information, such as... Figure 3As shown, the length of the first target vehicle A is L0 and the width is W0, and the length of the second target vehicle B is L1 and the width is W1. According to the embodiment of this application, the vehicle type can be matched based on the size information, so as to display the length and width of the 3D car model on the display terminal and improve the user's visual experience.
[0094] To enable those skilled in the art to further understand the optimization method for target overlap display in the embodiments of this application, the following is combined with... Figure 4 and Figure 5 Please provide a detailed explanation.
[0095] like Figure 4 As shown, Figure 4 This is a system block diagram illustrating an optimization method for target overlap display according to an embodiment of this application.
[0096] Specifically, the optimized system for overlapping target display includes: an environment perception module 100, a control module 200, and a human-computer interaction module 300.
[0097] The environmental perception module 100, consisting of a camera and / or millimeter radar, is used to acquire lane information of the road where the vehicle is located and vehicle information of the target vehicle. The vehicle information includes the target vehicle's lateral distance, longitudinal distance, type, identification status, TrackID, target direction, and other information.
[0098] For example, the sensor schemes used in the environmental perception module 100 of this application embodiment are as follows:
[0099] (1) Low configuration (1V): 1 front-view smart camera.
[0100] (2) Mid-range configuration (1R1V): 1 millimeter-wave radar + 1 forward-looking smart camera.
[0101] (3) High-end configuration (5R1V and above): 5 millimeter-wave radars + 1 forward-looking intelligent camera, etc., to achieve L2+
[0102] The above features include autonomous driving.
[0103] It should be noted that the sensor solution is not limited to the above-mentioned solutions. Any sensor solution that can identify targets and lane lines is acceptable, and no specific limitation is made here.
[0104] The control module 200 is used to process the data.
[0105] The origin of the default coordinate system for all lane line lateral distances, curvatures, and types is the front bumper center of the vehicle, which needs to be converted by the controller before being output.
[0106] (1) Y is the horizontal distance, positive to the left, in meters;
[0107] (2) X represents longitudinal control, with forward being positive, and the unit is meters.
[0108] The human-machine interaction module 300 divides the target vehicle into regions based on information sent by the control module 200, using a display terminal such as an instrument panel, vehicle infotainment system, or HUD (Head-Up Display).
[0109] Furthermore, such as Figure 5 As shown, Figure 5 This is a flowchart of an optimization method for target overlap display according to an embodiment of this application.
[0110] like Figure 5 As shown, the optimization method for overlapping target display includes the following steps:
[0111] S501, determine whether there is overlap among the target vehicles.
[0112] S502, the display range of the target vehicle is formed by superimposing the length and width information from the volume information of the position information of each target vehicle.
[0113] S503, in this embodiment of the application, the target vehicle position can be offset compensation according to the following rules so that the display range does not overlap.
[0114] Those skilled in the art should understand that the above embodiments of this application are merely examples for illustrating the present application, and are not intended to limit the implementation of the present application.
[0115] According to the target overlap display optimization method proposed in this application, an overlapping region is constructed by acquiring the size information of a first target vehicle and a second target vehicle in multiple directions. It is then determined whether the center point coordinates of the second target vehicle are within the overlapping region. If they are, the optimal overlap display strategy is determined based on the relative position of the second target vehicle and the current vehicle. Offset compensation is then applied to the second target vehicle to ensure that the display areas of the first and second target vehicles on the display terminal do not overlap. Therefore, by optimizing the target overlap display method, the problem of target display overlap is solved, thereby improving the user's visual experience.
[0116] Next, with reference to the accompanying drawings, an optimized apparatus for target overlap display according to an embodiment of this application is described.
[0117] Figure 6 This is a block diagram of an optimization device for target overlap display according to an embodiment of this application.
[0118] like Figure 6 As shown, the optimization device 10 for target overlay display includes: an acquisition module 400, a construction module 500, and an optimization module 600.
[0119] Among them, the acquisition module 400 is used to acquire the size information of the first target vehicle and the size information of the second target vehicle in multiple directions of the current vehicle;
[0120] The construction module 500 is used to construct an overlapping region based on the size information of the first target vehicle and the size information of the second target vehicle, and to determine whether the center point coordinates of the second target vehicle are within the overlapping region; and
[0121] The optimization module 600 is used to determine the current optimal overlap display strategy based on the relative position of the second target vehicle and the current vehicle if the center point coordinates of the second target vehicle are in the overlapping area, and to perform offset compensation on the second target vehicle according to the optimal overlap display strategy so that the display range of the first target vehicle and the second target vehicle on the display terminal does not overlap.
[0122] Furthermore, in some embodiments, the construction module 500 is specifically used for:
[0123] Obtain the first length and first width of the first target vehicle from the size information of the first target vehicle, and obtain the second length and second width of the second target vehicle from the size information of the second target vehicle;
[0124] Determine the first to fourth coordinate points of the overlapping area based on the first length, the first width, the second length, and the second width;
[0125] Using the front axle of the first target vehicle as the origin of the coordinate system, an overlapping region is constructed based on the first to fourth coordinate points.
[0126] Furthermore, in some embodiments, a module is constructed by determining the first to fourth coordinate points of the overlapping area based on the first length, the first width, the second length, and the second width, specifically for:
[0127] The x-coordinate of the first coordinate point is obtained by multiplying the sum of the first width and the second width by the first preset value, and the y-coordinate of the first coordinate point is obtained by multiplying the second length by the second preset value.
[0128] The horizontal coordinate of the second coordinate point is obtained by multiplying the sum of the first width and the second width by the second preset value, and the vertical coordinate of the second coordinate point is obtained by multiplying the second length by the second preset value.
[0129] The horizontal coordinate of the third coordinate point is obtained by multiplying the sum of the first width and the second width with the first preset value; the first initial vertical coordinate is obtained by multiplying the sum of the product of the second length and the second preset value with the first length; and the vertical coordinate of the third coordinate point is obtained by multiplying the first initial vertical coordinate with the third preset value.
[0130] The x-coordinate of the fourth coordinate point is obtained by multiplying the sum of the first width and the second width with the second preset value. The y-coordinate of the fourth coordinate point is obtained by multiplying the sum of the second length and the second preset value with the first length. The y-coordinate of the fourth coordinate point is obtained by multiplying the second initial y-coordinate with the third preset value.
[0131] Furthermore, in some embodiments, the optimization module 600 is specifically used for:
[0132] If the second target vehicle is in front of or behind the current vehicle, the current optimal overlap display strategy is to move the center point of the second target vehicle forward according to the overlap length.
[0133] If the second target vehicle is to the left of the current vehicle, the current optimal overlap display strategy is to move the horizontal coordinate of the center point of the second target vehicle to the left according to the overlap length.
[0134] If the second target vehicle is to the right of the current vehicle, the optimal overlap display strategy is to move the x-coordinate of the center point of the second target vehicle to the right according to the overlap length.
[0135] Furthermore, in some embodiments, after acquiring the size information of the first target vehicle and the second target vehicle in multiple directions, the acquisition module 400 is further configured to:
[0136] The length and width of the 3D car model on the display terminal are determined based on the vehicle types of the first and second target vehicles.
[0137] It should be noted that the explanation of the above-described method for optimizing target overlap display also applies to the optimization device for target overlap display in this embodiment, and will not be repeated here.
[0138] According to the target overlap display optimization device proposed in this application, an overlapping region is constructed by acquiring the size information of a first target vehicle and a second target vehicle in multiple directions. It then determines whether the center point coordinates of the second target vehicle are within the overlapping region. If they are, the optimal overlapping display strategy is determined based on the relative position of the second target vehicle and the current vehicle. Offset compensation is then applied to the second target vehicle to ensure that the display areas of the first and second target vehicles on the display terminal do not overlap. Therefore, by constructing an overlapping region and optimizing the display area of the target vehicle based on the optimal overlapping display strategy determined by the positional relationship between the target vehicle and the current vehicle when there is overlap, the problem of target display overlap and inconsistency with actual road conditions is solved, thus improving the user's visual experience.
[0139] Figure 7 A schematic diagram of the structure of a vehicle provided in an embodiment of this application. The vehicle may include:
[0140] The memory 701, the processor 702, and the computer program stored on the memory 701 and executable on the processor 702.
[0141] When the processor 702 executes the program, it implements the optimization method for target overlap display provided in the above embodiments.
[0142] Furthermore, the vehicle also includes:
[0143] Communication interface 703 is used for communication between memory 701 and processor 702.
[0144] The memory 701 is used to store computer programs that can run on the processor 702.
[0145] The memory 701 may include high-speed RAM (Random Access Memory) memory, and may also include non-volatile memory, such as at least one disk storage.
[0146] If the memory 701, processor 702, and communication interface 703 are implemented independently, then the communication interface 703, memory 701, and processor 702 can be interconnected via a bus to complete communication between them. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0147] Optionally, in a specific implementation, if the memory 701, processor 702, and communication interface 703 are integrated on a single chip, then the memory 701, processor 702, and communication interface 703 can communicate with each other through an internal interface.
[0148] The processor 702 may be a CPU (Central Processing Unit), an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of this application.
[0149] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described optimization method for target overlay display.
[0150] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0151] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0152] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0153] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (FPGAs), field-programmable gate arrays (FPGAs), etc.
[0154] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware, and the program can be stored in a computer-readable storage medium. When executed, the program includes one or a combination of the steps of the method embodiments.
[0155] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. An optimization method for displaying overlapping targets, characterized in that, Includes the following steps: Obtain the size information of the first target vehicle and the second target vehicle in multiple directions for the current vehicle; An overlapping region is constructed based on the size information of the first target vehicle and the size information of the second target vehicle, and it is determined whether the center point coordinates of the second target vehicle are within the overlapping region. as well as If the center point coordinates of the second target vehicle are in the overlapping area, the current optimal overlapping display strategy is determined according to the relative position of the second target vehicle and the current vehicle, and the second target vehicle is offset compensated according to the optimal overlapping display strategy so that the display range of the first target vehicle and the second target vehicle on the display terminal does not overlap. The step of determining the optimal overlap display strategy based on the relative position of the second target vehicle and the current vehicle includes: If the second target vehicle is in front of or behind the current vehicle, the current optimal overlap display strategy is to move the center point ordinate of the second target vehicle forward according to the overlap length. If the second target vehicle is to the left of the current vehicle, the current optimal overlap display strategy is to move the horizontal coordinate of the center point of the second target vehicle to the left according to the overlap length; If the second target vehicle is to the right of the current vehicle, then the current optimal overlap display strategy is to move the horizontal coordinate of the center point of the second target vehicle to the right according to the overlap length.
2. The method according to claim 1, characterized in that, The construction of the overlapping region based on the size information of the first target vehicle and the size information of the second target vehicle includes: Obtain the first length and first width of the first target vehicle from the size information of the first target vehicle, and obtain the second length and second width of the second target vehicle from the size information of the second target vehicle; The first to fourth coordinate points of the overlapping area are determined based on the first length, the first width, the second length, and the second width; Using the front axle of the first target vehicle as the origin of the coordinate system, the overlapping region is constructed based on the first to fourth coordinate points.
3. The method according to claim 2, characterized in that, Determining the first to fourth coordinate points of the overlapping region based on the first length, the first width, the second length, and the second width includes: The horizontal coordinate of the first coordinate point is obtained by multiplying the sum of the first width and the second width by the first preset value, and the vertical coordinate of the first coordinate point is obtained by multiplying the second length by the second preset value. The horizontal coordinate of the second coordinate point is obtained by multiplying the sum of the first width and the second width by the second preset value, and the vertical coordinate of the second coordinate point is obtained by multiplying the second length by the second preset value. The horizontal coordinate of the third coordinate point is obtained by multiplying the sum of the first width and the second width with the first preset value; the first initial vertical coordinate is obtained by multiplying the sum of the product of the second length and the second preset value with the first length; and the vertical coordinate of the third coordinate point is obtained by multiplying the first initial vertical coordinate with the third preset value. The horizontal coordinate of the fourth coordinate point is obtained by multiplying the sum of the first width and the second width with the second preset value; the second initial vertical coordinate is obtained by multiplying the sum of the second length and the second preset value with the first length; and the vertical coordinate of the fourth coordinate point is obtained by multiplying the second initial vertical coordinate with the third preset value.
4. The method according to claim 1, characterized in that, After obtaining the size information of the first target vehicle and the second target vehicle in the multiple directions, the method further includes: The length and width of the 3D car model on the display terminal are determined based on the vehicle types of the first target vehicle and the second target vehicle.
5. An optimization device for target overlap display, characterized in that, include: The acquisition module is used to acquire the size information of the first target vehicle and the second target vehicle in multiple directions of the current vehicle; A construction module is used to construct an overlapping region based on the size information of the first target vehicle and the size information of the second target vehicle, and to determine whether the center point coordinates of the second target vehicle are within the overlapping region; as well as An optimization module is used to determine the current optimal overlap display strategy based on the relative position of the second target vehicle and the current vehicle if the center point coordinates of the second target vehicle are in the overlapping area, and to perform offset compensation on the second target vehicle according to the optimal overlap display strategy so that the display range of the first target vehicle and the second target vehicle on the display terminal does not overlap. The step of determining the optimal overlap display strategy based on the relative position of the second target vehicle and the current vehicle includes: If the second target vehicle is in front of or behind the current vehicle, the current optimal overlap display strategy is to move the center point ordinate of the second target vehicle forward according to the overlap length. If the second target vehicle is to the left of the current vehicle, the current optimal overlap display strategy is to move the horizontal coordinate of the center point of the second target vehicle to the left according to the overlap length; If the second target vehicle is to the right of the current vehicle, then the current optimal overlap display strategy is to move the horizontal coordinate of the center point of the second target vehicle to the right according to the overlap length.
6. The apparatus according to claim 5, characterized in that, The building module is specifically used for: Obtain the first length and first width of the first target vehicle from the size information of the first target vehicle, and obtain the second length and second width of the second target vehicle from the size information of the second target vehicle; The first to fourth coordinate points of the overlapping area are determined based on the first length, the first width, the second length, and the second width; Using the front axle of the first target vehicle as the origin of the coordinate system, the overlapping region is constructed based on the first to fourth coordinate points.
7. The apparatus according to claim 6, characterized in that, The building module is also used for: The horizontal coordinate of the first coordinate point is obtained by multiplying the sum of the first width and the second width by the first preset value, and the vertical coordinate of the first coordinate point is obtained by multiplying the second length by the second preset value. The horizontal coordinate of the second coordinate point is obtained by multiplying the sum of the first width and the second width by the second preset value, and the vertical coordinate of the second coordinate point is obtained by multiplying the second length by the second preset value. The horizontal coordinate of the third coordinate point is obtained by multiplying the sum of the first width and the second width with the first preset value; the first initial vertical coordinate is obtained by multiplying the sum of the product of the second length and the second preset value with the first length; and the vertical coordinate of the third coordinate point is obtained by multiplying the first initial vertical coordinate with the third preset value. The horizontal coordinate of the fourth coordinate point is obtained by multiplying the sum of the first width and the second width with the second preset value; the second initial vertical coordinate is obtained by multiplying the sum of the second length and the second preset value with the first length; and the vertical coordinate of the fourth coordinate point is obtained by multiplying the second initial vertical coordinate with the third preset value.
8. A vehicle, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the program to implement the optimized method for target overlay display as described in any one of claims 1-4.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the optimized method for target overlap display as described in any one of claims 1-4.