Electronic device, vehicle, method and computer program product
By setting the trajectory prediction model and electronic equipment in the vehicle, the vehicle is automatically controlled to safely open the door at the parking position, which solves the problems of low vehicle intelligence and poor door opening safety in the existing technology, and realizes safe parking of the vehicle at the parking position. and door opening operations.
Patent Information
- Application Number
- CN202410898011.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-05
AI Technical Summary
In the existing intelligent driving technology, the user needs to intervene when the vehicle is parked and the door is opened, resulting in low intelligence and poor door opening safety. If the user forgets to observe the situation behind the vehicle and opens the door directly, it is easy to cause a traffic accident.
By arranging the first electronic device and the second electronic device in the vehicle, the processor and the memory are used to execute the computer program, generate the target picture, predict the trajectory information of the moving obstacles and the target vehicle based on the trajectory prediction model, and ensure that the vehicle is turned on when it is parked. The door will not collide with obstacles. The convolution block and linear layer structure of the encoder and decoder are used to predict the trajectory, control the vehicle to automatically drive to the parking position and safely open the door.
It improves the intelligence of the vehicle and the safety of opening the door, avoids collisions between the vehicle and moving obstacles during the door opening process, and ensures that users can safely open the door even if they forget to observe the situation behind the car.
Smart Images

