Method for brake control of vehicle, computer device, and computer-readable storage medium
A method for a brake control of a vehicle is provided. This method includes: obtaining a collision type of a current vehicle after the current vehicle is collided; obtaining driving information of the current vehicle according to the collision type; determining whether the current vehicle is in a safe state according to the driving information; obtaining driving parameter information of the current vehicle, and determining a consciousness state of a driver according to the driving parameter information when the current vehicle is determined as being in the safe state; and controlling the current vehicle to perform a brake operation when the consciousness state is determined as the non-rational driving state. According to this method, a problem of disabling of the driver's beneficial subjective risk-avoidance operations can be avoided, the secondary collision can be effectively avoided, and the damage to the vehicle due to the collision is alleviated.
1 . A method for a brake control of a vehicle, implemented by a computer device, the method comprising:
obtaining a collision type of a current vehicle after the current vehicle is collided, wherein the collision type comprises a front collision, a rear collision, a left-side collision and a right-side collision;
obtaining driving information of the current vehicle according to the collision type;
determining whether the current vehicle is in a safe state according to the driving information;
obtaining driving parameter information of the current vehicle, and determining a consciousness state of a driver according to the driving parameter information when the current vehicle is determined as being in the safe state; wherein the consciousness state comprises a non-rational driving state and a rational driving state, the non-rational state refers to a state in which the driver is overstrained or scared and is prone to perform excessive operations and the rational state refers to a state in which the driver is not overstrained and can perform driving operation rationally; and
controlling the current vehicle to perform a brake operation when the consciousness state is determined as the non-rational driving state;
wherein when the collision type is the left-side collision or the right-side collision, the driving information comprises a rotation direction of a steering wheel of the current vehicle and an ambient environment information of the current vehicle;
said determining whether the current vehicle is in the safe state according to the driving information comprises:
determining, when the collision type is the left-side collision, that the current vehicle is in an unsafe state if the ambient environment information indicates an existence of an obstacle excepting the current vehicle in a first preset area on a right side of the current vehicle, and the rotation direction is determined as a rightward rotation; or determining that the current vehicle is in the safe state, if the ambient environment information indicates a non-existence of the obstacle excepting the current vehicle in the first preset area on the right side of the current vehicle, and the rotation direction is determined as the rightward rotation;
or alternatively, determining, when the collision type is the right-side collision, that the current vehicle is in the unsafe state if the ambient environment information indicates that the obstacle exists in a second preset area on a left side of the current vehicle, and the rotation direction is determined as a leftward rotation; or determining that the current vehicle is in the safe state, if the ambient environment information indicates that the obstacle does not exist in the second preset area on the left side of the current vehicle, and the rotation direction is determined as the leftward rotation.
2 . The method according to claim 1 , wherein the driving information comprises a current speed of the current vehicle if the collision type is a rear collision;
said determining whether the current vehicle is in the safe state according to the driving information comprises:
determining a safety distance of the current vehicle according to the current speed;
obtaining a current distance between the current vehicle and a front vehicle;
determining that the current vehicle is in the unsafe state if the current distance is less than or equal to the safety distance;
or alternatively determining that the current vehicle is in the safe state if the current distance is greater than the safety distance.
3 . The method according to claim 2 , wherein said determining the safety distance of the current vehicle according to the current speed comprises:
obtaining a preset deceleration;
determining a target distance traveled by the vehicle having the current speed under an action of the preset deceleration; and
determining the target distance as the safety distance.
4 . The method according to claim 1 , wherein when the collision type is a front collision, the driving information comprises a current speed of the current vehicle;
said determining whether the current vehicle is in the safe state according to the driving information comprises:
determining that the current vehicle is in the safe state if the current speed is equal to zero;
or alternatively determining that the current vehicle is in the unsafe state if the current speed is not equal to zero.
5 . The method according to claim 1 , wherein said determining the consciousness state of the driver according to the driving parameter information comprises:
determining a driving-parameter-variation-rate according to the driving parameter information;
determining that the driver is in the non-rational driving state when the driving-parameter-variation-rate is greater than or equal to a preset variable quantity threshold value;
or alternatively determining that the driver is in the rational driving state when the driving-parameter-variation-rate is less than the preset variable quantity threshold value.
6 . The method according to claim 1 , further comprising:
controlling the current vehicle to perform the brake operation when the current vehicle is determined as being in the unsafe state.
7 . A computer device, comprising:
a memory which stores a computer-readable program code; and
at least one processor;
wherein the at least one processor is configured to, when executing the computer-readable program code, implement operations for a brake control of a vehicle, comprising:
obtaining a collision type of a current vehicle after the current vehicle is collided, wherein the collision type comprises a front collision, a rear collision, a left-side collision and a right-side collision;
obtaining driving information of the current vehicle according to the collision type;
determining whether the current vehicle is in a safe state according to the driving information;
obtaining driving parameter information of the current vehicle, and determining a consciousness state of a driver according to the driving parameter information when the current vehicle is determined as being in the safe state; wherein the consciousness state comprises a non-rational driving state and a rational driving state, the non-rational state refers to a state in which the driver is overstrained or scared and is prone to perform excessive operations and the rational state refers to a state in which the driver is not overstrained and can perform driving operation rationally; and
controlling the current vehicle to perform a brake operation when the consciousness state is determined as the non-rational driving state;
wherein when the collision type is the left-side collision or the right-side collision, the driving information comprises a rotation direction of a steering wheel of the current vehicle and an ambient environment information of the current vehicle;
the at least one processor is further configured to perform the operation of determining whether the current vehicle is in the safe state according to the driving information by:
determining, when the collision type is the left-side collision, that the current vehicle is in an unsafe state if the ambient environment information indicates an existence of an obstacle excepting the current vehicle in a first preset area on a right side of the current vehicle, and the rotation direction is determined as a rightward rotation; or determining that the current vehicle is in the safe state, if the ambient environment information indicates a non-existence of the obstacle excepting the current vehicle in the first preset area on the right side of the current vehicle, and the rotation direction is determined as the rightward rotation;
or alternatively, determining, when the collision type is the right-side collision, that the current vehicle is in the unsafe state if the ambient environment information indicates that the obstacle exists in a second preset area on a left side of the current vehicle, and the rotation direction is determined as a leftward rotation; or determining that the current vehicle is in the safe state, if the ambient environment information indicates that the obstacle does not exist in the second preset area on the left side of the current vehicle, and the rotation direction is determined as the leftward rotation.
8 . The computer device according to claim 7 , wherein the driving information comprises a current speed of the current vehicle if the collision type is a rear collision;
the at least one processor is further configured to perform the operation of determining whether the current vehicle is in the safe state according to the driving information by:
determining a safety distance of the current vehicle according to the current speed;
obtaining a current distance between the current vehicle and a front vehicle; and
determining that the current vehicle is in the unsafe state if the current distance is less than or equal to the safety distance;
or alternatively determining that the current vehicle is in the safe state if the current distance is greater than the safety distance.
9 . The computer device according to claim 8 , wherein the at least one processor is further configured to perform the operation of determining the safety distance of the current vehicle according to the current speed by:
obtaining a preset deceleration;
determining a target distance traveled by the vehicle having the current speed under an action of the preset deceleration; and
determining the target distance as the safety distance.
10 . The computer device according to claim 7 , wherein when the collision type is a front collision, the driving information comprises a current speed of the current vehicle;
the operation of determining whether the current vehicle is in the safe state according to the driving information comprises:
determining that the current vehicle is in the safe state if the current speed is equal to zero;
or alternatively determining that the current vehicle is in the unsafe state if the current speed is not equal to zero.
11 . The computer device according to claim 7 , wherein the at least one processor is further configured to perform the operation of determining the consciousness state of the driver according to the driving parameter information by:
determining a driving-parameter-variation-rate according to the driving parameter information;
determining that the driver is in the non-rational driving state when the driving-parameter-variation-rate is greater than or equal to a preset variable quantity threshold value;
or alternatively determining that the driver is in the rational driving state when the driving-parameter-variation-rate is less than the preset variable quantity threshold value.
12 . The computer device according to claim 7 , wherein the at least one processor is further configured to perform an operation of controlling the current vehicle to perform the brake operation when the current vehicle is determined as being in the unsafe state.
13 . A non-transitory computer-readable storage medium, which stores a computer-readable program code, that, when executed by at least one processor of a computer device, causes the at least one processor of the computer device to perform a method for the brake control of the vehicle, comprising steps of:
obtaining a collision type of a current vehicle after the current vehicle is collided, wherein the collision type comprises a front collision, a rear collision, a left-side collision and a right-side collision;
obtaining driving information of the current vehicle according to the collision type;
determining whether the current vehicle is in a safe state according to the driving information;
obtaining driving parameter information of the current vehicle, and determining a consciousness state of a driver according to the driving parameter information when the current vehicle is determined as being in the safe state; wherein the consciousness state comprises a non-rational driving state and a rational driving state, the non-rational state refers to a state in which the driver is overstrained or scared and is prone to perform excessive operations and the rational state refers to a state in which the driver is not overstrained and can perform driving operation rationally; and
controlling the current vehicle to perform a brake operation when the consciousness state is determined as the non-rational driving state;
wherein when the collision type is the left-side collision or the right-side collision, the driving information comprises a rotation direction of a steering wheel of the current vehicle and an ambient environment information of the current vehicle;
the at least one processor is further configured to perform the operation of determining whether the current vehicle is in the safe state according to the driving information by:
determining, when the collision type is the left-side collision, that the current vehicle is in an unsafe state if the ambient environment information indicates an existence of an obstacle excepting the current vehicle in a first preset area on a right side of the current vehicle, and the rotation direction is determined as a rightward rotation; or determining that the current vehicle is in the safe state, if the ambient environment information indicates a non-existence of the obstacle excepting the current vehicle in the first preset area on the right side of the current vehicle, and the rotation direction is determined as the rightward rotation;
or alternatively, determining, when the collision type is the right-side collision, that the current vehicle is in the unsafe state if the ambient environment information indicates that the obstacle exists in a second preset area on a left side of the current vehicle, and the rotation direction is determined as a leftward rotation; or determining that the current vehicle is in the safe state, if the ambient environment information indicates that the obstacle does not exist in the second preset area on the left side of the current vehicle, and the rotation direction is determined as the leftward rotation.