DRIVING ASSISTANT METHOD, SYSTEM, AND VEHICLE
In a driving assistance method executed in a vehicle, at least one image behind the vehicle is captured. A distance between the vehicle and an object presented in the image is calculated according to the image. If the object is within a predefined safe distance from the vehicle, an alarm is generated that is outside the vehicle and directed at the object.
1 . A driving assistance method comprising:
controlling, at a processor, a camera installed on a vehicle to capture an image behind the vehicle;
analyzing, at the processor, a distance between the vehicle and an object presented in the image; and
generating, at the processor, an alarm if the object is within a predefined safe distance from the vehicle, wherein the alarm is outside the vehicle and directed at the object.
2 . The method according to claim 1 , further comprising:
generating, at the processor, a second alarm to alert a driver of the vehicle that the object is within the predefined safe distance.
3 . The method according to claim 1 , wherein the camera is a depth-sensing camera, and captures distance information between a lens of the camera and points on the object in the image.
4 . The method according to claim 3 , further comprising:
calculating distances from the lens of the camera to the points on the object in the image according to the distance information;
determining a shortest distance from the lens of the camera to the points on the object.
5 . A vehicle comprising:
a control device; and
a storage device storing one or more programs which when executed by the control device, causes the control device to perform operations comprising:
controlling a camera installed on the vehicle to capture an image behind the vehicle;
analyzing a distance between the vehicle and an object presented in the image; and
generating an alarm if the object is within a predefined safe distance from the vehicle, wherein the alarm is outside the vehicle and directed at the object.
6 . The vehicle according to claim 5 , wherein the operations further comprise:
generating a second alarm to alert a driver of the vehicle that the object is within the predefined safe distance.
7 . The vehicle according to claim 5 , wherein the camera is a depth-sensing camera, and captures distance information between a lens of the camera and points on the object in the image.
8 . The vehicle according to claim 7 , wherein the operations further comprise:
calculating distances from the lens of the camera to the points on the object in the image according to the distance information;
determining a shortest distance from the lens of the camera to the points on the object in the image.
9 . A non-transitory storage medium having stored thereon instructions that, when executed by a control device of a vehicle, causes the control device to perform a driving assistance method, the method comprising:
controlling a camera installed on the vehicle to capture an image behind the vehicle;
analyzing a distance between the vehicle and an object presented in the image; and
generating an alarm if the object is within a predefined safe distance from the vehicle, wherein the alarm is outside the vehicle and directed at the object.
10 . The non-transitory storage medium according to claim 9 , wherein the method further comprises:
generating a second alarm to alert a driver of the vehicle that the object is within the predefined safe distance.
11 . The non-transitory storage medium according to claim 9 , wherein the camera is a depth-sensing camera, and captures distance information between a lens of the camera and points on the object in the image.
12 . The non-transitory storage medium according to claim 11 , wherein the method further comprises:
calculating distances from the lens of the camera to the points on the object in the image according to the distance information;
determining a shortest distance from the lens of the camera to the points on the object.