Vehicle parking method and device, vehicle and storage medium
By acquiring and analyzing the depth information sequence of the obstacle vehicle, identifying its tilt angle and generating parking information, it solves the problem of low efficiency of tilted parking space recognition and parking in the existing technology, and achieves a higher parking success rate and efficiency. .
Patent Information
- Application Number
- CN202410853048.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-01
AI Technical Summary
It is difficult for existing parking technology to effectively identify and handle obstructed vehicles in tilted parking spaces, resulting in low parking efficiency and low success rate.
By obtaining the depth information sequence of the obstacle vehicle, identifying its tilt angle, and generating parking information based on the tilt angle, guiding the vehicle to park according to the tilt angle, using ultrasonic sensors and depth information prediction models to accurately identify the position and posture information of the obstacle vehicle .
It improves the success rate and efficiency of parking, can rationally utilize the space of inclined parking spaces, and reduces misjudgment and misparking.
Smart Images

Figure CN118722597A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of parking technology, and in particular to a vehicle parking method, device, vehicle and storage medium. Background Art
[0002] Using automatic parking technology can assist the driver to park automatically. The car can identify an empty parking space and automatically drive to the empty space.
[0003] However, when performing parking space detection, parking spaces are usually identified as parallel parking spaces and vertical parking spaces. As a result, when a vehicle is parked in an inclined parking space and there is an obstruction vehicle parked at an angle next to the parking space, if the vehicle is parked in a parallel parking space or a vertical parking space, the obstruction vehicle may affect the parking effect. Therefore, how to improve the parking success rate has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] The present application provides a vehicle parking method, device, vehicle and storage medium, which can improve the parking success rate.
[0005] In order to achieve the above purpose, this application adopts the following technical solutions:
[0006] In a first aspect, the present application provides a parking method for a vehicle. In the method, when a vehicle to be parked searches for a warehouse, a first depth information sequence is obtained, the first depth information sequence is used to indicate the position information of an obstacle vehicle, and the first depth information sequence includes multiple sub-data sequences, and the sub-data sequences are used to indicate the position information of a part of the obstacle vehicle. If a second depth information sequence exists in the multiple sub-data sequences, it is determined that there is a tilted obstacle vehicle, and the second depth information sequence is a sub-data sequence in the first depth information sequence that satisfies a preset similarity condition with multiple preset depth information sequences, and the multiple preset depth information sequences include: a first type of preset sequence and a second type of preset sequence, the first type of preset sequence is used to reflect that the tilt angle of the obstacle vehicle is less than 90 degrees, and the second type of preset sequence is used to reflect that the tilt angle of the obstacle vehicle is greater than 90 degrees. Based on the second depth information sequence, the posture information of the tilted obstacle vehicle is determined, and the posture information includes the tilt angle. Based on the posture information of the obstacle vehicle, the tilt angle of the vacant parking space formed by the tilted obstacle vehicle is determined. Based on the tilt angle of the vacant parking space, parking information is generated, and the parking information is used to indicate parking according to the tilt angle of the vacant parking space.
[0007] Based on the above technical solution, when the vehicle to be parked searches for a parking garage, the parking device obtains a first depth information sequence, the first depth information sequence is used to indicate the position information of the obstacle vehicle, and the first depth information sequence includes multiple sub-data sequences, and the sub-data sequences are used to indicate the position information of some parts of the obstacle vehicle. If there is a second depth information sequence in the multiple sub-data sequences, the second depth information sequence is a sub-data sequence in the first depth information sequence that meets the preset similarity condition with multiple preset depth information sequences, and the multiple preset depth information sequences include: a first type of preset sequence and a second type of preset sequence, the first type of preset sequence is used to reflect that the tilt angle of the obstacle vehicle is less than 90 degrees, and the second type of preset sequence is used to reflect that the tilt angle of the obstacle vehicle is greater than 90 degrees, indicating that there is a vehicle that meets the conditions, and the vehicle can be determined as a tilted obstacle vehicle. Then, the parking device can determine the posture information of the tilted obstacle vehicle based on the second depth information sequence, and the posture information includes the tilt angle; in this way, the parking device can determine the posture information of the tilted obstacle vehicle based on the second depth information sequence that matches the preset depth information sequence, thereby accurately identifying the posture information of the obstacle vehicle. Furthermore, when the vehicle to be parked is searching for a parking space, the tilt angle of the vacant parking space formed by the tilted obstacle vehicle is determined based on the position information of the obstacle vehicle, and parking information is generated based on the tilt angle of the vacant parking space. The parking information is used to instruct parking according to the tilt angle of the vacant parking space. In this way, the tilt angle of the vacant parking space can be inferred, so that the vehicle can reasonably use the space of the vacant parking space for parking, which can not only improve the parking efficiency, but also improve the parking success rate.
[0008] In some embodiments, the first depth information sequence includes a plurality of ranging data, and the preset depth information sequence includes a plurality of preset ranging data. Based on the number of the plurality of preset ranging data in the preset depth information sequence, a plurality of sub-data sequences are obtained from the first depth information sequence, there are intersections between the plurality of sub-data sequences, and the number of ranging data in the sub-data sequence is the same as the number of preset ranging data in the preset depth information sequence.
[0009] In some embodiments, the preset depth information sequence includes: a vehicle side data sequence. A target data sequence is determined from the second depth information sequence, the target data sequence corresponds to the vehicle side data sequence of the target depth information sequence, and the target depth information sequence is a preset depth information sequence that satisfies a preset similarity condition with the second depth information sequence. A straight line fitting process is performed based on the target data sequence to obtain target straight line parameters. Based on the target straight line parameters, the inclination angle of the obstacle vehicle is determined.
[0010] In some embodiments, the preset depth information sequence includes: a vehicle side data sequence. The position information of the vehicle side data sequence relative to the target depth information sequence and the number of preset ranging data in the vehicle side data sequence are obtained. Based on the position information of the vehicle side data sequence relative to the target depth information sequence and the number of preset ranging data in the vehicle side data sequence, the target data sequence is determined from the second depth information sequence; wherein the position information of the target data sequence relative to the second depth information sequence is the same as the position information of the vehicle side data sequence relative to the target depth information sequence; and the number of ranging data in the target data sequence is the same as the number of preset ranging data in the vehicle side data sequence.
[0011] In some embodiments, the similarity between the sub-data sequence and the preset depth information sequence satisfies the following formula:
[0012]
[0013] Among them, D(i) is used to represent the similarity between the i-th sub-data sequence in the first depth information sequence and the preset depth information sequence, M is used to represent the number of preset ranging data in the preset depth information sequence, S(i+s) is used to represent the i+s-th ranging data in the first depth information sequence, T(s) is used to represent the s-th preset ranging data in the preset depth information sequence, and i is a positive integer.
[0014] In some embodiments, an initial depth information sequence is obtained, the initial depth information sequence is data collected by an ultrasonic sensor, the initial depth information sequence is input into a trained depth information prediction model to obtain a first depth information sequence, and the depth information prediction model is used to predict the real distance measurement data.
[0015] In some embodiments, the trained depth information prediction model includes: a convolution layer, a pooling layer, a de-pooling layer, and an output layer. The initial depth information sequence is subjected to multiple convolution operations through the convolution layer, and multiple pooling operations are performed through the pooling layer to obtain the encoding result of the initial depth information. The encoding result is subjected to multiple convolution operations through the convolution layer, and multiple de-pooling operations are performed through the pooling layer to obtain the decoding result. The decoding result is processed based on the activation function through the output layer to obtain the first depth information sequence.
[0016] In some embodiments, a training set is obtained, and the training set includes: sample data and labels corresponding to the sample data, the sample data is the ranging data collected by the ultrasonic sensor mounted on the vehicle, and the label is the data collected by the laser radar sensor. According to the training set, supervised training is performed on the preset neural network model to obtain a trained depth information prediction model. The sample data and the ranging data collected by the laser radar sensor are synchronously collected data.
[0017] In some embodiments, the vehicle to be parked is equipped with a plurality of ultrasonic sensors, and the plurality of ultrasonic sensors are respectively arranged at the left front, left rear, right front, and right rear of the vehicle to be parked, and the orientation of the ultrasonic sensors is the same as the direction in which the ultrasonic sensors are arranged at the vehicle to be parked. The left front and right front ultrasonic sensors are used to collect data of vehicles whose postures belong to the first type of preset sequence, and the left rear and right rear ultrasonic sensors are used to collect data of vehicles whose postures belong to the second type of preset sequence.
[0018] In a second aspect, the present application provides a parking device for a vehicle, the device comprising an acquisition module and a processing module.
[0019] The acquisition module is used to acquire a first depth information sequence when the waiting vehicle is searching for a parking garage. The first depth information sequence is used to indicate the position information of the obstacle vehicle. The first depth information sequence includes multiple sub-data sequences. The sub-data sequences are used to indicate the position information of some parts of the obstacle vehicle. The processing module is used to determine the existence of a tilted obstacle vehicle if a second depth information sequence exists in the multiple sub-data sequences. The second depth information sequence is a sub-data sequence in the first depth information sequence that meets a preset similarity condition with multiple preset depth information sequences. The multiple preset depth information sequences include: a first type of preset sequence and a second type of preset sequence. The first type of preset sequence is used to reflect that the tilt angle of the obstacle vehicle is less than 90 degrees, and the second type of preset sequence is used to reflect that the tilt angle of the obstacle vehicle is greater than 90 degrees. The processing module is also used to determine the posture information of the tilted obstacle vehicle based on the second depth information sequence. The posture information includes the tilt angle. The processing module is also used to determine the tilt angle of the vacant parking space formed by the tilted obstacle vehicle based on the posture information of the obstacle vehicle. The processing module further generates parking information based on the tilt angle of the vacant parking space, where the parking information is used to instruct parking according to the tilt angle of the vacant parking space.
[0020] In some embodiments, the first depth information sequence includes a plurality of ranging data, and the preset depth information sequence includes a plurality of preset ranging data. The processing module is further configured to obtain a plurality of sub-data sequences from the first depth information sequence based on the number of the plurality of preset ranging data in the preset depth information sequence, wherein there is an intersection between the plurality of sub-data sequences, and the number of ranging data in the sub-data sequence is the same as the number of preset ranging data in the preset depth information sequence.
[0021] In some embodiments, the preset depth information sequence includes: a vehicle side data sequence. The processing module is further used to determine a target data sequence from the second depth information sequence, the target data sequence corresponds to the vehicle side data sequence of the target depth information sequence, and the target depth information sequence is a preset depth information sequence that satisfies a preset similarity condition with the second depth information sequence. The processing module is further used to perform straight line fitting processing based on the target data sequence to obtain target straight line parameters. The processing module is further used to determine the inclination angle of the obstacle vehicle based on the target straight line parameters.
[0022] In some embodiments, the preset depth information sequence includes: a vehicle side data sequence. The acquisition module is further used to acquire the position information of the vehicle side data sequence relative to the target depth information sequence and the number of preset ranging data in the vehicle side data sequence. The processing module is further used to determine the target data sequence from the second depth information sequence based on the position information of the vehicle side data sequence relative to the target depth information sequence and the number of preset ranging data in the vehicle side data sequence; wherein the position information of the target data sequence relative to the second depth information sequence is the same as the position information of the vehicle side data sequence relative to the target depth information sequence; and the number of ranging data in the target data sequence is the same as the number of preset ranging data in the vehicle side data sequence.
[0023] In some embodiments, the similarity between the sub-data sequence and the preset depth information sequence satisfies the following formula:
[0024]
[0025] Among them, D(i) is used to represent the similarity between the i-th sub-data sequence in the first depth information sequence and the preset depth information sequence, M is used to represent the number of preset ranging data in the preset depth information sequence, S(i+s) is used to represent the i+s-th ranging data in the first depth information sequence, T(s) is used to represent the s-th preset ranging data in the preset depth information sequence, and i is a positive integer.
[0026] In some embodiments, the acquisition module is further used to acquire an initial depth information sequence, which is data collected by the ultrasonic sensor. The processing module is further used to input the initial depth information sequence into a trained depth information prediction model to obtain a first depth information sequence, and the depth information prediction model is used to predict the real distance measurement data.
[0027] In some embodiments, the trained depth information prediction model includes: a convolution layer, a pooling layer, a de-pooling layer, and an output layer. The processing module is further used to perform multiple convolution operations on the initial depth information sequence through the convolution layer, and perform multiple pooling operations through the pooling layer to obtain the encoding result of the initial depth information. The encoding result is performed multiple convolution operations through the convolution layer, and multiple de-pooling operations are performed through the pooling layer to obtain a decoding result. The decoding result is processed by the output layer based on the activation function to obtain a first depth information sequence.
[0028] In some embodiments, the acquisition module is further used to acquire a training set, the training set includes: sample data and labels corresponding to the sample data, the sample data is the ranging data collected by the ultrasonic sensor mounted on the vehicle, and the label is the ranging data collected by the laser radar sensor; wherein the sample data and the ranging data collected by the laser radar sensor are synchronously collected data. The processing module is further used to perform supervised training on the preset neural network model according to the training set to obtain a trained depth information prediction model.
[0029] In some embodiments, the vehicle to be parked is deployed with multiple ultrasonic sensors, and the multiple ultrasonic sensors are respectively deployed at the left front, left rear, right front, and right rear of the vehicle to be parked, and the orientation of the ultrasonic sensors is the same as the direction in which the ultrasonic sensors are deployed at the vehicle to be parked. The multiple preset depth information sequences include: a first type of preset sequence and a second type of preset sequence. The first type of preset sequence is used to reflect that the inclination angle of the obstacle vehicle is less than 90 degrees, and the second type of preset sequence is used to reflect that the inclination angle of the obstacle vehicle is greater than 90 degrees. The inclination angle is the angle between the first directed straight line and the second directed straight line. The first directed straight line is a straight line in the direction of travel of the vehicle to be parked, and the second directed straight line is the central axis of the obstacle vehicle and points to the direction of the vehicle to be parked. Among them, the left front and right front ultrasonic sensors are used to collect data of vehicles whose postures belong to the first type of preset sequence, and the left rear and right rear ultrasonic sensors are used to collect data of vehicles whose postures belong to the second type of preset sequence.
[0030] In a third aspect, the present application provides a vehicle, the device comprising: a processor and a memory; the processor and the memory are coupled; the memory is used to store one or more programs, the one or more programs including computer-executable instructions, and when the vehicle is running, the processor executes the computer-executable instructions stored in the memory to implement the method described in the first aspect and any possible implementation of the first aspect.
[0031] In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a computer, the computer executes the method described in the above-mentioned first aspect and any possible implementation of the first aspect.
[0032] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed by a computer, enables the computer to execute the method described in the above-mentioned first aspect and any possible implementation manner of the first aspect.
[0033] In the above scheme, the technical problems that can be solved and the technical effects achieved by the vehicle parking device, computer storage medium or computer program product can refer to the technical problems and technical effects solved by the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 An example diagram of a parking space provided in an embodiment of the present application;
[0035] Figure 2 A schematic diagram of the hardware structure of a vehicle provided in an embodiment of the present application;
[0036] Figure 3 A schematic diagram of an example of ultrasonic reflection provided in an embodiment of the present application;
[0037] Figure 4 A schematic diagram of another example of ultrasonic reflection provided in an embodiment of the present application;
[0038] Figure 5 A schematic diagram of a process flow of a vehicle parking method provided in an embodiment of the present application;
[0039] Figure 6 A schematic diagram of an example of a vehicle tilt angle provided in an embodiment of the present application;
[0040] Figure 7 A schematic diagram of another example of a vehicle tilt angle provided in an embodiment of the present application;
[0041] Figure 8 A schematic diagram of an example of a preset depth information sequence provided in an embodiment of the present application;
[0042] Fig. 9 A schematic diagram of another example of a preset depth information sequence provided in an embodiment of the present application;
[0043] Fig.10 A schematic diagram of a flow chart of another vehicle parking method provided in an embodiment of the present application;
[0044] Fig.11 A schematic diagram of a flow chart of another vehicle parking method provided in an embodiment of the present application;
[0045] Fig.12 A schematic diagram of an example of a depth information sequence provided in an embodiment of the present application;
[0046] Fig.13 A schematic diagram of an example of laser point cloud envelope projection provided in an embodiment of the present application;
[0047] Fig.14 A schematic diagram of an example of outputting depth information by a depth information prediction model provided in an embodiment of the present application;
[0048] Fig.15 A schematic diagram of the structure of a parking device for a vehicle provided in an embodiment of the present application;
[0049] Fig.16 A schematic diagram of the structure of a training device for a depth information prediction model provided in an embodiment of the present application;
[0050] Fig.17 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application;
[0051] Fig.18 A conceptual partial view of a computer program product provided for an embodiment of the present application. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0053] In this article, the character " / " generally indicates that the objects before and after are in an "or" relationship. For example, A / B can be understood as A or B.
[0054] The terms “first” and “second” in the description and claims of the present application are used to distinguish different objects rather than to describe a specific order of the objects.
[0055] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but may optionally include other steps or modules that are not listed, or may optionally include other steps or modules that are inherent to these processes, methods, products or devices.
[0056] In addition, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present concepts in a specific way.
[0057] At present, when identifying spatial parking spaces, inclined parking spaces are usually identified as vertical parking spaces, resulting in a relatively low recognition rate for inclined parking spaces. Spatial parking spaces refer to parking spaces that are not marked by lines on the ground, but only formed by obstacles and vehicles on both sides. In addition, identifying inclined parking spaces as vertical parking spaces will result in large errors in the detected parking space boundaries. This may lead to incorrect judgments on the parking availability of the parking space, resulting in failures in path planning, low parking efficiency due to excessive parking attempts, and even vehicle scratches.
[0058] For example, Figure 1 As shown, the vacant parking space P1 formed between vehicle A1 and vehicle B1 is an inclined parking space. Alternatively, the vacant parking space P2 formed between vehicle A2 and vehicle B2 is an inclined parking space. Among them, the vacant parking space P1 is a herringbone parking space, and the vacant parking space P2 is a reverse herringbone parking space.
[0059] The existing algorithms for parking in inclined parking spaces do not take into account corner points or have insufficient space utilization. Alternatively, a fusion solution combining ultrasound and vision can detect the boundaries of the parking spaces through ultrasound and identify inclined parking spaces through visual detection of the vehicle's orientation. However, the above solution is easily affected by lighting and detection angles, and the position and posture errors of the obstacle vehicles detected by vision are large. Therefore, how to detect the position and posture information of the obstacle vehicle has become a technical problem that needs to be solved urgently.
[0060] In order to solve the above problems, an embodiment of the present application provides a parking method for a vehicle. In the method, when the vehicle to be parked is searching for a warehouse, the parking device obtains a first depth information sequence, and the first depth information sequence is used to indicate the position information of the obstacle vehicle. The first depth information sequence includes multiple sub-data sequences, and the sub-data sequences are used to indicate the position information of some parts of the obstacle vehicle. If there is a second depth information sequence in the multiple sub-data sequences, the second depth information sequence is a sub-data sequence in the first depth information sequence that meets the preset similarity condition with multiple preset depth information sequences. The multiple preset depth information sequences include: a first type of preset sequence and a second type of preset sequence. The first type of preset sequence is used to reflect that the tilt angle of the obstacle vehicle is less than 90 degrees, and the second type of preset sequence is used to reflect that the tilt angle of the obstacle vehicle is greater than 90 degrees, indicating that there is a vehicle that meets the conditions, and the vehicle can be determined as a tilted obstacle vehicle. Then, the parking device can determine the position information of the tilted obstacle vehicle based on the second depth information sequence, and the position information includes the tilt angle; in this way, the parking device can determine the position information of the tilted obstacle vehicle based on the second depth information sequence that matches the preset depth information sequence, thereby accurately identifying the position information of the obstacle vehicle. Further, when the vehicle to be parked is searching for a warehouse, after accurately identifying the position information of the tilted obstacle vehicle, the tilt angle of the vacant parking space formed by the tilted obstacle vehicle is determined based on the position information of the obstacle vehicle, and based on the tilt angle of the vacant parking space, parking information is generated, and the parking information is used to indicate parking according to the tilt angle of the vacant parking space. In this way, the tilt angle of the vacant parking space can be inferred, so that the vehicle can reasonably use the space of the vacant parking space for parking, which can not only improve the parking efficiency, but also improve the parking success rate.
[0061] The execution subject of the vehicle parking method provided by the present application may be a parking device of the vehicle, and the parking device may be the vehicle to be parked. At the same time, the parking device may also be a central processing unit (CPU) of the vehicle to be parked, or a parking module for parking in the vehicle to be parked. Alternatively, the parking device may be a server to instruct the vehicle to park. In the embodiment of the present application, the parking method of the vehicle executed by the parking device is taken as an example to illustrate the parking method of the vehicle provided by the embodiment of the present application.
[0062] To facilitate understanding of the embodiments of the present application, a parking device for a vehicle applicable to the embodiments of the present application is first described in detail by taking a vehicle to be parked as an example. Figure 2 A schematic diagram of the hardware structure of a vehicle applicable to the parking method for a vehicle provided in an embodiment of the present application. Figure 2 As shown, the vehicle includes one or more ultrasonic sensors, wherein the plurality of ultrasonic sensors can be deployed on both sides of the vehicle.
[0063] It should be noted that the embodiments of the present application do not limit the specific locations where the ultrasonic sensors are deployed on both sides of the vehicle. For example, the ultrasonic sensors can be deployed in the front side, the rear side, the middle position of the side of the vehicle, etc. In addition, the embodiments of the present application do not limit the number of ultrasonic sensors deployed on both sides of the vehicle. For example, one ultrasonic sensor can be deployed on each side of the vehicle. For another example, under normal circumstances, two ultrasonic sensors can be deployed on each side of the vehicle.
[0064] The number of ultrasonic sensors on both sides of the vehicle may be the same or different.
[0065] Exemplarily, two ultrasonic sensors are deployed on both the left and right sides of the vehicle. Alternatively, one ultrasonic sensor can be deployed on the left side of the vehicle and two ultrasonic sensors can be deployed on the right side of the vehicle.
[0066] It should be noted that the embodiments of the present application do not limit the orientation angle (or pointing angle) of the deployed ultrasonic sensor. The orientation angle refers to the angle between the ultrasonic wave with the strongest signal emitted by the ultrasonic sensor on the axis and the direction pointed by the front of the vehicle. For example, the orientation angle can be 50 degrees, 80 degrees, 90 degrees, 100 degrees, etc. Normally, the orientation angle of the ultrasonic sensor on the front side is 80 degrees to 90 degrees, and the orientation angle of the ultrasonic sensor on the rear side is 90 degrees to 100 degrees.
[0067] It should be noted that the embodiments of the present application do not limit the ultrasonic sensor. For example, the ultrasonic sensor may be an ultrasonic distance sensor, an ultrasonic proximity switch / sensor, an ultrasonic radar, etc.
[0068] Taking ultrasonic radar as an example, ultrasonic radar actively transmits pulse signals, which are reflected back when encountering obstacles. Since the surface of the obstacle is usually a rough surface, the reflection conforms to the diffuse reflection model. Usually, the echo intensity is higher in the direction of the reflection angle, and the farther away from the reflection angle, the weaker the echo intensity.
[0069] like Figure 3 As shown, the ultrasonic radar in front of the right side of the vehicle is facing the right front. In the herringbone parking scenario, the fan-shaped area 301 is the ultrasonic radar field of view (FOV), and each arrow is the echo of the ultrasonic wave diffusely reflected in each direction after detecting a point on the left side boundary of vehicle B. The length of the arrow represents the intensity of the diffuse reflection echo. The longer the arrow, the stronger the echo intensity.
[0070] It is understandable that in Figure 3In the example, since the ultrasonic side right front radar is installed with an inclination angle toward the right front, there is a smaller incident angle for the left side of the vehicle next to the parking space in the herringbone scenario during ultrasonic detection, so there is a stronger echo signal, and the radar can effectively receive the echo signal of the vehicle body.
[0071] For example, Figure 4 As shown, the ultrasonic radar in front of the right side of the vehicle is facing the right front. In the reverse herringbone parking scenario, the fan-shaped area 401 is the ultrasonic radar FOV, and each arrow is the echo of the ultrasonic wave diffusely reflected in each direction after detecting a point on the right side of the vehicle A. The length of the arrow represents the intensity of the diffuse reflection echo. The longer the arrow, the stronger the echo intensity.
[0072] It is understandable that in Figure 4 In the example, the left boundary of the obstacle vehicle is blocked and cannot be detected. On the right boundary of the vehicle, the side front radar has a large incident angle, and most of the echoes are reflected along the reflection direction (such as Figure 4 In the direction of the longer solid arrow in the image, only a few echoes are reflected back in the receiving direction of the ultrasonic radar, and the received echoes are weak and easily filtered, resulting in the inability to obtain effective vehicle body echo signals.
[0073] Similarly, the ultrasonic sensors deployed on the left and right rear of the vehicle can effectively obtain the echo signals reflected by the vehicle body in the reverse herringbone scenario.
[0074] In some embodiments, the vehicle is deployed with multiple ultrasonic sensors, and the multiple ultrasonic sensors are respectively deployed at the left front, left rear, right front, and right rear of the vehicle, and the orientation of the ultrasonic sensors is the same as the direction in which the ultrasonic sensors are deployed on the vehicle to be parked.
[0075] That is to say, the ultrasonic sensor deployed on the left front of the vehicle is oriented toward the left front, the ultrasonic sensor deployed on the right front of the vehicle is oriented toward the right front, the ultrasonic sensor deployed on the left rear of the vehicle is oriented toward the left rear, and the ultrasonic sensor deployed on the right rear of the vehicle is oriented toward the right rear.
[0076] For example, Figure 2 As shown, vehicle 201 is deployed with four ultrasonic sensors, and two ultrasonic sensors are deployed on each side of vehicle 201. The ultrasonic sensors deployed on the front side have a facing angle of 80 degrees, such as ultrasonic sensor 202 deployed on the right front; the ultrasonic sensors deployed on the rear side have a facing angle of 100 degrees, such as ultrasonic sensor 203 deployed on the right rear. Region 204 is the diffusion area where ultrasonic sensor 202 emits ultrasonic waves.
[0077] It can be understood that the multiple ultrasonic sensors are respectively deployed at the left front, left rear, right front and right rear of the vehicle, and the orientation of the ultrasonic sensors is the same as the direction in which the ultrasonic sensors are deployed at the vehicle to be parked. In this way, the ultrasonic sensors can collect effective obstacle vehicle data, thereby improving the accuracy of detecting the position information of the obstacle vehicle.
[0078] In some embodiments, the parking device may be a server, and the server and the vehicle to be parked may be wirelessly connected. For example, the vehicle to be parked may send ultrasonic data to the server, and the server processes the ultrasonic data.
[0079] It should be noted that the server may be a single physical server, or a server cluster consisting of multiple servers. Alternatively, the server cluster may also be a distributed cluster. Alternatively, the server may be a cloud server. The embodiments of the present application do not limit the specific implementation of the server.
[0080] After introducing the implementation environment of the embodiment of the present application, the vehicle parking method provided by the embodiment of the present application is described in detail below in combination with the above-mentioned implementation environment.
[0081] like Figure 5 As shown, a parking method for a vehicle provided in an embodiment of the present application includes:
[0082] S501: The parking device obtains a first depth information sequence.
[0083] The first depth information sequence is used to indicate the position information of the obstacle vehicle. The first depth information sequence includes a plurality of ranging data, and the ranging data is used to indicate the depth information of the obstacle vehicle.
[0084] Exemplarily, the ranging data may be represented by coordinate data.
[0085] In the embodiment of the present application, the first depth information sequence includes multiple sub-data sequences, and the sub-data sequences are used to indicate the position information of some parts of the obstacle vehicle.
[0086] Exemplarily, the first depth information sequence includes: sub-data sequence a and sub-data sequence b. Sub-data sequence a is used to indicate the front part (or rear part) of the obstacle vehicle, and sub-data sequence b is used to indicate the body part of the obstacle vehicle.
[0087] In a possible implementation, when the vehicle to be parked is searching for a parking garage, the parking device may obtain a first depth information sequence through an ultrasonic sensor deployed on the vehicle to be parked, wherein the first depth information sequence is data collected based on the ultrasonic sensor.
[0088] It should be understood that when the vehicle to be parked is searching for a parking garage, the position information of the obstacle vehicle is obtained, so that path planning can be performed based on the position information of the obstacle vehicle before parking, thereby improving parking efficiency.
[0089] In another possible implementation, the parking device obtains an initial depth information sequence, which is data collected by the ultrasonic sensor. Afterwards, the parking device can input the initial depth information sequence into a trained depth information prediction model to obtain a first depth information sequence, and the depth information prediction model is used to predict the real distance measurement data.
[0090] It should be noted that the initial depth information sequence may be data collected by one ultrasonic sensor, or the initial depth information sequence may be data collected by multiple ultrasonic sensors, which is not limited in the embodiment of the present application.
[0091] It can be understood that by further processing the initial depth information of the obstacle through the trained depth information prediction model, more accurate depth information can be predicted, thereby improving the accuracy of determining the position information of the vehicle with the inclined obstacle.
[0092] It should be noted that, for the specific process of training the depth information prediction model, reference may be made to the following embodiments, which will not be described in detail here.
[0093] S502: The parking device determines whether a second depth information sequence exists in a plurality of sub-data sequences.
[0094] The second depth information sequence is a sub-data sequence in the first depth information sequence that satisfies a preset similarity condition with the preset depth information sequence.
[0095] It should be noted that the embodiments of the present application do not limit the preset similarity condition. For example, the preset similarity condition may be that the similarity between the sub-data sequence and the preset depth information sequence is a preset similarity threshold. For another example, the preset similarity condition may be that the similarity between the sub-data sequence and the preset depth information sequence is greater than the preset similarity threshold. For another example, the preset similarity condition may be the sub-data sequence corresponding to the maximum similarity between the sub-data sequence and the preset depth information sequence.
[0096] In the embodiment of the present application, the parking device determines whether the second depth information sequence exists based on a plurality of preset depth information sequences and a plurality of sub-data sequences.
[0097] Among them, the preset depth information sequence can also be used to reflect the inclination angle of the obstacle vehicle, and the inclination angle is the angle between the first directed straight line and the second directed straight line. The first directed straight line is a straight line in the direction of travel of the vehicle to be parked, and the second directed straight line is the central axis of the obstacle vehicle and points in the direction of the vehicle to be parked.
[0098] It should be noted that the direction in which the obstacle vehicle points to the vehicle to be parked refers to the direction in which the obstacle vehicle points to the central axis of the vehicle to be parked. The embodiment of the present application does not limit the tilt angles indicated by the multiple preset depth information sequences. For example, the multiple preset depth information sequences may respectively indicate 50 degrees, 80 degrees, 110 degrees, 120 degrees, etc.
[0099] For example, Figure 6 As shown, vehicle 1 is traveling eastward, the first directed straight line is straight line 1, and the second directed straight lines corresponding to vehicle A and vehicle B are straight line a and straight line b, respectively. The angle a1 formed by straight line a and straight line 1 is 80 degrees, and the angle b1 formed by straight line b and straight line 1 is 80 degrees, that is, the inclination angles are both less than 90 degrees.
[0100] For example, Figure 7 As shown, vehicle 1 is traveling eastward, the first directed straight line is straight line 1, and the second directed straight lines corresponding to vehicle A and vehicle B are straight line a and straight line b, respectively. The angle a1 formed by straight line a and straight line 1 is 120 degrees, and the angle b1 formed by straight line b and straight line 1 is 120 degrees, that is, the inclination angles are both greater than 90 degrees.
[0101] In one possible design, multiple preset depth information sequences include: a first type of preset sequence and a second type of preset sequence, the first type of preset sequence is used to reflect that the inclination angle of the obstacle vehicle is less than 90 degrees, and the second type of preset sequence is used to reflect that the inclination angle of the obstacle vehicle is greater than 90 degrees.
[0102] For example, Figure 8 As shown, the posture data sequence 801 is a first type of preset sequence, and the posture data sequence 801 includes: coordinate point 802, coordinate point 803, coordinate point 804, and coordinate point 805. The depth information corresponding to coordinate point 802 to coordinate point 805 decreases in sequence, indicating that the inclination angle of the obstacle vehicle is less than 90 degrees.
[0103] Or, if Fig. 9 As shown, the posture data sequence 901 is a first type of preset sequence, and the posture data sequence 901 includes: coordinate point 902, coordinate point 903, coordinate point 904, and coordinate point 905. The depth information corresponding to coordinate point 902 to coordinate point 905 increases in sequence, indicating that the inclination angle of the obstacle vehicle is less than 90 degrees.
[0104] In an embodiment of the present application, the left front and right front ultrasonic sensors are used to collect data on vehicles whose postures belong to the first type of preset sequence, and the left rear and right rear ultrasonic sensors are used to collect data on vehicles whose postures belong to the second type of preset sequence.
[0105] In the embodiment of the present application, the second depth information sequence is a data sequence in the first depth information sequence whose similarity with the preset depth information sequence is greater than a preset similarity threshold.
[0106] It should be noted that the present embodiment does not limit the preset similarity threshold. For example, the preset similarity threshold may be 80%, 75%, or 90%.
[0107] In a possible implementation, the parking device determines multiple similarities based on multiple preset depth information sequences and multiple sub-data sequences, where one similarity corresponds to one preset depth information sequence and one sub-data sequence. Afterwards, the parking device determines whether there is a target similarity among the multiple similarities, and the target similarity satisfies the preset similarity condition. If there is a target similarity, the parking device determines that there is a second depth information sequence, and uses the sub-data sequence corresponding to the target similarity as the second depth information sequence.
[0108] In some embodiments, the parking device may obtain multiple sub-data sequences from the first depth information sequence based on the number of multiple preset ranging data in the preset depth information sequence (i.e., the sequence length of the preset depth information sequence), wherein there is an intersection between the multiple sub-data sequences, and the number of ranging data in the sub-data sequence is the same as the number of preset ranging data in the preset depth information sequence, that is, the sequence length of the sub-data sequence is the same as the sequence length of the preset depth information sequence.
[0109] In the embodiment of the present application, the union of multiple group data sequences is the first depth information sequence.
[0110] In a possible implementation, the parking device may sequentially traverse the ranging data in the first depth information sequence based on the number of the plurality of preset ranging data in the preset depth information sequence to obtain a plurality of sub-data sequences.
[0111] Exemplarily, if the first depth information sequence includes 100 ranging data, namely ranging data 1-ranging data 100, and the number of ranging data in the sub-data sequence is 10. Then the multiple sub-data sequences may include: ranging data 1-ranging data 10, ranging data 2-ranging data 11, ranging data 3-ranging data 12, ranging data 4-ranging data 13, ..., ranging data 91-ranging data 100, a total of 91 group data sequences. Alternatively, the multiple sub-data sequences may include: ranging data 1-ranging data 10, ranging data 3-ranging data 12, ranging data 5-ranging data 14, ranging data 7-ranging data 16, ..., ranging data 91-ranging data 120, a total of 46 group data sequences.
[0112] It is understandable that the parking device can determine that the sub-data sequence includes the same number of distance measurement data as the number of the plurality of preset distance measurement data in the preset depth information sequence. In this way, it is convenient to match the sub-data sequence with the preset depth information sequence. In addition, there is an intersection between the plurality of sub-data sequences, thereby ensuring that the plurality of sub-data sequences can fully summarize the position information of the obstacle vehicle.
[0113] In some embodiments, if the second depth information sequence exists, the parking device executes S503. If the second depth information sequence does not exist, the parking device determines to stop parking.
[0114] S503: The parking device determines that there is a tilted obstacle vehicle.
[0115] In the embodiment of the present application, if the second depth information sequence exists in the plurality of sub-data sequences, the parking device determines that there is a tilted obstacle vehicle.
[0116] S504: The parking device determines the position information of the vehicle with the inclined obstacle based on the second depth information sequence.
[0117] The posture information includes tilt angle and position information.
[0118] In a possible implementation, the parking device may determine the slopes corresponding to the multiple distance measurement data based on the multiple distance measurement data in the second depth information sequence, and determine the position information of the inclined obstacle vehicle according to the slope, wherein the position information also includes the position information of the obstacle vehicle.
[0119] S505: The parking device determines the tilt angle of the vacant parking space formed by the tilted obstacle vehicle based on the position information of the obstacle vehicle.
[0120] In a possible implementation, if the tilt angles of the tilted obstacle vehicles on both sides are the same, the parking device can use the tilt angle of the tilted obstacle vehicle as the tilt angle of the vacant parking space. The tilted obstacle vehicles on both sides are tilted obstacle vehicles on both sides of the vacant parking space.
[0121] In another possible implementation, if the inclination angles of the vehicles with inclined obstacles on both sides are different, the parking device may use the average of the inclination angles of the vehicles with inclined obstacles on both sides as the inclination angle of the vacant parking space.
[0122] S506: The parking device generates parking information based on the tilt angle of the vacant parking space.
[0123] The parking information is used to instruct parking according to the inclination angle of the vacant parking space.
[0124] Based on the above technical solution, when the vehicle to be parked searches for a parking garage, the parking device obtains a first depth information sequence, the first depth information sequence is used to indicate the position information of the obstacle vehicle, and the first depth information sequence includes multiple sub-data sequences, and the sub-data sequences are used to indicate the position information of some parts of the obstacle vehicle. If there is a second depth information sequence in the multiple sub-data sequences, the second depth information sequence is a sub-data sequence in the first depth information sequence that meets the preset similarity condition with multiple preset depth information sequences, and the multiple preset depth information sequences include: a first type of preset sequence and a second type of preset sequence, the first type of preset sequence is used to reflect that the tilt angle of the obstacle vehicle is less than 90 degrees, and the second type of preset sequence is used to reflect that the tilt angle of the obstacle vehicle is greater than 90 degrees, indicating that there is a vehicle that meets the conditions, and the vehicle can be determined as a tilted obstacle vehicle. Then, the parking device can determine the posture information of the tilted obstacle vehicle based on the second depth information sequence, and the posture information includes the tilt angle; in this way, the parking device can determine the posture information of the tilted obstacle vehicle based on the second depth information sequence that matches the preset depth information sequence, thereby accurately identifying the posture information of the obstacle vehicle. Furthermore, when the vehicle to be parked is searching for a parking space, the tilt angle of the vacant parking space formed by the tilted obstacle vehicle is determined based on the position information of the obstacle vehicle, and parking information is generated based on the tilt angle of the vacant parking space. The parking information is used to instruct parking according to the tilt angle of the vacant parking space. In this way, the tilt angle of the vacant parking space can be inferred, so that the vehicle can reasonably use the space of the vacant parking space for parking, which can not only improve the parking efficiency, but also improve the parking success rate.
[0125] like Fig.10 As shown, a parking method for a vehicle provided by an embodiment of the present application, in which a parking device determines a second depth information sequence based on a plurality of preset depth information sequences and a plurality of sub-data sequences, which may include:
[0126] S1001: The parking device processes a plurality of sub-data sequences and a plurality of preset depth information sequences to obtain a similarity between each sub-data sequence and each preset depth information sequence.
[0127] In a possible implementation, for each preset depth information sequence, the parking device may determine the similarity between each sub-data sequence and the preset depth information sequence based on multiple preset ranging data in the preset depth information sequence and multiple ranging data of each sub-data sequence, so as to obtain the similarity between each sub-data sequence and each preset depth information sequence.
[0128] In another possible implementation, for each sub-data sequence, the parking device may determine the similarity between each preset depth information sequence and the sub-data sequence based on multiple ranging data in the sub-data sequence and multiple preset ranging data of each preset depth information sequence, so as to obtain the similarity between each sub-data sequence and each preset depth information sequence.
[0129] In the embodiment of the present application, one ranging data in the sub-data sequence corresponds to one preset ranging data in the preset depth information sequence. For one sub-data sequence and one preset depth information sequence, the parking device may use a preset similarity algorithm to determine the similarity between the sub-data sequence and the preset depth information sequence according to each ranging data in the sub-data sequence and each preset ranging data in the preset depth information sequence.
[0130] It should be noted that the embodiments of the present application do not limit the preset similarity algorithm. For example, the preset similarity algorithm may be a sum of squared differences (SSD) algorithm, a normalized cross correlation matching (NCC) algorithm, a mean absolute difference (MAD) algorithm, a sum of absolute differences (SAD) algorithm, a mean square difference (MSD) algorithm, a sequential similarity detection algorithm (SSDA) algorithm, a Hadamard transform algorithm (SATD) algorithm, etc.
[0131] The following takes the preset similarity algorithm as SSD as an example to introduce the process of determining the similarity between the sub-data sequence and the preset depth information sequence. SSD can obtain the similarity by calculating the sum of squares of the difference between the ranging data (i.e., the indicated depth value) in the sub-data sequence and the preset ranging data in the preset depth information sequence.
[0132] Exemplarily, the similarity between the sub-data sequence and the preset depth information sequence satisfies Formula 1.
[0133]
[0134] Among them, D(i) is used to represent the similarity between the i-th sub-data sequence in the first depth information sequence and the preset depth information sequence, M is used to represent the number of preset ranging data in the preset depth information sequence (which can be called the target number or target length), S(i+s) is used to represent the i+s-th ranging data in the first depth information sequence (that is, the s-th ranging data in the i-th sub-data sequence), T(s) is used to represent the s-th preset ranging data in the preset depth information sequence, i is a positive integer, and i can be used to represent the index of the sub-data sequence.
[0135] S1002: The parking device compares the similarity between each sub-data sequence and each preset depth information sequence with a preset similarity threshold, and determines a target similarity greater than the preset similarity threshold.
[0136] In a possible implementation, the preset similarity threshold may be determined based on the second largest similarity among the multiple similarities. The target similarity is the largest similarity among the multiple similarities.
[0137] S1003: The parking device uses the sub-data sequence corresponding to the target similarity as the second depth information sequence.
[0138] For example, if similarity 1 corresponding to sub-data sequence a is 10%, similarity 2 corresponding to sub-data sequence b is 80%, and the preset similarity threshold is 75%, then the target similarity is 80%, and the second depth information sequence is sub-data sequence b.
[0139] Based on the above technical solution, the parking device obtains the similarity between each sub-data sequence and each preset depth information sequence, and determines a target similarity greater than a preset similarity threshold. Then, the parking device can use the sub-data sequence corresponding to the target similarity as the second depth information sequence. In this way, the sub-data sequence that best matches the preset depth information sequence can be determined, and then the position and posture of the obstacle vehicle can be detected based on the sub-data sequence.
[0140] It should be noted that, since some of the preset distance measurement data in the preset depth information sequence can indicate the tilt angle of the vehicle, if all the distance measurement data in the second depth information sequence corresponding to the preset depth information sequence is used to determine the posture information of the vehicle with the tilted obstacle, deviation may occur in the posture information.
[0141] like Fig.11 As shown, a parking method for a vehicle provided in an embodiment of the present application is provided. In the method, S504 may include:
[0142] S1101. The parking device determines a target data sequence from a second depth information sequence.
[0143] The target data sequence corresponds to the vehicle side data sequence of the target depth information sequence, and the target depth information sequence is a preset depth information sequence that satisfies a preset similarity condition with the second depth information sequence.
[0144] For example, the target depth information sequence is a preset depth information sequence corresponding to the target similarity.
[0145] In an embodiment of the present application, the preset depth information sequence includes: a vehicle side data sequence and a vehicle head posture data sequence, or the preset depth information sequence includes: a vehicle side data sequence and a vehicle rear posture data sequence.
[0146] Exemplary, combined Figure 8 It can be seen that region a is a data sequence of the side of the vehicle, such as coordinate point 802 to coordinate point 805. Region b is a data sequence of the head position and posture of the vehicle or a data sequence of the tail position and posture of the vehicle.
[0147] In a possible implementation, the parking device obtains the position information of the vehicle side data sequence relative to the target depth information sequence and the number of preset distance measurement data in the vehicle side data sequence. Then, the parking device determines the target data sequence from the second depth information sequence based on the position information of the vehicle side data sequence relative to the target depth information sequence and the number of preset distance measurement data in the vehicle side data sequence.
[0148] Among them, the position information of the target data sequence relative to the second depth information sequence is the same as the position information of the vehicle side data sequence relative to the target depth information sequence; the number of ranging data in the target data sequence is the same as the number of preset ranging data in the vehicle side data sequence.
[0149] Exemplarily, if the target depth information sequence includes: preset distance measurement data 1-preset distance measurement data 12, wherein preset distance measurement data 1-preset distance measurement data 9 are vehicle side data sequences, that is, the 1st to 9th preset distance measurement data are vehicle side data sequences. The second depth information sequence includes: distance measurement data 1-distance measurement data 12, distance measurement data 1 corresponds to preset distance measurement data 1, and the 1st to 9th distance measurement data are target data sequences. Then the target data sequence is distance measurement data 1-distance measurement data 9.
[0150] S1102: The parking device performs straight line fitting processing based on the target data sequence to obtain target straight line parameters.
[0151] In a possible implementation, the parking device may use a straight line fitting algorithm to perform straight line fitting processing based on the target data sequence to obtain a target straight line and determine target straight line parameters, wherein the target straight line parameters may include: a slope and an intercept.
[0152] It should be noted that the embodiment of the present application does not limit the straight line fitting algorithm. For example, the straight line fitting algorithm can be the least squares method, the gradient descent method, the Gauss-Newton method, etc.
[0153] Exemplarily, the slope of the target straight line satisfies Formula 2.
[0154]
[0155] Among them, k is used to represent the slope of the target line, x i It is used to represent the horizontal coordinate of the i-th distance measurement data in the second depth information sequence, that is, the horizontal coordinate of the distance measurement data in the target data sequence, y i It is used to represent the ordinate of the i-th ranging data in the second depth information sequence, that is, the ordinate of the ranging data in the target data sequence.
[0156] S1103: The parking device determines the inclination angle of the obstacle vehicle based on the target straight line parameters.
[0157] In a possible implementation, the parking device may use an inverse tangent trigonometric function to process the slope of the target straight line to determine the inclination angle of the obstacle vehicle.
[0158] Exemplarily, the inclination angle of the obstacle vehicle satisfies Formula 3.
[0159] θ=atan(k)Formula 3.
[0160] Among them, θ is used to represent the tilt angle of the obstacle vehicle.
[0161] It is understandable that the parking device determines the target data sequence from the second depth information sequence, and can determine the side posture data sequence of the obstacle vehicle. In this way, the parking device can perform straight line fitting processing based on the target data sequence to obtain the target straight line parameters, and then determine the inclination angle of the obstacle vehicle. In this way, the data accuracy of the inclination angle calculation can be improved, thereby improving the accuracy of the inclination angle detection of the obstacle vehicle.
[0162] The following is an introduction to the embodiments of the present application with reference to specific examples. Fig.12 As shown, each vertical line segment 1201 is an initial depth information sequence, the discrete points 1202 are a first depth information sequence, and the shape template 1203 is a preset depth information sequence. The discrete points 1202 in the region a of the plurality of discrete points 1202 are a second depth information sequence, and the discrete points 1202 in the region b are a target data sequence. The parking device can determine the position information of the inclined obstacle vehicle based on the discrete points 1202 in the region b.
[0163] It should be noted that since ultrasound has a certain opening angle, it is impossible to obtain true depth information using ultrasound alone. Therefore, the trained depth information prediction model can be used to obtain true depth information. The process of training the depth information prediction model is introduced below.
[0164] In a possible implementation, a training device for a depth information prediction model (hereinafter referred to as a training device) can obtain a training set, the training set including: sample data and labels corresponding to the sample data, the sample data is the ranging data collected by an ultrasonic sensor mounted on a vehicle, and the labels are the ranging data collected by a lidar sensor, wherein the sample data and the ranging data collected by the lidar sensor are synchronously collected data. Afterwards, the training device can perform supervised training on a preset neural network model based on the training set to obtain a trained depth information prediction model. The ranging data collected by the lidar sensor is used to indicate the true depth information.
[0165] In a possible design, the training device can train the preset neural network model according to the training set until the preset conditions are met, and then terminate the training to obtain the trained depth information prediction model.
[0166] It should be noted that the embodiments of the present application do not limit the preset conditions. For example, the preset conditions may be that the number of iterative training times reaches a threshold, the loss is less than a loss threshold, the model converges, etc.
[0167] For example, a collection vehicle equipped with an ultrasonic sensor and a laser radar sensor can be used to collect ultrasonic data and laser data, and the laser data can be used to provide real distance measurement data for the ultrasonic depth. Fig.13 As shown, the training device obtains real depth information by extracting the laser point cloud envelope 1301 and projecting the laser point cloud envelope onto the depth information 1302 collected by the ultrasonic sensor.
[0168] It should be noted that the embodiments of the present application do not limit the preset neural network model. For example, the preset neural network model can be a deep regression network model, a recurrent neural network (RNN) model, a recursive neural network (RNN) model, etc.
[0169] It is understandable that the distance measurement data collected by the laser radar is more accurate. In this way, the accuracy of the depth information predicted by the trained depth information prediction model can be improved through sample data and labels, thereby improving the accuracy of the vehicle posture information for detecting obstacles.
[0170] In a possible implementation, the trained depth information prediction model includes: a convolution layer, a pooling layer, a de-pooling layer, and an output layer. The parking device may perform multiple convolution operations on the initial depth information sequence through the convolution layer, and perform multiple pooling operations through the pooling layer to obtain the encoding result of the initial depth information. Afterwards, the parking device may perform multiple convolution operations on the encoding result through the convolution layer, and perform multiple de-pooling operations through the pooling layer to obtain the decoding result. The parking device may process the decoding result based on the activation function through the output layer to obtain the first depth information sequence.
[0171] It should be noted that the embodiments of the present application do not limit the activation function. For example, the activation function may be a sigmoid function, a Softmax function, a hyperbolic tangent (Tanh) function, etc.
[0172] The following is a description of the process of using the trained depth information prediction model to obtain the actual distance measurement data with a specific example. Fig.14 As shown in the figure, the trained depth information prediction model is a deep regression network. In the encoding stage, after the deep regression network obtains the input initial depth information sequence, it increases the perception field of view and extracts features through 5 times of maxPooling. In addition, the pooling index pooling Indices can be saved, which saves certain spatial structure information. Then, in the decoding stage, the index saved in the encoding stage is directly used for upsampling during de-pooling, without the need to learn parameters. The output layer activation function of the deep regression network is sigmoid, and the result, that is, the predicted depth information, can be output through sigmoid.
[0173] It should be noted that the training device may be a parking device, that is, the training device and the parking device are the same device. Alternatively, the training device and the parking device may be two different devices.
[0174] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. It is understandable that in order to realize the above functions, the parking device of the vehicle includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the steps of the parking method of the vehicle described in each example of the embodiment disclosed in the present application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0175] The embodiment of the present application can divide the parking device of the vehicle into functional modules or functional units according to the above method example. For example, each functional module or functional unit can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical functional division. There may be other division methods in actual implementation.
[0176] like Fig.15 FIG. 1 is a schematic diagram of a parking device for a vehicle provided in an embodiment of the present application. The parking device for a vehicle is used to perform Figure 5 , Fig.10 , Fig.11 The parking method of the vehicle shown in FIG.
[0177] The acquisition module 1501 is used to acquire a first depth information sequence when the waiting vehicle is searching for a parking garage. The first depth information sequence is used to indicate the position information of the obstacle vehicle. The first depth information sequence includes multiple sub-data sequences. The sub-data sequences are used to indicate the position information of some parts of the obstacle vehicle. The processing module 1502 is used to determine the existence of a tilted obstacle vehicle if a second depth information sequence exists in the multiple sub-data sequences. The second depth information sequence is a sub-data sequence in the first depth information sequence that satisfies a preset similarity condition with multiple preset depth information sequences. The multiple preset depth information sequences include: a first type of preset sequence and a second type of preset sequence. The first type of preset sequence is used to reflect that the tilt angle of the obstacle vehicle is less than 90 degrees, and the second type of preset sequence is used to reflect that the tilt angle of the obstacle vehicle is greater than 90 degrees. The processing module 1502 is also used to determine the position information of the tilted obstacle vehicle based on the second depth information sequence. The position information includes the tilt angle. The processing module 1502 is also used to determine the tilt angle of the vacant parking space formed by the tilted obstacle vehicle based on the position information of the obstacle vehicle. The processing module 1502 further generates parking information based on the tilt angle of the vacant parking space, where the parking information is used to instruct parking according to the tilt angle of the vacant parking space.
[0178] In some embodiments, the first depth information sequence includes multiple ranging data, and the preset depth information sequence includes multiple preset ranging data. The processing module 1502 is further used to obtain multiple sub-data sequences from the first depth information sequence based on the number of multiple preset ranging data in the preset depth information sequence, there are intersections between the multiple sub-data sequences, and the number of ranging data in the sub-data sequence is the same as the number of preset ranging data in the preset depth information sequence.
[0179] In some embodiments, the preset depth information sequence includes: a vehicle side data sequence. The processing module 1502 is further used to determine a target data sequence from the second depth information sequence, the target data sequence corresponds to the vehicle side data sequence of the target depth information sequence, and the target depth information sequence is a preset depth information sequence that satisfies a preset similarity condition with the second depth information sequence. The processing module 1502 is further used to perform straight line fitting processing based on the target data sequence to obtain target straight line parameters. The processing module 1502 is further used to determine the inclination angle of the obstacle vehicle based on the target straight line parameters.
[0180] In some embodiments, the preset depth information sequence includes: a vehicle side data sequence. The acquisition module 1501 is also used to obtain the position information of the vehicle side data sequence relative to the target depth information sequence and the number of preset ranging data in the vehicle side data sequence. The processing module 1502 is also used to determine the target data sequence from the second depth information sequence based on the position information of the vehicle side data sequence relative to the target depth information sequence and the number of preset ranging data in the vehicle side data sequence; wherein the position information of the target data sequence relative to the second depth information sequence is the same as the position information of the vehicle side data sequence relative to the target depth information sequence; and the number of ranging data in the target data sequence is the same as the number of preset ranging data in the vehicle side data sequence.
[0181] In some embodiments, the similarity between the sub-data sequence and the preset depth information sequence satisfies the following formula:
[0182]
[0183] Among them, D(i) is used to represent the similarity between the i-th sub-data sequence in the first depth information sequence and the preset depth information sequence, M is used to represent the number of preset ranging data in the preset depth information sequence, S(i+s) is used to represent the i+s-th ranging data in the first depth information sequence, T(s) is used to represent the s-th preset ranging data in the preset depth information sequence, and i is a positive integer.
[0184] In some embodiments, the acquisition module 1501 is further used to acquire an initial depth information sequence, which is data collected by the ultrasonic sensor. The processing module 1502 is further used to input the initial depth information sequence into a trained depth information prediction model to obtain a first depth information sequence, and the depth information prediction model is used to predict the real distance measurement data.
[0185] In some embodiments, the acquisition module 1501 is further used to acquire a training set, the training set includes: sample data and labels corresponding to the sample data, the sample data is the ranging data collected by the ultrasonic sensor mounted on the vehicle, and the label is the ranging data collected by the laser radar sensor; wherein the sample data and the ranging data collected by the laser radar sensor are synchronously collected data. The processing module 1502 is further used to perform supervised training on the preset neural network model according to the training set to obtain a trained depth information prediction model.
[0186] In some embodiments, the trained depth information prediction model includes: a convolution layer, a pooling layer, a de-pooling layer, and an output layer. The processing module 1502 is also used to perform multiple convolution operations on the initial depth information sequence through the convolution layer, and perform multiple pooling operations through the pooling layer to obtain the encoding result of the initial depth information. The encoding result is performed multiple convolution operations through the convolution layer, and multiple de-pooling operations are performed through the pooling layer to obtain a decoding result. The decoding result is processed by the output layer based on the activation function to obtain a first depth information sequence.
[0187] In some embodiments, the acquisition module 1501 is further used to acquire a training set, the training set includes: sample data and labels corresponding to the sample data, the sample data is data collected by the ultrasonic sensor, and the label is a label annotated with the data collected by the laser radar sensor. The processing module 1502 is further used to perform supervised training on the preset neural network model according to the training set to obtain a trained depth information prediction model.
[0188] In some embodiments, the vehicle to be parked is deployed with multiple ultrasonic sensors, and the multiple ultrasonic sensors are respectively deployed at the left front, left rear, right front, and right rear of the vehicle to be parked, and the orientation of the ultrasonic sensors is the same as the direction in which the ultrasonic sensors are deployed at the vehicle to be parked. The multiple preset depth information sequences include: a first type of preset sequence and a second type of preset sequence. The first type of preset sequence is used to reflect that the inclination angle of the obstacle vehicle is less than 90 degrees, and the second type of preset sequence is used to reflect that the inclination angle of the obstacle vehicle is greater than 90 degrees. The inclination angle is the angle between the first directed straight line and the second directed straight line. The first directed straight line is a straight line in the direction of travel of the vehicle to be parked, and the second directed straight line is the central axis of the obstacle vehicle and points to the direction of the vehicle to be parked. Among them, the left front and right front ultrasonic sensors are used to collect data of vehicles whose postures belong to the first type of preset sequence, and the left rear and right rear ultrasonic sensors are used to collect data of vehicles whose postures belong to the second type of preset sequence.
[0189] like Fig.16 16 is a schematic diagram of a structure of a training device for a depth information prediction model provided in an embodiment of the present application. The training device for a depth information prediction model may include an acquisition module 1601 and a processing module 1602 .
[0190] The acquisition module 1601 is used to acquire a training set, which includes: sample data and labels corresponding to the sample data, where the sample data is data collected by the ultrasonic sensor, and the label is a label annotated on the data collected by the laser radar sensor. The processing module 1602 is used to perform supervised training on the preset neural network model according to the training set to obtain a trained depth information prediction model.
[0191] Fig.17 1 is a schematic diagram of a vehicle structure according to an exemplary embodiment. The vehicle may include a processor 1702, and the processor 1702 is used to execute application code to implement the vehicle parking method in the present application.
[0192] The processor 1702 may be a central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0193] like Fig.17 As shown, the vehicle may further include a memory 1703. The memory 1703 is used to store application code for executing the solution of the present application, and is controlled to execute by the processor 1702.
[0194] The memory 1703 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1703 may exist independently and be connected to the processor 1702 via the bus 1704. The memory 1703 may also be integrated with the processor 1702.
[0195] like Fig.17As shown, the vehicle may further include a communication interface 1701, wherein the communication interface 1701, the processor 1702, and the memory 1703 may be coupled to each other, for example, via a bus 1704. The communication interface 1701 is used to exchange information with other devices, for example, to support information exchange between the vehicle and other devices.
[0196] It should be pointed out that Fig.17 The equipment structure shown in the figure does not constitute a limitation on the vehicle, except Fig.17 In addition to the components shown, the vehicle may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0197] In actual implementation, the functions implemented by the processing module 1502 can be Fig.17 The processor 1702 shown calls the program code in the memory 1703 to implement.
[0198] The present application also provides a computer-readable storage medium, on which instructions are stored. When the instructions in the computer-readable storage medium are executed by a processor of a computer device, the computer can execute the parking method of the vehicle provided in the above-mentioned embodiment. For example, the computer-readable storage medium may be a memory 1703 including instructions, and the above instructions may be executed by a processor 1702 of a computer device to complete the above method. Optionally, the computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, a non-temporary computer-readable storage medium may be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
[0199] It should be noted that the structural diagram of the training device of the depth information prediction model can be referred to Fig.17 The structural schematic diagram of the vehicle is shown, and this embodiment of the present application will not be described in detail.
[0200] Fig.18 A conceptual partial view of a computer program product provided by an embodiment of the present application is schematically shown, where the computer program product includes a computer program for executing a computer process on a computing device.
[0201] In one embodiment, the computer program product is provided using a signal bearing medium 1800. The signal bearing medium 1800 may include one or more program instructions that, when executed by one or more processors, may provide the above-described Figure 5 , Fig.10 , Fig.11 Thus, for example, reference to Figure 5In the embodiment shown in , one or more features of S501-S506 can be undertaken by one or more instructions associated with the signal bearing medium 1800. In addition, Fig.18 The program instructions in also describe example instructions.
[0202] In some examples, the signal bearing medium 1800 may include a computer readable medium 1801, such as, but not limited to, a hard drive, a compact disk (CD), a digital video disk (DVD), a digital tape, a memory, a read-only memory (ROM), or a random access memory (RAM), and the like.
[0203] In some implementations, the signal bearing medium 1800 may include a computer recordable medium 1802 such as, but not limited to, a memory, a read / write (R / W) CD, a R / W DVD, or the like.
[0204] In some embodiments, signal bearing medium 1800 may include communication medium 1803 such as, but not limited to, digital and / or analog communication media (eg, fiber optic cables, waveguides, wired communication links, wireless communication links, etc.).
[0205] The signal bearing medium 1800 may be communicated by a wireless form of communication medium 1803. The one or more program instructions may be, for example, computer executable instructions or logic implemented instructions.
[0206] In some examples, such as for Fig.15 The described vehicle parking apparatus may be configured to provide various operations, functions, or actions in response to one or more program instructions via computer-readable medium 1801 , computer-recordable medium 1802 , and / or communication medium 1803 .
[0207] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0208] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0209] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0210] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0211] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the full classification part or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions for a device or processor to execute the full classification part or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk.
[0212] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for parking a vehicle, It is characterized in that The method comprises: When the vehicle to be parked is searching for a parking garage, a first depth information sequence is obtained, where the first depth information sequence is used to indicate the position information of the obstacle vehicle, and the first depth information sequence includes a plurality of sub-data sequences, where the sub-data sequences are used to indicate the position information of a part of the obstacle vehicle; If a second depth information sequence exists in the multiple sub-data sequences, it is determined that there is a tilted obstacle vehicle, and the second depth information sequence is a sub-data sequence in the first depth information sequence that satisfies a preset similarity condition with multiple preset depth information sequences, and the multiple preset depth information sequences include: a first type of preset sequence and a second type of preset sequence, the first type of preset sequence is used to reflect that the tilt angle of the obstacle vehicle is less than 90 degrees, and the second type of preset sequence is used to reflect that the tilt angle of the obstacle vehicle is greater than 90 degrees; Based on the second depth information sequence, determine the position information of the inclined obstacle vehicle, wherein the position information includes a tilt angle; Determining the tilt angle of the vacant parking space formed by the tilted obstacle vehicle based on the position information of the obstacle vehicle; Based on the inclination angle of the vacant parking space, parking information is generated, where the parking information is used to instruct parking according to the inclination angle of the vacant parking space.
2. The method according to claim 1, It is characterized in that The first depth information sequence includes a plurality of distance measurement data, and the preset depth information sequence includes a plurality of preset distance measurement data; and the method further includes: Based on the number of the multiple preset ranging data in the preset depth information sequence, the multiple sub-data sequences are obtained from the first depth information sequence, there is an intersection between the multiple sub-data sequences, and the number of ranging data in the sub-data sequence is the same as the number of preset ranging data in the preset depth information sequence.
3. The method according to claim 1 or 2, It is characterized in that The preset depth information sequence includes: a vehicle side data sequence; and determining the position information of the inclined obstacle vehicle based on the second depth information sequence includes: Determine a target data sequence from the second depth information sequence, the target data sequence corresponding to the vehicle side data sequence of the target depth information sequence, and the target depth information sequence is a preset depth information sequence that satisfies the preset similarity condition with the second depth information sequence; Perform straight line fitting processing based on the target data sequence to obtain target straight line parameters; Based on the target straight line parameters, the inclination angle of the obstacle vehicle is determined.
4. The method according to claim 3, It is characterized in that The preset depth information sequence includes: a vehicle side data sequence; and determining a target data sequence from the second depth information sequence includes: Acquire position information of the vehicle side data sequence relative to the target depth information sequence and the number of preset ranging data in the vehicle side data sequence; Based on the position information of the vehicle side data sequence relative to the target depth information sequence and the number of preset ranging data in the vehicle side data sequence, the target data sequence is determined from the second depth information sequence; wherein the position information of the target data sequence relative to the second depth information sequence is the same as the position information of the vehicle side data sequence relative to the target depth information sequence; and the number of ranging data in the target data sequence is the same as the number of preset ranging data in the vehicle side data sequence.
5. The method according to claim 3, It is characterized in that The similarity between the sub-data sequence and the preset depth information sequence satisfies the following formula: Wherein, D(i) is used to represent the similarity between the i-th sub-data sequence in the first depth information sequence and the preset depth information sequence, M is used to represent the number of preset ranging data in the preset depth information sequence, S(i+s) is used to represent the i+s-th ranging data in the first depth information sequence, T(s) is used to represent the s-th preset ranging data in the preset depth information sequence, and i is a positive integer.
6. The method according to claim 1, It is characterized in that The obtaining of the first depth information sequence includes: Acquire an initial depth information sequence, where the initial depth information sequence is data collected by an ultrasonic sensor; The initial depth information sequence is input into a trained depth information prediction model to obtain the first depth information sequence, and the depth information prediction model is used to predict real distance measurement data.
7. The method according to claim 6, It is characterized in that The trained depth information prediction model includes: a convolution layer, a pooling layer, a de-pooling layer and an output layer; the inputting the initial depth information sequence into the trained depth information prediction model to obtain the first depth information sequence includes: Performing multiple convolution operations on the initial depth information sequence through the convolution layer, and performing multiple pooling operations through the pooling layer to obtain an encoding result of the initial depth information; Performing multiple convolution operations on the encoding result through the convolution layer, and performing multiple de-pooling operations through the pooling layer to obtain a decoding result; The decoding result is processed by the output layer based on an activation function to obtain the first depth information sequence.
8. The method according to claim 6 or 7, It is characterized in that Training a deep information prediction model, including: Acquire a training set, the training set comprising: sample data and labels corresponding to the sample data, the sample data being ranging data collected by an ultrasonic sensor mounted on a vehicle, and the labels being ranging data collected by a laser radar sensor; wherein the sample data and the ranging data collected by the laser radar sensor are synchronously collected data; According to the training set, supervised training is performed on the preset neural network model to obtain a trained depth information prediction model.
9. The method according to claim 6, It is characterized in that The vehicle to be parked is equipped with a plurality of ultrasonic sensors, and the plurality of ultrasonic sensors are respectively arranged at the left front, left rear, right front, and right rear of the vehicle to be parked, and the orientation of the ultrasonic sensors is the same as the direction in which the ultrasonic sensors are arranged on the vehicle to be parked; Among them, the left front and right front ultrasonic sensors are used to collect data of vehicles whose postures belong to the first category preset sequence, and the left rear and right rear ultrasonic sensors are used to collect data of vehicles whose postures belong to the second category preset sequence.
10. A parking device for a vehicle, It is characterized in that The method comprises: An acquisition module, used for acquiring a first depth information sequence when the to-be-parked vehicle searches for a parking garage, the first depth information sequence being used to indicate position information of an obstacle vehicle, the first depth information sequence comprising a plurality of sub-data sequences, the sub-data sequences being used to indicate position information of a portion of the obstacle vehicle; a processing module, configured to determine that the inclined obstacle vehicle exists if a second depth information sequence exists in the multiple sub-data sequences, wherein the second depth information sequence is a sub-data sequence in the first depth information sequence that satisfies a preset similarity condition with multiple preset depth information sequences, wherein the multiple preset depth information sequences include: a first type of preset sequence and a second type of preset sequence, wherein the first type of preset sequence is used to reflect that the inclined angle of the obstacle vehicle is less than 90 degrees, and the second type of preset sequence is used to reflect that the inclined angle of the obstacle vehicle is greater than 90 degrees; The processing module is further used to determine the position information of the inclined obstacle vehicle based on the second depth information sequence, wherein the position information includes a tilt angle; The processing module is further used to determine the tilt angle of the vacant parking space formed by the tilted obstacle vehicle based on the posture information of the obstacle vehicle; The processing module further generates parking information based on the inclination angle of the vacant parking space, wherein the parking information is used to instruct parking according to the inclination angle of the vacant parking space.
11. A vehicle, It is characterized in that include: Memory and processor; Memory and processor coupling; The memory is used to store instructions executable by the processor; When the processor executes the instructions, the method according to any one of claims 1 to 9 is performed.
12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 9.
