DRIVING ASSISTANT METHOD, VEHICLE-MOUNTED DEVICE AND READABLE STORAGE MEDIUM
An driving assistant method is provided. The method includes identifying a type of a traffic line between a current lane in which a vehicle is located and an adjacent lane of the current lane. The type of the traffic line is used to determine whether or not the adjacent lane is an overtaking lane. An overtaking speed of the vehicle is calculated when the vehicle can overtake from the current lane to the adjacent lane. A prompt including the overtaking speed is issued once the overtaking speed is obtained.
1 . A driving assistant method applied to a vehicle-mounted device, the method comprising:
identifying a type of a traffic line between a current lane in which a vehicle located and an adjacent lane of the current lane;
determining whether the adjacent lane is an overtaking lane based on the type of the traffic line;
obtaining driving data of the vehicle detected by at least one sensor when the adjacent lane is the overtaking lane;
estimating whether the vehicle can overtake from the current lane to the adjacent lane based on the driving data of the vehicle;
calculating an overtaking speed of the vehicle when the vehicle can overtake from the current lane to the adjacent lane; and
issuing a prompt comprising the overtaking speed.
2 . The method according to claim 1 , further comprising:
detecting whether an other vehicle drives in a reversing direction in the adjacent lane using the at least one sensor;
determining whether the vehicle is required to cancel overtaking based on a comparison between a detected distance value and a preset safety distance value, wherein the detected distance value is a distance value between the other vehicle driving in the reversing direction in the adjacent lane and the vehicle; and
issuing a prompt when the vehicle is required to cancel overtaking.
3 . The method according to claim 1 , wherein the step of identifying of the type of the traffic line between the current lane and the adjacent lane of the current lane comprises:
locating the current lane on a high-precision map using a positioning device; and
obtaining the type of the traffic line from the high-precision map.
4 . The method according to claim 1 , wherein the step of identifying of the type of the traffic line between the current lane and the adjacent lane of the current lane comprises:
capturing an image using at least one camera, wherein the captured image comprises the traffic line between the current lane and the adjacent lane of the current lane; and
identifying the type of the traffic line using an image recognition algorithm.
5 . The method according to claim 1 , wherein the driving data of the vehicle comprises a distance between the vehicle and a preceding vehicle, and a speed of the vehicle relative to the preceding vehicle.
6 . The method according to claim 5 , wherein the step of estimating whether the vehicle can overtake from the current lane to the adjacent lane based on the driving data of the vehicle comprises:
inputting the driving data of the vehicle into a pre-trained overtaking model, wherein the pre-trained overtaking model comprises a mapping relationship between different driving data and different overtaking results, the pre-trained overtaking model outputs a result of whether the vehicle can overtake successfully based on the driving data of the vehicle.
7 . The method according to claim 1 , wherein the overtaking speed is V 2 , wherein V 2 2 =V 1 2 +2as; V 1 represents a current speed of the vehicle; “a” represents a preset acceleration; “s” represents a preset distance that the vehicle needs to travel during overtaking.
8 . A vehicle-mounted device comprising:
a storage device; and
at least one processor;
wherein the storage device stores one or more programs, which when executed by the at least one processor, cause the at least one processor to:
identify a type of a traffic line between a current lane in which a vehicle located and an adjacent lane of the current lane;
determine whether the adjacent lane is an overtaking lane based on the type of the traffic line;
obtain driving data of the vehicle detected by at least one sensor when the adjacent lane is the overtaking lane;
estimate whether the vehicle can overtake from the current lane to the adjacent lane based on the driving data of the vehicle;
calculate an overtaking speed of the vehicle when the vehicle can overtake from the current lane to the adjacent lane; and
issue a prompt comprising the overtaking speed.
9 . The vehicle-mounted device according to claim 8 , wherein the at least one processor is further caused to:
detect whether an other vehicle drives in a reversing direction in the adjacent lane using the at least one sensor;
determine whether the vehicle is required to cancel overtaking based on a comparison between a detected distance value and a preset safety distance value, wherein the detected distance value is a distance value between the other vehicle driving in the reversing direction in the adjacent lane and the vehicle; and
issue a prompt when the vehicle is required to cancel overtaking.
10 . The vehicle-mounted device according to claim 8 , wherein the step of identifying the type of the traffic line between the current lane and the adjacent lane of the current lane comprises:
locating the current lane on a high-precision map using a positioning device; and
obtaining the type of the traffic line from the high-precision map.
11 . The vehicle-mounted device according to claim 8 , wherein the step of identifying the type of the traffic line between the current lane and the adjacent lane of the current lane comprises:
capturing an image using at least one camera, wherein the captured image comprises the traffic line between the current lane and the adjacent lane of the current lane; and
identifying the type of the traffic line using an image recognition algorithm.
12 . The vehicle-mounted device according to claim 8 , wherein the driving data of the vehicle comprises a distance between the vehicle and a preceding vehicle, and a speed of the vehicle relative to the preceding vehicle.
13 . The vehicle-mounted device according to claim 12 , wherein the step of estimating whether the vehicle can overtake from the current lane to the adjacent lane based on the driving data of the vehicle comprises:
inputting the driving data of the vehicle into a pre-trained overtaking model, wherein the pre-trained overtaking model comprises a mapping relationship between different driving data and different overtaking results, the pre-trained overtaking model outputs a result of whether the vehicle can overtake successfully based on the driving data of the vehicle.
14 . The vehicle-mounted device according to claim 8 , wherein the overtaking speed is V 2 , wherein V 2 2 =V 1 2 +2as; V 1 represents a current speed of the vehicle; “a” represents a preset acceleration; “s” represents a preset distance that the vehicle needs to travel during overtaking.
15 . A non-transitory storage medium having instructions stored thereon, when the instructions are executed by a processor of a vehicle-mounted device, the processor is configured to perform an driving assistant method, wherein the method comprises:
identifying a type of a traffic line between a current lane in which a vehicle located and an adjacent lane of the current lane;
determining whether the adjacent lane is an overtaking lane based on the type of the traffic line;
obtaining driving data of the vehicle detected by at least one sensor when the adjacent lane is the overtaking lane;
estimating whether the vehicle can overtake from the current lane to the adjacent lane based on the driving data of the vehicle;
calculating an overtaking speed of the vehicle when the vehicle can overtake from the current lane to the adjacent lane; and
issuing a prompt comprising the overtaking speed.
16 . The non-transitory storage medium according to claim 15 , wherein the method further comprises:
detecting whether an other vehicle drives in a reversing direction in the adjacent lane using the at least one sensor;
determining whether the vehicle is required to cancel overtaking based on a comparison between a detected distance value and a preset safety distance value, wherein the detected distance value is a distance value between the other vehicle driving in the reversing direction in the adjacent lane and the vehicle; and
issuing a prompt when the vehicle is required to cancel overtaking.
17 . The non-transitory storage medium according to claim 15 , wherein the step of identifying the type of the traffic line between the current lane and the adjacent lane of the current lane comprises:
locating the current lane on a high-precision map using a positioning device; and
obtaining the type of the traffic line from the high-precision map.
18 . The non-transitory storage medium according to claim 15 , wherein the step of identifying the type of the traffic line between the current lane and the adjacent lane of the current lane comprises:
capturing an image using at least one camera, wherein the captured image comprises the traffic line between the current lane and the adjacent lane of the current lane; and
identifying the type of the traffic line using an image recognition algorithm.
19 . The non-transitory storage medium according to claim 15 , wherein the driving data of the vehicle comprises a distance between the vehicle and a preceding vehicle, and a speed of the vehicle relative to the preceding vehicle.
20 . The non-transitory storage medium according to claim 19 , wherein the step of estimating whether the vehicle can overtake from the current lane to the adjacent lane based on the driving data of the vehicle comprises:
inputting the driving data of the vehicle into a pre-trained overtaking model, wherein the pre-trained overtaking model comprises a mapping relationship between different driving data and different overtaking results, the pre-trained overtaking model outputs a result of whether the vehicle can overtake successfully based on the driving data of the vehicle.