Method and apparatus for determining pull-out direction
View Patent ↗This application provides a method and an apparatus for determining a pull-out direction. The method includes: obtaining environmental information of a current parking space and a parking record of a vehicle; and determining, based on the environmental information and the parking record, a first direction towards which the vehicle pulls out of the current parking space. According to the method for determining a pull-out direction provided by this application, an appropriate pull-out solution is recommended to a user based on the environmental information of the current parking space and the parking record of the vehicle. This improves user experience and ensures driving safety.
1 . A method for determining a pull-out direction, applied to an apparatus that comprises at least one processor, comprising:
obtaining, by the at least one processor, environmental information of a current parking space and a parking record of a vehicle; and
determining, by the at least one processor based on the environmental information and the parking record, a first direction towards which the vehicle pulls out of the current parking space,
wherein the determining, by the at least one processor based on the environmental information and the parking record, the first direction towards which the vehicle pulls out of the current parking space comprises:
determining, based on the environmental information, one or more obstacle-free directions in which the vehicle pulls out of the current parking space; and
determining, by the at least one processor, the first direction based on the parking record and the one or more obstacle-free directions; and
wherein the determining, by the at least one processor, the first direction based on the parking record and the one or more obstacle-free directions comprises:
determining, by the at least one processor based on the parking record, a pull-out direction selected by a user for the current parking space in the parking record; and
determining, by the at least one processor, the first direction based on the one or more obstacle-free directions and the pull-out direction selected by the user for the current parking space, wherein the first direction is the pull-out direction selected by the user for the current parking space in the parking record, and the first direction is an obstacle-free direction of the one or more obstacle-free directions.
2 . The method according to claim 1 , wherein the environmental information comprises at least one of obstacle information, lane line information, and a parking space type of the current parking space.
3 . The method according to claim 1 , wherein the parking record comprises a pull-out record and a pull-in record, the pull-out record comprises historical records of pulling out of the current parking space and another parking space by the vehicle, and the pull-in record comprises a historical record of pulling in the current parking space by the vehicle.
4 . The method according to claim 1 , wherein a route that is to a destination and that is determined based on the pull-out direction selected by the user for the current parking space is shorter than a route that is to the destination and that is determined based on a direction with a largest quantity of pull-out times in the one or more obstacle-free directions.
5 . The method according to claim 1 , wherein the method further comprises:
displaying, by the at least one processor, the one or more obstacle-free directions on an interaction interface for user selection, wherein the one or more obstacle-free directions comprise the first direction; and
pulling out of the current parking space, by the at least one processor, in a direction selected by a user from the one or more obstacle-free directions; or
pulling out of the current parking space, by the at least one processor, in the first direction based on the user not making a selection.
6 . The method according to claim 1 , wherein the method further comprises:
determining, by the at least one processor based on the environmental information, the parking record, a preset traffic rule, or a parking space type of the current parking space, the first direction of pulling out of the current parking space.
7 . The method of claim 4 , wherein the environmental information comprises at least one of obstacle information, lane line information, and a parking space type of the current parking space.
8 . The method according to claim 4 , wherein the parking record comprises a pull-out record and a pull-in record, the pull-out record comprises historical records of pulling out of the current parking space and another parking space by the vehicle, and the pull-in record comprises a historical record of pulling in the current parking space by the vehicle.
9 . The method according to claim 4 , wherein the method further comprises:
displaying, by the at least one processor, the one or more obstacle-free directions on an interaction interface for user selection, wherein the one or more obstacle-free directions comprise the first direction; and
pulling out of the current parking space, by the at least one processor, in a direction selected by a user from the one or more obstacle-free directions; or
pulling out of the current parking space, by the at least one processor, in the first direction based on the user not making a selection.
10 . The method according to claim 4 , wherein the method further comprises:
determining, by the at least one processor based on the environmental information, the parking record, a preset traffic rule, or a parking space type of the current parking space, the first direction of pulling out of the current parking space.
11 . A method for determining a pull-out direction, applied to an apparatus that comprises at least one processor, comprising:
obtaining, by the at least one processor, environmental information of a current parking space and a parking record of a vehicle; and
determining, by the at least one processor based on the environmental information and the parking record, a first direction towards which the vehicle pulls out of the current parking space,
wherein the determining, by the at least one processor based on the environmental information and the parking record, the first direction towards which the vehicle pulls out of the current parking space comprises:
determining, by the at least one processor based on the environmental information, one or more obstacle-free directions in which the vehicle pulls out of the current parking space; and
determining, by the at least one processor, the first direction based on the parking record and the one or more obstacle-free directions, and
wherein the determining, by the at least one processor, the first direction based on the parking record and the one or more obstacle-free directions comprises:
determining, by the at least one processor based on the parking record, a direction with a largest quantity of pull-out times in the one or more obstacle-free directions; and
using, by the at least one processor, the direction with the largest quantity of pull-out times in the one or more obstacle-free directions as the first direction.
12 . The method according to claim 11 , wherein the direction with the largest quantity of pull-out times comprises a direction towards which the vehicle pulls out of the current parking space for a largest quantity of times or a direction towards which the vehicle pulls out of a similar parking space for a largest quantity of times, and the similar parking space is a parking space whose similarity with the current parking space falls within a preset range.
13 . A method for determining a pull-out direction, applied to an apparatus that comprises at least one processor, comprising:
obtaining, by the at least one processor, environmental information of a current parking space and a parking record of a vehicle; and
determining, by the at least one processor based on the environmental information and the parking record, a first direction towards which the vehicle pulls out of the current parking space,
wherein the determining, by the at least one processor based on the environmental information and the parking record, the first direction towards which the vehicle pulls out of the current parking space comprises:
determining, by the at least one processor based on the environmental information, one or more obstacle-free directions in which the vehicle pulls out of the current parking space; and
determining, by the at least one processor, the first direction based on the parking record and the one or more obstacle-free directions, and
wherein the determining, by the at least one processor, the first direction based on the parking record and the one or more obstacle-free directions comprises:
determining, by the at least one processor based on the parking record, a direction towards which the vehicle pulls in the current parking space in the parking record; and
determining, by the at least one processor based on a direction towards which the vehicle pulls in the current parking space last time in the parking record, the first direction towards which the vehicle pulls out of the current parking space, wherein the first direction is an obstacle-free direction of the one or more obstacle-free directions.
14 . An apparatus for determining a pull-out direction, comprising:
at least one processor; and
a memory coupled to the at least one processor and storing programming instructions for execution by the at least one processor, the programming instructions instruct the at least one processor to perform the following operations:
obtaining environmental information of a current parking space and a parking record of a vehicle; and
determining, based on the environmental information and the parking record, a first direction towards which the vehicle pulls out of the current parking space,
wherein the determining, based on the environmental information and the parking record, the first direction towards which the vehicle pulls out of the current parking space comprises:
determining, based on the environmental information, one or more obstacle-free directions in which the vehicle pulls out of the current parking space; and
determining the first direction based on the parking record and the one or more obstacle-free directions; and
wherein the determining the first direction based on the parking record and the one or more obstacle-free directions comprises:
determining, based on the parking record, a pull-out direction selected by a user for the current parking space in the parking record; and
determining the first direction based on the one or more obstacle-free directions and the pull-out direction selected by the user for the current parking space, wherein the first direction is the pull-out direction selected by the user for the current parking space in the parking record, and the first direction is an obstacle-free direction of the one or more obstacle-free directions.
15 . The apparatus according to claim 14 , wherein the environmental information comprises at least one of obstacle information, lane line information, and a parking space type of the current parking space.
16 . The apparatus according to claim 14 , wherein the parking record comprises a pull-out record and a pull-in record, the pull-out record comprises historical records of pulling out of the current parking space and another parking space by the vehicle, and the pull-in record comprises a historical record of pulling in the current parking space by the vehicle.
17 . The apparatus according to claim 14 , wherein a route that is to a destination and that is determined based on the pull-out direction selected by the user for the current parking space is shorter than a route that is to the destination and that is determined based on a direction with a largest quantity of pull-out times in the one or more obstacle-free directions.
18 . An apparatus for determining a pull-out direction, comprising:
at least one processor; and
a memory coupled to the at least one processor and storing programming instructions for execution by the at least one processor, the programming instructions instruct the at least one processor to perform the following operations:
obtaining environmental information of a current parking space and a parking record of a vehicle; and
determining, based on the environmental information and the parking record, a first direction towards which the vehicle pulls out of the current parking space,
wherein the determining, based on the environmental information and the parking record, a first direction towards which the vehicle pulls out of the current parking space comprises:
determining, based on the environmental information, one or more obstacle-free directions in which the vehicle pulls out of the current parking space; and
determining the first direction based on the parking record and the one or more obstacle-free directions, and
wherein the determining the first direction based on the parking record and the one or more obstacle-free directions comprises:
determining, based on the parking record, a direction with a largest quantity of pull-out times in the one or more obstacle-free directions; and
using the direction with the largest quantity of pull-out times in the one or more obstacle-free directions as the first direction.
19 . The apparatus according to claim 18 , wherein the direction with the largest quantity of pull-out times comprises a direction towards which the vehicle pulls out of the current parking space for a largest quantity of times and a direction towards which the vehicle pulls out of a similar parking space for a largest quantity of times, and the similar parking space is a parking space whose similarity with the current parking space falls within a preset range.
20 . An autonomous driving vehicle, comprising at least one processor and a memory, wherein the at least one processor is coupled to the memory, and is configured to read and execute instructions stored in the memory, to perform:
obtaining environmental information of a current parking space and a parking record of a vehicle; and
determining, based on the environmental information and the parking record, a first direction towards which the vehicle pulls out of the current parking space,
wherein the determining, based on the environmental information and the parking record, the first direction towards which the vehicle pulls out of the current parking space comprises:
determining, based on the environmental information, one or more obstacle-free directions in which the vehicle pulls out of the current parking space; and
determining the first direction based on the parking record and the one or more obstacle-free directions; and
wherein the determining the first direction based on the parking record and the one or more obstacle-free directions comprises:
determining, based on the parking record, a pull-out direction selected by a user for the current parking space in the parking record; and
determining the first direction based on the one or more obstacle-free directions and the pull-out direction selected by the user for the current parking space, wherein the first direction is the pull-out direction selected by the user for the current parking space in the parking record, and the first direction is an obstacle-free direction of the one or more obstacle-free directions.