Figure CN118419003B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of intelligent driving technology, and in particular to a first electronic device, a second electronic device, a vehicle, a vehicle control method, a trajectory prediction method, and a computer program product. Background Art
[0002] With the development of science and technology, vehicles are becoming more and more intelligent. Among them, intelligent driving and intelligent cockpit are two important parts of vehicle intelligence. In related technologies, intelligent driving and intelligent cockpit operate separately to realize their respective functions. When the vehicle needs to park by the side of the road, the intelligent driving algorithm plans the parking trajectory of the vehicle, and when the user's door opening command is received, the intelligent cockpit automatically opens the door. In other words, for the set of actions of parking and opening the door, the user's intervention is required in the middle (for example, before opening the door, people need to carefully observe whether there is a car coming from behind, and then decide whether to open the door) to complete it.
[0003] However, if the user forgets to observe the situation behind the vehicle and directly issues a door opening command to open the door, it is easy to cause a traffic accident. Therefore, the related art has the problems of low vehicle intelligence and poor door opening safety. Summary of the invention
[0004] In order to solve one of the above technical problems, the present disclosure provides a first electronic device, a second electronic device, a vehicle, a vehicle control method, a trajectory prediction method and a computer program product.
[0005] According to a first aspect of the present disclosure, a first electronic device is provided, which is arranged in a vehicle, and includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the first electronic device performs the following process: generating a target image based on a plurality of images including a mobile obstacle near a target vehicle and current trajectory information of the target vehicle collected within a first predetermined period of time, wherein the target image includes the current trajectory information of the mobile obstacle and the current trajectory information of the target vehicle; based on the target image, generating first predicted trajectory information of the mobile obstacle and second predicted trajectory information of the target vehicle; and based on the second predicted trajectory information of the target vehicle, controlling the target vehicle to travel to a parking position, wherein the mobile obstacle traveling along the first predicted trajectory information does not collide with the target vehicle traveling to the parking position during the door opening process.
[0006] According to at least one embodiment of the present disclosure, a target image is generated based on multiple images including mobile obstacles near the target vehicle collected within a first predetermined time period and current trajectory information of the target vehicle, including: determining the current trajectory information of the mobile obstacle based on the multiple images including mobile obstacles near the target vehicle collected within the first predetermined time period; and projecting the current trajectory information of the target vehicle and the current trajectory information of the mobile obstacle onto the same coordinate plane to obtain the one target image.
[0007] According to at least one embodiment of the present disclosure, based on the target image, generating first predicted trajectory information of the mobile obstacle and second predicted trajectory information of the target vehicle includes: inputting the target image into a trajectory prediction model stored in the first electronic device, performing trajectory prediction on the mobile obstacle and the target vehicle through the trajectory prediction model, and generating first predicted trajectory information of the mobile obstacle and second predicted trajectory information of the target vehicle.
[0008] According to at least one embodiment of the present disclosure, based on the target image, generating first predicted trajectory information of the mobile obstacle and second predicted trajectory information of the target vehicle includes: sending the target image to a second electronic device; and receiving the first predicted trajectory information of the mobile obstacle and the second predicted trajectory information of the target vehicle sent by the second electronic device, wherein the first predicted trajectory information of the mobile obstacle and the second predicted trajectory information of the target vehicle are obtained by processing the target image using a trajectory prediction model.
[0009] According to at least one embodiment of the present disclosure, the trajectory prediction model includes an encoder and a decoder, wherein the encoder includes a first convolution block, a second convolution block and a third convolution block, the first convolution block is used to extract the feature vector of the target image and generate an N-channel feature vector, where N≥1; the second convolution block receives the N-channel feature vector and generates a 2N-channel feature vector; the third convolution block receives the 2N-channel feature vector and generates a 4N-channel feature vector; and the decoder receives the 4N-channel feature vector to generate the first predicted trajectory information of the mobile obstacle and the second predicted trajectory information of the target vehicle.
[0010] According to at least one embodiment of the present disclosure, the first convolution block includes two groups of convolution layers, batch normalization layers and activation layers; the second convolution block includes four groups of convolution layers, batch normalization layers and activation layers; and the third convolution block includes eight groups of convolution layers, batch normalization layers and activation layers.
[0011] According to at least one embodiment of the present disclosure, the decoder includes a first linear layer, a first activation layer, a second linear layer, a second activation layer and a third linear layer. The decoder receives the 4N channel feature vector and generates the first predicted trajectory information of the mobile obstacle and the second predicted trajectory information of the target vehicle, including: the first linear layer receives the 4N channel feature vector and generates an 8N channel feature vector; the 8N channel feature vector passes through the first activation layer and the second linear layer in sequence to generate a new 4N channel feature vector; and the new 4N channel feature vector passes through the second activation layer and the third linear layer in sequence to generate the first predicted trajectory information of the mobile obstacle and the second predicted trajectory information of the target vehicle.
[0012] According to at least one embodiment of the present disclosure, after controlling the target vehicle to drive to the parking position, it also includes: predicting third predicted trajectory information of the moving obstacle based on a plurality of pictures including the moving obstacle collected within a second predetermined time period before the door of the target vehicle is opened; and controlling the opening of the door of the target vehicle according to the distance relationship between the moving obstacle traveling according to the third predicted trajectory information and the target vehicle.
[0013] According to at least one embodiment of the present disclosure, the controlling the opening of the door of the target vehicle includes: if within a target time period after the door is opened, the distance between the moving obstacle traveling according to the third trajectory information and the target vehicle at any time is greater than a distance threshold, then controlling the target vehicle to open the door, wherein the distance threshold is determined according to the size of the moving obstacle, the size of the target vehicle, and the size of the door of the target vehicle.
[0014] According to a second aspect of the present disclosure, a second electronic device is provided, comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the second electronic device performs the following process: determining trajectory information of a mobile obstacle based on a plurality of pictures including a mobile obstacle near a vehicle collected within a predetermined period of time, wherein the predetermined period of time is a period of time when the vehicle drives to a parking position and opens a door, and the vehicle and the mobile obstacle do not collide within the predetermined period of time; projecting the trajectory information of the mobile obstacle and the trajectory information of the vehicle collected within the predetermined period of time onto the same coordinate plane to obtain a training picture, wherein the training picture includes the trajectory information of the mobile obstacle and the trajectory information of the vehicle; and training a trajectory prediction model based on the training picture to obtain a trained trajectory prediction model.
[0015] According to at least one embodiment of the present disclosure, after obtaining the trained trajectory prediction model, it also includes: sending an update prompt to a first electronic device; and upon receiving a confirm update instruction sent by the first electronic device, sending the trained trajectory prediction model to the first electronic device.
[0016] According to at least one embodiment of the present disclosure, after obtaining the trained trajectory prediction model, it also includes: receiving a target picture sent by a first electronic device, wherein the target picture includes current trajectory information of mobile obstacles near a target vehicle and current trajectory information of the target vehicle; inputting the target picture into the trained trajectory prediction model, and performing trajectory prediction on the mobile obstacles near the target vehicle and the target vehicle in the target picture through the trained trajectory prediction model to obtain first predicted trajectory information of the mobile obstacles near the target vehicle and second predicted trajectory information of the target vehicle; and sending the first predicted trajectory information of the mobile obstacles near the target vehicle and the second predicted trajectory information of the target vehicle to the first electronic device.
[0017] According to a third aspect of the present disclosure, a vehicle is provided, comprising the first electronic device described in the present disclosure.
[0018] According to a fourth aspect of the present disclosure, a vehicle control method is provided, comprising: generating a target image based on a plurality of images including a mobile obstacle near a target vehicle and current trajectory information of the target vehicle collected within a first predetermined time period, wherein the target image includes the current trajectory information of the mobile obstacle and the current trajectory information of the target vehicle; based on the target image, generating first predicted trajectory information of the mobile obstacle and second predicted trajectory information of the target vehicle; and based on the second predicted trajectory information of the target vehicle, controlling the target vehicle to travel to a parking position, wherein the mobile obstacle traveling along the first predicted trajectory information does not collide with the target vehicle traveling to the parking position during the door opening process.
[0019] According to a fifth aspect of the present disclosure, a trajectory prediction method is provided, comprising: determining trajectory information of a moving obstacle based on a plurality of pictures including a moving obstacle near a vehicle collected within a predetermined period of time, wherein the predetermined period of time is a period of time when the vehicle drives to a parking position and opens a door, and the vehicle and the moving obstacle do not collide within the predetermined period of time; projecting the trajectory information of the moving obstacle and the trajectory information of the vehicle collected within the predetermined period of time onto the same coordinate plane to obtain a training picture, wherein the training picture includes the trajectory information of the moving obstacle and the trajectory information of the vehicle; and training a trajectory prediction model based on the training picture to obtain a trained trajectory prediction model.
[0020] According to a sixth aspect of the present disclosure, a computer program product is provided, the computer program product comprising a computer program, and when the computer program is executed by a processor, it is used to implement at least the method described in the fourth aspect or the fifth aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings illustrate exemplary embodiments of the present disclosure and together with the description serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.
[0022] Figure 1 is a schematic diagram of a vehicle control system according to an embodiment of the present disclosure.
[0023] Figure 2 It is an interactive schematic diagram of a vehicle control system according to an embodiment of the present disclosure.
[0024] Figure 3 is a visualization example diagram of a training image according to an embodiment of the present disclosure.
[0025] Figure 4 Schematic diagram of the architecture of a trajectory prediction model according to an embodiment of the present disclosure.
[0026] Figure 5 is a schematic diagram of a first electronic device according to an embodiment of the present disclosure.
[0027] Figure 6 is a schematic diagram of a second electronic device according to an embodiment of the present disclosure.
[0028] Figure 7 It is a flowchart of a vehicle control method according to an embodiment of the present disclosure.
[0029] Figure 8 It is a schematic diagram of a process of generating a target image according to an embodiment of the present disclosure.
[0030] Fig. 9 is another flowchart of a vehicle control method according to an embodiment of the present disclosure.
[0031] Fig.10 It is a flowchart of a trajectory prediction method according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0032] The present disclosure is further described in detail below in conjunction with the accompanying drawings and examples. It is understood that the specific examples described herein are only used to explain the relevant content, rather than to limit the present disclosure. It should also be noted that, for ease of description, only the parts related to the present disclosure are shown in the accompanying drawings.
[0033] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure can be combined with each other. The technical solution of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0034] In the related art, the action of parking and opening the door requires user intervention to complete. However, if the user forgets to observe the situation behind the car and directly issues a door opening command to open the door, it is easy to cause a traffic accident. In other words, there are problems such as low vehicle intelligence and poor door opening safety in the related art. In order to improve the vehicle intelligence and door opening safety, the present disclosure automatically and cleverly sets the parking trajectory of the target vehicle to ensure that the target vehicle will not collide with moving obstacles when opening the door when driving to the parking position, so that even if the user forgets to observe the situation behind the car and directly opens the door, a collision can be avoided. To this end, the following technical solution is proposed in the present disclosure.
[0035] In the present disclosure, a vehicle may include different types of transportation vehicles or movable objects, for example, a vehicle may include a car with a door, a motorcycle, a robot or other types of transportation vehicles or movable objects, etc. In addition, a server may be a server with a physical form or a cloud server, and the present disclosure does not limit the type of server.
[0036] Figure 1 A schematic diagram of a vehicle control system according to an embodiment of the present disclosure is shown. In the vehicle control system, a target vehicle 100, a mobile obstacle 200 and a server 300 may be provided, and the server 300 can communicate with the target vehicle 100. In one example, the server 300 sends a pre-trained trajectory prediction model to the target vehicle 100, and then the target vehicle 100 deploys the trajectory prediction model locally in the vehicle, so that the target vehicle 100 predicts the first predicted trajectory information of the mobile obstacle 200 and the second predicted trajectory information of the target vehicle 100 itself based on the trajectory prediction model and the target image, and automatically drives to a parking position according to its own second predicted trajectory information. In another example, the server 300 does not send the trajectory prediction model to the target vehicle 100, but deploys the trajectory prediction model locally on the server, and then the server 300 generates the first predicted trajectory information of the mobile obstacle 200 and the second predicted trajectory information of the target vehicle 100 through the trajectory prediction model based on the target image sent by the target vehicle 100, and sends the first predicted trajectory information of the mobile obstacle 200 and the second predicted trajectory information of the target vehicle 100 to the target vehicle 100, so that the target vehicle 100 automatically drives to the parking position according to the second predicted trajectory information.
[0037] In the present disclosure, the target vehicle 100 and the server 300 each include at least one processor and at least one memory.
[0038] Figure 2 An interactive schematic diagram of a vehicle control system according to an embodiment of the present disclosure is shown. Figure 2 The detailed description is for a clearer understanding of the technical solution of the present disclosure and should not be considered as a limitation of the protection scope of the present disclosure. In the process of implementing the technical idea of the present disclosure, one or some steps may be omitted, or other alternatives may be adopted.
[0039] In step S201, the server determines the trajectory information of the mobile obstacle based on multiple pictures including the mobile obstacle near the vehicle collected within a predetermined period of time, wherein the predetermined period of time is the period of time when the vehicle drives to the parking position and opens the door, and the vehicle and the mobile obstacle do not collide within the predetermined period of time. The trajectory information in the present disclosure includes at least the driving speed and the driving route, and the driving route may include multiple position data, each of which may include position coordinates and attitude angles. "Nearby" can be understood as the distance between the two being less than or equal to the first predetermined distance. The position coordinates may be longitude and latitude coordinates, or coordinates in a predetermined coordinate system, for example, coordinates in a predetermined coordinate system established with the vehicle as the origin. Relevant personnel may drive the vehicle to different parking positions multiple times at different times and under different road conditions at different driving speeds and different driving styles (conservative or aggressive), and collect multiple vehicle surrounding environment pictures, vehicle driving speed and vehicle position data at equal time intervals (such as 0.1 seconds) during the vehicle driving process and within a predetermined time (such as 8 seconds) after the vehicle drives to the parking position. The vehicle surrounding environment pictures can be collected by a camera set on the vehicle. The vehicle surrounding environment picture includes moving obstacles, including but not limited to bicycles, pedestrians, cars, electric vehicles, etc. By using a preset image recognition algorithm, the moving obstacles and lane lines in multiple vehicle surrounding environment pictures are identified, and then the position data of the moving obstacles and the lane line information of the road where the vehicle is located can be determined according to the recognition results. Since multiple vehicle surrounding obstacle pictures are collected at equal time intervals, the driving speed of the moving obstacle can be obtained by derivation of the time interval by the position data. The driving speed of the vehicle can be collected by a speed sensor installed on the vehicle. The position data of the vehicle can be collected by a positioning device and a posture sensor installed on the vehicle. In addition, the position data and driving speed of the moving obstacle can also be determined by the radar signal collected by the radar system installed on the vehicle. In this way, the radar system combined with the camera can more accurately determine the position data and driving speed of the moving obstacle from multiple dimensions.
[0040] In step S202, the server projects the trajectory information of the mobile obstacle and the trajectory information of the vehicle collected within a predetermined period of time onto the same coordinate plane to obtain a training picture, wherein the training picture includes the trajectory information of the mobile obstacle and the trajectory information of the vehicle. Optionally, the road where the vehicle is located may include multiple lanes, and the training picture and target picture of the present disclosure may also include lane line information, for example, lane line information of the lane where the vehicle is located and lane line information of adjacent lanes of the lane where the vehicle is located. This is beneficial to improving the accuracy of trajectory prediction. The trajectory information of the vehicle, the trajectory information of the mobile obstacle, and the lane line information of the road where the vehicle is located collected at multiple times may be projected onto the same coordinate plane to obtain a training picture. In this way, the training picture carries both static information (i.e., lane lines and data collected at a certain time) and dynamic information (i.e., data collected at multiple times), which is beneficial for the trajectory prediction model to fully learn the features therein during the training process and improve the accuracy of the trajectory prediction model. The training picture such as Figure 3 As shown. Considering that there is a lot of pre-collected vehicle trajectory information, moving obstacle trajectory information and lane line information of the road where the vehicle is located, for example, 1 frame of vehicle trajectory information, moving obstacle trajectory information and lane line information of the road where the vehicle is located is collected every 0.1 second. If the total collection is 1 hour, 36,000 frames of vehicle trajectory information, moving obstacle trajectory information and lane line information of the road where the vehicle is located are obtained. They can be sorted in chronological order, and the data of each of them in the first time length before is used to generate training pictures, and the data of each of them in the second time length after is used as the corresponding true value used in the calculation of the loss function. The first time length is less than or equal to the second time length, for example, the first time length is 5 seconds and the second time length is 8 seconds. This is conducive to improving the accuracy of subsequent trajectory prediction. The incomplete data in the first time length and the second time length are eliminated. In the training images, the trajectory information of the vehicle, the trajectory information of the moving obstacles, and the lane line information of the road on which the vehicle is located can be represented by different colors. For example, the lane line can be a blue line, the moving obstacle can be a red frame, the vehicle can be a green frame, and the center line of the lane can be a green line.
[0041] In step S203, a trajectory prediction model is constructed. Based on the neural network layer, a trajectory prediction model for training can be designed. Figure 4 , the trajectory prediction model may include an encoder and a decoder, wherein the encoder includes a first convolution block, a second convolution block and a third convolution block, the first convolution block includes two groups of convolution layers (conv), a batch normalization layer (bn) and an activation layer (relu), the first convolution block is used to extract the feature vector of the target image and generate an N-channel feature vector, where N ≥ 1, the length of the target image remains unchanged after the first convolution block, and the number of channels changes, in Figure 4In the example, after the first pooling layer (maxpool), the output channel number is 32 feature vectors, that is, N is 32; the second convolution block includes 4 groups of convolution layers (conv), batch normalization layers (bn) and activation layers (relu), the second convolution block receives N channel feature vectors, and after the second pooling layer (maxpool), the output channel number is 64 (i.e. 2N) feature vectors; the third convolution block includes 8 groups of convolution layers (conv), batch normalization layers (bn) and activation layers (relu), the third convolution block receives 2N channel feature vectors, and after the third pooling layer (maxpool), the output channel number is 128 (i.e. 4N) feature vectors; the decoder includes the first linear layer, the first activation layer, the second linear layer, the second activation layer and the third Linear layer, where the first linear layer receives a 4N channel feature vector and generates an 8N channel feature vector; the 8N channel feature vector passes through the first activation layer and the second linear layer in sequence to generate a new 4N channel feature vector; the new 4N channel feature vector passes through the second activation layer and the third linear layer in sequence to generate the first predicted trajectory information of the moving obstacle and the second predicted trajectory information of the target vehicle. In this way, the use of three linear layers and two activation layers enables the trajectory prediction model to learn as much as possible about the motion characteristics of the vehicle and the moving obstacle while reducing the amount of calculation. It is understandable that using more layers will increase the amount of calculation of the trajectory prediction model, while using fewer layers will lead to insufficient learning of certain motion characteristics. The number of layers is obtained after training and debugging and is a calibration value. Figure 4 In the example, the input of the trajectory prediction model is a training image of size 242×242×3, where 242 is the length and width of the training image, 3 is the number of color channels of the training image, and the output is a trajectory of size 1×80×3. The trajectory output by the trajectory prediction model may include 80 trajectory points with equal time intervals, that is, 80 trajectory points with equal time intervals are generated for the vehicle and each moving obstacle in the training image. The trajectory points may carry position information. The speed and acceleration can be obtained by differentiating the time interval with the position information. Therefore, the trajectory points can represent the time, speed, or acceleration at which the vehicle or moving obstacle reaches the position. The loss function used for trajectory prediction model training is: loss = ,in, and It indicates the position coordinates of the trajectory points predicted by the model, i.e. the predicted values. and Indicates the actual trajectory position coordinates, i.e. the true value.
[0042] In step S204, the server trains the trajectory prediction model based on the training image to obtain a trained trajectory prediction model. The trained trajectory prediction model can perform trajectory prediction on the mobile obstacles and vehicles in the training image to obtain the first predicted trajectory information of the mobile obstacles and the second predicted trajectory information of the vehicles. The mobile obstacles traveling along the first predicted trajectory information and the vehicles traveling along the second predicted trajectory information do not collide during the door opening process of the vehicles. The first predicted trajectory information and the second predicted trajectory information at least include the driving speed and the driving route. The driving route of the first predicted trajectory information and the driving route of the second predicted trajectory information can each include 80 trajectory points. The contents related to the trajectory points can refer to the above description. For the sake of brevity, they will not be described one by one. Exemplarily, before the training image is input into the trajectory prediction model, the training image is processed into a size of 242×242×3. During the training process, the training image is first input into the encoder of the trajectory prediction model for feature extraction (mainly feature extraction of pixels of the training image). After the first convolution block, the length of the training image remains unchanged, and the number of channels becomes 32, which can be understood as an output feature map of 242×242×32; after the second convolution block, the number of channels doubles to 64, that is, the output feature map is 242×242×64; after the third convolution block, the output feature map is 242×242×128; then, the feature map of size 242×242×128 output by the encoder is input into the decoder. After passing through the first linear layer, the first activation layer and the second linear layer of the decoder, the size of the feature map does not change (still 242×242×128), which enables the trajectory prediction model to learn more feature information. Finally, the feature map passes through the second activation layer and the third linear layer of the decoder to allow it to learn characteristics similar to the true value. In this way, the encoder can extract features from the training images, and the decoder can decode the extracted features to obtain the predicted trajectory. This method avoids the use of parameterized encoding of vehicles and moving obstacles, and instead adopts a non-parametric encoding method, which allows the trajectory prediction model to learn more information. When the number of iterations reaches a predetermined number or the calculated loss function value converges, the server stops the training of the trajectory prediction model and stores the parameters of the trajectory prediction model at this time to obtain a trained trajectory prediction model. The trained trajectory prediction model can more accurately predict the second predicted trajectory information of the vehicle and the first predicted trajectory information of the moving obstacle.For the trajectory prediction model trained with data corresponding to the conservative driving style, the second predicted trajectory information predicted by the model can satisfy: when the vehicle automatically drives according to the second predicted trajectory information, the vehicle can avoid colliding with a moving obstacle when it reaches the parking position and opens the door by slowing down in advance; for the trajectory prediction model trained with data corresponding to the aggressive driving style, the second predicted trajectory information predicted by the model can satisfy: when the vehicle automatically drives according to the second predicted trajectory information, the vehicle can avoid colliding with a moving obstacle when it reaches the parking position and opens the door by accelerating in advance; for the trajectory prediction model trained with data corresponding to both the conservative driving style and the aggressive driving style, the second predicted trajectory information predicted by the model can satisfy: when the vehicle automatically drives according to the second predicted trajectory information, the vehicle can avoid colliding with a moving obstacle when it reaches the parking position and opens the door by accelerating or decelerating in advance. In this way, the automatic driving of the target vehicle is controlled based on the second predicted trajectory information of the target vehicle predicted by the trained trajectory prediction model, which can imitate human driving habits, accelerate to reach the parking position in advance or decelerate to reach the parking position later, thereby improving driving efficiency.
[0043] In step S205, the server sends the trained trajectory prediction model to the first electronic device of the target vehicle. Specifically, the server may send an update prompt to the first electronic device, and upon receiving a confirmation update instruction returned by the first electronic device, send the trained trajectory prediction model to the first electronic device; or, upon receiving a model acquisition instruction sent by the first electronic device, the server sends the trained trajectory prediction model to the first electronic device, thereby facilitating the first electronic device to deploy the trained trajectory prediction model locally in the target vehicle. Figure 2 In the example, the trajectory prediction process is explained by taking the deployment of the trained trajectory prediction model locally in the target vehicle as an example. It should be pointed out that in other embodiments, the server may not send the trained trajectory prediction model to the first electronic device, but when receiving a target image sent by the first electronic device including the current trajectory information of the mobile obstacles near the target vehicle and the current trajectory information of the target vehicle, the server inputs the target image into the trained trajectory prediction model, performs trajectory prediction on the mobile obstacles and the target vehicle in the target image through the trained trajectory prediction model to obtain the first predicted trajectory information of the mobile obstacles near the target vehicle and the second predicted trajectory information of the target vehicle, and sends the first predicted trajectory information of the mobile obstacles near the target vehicle and the second predicted trajectory information of the target vehicle to the first electronic device.
[0044] In step S206, the first electronic device of the target vehicle receives the parking instruction. The first electronic device may be associated with navigation software, and the first electronic device may obtain navigation information of the target vehicle, and determine that the parking instruction is received when it is determined that the distance between the target vehicle and the parking position is less than or equal to the second predetermined distance according to the navigation information. The first electronic device may also interact with the driver, and determine that the parking instruction is received when the first electronic device detects that the driver has issued a parking-related voice or detects that a parking-related button is triggered.
[0045] In step S207, the positioning device of the target vehicle sends the collected position data of the target vehicle to the first electronic device at fixed time intervals.
[0046] In step S208, the speed sensor of the target vehicle sends the collected driving speed of the target vehicle to the first electronic device at a fixed time interval. The position data of the target vehicle and the driving speed of the target vehicle represent the current track information of the target vehicle.
[0047] In step S209, the camera of the target vehicle sends to the first electronic device a plurality of images including moving obstacles near the target vehicle (i.e., images of the surrounding environment of the target vehicle) collected at fixed time intervals within a first predetermined period after receiving the parking instruction. The first predetermined period may start from when the parking instruction is received and end after 5 seconds.
[0048] In step S210, the first electronic device generates a target image based on a plurality of images including mobile obstacles near the target vehicle collected within the first predetermined period and the current track information of the target vehicle, wherein the target image includes the current track information of the mobile obstacle and the current track information of the target vehicle. Specifically, the current track information of the mobile obstacle is determined based on the plurality of images including mobile obstacles near the target vehicle collected within the first predetermined period; and the current track information of the target vehicle and the current track information of the mobile obstacle are projected onto the same coordinate plane to obtain a target image. The mobile obstacles in the plurality of images of the surrounding environment of the target vehicle can be identified with the help of a preset image recognition algorithm, and then the position data of the mobile obstacle can be determined based on the recognition result. Since the plurality of images of obstacles around the target vehicle are collected at equal time intervals, the travel speed of the mobile obstacle can be obtained by derivation of the time interval by the position data, and then the current track information of the mobile obstacle can be characterized by the position data of the mobile obstacle and the travel speed of the mobile obstacle. The position data may include position coordinates. By marking the position coordinates in the same coordinate plane, the current trajectory information of the target vehicle and the current trajectory information of the moving obstacle collected at multiple times can be projected into the same coordinate plane to obtain a target image.
[0049] In step S211, the first electronic device generates first predicted trajectory information of the mobile obstacle and second predicted trajectory information of the target vehicle based on the target image. Specifically, the target image can be input into the trajectory prediction model stored in the first electronic device, and the trajectory prediction model is used to predict the trajectories of the mobile obstacle and the target vehicle to generate the first predicted trajectory information of the mobile obstacle and the second predicted trajectory information of the target vehicle. The first predicted trajectory information includes at least the driving speed and the driving route, and the first predicted trajectory information can characterize what position the mobile obstacle will reach at different times in the future at what driving speed. The second predicted trajectory information includes at least the driving speed and the driving route, and the second predicted trajectory information can characterize what position the target vehicle will reach at different times in the future at what driving speed.
[0050] In step S212, the first electronic device controls the target vehicle to travel to the parking position based on the second predicted trajectory information of the target vehicle. Among them, the moving obstacle traveling along the first predicted trajectory information does not collide with the target vehicle traveling to the parking position during the door opening process. After determining the second predicted trajectory information of the target vehicle, the target vehicle can be directly controlled to automatically travel to the parking position based on the second predicted trajectory information, thereby improving the vehicle intelligence level and ensuring the safety during the door opening process. The second predicted trajectory information can be predicted periodically according to the road conditions. When the second predicted trajectory information is updated, the target vehicle is controlled to automatically travel according to the updated second predicted trajectory information, thereby timely adjusting the driving trajectory of the target vehicle and improving safety. The door opening process can be understood as the process in which the opening angle of the door increases from 0 to a certain angle and basically remains at the certain angle. Since the target vehicle automatically drives to the parking position according to the second predicted trajectory information and directly opens the door, it can avoid the collision between the moving obstacle and the door of the target vehicle. Therefore, when the target vehicle reaches the parking position, the door can be directly opened.
[0051] In step S213, the third predicted trajectory information of the moving obstacle is predicted based on the multiple pictures including the moving obstacle collected within the second predetermined period before the door of the target vehicle is opened. Optionally, the trajectory information of the moving obstacle within the second predetermined period can be determined based on the multiple pictures including the moving obstacle near the target vehicle collected within the second predetermined period, and the trajectory information within the second predetermined period before the door of the target vehicle is opened and the trajectory information of the moving obstacle within the second predetermined period are projected onto the same coordinate plane to obtain a second target picture, and the third predicted trajectory information of the moving obstacle is predicted based on the second target picture. The second predetermined period can be 5 consecutive seconds during the process of the target vehicle driving to the parking position, until the target vehicle reaches the parking position. Since the target vehicle collects images including the moving obstacle, the position data of the target vehicle and the driving speed of the target vehicle at fixed time intervals during the process of driving to the parking position, when the target vehicle arrives at the parking position, the third predicted trajectory information of the moving obstacle can be immediately predicted according to the multiple images including the moving obstacle collected within the second predetermined period, that is, the trajectory information of the moving obstacle after the target vehicle arrives at the parking position, which at least includes the driving speed and the driving route, and can characterize the moving obstacle at what speed and what position it reaches at different times after the target vehicle arrives at the parking position. Further, the moving obstacles in the multiple images can be identified by using a preset image recognition algorithm, and the position data of the moving obstacle can be determined according to the recognition result, and the driving speed of the moving obstacle can be obtained by derivation of the position data with respect to the time interval, and then the trajectory information of the moving obstacle in the second predetermined period can be characterized by the position data of the moving obstacle and the driving speed of the moving obstacle. The position data can include position coordinates, and the trajectory information of the moving obstacle in the second predetermined period and the trajectory information of the target vehicle in the second predetermined period before the door is opened can be projected into the same coordinate plane by marking the coordinates in the same image coordinate system to obtain the second target image. The second target image may be input into a trained trajectory prediction model, and the trajectory prediction model may be used to predict the trajectory of the moving obstacle in the second target image to obtain third predicted trajectory information of the moving obstacle.
[0052] In step S214, the door opening of the target vehicle is controlled according to the distance relationship between the moving obstacle traveling according to the third predicted trajectory information and the target vehicle. It is understandable that, although in theory the target vehicle can avoid collision between the moving obstacle and the door of the target vehicle by directly opening the door after automatically traveling to the parking position according to the second predicted trajectory information, considering the variability of road conditions, the door is not directly opened after the target vehicle reaches the parking position, but the distance relationship between the moving obstacle traveling according to the third predicted trajectory information and the target vehicle is first determined, and then the door opening of the target vehicle is controlled according to the distance relationship, thereby further improving the door opening safety. In some embodiments, if the distance between the moving obstacle traveling according to the third predicted trajectory information and the target vehicle at any time within the target time after the door is opened is greater than the distance threshold, the target vehicle is controlled to open the door, wherein the distance threshold is determined according to the size of the moving obstacle, the size of the target vehicle and the door size of the target vehicle, so as to further ensure the safety within the target time after the door is opened. If within the target time after the door is opened, the distance between the moving obstacle traveling according to the third predicted trajectory information and the target vehicle at any time is less than or equal to the distance threshold, the target vehicle is controlled to keep the door closed, and the target vehicle is controlled to issue a door opening warning prompt. The door opening warning prompt includes broadcasting a door opening warning prompt voice, displaying a door opening warning prompt animation, and a power door opening warning light. One or more of these, in this way, can prompt the moving obstacle to pass quickly or avoid it, reduce the target vehicle's door opening waiting time, and improve traffic efficiency.
[0053] The third predicted trajectory information can characterize the speed of the moving obstacle. The reaction time required for humans to make avoidance actions at different moving speeds can be pre-calibrated and stored in the form of a mapping relationship. After determining the speed of the moving obstacle according to the third predicted trajectory information, the reaction time corresponding to the driving speed can be determined by looking up the mapping relationship, and then the corresponding reaction time and the sum of the time required to fully open the door are used as the target time. In this way, the target time can be dynamically adjusted under different circumstances, effectively improving the safety of opening the door. When identifying the moving obstacle in the picture, the size of the moving obstacle can also be identified, and then the sum of half the width of the moving obstacle, half the width of the target vehicle, and the width of the door of the target vehicle can be used as the distance threshold. In this way, the distance between the moving obstacle and the target vehicle is fully considered, effectively improving the safety of opening the door. In one example, the center of the rear axle of the target vehicle is the trajectory point of the target vehicle, and the center of the moving obstacle is the trajectory point of the moving obstacle. The target vehicle's rear axle center is used as the starting point of the target vehicle's detection collision center, and the sum of half the target vehicle's vehicle width and the door width is used as the radius to expand the target vehicle into a circle. In this way, the trajectory points corresponding to the target vehicle at each moment are expanded into a circle; the center of the moving obstacle is used as the starting point of the moving obstacle's detection collision center, and half the width of the moving obstacle is used as the radius to expand the moving obstacle into a circle. In this way, the trajectory points corresponding to the moving obstacle at each moment are expanded into a circle; and then the distance between the corresponding trajectory points of the target vehicle and the moving obstacle at each moment is determined. If the distance is greater than the distance threshold, it means that no collision will occur at this moment. If the distance is less than or equal to the distance threshold, it means that a collision will occur at this moment.
[0054] According to a further embodiment of the present disclosure, a first electronic device is provided, and the first electronic device is arranged in a vehicle 100. Exemplarily, the first electronic device is a vehicle-mounted control device. For example, the first electronic device may include a domain controller.
[0055] Figure 5 A schematic diagram of a first electronic device is shown. The electronic device may include a processor and a memory, wherein the number of the processor and the number of the memory may be one or more. A computer program is stored in the memory, and the processor may call the computer program to execute the corresponding steps / processes. In addition, the first electronic device may also include a communication device or an I / O interface, which may communicate with a communication device or an I / O interface of a second electronic device.
[0056] When the processor executes the computer program, the first electronic device can perform the following processes.
[0057] The first electronic device generates a target image based on multiple images of moving obstacles near the target vehicle and current trajectory information of the target vehicle collected within a first predetermined period of time, wherein the target image includes current trajectory information of the moving obstacles and current trajectory information of the target vehicle.
[0058] The first electronic device generates first predicted trajectory information of the moving obstacle and second predicted trajectory information of the target vehicle based on the target image.
[0059] The first electronic device controls the target vehicle to travel to a parking position based on the second predicted trajectory information of the target vehicle.
[0060] Among them, the moving obstacle traveling along the first predicted trajectory information does not collide with the target vehicle traveling to the parking position during the door opening process.
[0061] The first electronic device of the disclosed embodiment can automatically generate the first predicted trajectory information of the moving obstacle and the second predicted trajectory information of the target vehicle based on the target image including the current trajectory information of the moving obstacle and the current trajectory information of the target vehicle, and control the target vehicle to drive to the parking position according to the second predicted trajectory information, thereby improving the intelligence of the vehicle. At the same time, since the second predicted trajectory information satisfies that when the target vehicle drives to the parking position based on the second predicted trajectory information and the door of the target vehicle is opened, the moving obstacle driving based on the first predicted trajectory information does not collide with the target vehicle, therefore, the target vehicle will not collide in the process of opening the door at the parking position, thereby improving the safety of door opening.
[0062] A target image is generated based on multiple images including mobile obstacles near the target vehicle collected within a first predetermined period of time and current trajectory information of the target vehicle, including: determining the current trajectory information of the mobile obstacle based on the multiple images including mobile obstacles near the target vehicle collected within the first predetermined period of time; and projecting the current trajectory information of the target vehicle and the current trajectory information of the mobile obstacle onto the same coordinate plane to obtain a target image.
[0063] Based on the target image, the first predicted trajectory information of the mobile obstacle and the second predicted trajectory information of the target vehicle are generated, including: inputting the target image into the trajectory prediction model stored in the first electronic device, predicting the trajectories of the mobile obstacle and the target vehicle through the trajectory prediction model, and generating the first predicted trajectory information of the mobile obstacle and the second predicted trajectory information of the target vehicle. Alternatively, based on the target image, the first predicted trajectory information of the mobile obstacle and the second predicted trajectory information of the target vehicle are generated, including: sending the target image to the second electronic device; and receiving the first predicted trajectory information of the mobile obstacle and the second predicted trajectory information of the target vehicle sent by the second electronic device, wherein the first predicted trajectory information of the mobile obstacle and the second predicted trajectory information of the target vehicle are obtained by processing the target image using the trajectory prediction model.
[0064] The trajectory prediction model includes an encoder and a decoder, wherein the encoder includes a first convolution block, a second convolution block and a third convolution block, the first convolution block is used to extract the feature vector of the target image and generate an N-channel feature vector, where N≥1; the second convolution block receives the N-channel feature vector and generates a 2N-channel feature vector; the third convolution block receives the 2N-channel feature vector and generates a 4N-channel feature vector; and the decoder receives the 4N-channel feature vector and generates the first predicted trajectory information of the moving obstacle and the second predicted trajectory information of the target vehicle. Among them, the first convolution block includes two groups of convolution layers, batch normalization layers and activation layers; the second convolution block includes four groups of convolution layers, batch normalization layers and activation layers; and the third convolution block includes eight groups of convolution layers, batch normalization layers and activation layers. Furthermore, the decoder includes a first linear layer, a first activation layer, a second linear layer, a second activation layer and a third linear layer. The decoder receives a 4N channel feature vector and generates first predicted trajectory information of a moving obstacle and second predicted trajectory information of a target vehicle, including: the first linear layer receives a 4N channel feature vector and generates an 8N channel feature vector; the 8N channel feature vector passes through a first activation layer and a second linear layer in sequence to generate a new 4N channel feature vector; and the new 4N channel feature vector passes through a second activation layer and a third linear layer in sequence to generate the first predicted trajectory information of a moving obstacle and the second predicted trajectory information of a target vehicle.
[0065] After controlling the target vehicle to drive to the parking position, it also includes: predicting the third predicted trajectory information of the moving obstacle based on multiple pictures including the moving obstacle collected within the second predetermined period before the door of the target vehicle is opened; and controlling the door opening of the target vehicle according to the distance relationship between the moving obstacle traveling according to the third predicted trajectory information and the target vehicle. Among them, controlling the door opening of the target vehicle includes: if the distance between the moving obstacle traveling according to the third predicted trajectory information and the target vehicle at any time within the target time after the door is opened is greater than the distance threshold, then controlling the door of the target vehicle to open, wherein the distance threshold is determined according to the size of the moving obstacle, the size of the target vehicle and the size of the door of the target vehicle.
[0066] The contents related to the first electronic device can refer to the above description, and will not be repeated here for the sake of brevity.
[0067] According to a further embodiment of the present disclosure, a vehicle is also provided. The vehicle includes the first electronic device of the present disclosure.
[0068] According to a further embodiment of the present disclosure, a second electronic device is further provided. The second electronic device may be a server 300, for example, a cloud server or a physical server.
[0069] Figure 6 A schematic diagram of a second electronic device is shown. The electronic device may include a processor and a memory, wherein the number of the processor and the memory may be one or more. A computer program is stored in the memory, and the processor may call the computer program to execute the corresponding steps / processes. In addition, the second electronic device may also include a communication device or an I / O interface, which may communicate with the communication device or I / O interface of the first electronic device.
[0070] When the processor executes the computer program, the second electronic device can perform the following process.
[0071] The second electronic device determines the trajectory information of the moving obstacle based on multiple pictures of the moving obstacle near the vehicle collected within a predetermined time period, wherein the predetermined time period is a time period when the vehicle drives to the parking position and opens the door, and the vehicle and the moving obstacle do not collide within the predetermined time period.
[0072] The second electronic device projects the trajectory information of the moving obstacle and the trajectory information of the vehicle collected within a predetermined period of time onto the same coordinate plane to obtain a training picture, wherein the training picture includes the trajectory information of the moving obstacle and the trajectory information of the vehicle.
[0073] The second electronic device trains the trajectory prediction model based on the training picture to obtain a trained trajectory prediction model.
[0074] The second electronic device of the disclosed embodiment can accurately predict the second predicted trajectory information of the target vehicle, and can ensure that when the target vehicle drives to the parking position based on the second predicted trajectory information and the door of the target vehicle is opened, the moving obstacle driving based on the first predicted trajectory information does not collide with the target vehicle, thereby improving the door opening safety of the target vehicle and the intelligence level of the vehicle.
[0075] After obtaining the trained trajectory prediction model, it also includes: sending an update prompt to the first electronic device; and sending the trained trajectory prediction model to the first electronic device when receiving the update confirmation instruction sent by the first electronic device. Alternatively, after obtaining the trained trajectory prediction model, it also includes: receiving a target image sent by the first electronic device, the target image includes the current trajectory information of the moving obstacles near the target vehicle and the current trajectory information of the target vehicle; inputting the image into the trained trajectory prediction model, and using the trained trajectory prediction model to perform trajectory prediction on the moving obstacles near the target vehicle and the target vehicle in the image to obtain the first predicted trajectory information of the moving obstacles near the target vehicle and the second predicted trajectory information of the target vehicle; and sending the first predicted trajectory information of the moving obstacles near the target vehicle and the second predicted trajectory information of the target vehicle to the first electronic device.
[0076] The contents related to the second electronic device can refer to the above description, and will not be repeated here for the sake of brevity.
[0077] According to a further embodiment of the present disclosure, a vehicle control method is also provided. Figure 5 The invention is implemented in the first electronic device shown. Figure 7 FIG. 1 shows a flow chart of a vehicle control method according to the present disclosure. Figure 7 As shown, the vehicle control method may include step S710, step S720 and step S730.
[0078] S710: Generate a target image based on multiple images of moving obstacles near the target vehicle collected within the first predetermined period of time and the current trajectory information of the target vehicle, wherein the target image includes the current trajectory information of the moving obstacles and the current trajectory information of the target vehicle.
[0079] S720: Generate first predicted trajectory information of the moving obstacle and second predicted trajectory information of the target vehicle based on the target image.
[0080] S730: Based on the second predicted trajectory information of the target vehicle, the target vehicle is controlled to travel to the parking position, wherein the moving obstacle traveling along the first predicted trajectory information does not collide with the target vehicle traveling to the parking position during the door opening process.
[0081] Please combine Figure 8 , step S710 may include: S711, determining the current trajectory information of the moving obstacle based on multiple pictures including the moving obstacle near the target vehicle collected within the first predetermined time period; and S712, projecting the current trajectory information of the target vehicle and the current trajectory information of the moving obstacle onto the same coordinate plane to obtain a target picture.
[0082] Step S720 may include: inputting the target image into the trajectory prediction model stored in the first electronic device, predicting the trajectories of the mobile obstacle and the target vehicle through the trajectory prediction model, and generating first predicted trajectory information of the mobile obstacle and second predicted trajectory information of the target vehicle. Alternatively, step S720 may include: sending the target image to the second electronic device; and receiving the first predicted trajectory information of the mobile obstacle and the second predicted trajectory information of the target vehicle sent by the second electronic device, wherein the first predicted trajectory information of the mobile obstacle and the second predicted trajectory information of the target vehicle are obtained by processing the target image using the trajectory prediction model.
[0083] The trajectory prediction model includes an encoder and a decoder, wherein the encoder includes a first convolution block, a second convolution block and a third convolution block, the first convolution block is used to extract the feature vector of the target image and generate an N-channel feature vector, where N≥1; the second convolution block receives the N-channel feature vector and generates a 2N-channel feature vector; the third convolution block receives the 2N-channel feature vector and generates a 4N-channel feature vector; and the decoder receives the 4N-channel feature vector and generates the first predicted trajectory information of the moving obstacle and the second predicted trajectory information of the target vehicle. Among them, the first convolution block includes two groups of convolution layers, batch normalization layers and activation layers; the second convolution block includes four groups of convolution layers, batch normalization layers and activation layers; and the third convolution block includes eight groups of convolution layers, batch normalization layers and activation layers. Furthermore, the decoder includes a first linear layer, a first activation layer, a second linear layer, a second activation layer and a third linear layer. The decoder receives a 4N channel feature vector and generates first predicted trajectory information of a moving obstacle and second predicted trajectory information of a target vehicle, including: the first linear layer receives a 4N channel feature vector and generates an 8N channel feature vector; the 8N channel feature vector passes through a first activation layer and a second linear layer in sequence to generate a new 4N channel feature vector; and the new 4N channel feature vector passes through a second activation layer and a third linear layer in sequence to generate the first predicted trajectory information of a moving obstacle and the second predicted trajectory information of a target vehicle.
[0084] See also Fig. 9, after step S730, further comprising: S740, predicting the third predicted trajectory information of the moving obstacle based on a plurality of pictures including the moving obstacle collected within the second predetermined period before the door of the target vehicle is opened; and S750, controlling the door opening of the target vehicle according to the distance relationship between the moving obstacle traveling according to the third predicted trajectory information and the target vehicle. Wherein, step S750 may include: if the distance between the moving obstacle traveling according to the third predicted trajectory information and the target vehicle at any time within the target time after the door is opened is greater than the distance threshold, then controlling the door of the target vehicle to be opened, wherein the distance threshold is determined according to the size of the moving obstacle, the size of the target vehicle, and the size of the door of the target vehicle.
[0085] For contents related to the vehicle control method, please refer to the above description, which will not be repeated here for the sake of brevity.
[0086] According to a further embodiment of the present disclosure, a trajectory prediction method is also provided. Figure 6 The method is implemented in the second electronic device shown. Fig.10 FIG. 4 shows a flow chart of a trajectory prediction method according to the present disclosure. Fig.10 As shown, the trajectory prediction method may include step S810, step S820 and step S830.
[0087] S810: Determine the trajectory information of the moving obstacle based on multiple pictures of the moving obstacle near the vehicle collected within a predetermined time period, wherein the predetermined time period is a time period when the vehicle drives to a parking position and opens the door, and the vehicle and the moving obstacle do not collide within the predetermined time period.
[0088] S820: Projecting the trajectory information of the moving obstacle and the trajectory information of the vehicle collected within a predetermined period of time onto the same coordinate plane to obtain a training image, wherein the training image includes the trajectory information of the moving obstacle and the trajectory information of the vehicle.
[0089] S830: Training the trajectory prediction model based on the training image to obtain a trained trajectory prediction model.
[0090] After step S830, the method may further include: sending an update prompt to the first electronic device; and sending the trained trajectory prediction model to the first electronic device when receiving the update confirmation instruction sent by the first electronic device. Alternatively, after step S830, the method may further include: receiving a target image sent by the first electronic device, the target image including the current trajectory information of the moving obstacles near the target vehicle and the current trajectory information of the target vehicle; inputting the target image into the trained trajectory prediction model, performing trajectory prediction on the moving obstacles near the target vehicle and the target vehicle in the target image through the trained trajectory prediction model to obtain the first predicted trajectory information of the moving obstacles near the target vehicle and the second predicted trajectory information of the target vehicle; and sending the first predicted trajectory information of the moving obstacles near the target vehicle and the second predicted trajectory information of the target vehicle to the first electronic device.
[0091] For details about the trajectory prediction method, please refer to the above description, which will not be described here for the sake of brevity.
[0092] The present disclosure also provides a readable storage medium, in which a computer program is stored, and the computer program is used to implement the above method when executed by a processor. "Readable storage medium" can be any device that can contain, store, communicate, propagate or transmit a program for use in an instruction execution system, device or equipment or in combination with these instruction execution systems, devices or equipment. More specific examples of readable storage media include the following: an electrical connection portion (electronic device) with one or more wirings, a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), an optical fiber device, and a portable read-only memory (CDROM), etc.
[0093] The present disclosure also provides a computer program product. The method of the present disclosure can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed, the process or function of the present disclosure is executed in whole or in part.
[0094] The computer program or instructions may be stored in a readable storage medium or transmitted from one readable storage medium to another readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The readable storage medium may be any available medium that can be accessed or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid state drive. The computer readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.
[0095] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0096] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0097] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0098] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0099] In the description of this specification, the description with reference to the terms "one embodiment / method", "some embodiments / methods", "example", "specific example", or "some examples" etc. means that the specific features, structures, or characteristics described in conjunction with the embodiment / method or example are included in at least one embodiment / method or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment / method or example. Moreover, the specific features, structures, or characteristics described may be combined in any one or more embodiments / methods or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments / methods or examples described in this specification and features of different embodiments / methods or examples, unless they are contradictory.
[0100] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0101] Those skilled in the art should understand that the above embodiments are only for the purpose of clearly illustrating the present disclosure, and are not intended to limit the scope of the present disclosure. For those skilled in the art, other changes or modifications may be made based on the above disclosure, and these changes or modifications are still within the scope of the present disclosure.
Claims
1. A first electronic device, wherein the first electronic device is installed in a vehicle, characterized in that: The electronic device comprises a processor and a memory, wherein the memory stores a computer program. When the computer program is executed by the processor, the first electronic device performs the following process: Generate a target image according to a plurality of images including the moving obstacles near the target vehicle and the current track information of the target vehicle collected within the first predetermined period, wherein the target image includes the current track information of the moving obstacles and the current track information of the target vehicle; Based on the target image, generating first predicted trajectory information of the moving obstacle and second predicted trajectory information of the target vehicle, wherein the target image is input into a trajectory prediction model, and features of the target image are extracted by an encoder of the trajectory prediction model, and the first predicted trajectory information and the second predicted trajectory information are generated based on the extracted features; and Based on the second predicted trajectory information of the target vehicle, controlling the target vehicle to travel to a parking position, The second predicted trajectory information is generated so that the moving obstacle traveling along the first predicted trajectory information does not collide with the target vehicle traveling to the parking position during the door opening process of the target vehicle.
2. The first electronic device according to claim 1, characterized in that: A target image is generated according to a plurality of images including moving obstacles near the target vehicle collected within a first predetermined period of time and current trajectory information of the target vehicle, including: Determining current track information of the moving obstacle based on a plurality of images including the moving obstacle near the target vehicle collected within the first predetermined period of time; and The current track information of the target vehicle and the current track information of the moving obstacle are projected onto the same coordinate plane to obtain the one target image.
3. The first electronic device according to claim 1, characterized in that: Based on the target image, generating first predicted trajectory information of the moving obstacle and second predicted trajectory information of the target vehicle includes: sending the target image to a second electronic device; and The first predicted trajectory information of the mobile obstacle and the second predicted trajectory information of the target vehicle sent by the second electronic device are received, where the first predicted trajectory information of the mobile obstacle and the second predicted trajectory information of the target vehicle are obtained by processing the target image using a trajectory prediction model.
4. The first electronic device according to claim 1 or 3, characterized in that: The trajectory prediction model also includes a decoder, wherein the encoder includes a first convolution block, a second convolution block, and a third convolution block, The first convolution block is used to extract the feature vector of the target image and generate an N-channel feature vector, where N≥1; The second convolution block receives the N-channel feature vector and generates a 2N-channel feature vector; The third convolution block receives the 2N channel feature vector and generates a 4N channel feature vector; and The decoder receives the 4N channel feature vector and generates first predicted trajectory information of the moving obstacle and second predicted trajectory information of the target vehicle.
5. The first electronic device according to claim 4, characterized in that: The first convolutional block includes two groups of convolutional layers, a batch normalization layer and an activation layer; The second convolution block includes four groups of convolution layers, batch normalization layers and activation layers; and The third convolution block includes eight groups of convolution layers, batch normalization layers and activation layers.
6. The first electronic device according to claim 4, characterized in that: The decoder includes a first linear layer, a first activation layer, a second linear layer, a second activation layer and a third linear layer. The decoder receives the 4N channel feature vector and generates the first predicted trajectory information of the moving obstacle and the second predicted trajectory information of the target vehicle, including: The first linear layer receives the 4N channel feature vector and generates an 8N channel feature vector; The 8N channel feature vector passes through the first activation layer and the second linear layer in sequence to generate a new 4N channel feature vector; and The new 4N channel feature vector passes through the second activation layer and the third linear layer in sequence to generate the first predicted trajectory information of the moving obstacle and the second predicted trajectory information of the target vehicle.
7. The first electronic device according to claim 1, characterized in that: After controlling the target vehicle to drive to the parking position, the method further includes: Predicting third predicted trajectory information of the moving obstacle based on a plurality of pictures including the moving obstacle collected within a second predetermined period of time before the door of the target vehicle is opened; and The door opening of the target vehicle is controlled according to the distance relationship between the moving obstacle traveling according to the third predicted trajectory information and the target vehicle.
8. The first electronic device according to claim 7, characterized in that: The controlling the door opening of the target vehicle includes: If, within the target time after the door is opened, the distance between the moving obstacle traveling according to the third predicted trajectory information and the target vehicle at any time is greater than a distance threshold, the target vehicle is controlled to open the door, wherein the distance threshold is determined according to the size of the moving obstacle, the size of the target vehicle, and the size of the door of the target vehicle.
9. A second electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory stores a computer program. When the computer program is executed by the processor, the second electronic device performs the following process: Determining the trajectory information of the moving obstacle based on a plurality of images including the moving obstacle near the vehicle collected within a predetermined period of time, wherein the predetermined period of time is a period of time when the vehicle drives to a parking position and opens a door, and the vehicle and the moving obstacle do not collide within the predetermined period of time; Projecting the trajectory information of the moving obstacle and the trajectory information of the vehicle collected within the predetermined period of time onto the same coordinate plane to obtain a training picture, wherein the training picture includes the trajectory information of the moving obstacle and the trajectory information of the vehicle; as well as The trajectory prediction model is trained based on the training image to obtain a trained trajectory prediction model, wherein the trained trajectory prediction model is used for: in the process of trajectory prediction, the trained trajectory prediction model is input with a target image including current trajectory information of a moving obstacle near a target vehicle and current trajectory information of the target vehicle, and features of the target image are extracted by an encoder of the trajectory prediction model, and first predicted trajectory information of the moving obstacle near the target vehicle and second predicted trajectory information of the target vehicle are generated based on the extracted features.
10. The second electronic device according to claim 9, characterized in that: After obtaining the trained trajectory prediction model, it also includes: Sending an update reminder to the first electronic device; and When receiving the update instruction sent by the first electronic device, the trained trajectory prediction model is sent to the first electronic device.
11. The second electronic device according to claim 9, characterized in that: After obtaining the trained trajectory prediction model, it also includes: Receiving the target image sent by the first electronic device; Inputting the target image into the trained trajectory prediction model, and performing trajectory prediction on the moving obstacles near the target vehicle and the target vehicle in the target image using the trained trajectory prediction model to obtain first predicted trajectory information of the moving obstacles near the target vehicle and second predicted trajectory information of the target vehicle; and The first predicted trajectory information of the moving obstacle near the target vehicle and the second predicted trajectory information of the target vehicle are sent to the first electronic device.
12. A vehicle, characterized in that: The vehicle includes the first electronic device according to any one of claims 1 to 8.
13. A vehicle control method, characterized in that: include: Generate a target image according to a plurality of images including the moving obstacles near the target vehicle and the current track information of the target vehicle collected within the first predetermined period, wherein the target image includes the current track information of the moving obstacles and the current track information of the target vehicle; Based on the target image, generating first predicted trajectory information of the moving obstacle and second predicted trajectory information of the target vehicle, wherein the target image is input into a trajectory prediction model, and features of the target image are extracted by an encoder of the trajectory prediction model, and the first predicted trajectory information and the second predicted trajectory information are generated based on the extracted features; and Based on the second predicted trajectory information of the target vehicle, controlling the target vehicle to travel to a parking position, The second predicted trajectory information is generated so that the moving obstacle traveling along the first predicted trajectory information does not collide with the target vehicle traveling to the parking position during the door opening process of the target vehicle.
14. A trajectory prediction method, characterized in that: include: Determining the trajectory information of the moving obstacle based on a plurality of images including the moving obstacle near the vehicle collected within a predetermined period of time, wherein the predetermined period of time is a period of time when the vehicle drives to a parking position and opens a door, and the vehicle and the moving obstacle do not collide within the predetermined period of time; Projecting the trajectory information of the moving obstacle and the trajectory information of the vehicle collected within the predetermined period of time onto the same coordinate plane to obtain a training picture, wherein the training picture includes the trajectory information of the moving obstacle and the trajectory information of the vehicle; as well as The trajectory prediction model is trained based on the training image to obtain a trained trajectory prediction model, wherein the trained trajectory prediction model is used for: in the process of trajectory prediction, the trained trajectory prediction model is input with a target image including current trajectory information of a moving obstacle near a target vehicle and current trajectory information of the target vehicle, and features of the target image are extracted by an encoder of the trajectory prediction model, and first predicted trajectory information of the moving obstacle near the target vehicle and second predicted trajectory information of the target vehicle are generated based on the extracted features.
15. A computer program product, characterized in that The computer program product comprises a computer program, which is used to implement at least the method according to claim 13 or 14 when executed by a processor.
