Method and apparatus for outputting information
AssigneeBaidu Online Network Technology (Beijing) Co., Ltd.
InventorZhaolai Zhong
Life of this patent
Estimating the term…
Abstract
Embodiments of the present disclosure disclose a method and apparatus for outputting information. A specific embodiment of the method includes: acquiring a driving video of a driving process of a vehicle shot within a preset time period, the driving video including at least one frame of driving image; selecting, from the driving video, a driving image including a face image area of a driver; extracting a facial feature of the driver from the driving image including the face image area of the driver; determining identity information of the driver based on the facial feature of the driver; and outputting the identity information of the driver. This embodiment can quickly determine the identity information of the driver.
Claims10
A computer-implemented method for outputting information, the method comprising:
- acquiring a driving video of a driving process of a vehicle shot within a preset time period, the driving video comprising at least one frame of driving image;
- selecting, from the driving video, a driving image comprising a face image area of a driver;
- extracting a facial feature of the driver from the driving image comprising the face image area of the driver;
- determining identity information of the driver based on the facial feature of the driver;
- outputting the identity information of the driver;
- analyzing the driving video to determine a driving type of the driver and a driving type of the vehicle, wherein the driving type of the driver comprises at least one of a normal driving type, a fatigue driving type, a dialing and answering hand-held phone driving type, or a viewing television driving type, and the driving type of the vehicle comprises at least one of a normal driving type, a traffic light violation driving type, a converse driving type, an overspeed driving type, or a cross-line driving type;
- determining, based on the driving type of the driver and the driving type of the vehicle, a responsibility level of the driver in a traffic accident occurred within the preset time period, comprising:
- acquiring a responsibility score and a weight corresponding to the driving type of the vehicle;
- acquiring a responsibility score and a weight corresponding to the driving type of the driver;
- calculating a responsibility score of the driver in the traffic accident, by weighted summing the responsibility score corresponding to the driving type of the vehicle and the responsibility score corresponding to the driving type of the driver;
- and
- determining a responsibility type corresponding to a responsibility score section, the calculated responsibility score of the driver in the traffic accident being located in the responsibility score section, as the responsibility level of the driver in the traffic accident;
- and
- outputting the responsibility level of the driver in the traffic accident occurred within the preset time period.
An apparatus for outputting information, the apparatus comprising:
- at least one processor;
- and
- a memory storing instructions, the instructions when executed by the at least one processor, cause the at least one processor to perform operations, the operations comprising:
- acquiring a driving video of a driving process of a vehicle shot within a preset time period, the driving video comprising at least one frame of driving image;
- selecting, from the driving video, a driving image comprising a face image area of a driver;
- extracting a facial feature of the driver from the driving image comprising the face image area of the driver;
- determining identity information of the driver based on the facial feature of the driver;
- outputting the identity information of the driver;
- analyzing the driving video to determine a driving type of the driver and a driving type of the vehicle, wherein the driving type of the driver comprises at least one of a normal driving type, a fatigue driving type, a dialing and answering hand-held phone driving type, or a viewing television driving type, and the driving type of the vehicle comprises at least one of a normal driving type, a traffic light violation driving type, a converse driving type, an overspeed driving type, or a cross-line driving type;
- determining, based on the driving type of the driver and the driving type of the vehicle, a responsibility level of the driver in a traffic accident occurred within the preset time period, comprising:
- acquiring a responsibility score and a weight corresponding to the driving type of the vehicle;
- acquiring a responsibility score and a weight corresponding to the driving type of the driver;
- calculating a responsibility score of the driver in the traffic accident, by weighted summing the responsibility score corresponding to the driving type of the vehicle and the responsibility score corresponding to the driving type of the driver;
- and
- determining a responsibility type corresponding to a responsibility score section, the calculated responsibility score of the driver in the traffic accident being located in the responsibility score section, as the responsibility level of the driver in the traffic accident;
- and
- outputting the responsibility level of the driver in the traffic accident occurred within the preset time period.
A non-transitory computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor, cause the processor to perform operations, the operation comprising:
- acquiring a driving video of a driving process of a vehicle shot within a preset time period, the driving video comprising at least one frame of driving image;
- selecting, from the driving video, a driving image comprising a face image area of a driver;
- extracting a facial feature of the driver from the driving image comprising the face image area of the driver;
- determining identity information of the driver based on the facial feature of the driver;
- outputting the identity information of the driver;
- analyzing the driving video to determine a driving type of the driver and a driving type of the vehicle, wherein the driving type of the driver comprises at least one of a normal driving type, a fatigue driving type, a dialing and answering hand-held phone driving type, or a viewing television driving type, and the driving type of the vehicle comprises at least one of a normal driving type, a traffic light violation driving type, a converse driving type, an overspeed driving type, or a cross-line driving type;
- determining, based on the driving type of the driver and the driving type of the vehicle, a responsibility level of the driver in a traffic accident occurred within the preset time period, comprising:
- acquiring a responsibility score and a weight corresponding to the driving type of the vehicle;
- acquiring a responsibility score and a weight corresponding to the driving type of the driver;
- calculating a responsibility score of the driver in the traffic accident, by weighted summing the responsibility score corresponding to the driving type of the vehicle and the responsibility score corresponding to the driving type of the driver;
- and
- determining a responsibility type corresponding to a responsibility score section, the calculated responsibility score of the driver in the traffic accident being located in the responsibility score section, as the responsibility level of the driver in the traffic accident;
- and
- outputting the responsibility level of the driver in the traffic accident occurred within the preset time period.
Dependencies are inferred from the claim text.