Disclosure of Invention
Aiming at the problems existing in the prior art, the embodiment of the invention provides an automatic heating method and device for a rearview mirror.
The embodiment of the invention provides an automatic heating method for a rearview mirror, which comprises the following steps:
acquiring shooting data of a vehicle owner through a shooting device, and acquiring the sight direction of the vehicle owner in the shooting data when the vehicle is driven;
when the sight line direction is the rearview mirror direction, detecting whether the duration of the vehicle owner keeping the sight line direction is longer than a preset duration;
when the time length of the vehicle owner keeping the sight direction is longer than the preset time length, acquiring the facial expression of the vehicle owner through the camera device, and performing microexpressive analysis on the facial expression to obtain microexpressive analysis results;
and acquiring a preset vehicle owner micro-expression set, comparing the micro-expression analysis result with the vehicle owner micro-expression set, and starting a rearview mirror heating device to heat the rearview mirror when the micro-expression analysis result is matched with the vehicle owner micro-expression set.
In one embodiment, the method further comprises:
external information is acquired, and corresponding heating demand degrees are determined according to the external information, wherein the external information comprises rainfall, external brightness, external temperature and vehicle fog lamp states;
and determining the heating time length after the heating device is started according to the heating demand degree.
In one embodiment, the method further comprises:
when a preset vehicle owner micro-expression set is not acquired, acquiring external information, and determining a corresponding heating demand degree according to the external information, wherein the external information comprises rainfall, external brightness, external temperature and vehicle fog lamp state;
when the heating demand degree is greater than a preset level, starting the rearview mirror heating device to heat the rearview mirror.
In one embodiment, the method further comprises:
and obtaining weight values corresponding to the rainfall, the external brightness, the external temperature and the vehicle fog lamp state, carrying out weighted summation on the rainfall, the external brightness, the external temperature and the vehicle fog lamp state by combining a preset formula, and obtaining the corresponding heating demand degree according to the calculation result of the weighted summation.
In one embodiment, the method further comprises:
and carrying out facial expression collection according to the photo uploaded in advance by the vehicle owner to obtain a micro-expression set.
The embodiment of the invention provides a statistical device for a user invitation relationship, which comprises the following steps:
the acquisition module is used for acquiring the shooting data of the vehicle owner through the shooting device and acquiring the sight direction of the vehicle owner in the shooting data when the vehicle is driven;
the detection module is used for detecting whether the duration of the vehicle owner keeping the sight line direction is longer than a preset duration or not when the sight line direction is the rearview mirror direction;
the acquisition module is used for acquiring the facial expression of the vehicle owner through the camera device when the time length of the vehicle owner keeping the sight direction is longer than the preset time length, and carrying out microexpressive analysis on the facial expression to obtain microexpressive analysis results;
the comparison module is used for acquiring a preset vehicle owner microexpressive set, comparing the microexpressive analysis result with the vehicle owner microexpressive set, and starting the rearview mirror heating device to heat the rearview mirror when the microexpressive analysis result is matched with the vehicle owner microexpressive set.
In one embodiment, the apparatus further comprises:
the second acquisition module is used for acquiring external information, and determining the corresponding heating demand degree according to the external information, wherein the external information comprises rainfall, external brightness, external temperature and vehicle fog lamp state;
and the heating duration determining module is used for determining the heating duration after the heating device is started according to the heating demand degree.
In one embodiment, the apparatus further comprises:
the third acquisition module is used for acquiring external information when a preset vehicle owner micro-expression set is not acquired, and determining corresponding heating demand degree according to the external information, wherein the external information comprises rainfall, external brightness, external temperature and vehicle fog lamp state;
and the starting module is used for starting the rearview mirror heating device to heat the rearview mirror when the heating demand degree is greater than a preset level.
The embodiment of the invention provides electronic equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the steps of the automatic heating method of the rearview mirror are realized when the processor executes the program.
An embodiment of the present invention provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described automatic heating method for a rear view mirror.
According to the automatic heating method and device for the rearview mirror, provided by the embodiment of the invention, the shooting data of the vehicle owner are acquired through the shooting device, and the sight direction of the vehicle owner in the shooting data when the vehicle is driven is acquired; when the sight line direction is the rearview mirror direction, detecting whether the duration of the vehicle owner keeping the sight line direction is longer than the preset duration; when the time length of the vehicle owner keeping the sight direction is longer than the preset time length, acquiring the facial expression of the vehicle owner through the camera device, and carrying out microexpressive analysis on the facial expression to obtain microexpressive analysis results; and acquiring a preset vehicle owner microexpressive set, comparing the microexpressive analysis result with the vehicle owner microexpressive set, and starting a rearview mirror heating device to heat the rearview mirror when the microexpressive analysis result is matched with the vehicle owner microexpressive set. Therefore, the rearview mirror heating device can be started more intelligently according to the requirement of a vehicle owner, and further energy sources are saved.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a schematic flow chart of an automatic heating method for a rearview mirror according to an embodiment of the present invention, and as shown in fig. 1, the embodiment of the present invention provides an automatic heating method for a rearview mirror, including:
step S101, acquiring shooting data of a vehicle owner through a shooting device, and acquiring the sight direction of the vehicle owner in the shooting data when the vehicle is driven.
Specifically, the vehicle driving system collects shooting data of a vehicle owner through the shooting device, and obtains the sight direction of the vehicle owner in the shooting data according to the shooting data when the vehicle is driven, wherein the sight direction of the vehicle owner can be determined through the head deflection angle when the vehicle owner is driven.
Step S102, when the sight line direction is the rearview mirror direction, detecting whether the duration of the vehicle owner keeping the sight line direction is longer than a preset duration.
Specifically, when the sight line direction of the vehicle owner is detected to be the left and right rearview mirror directions, detecting whether the time length of the vehicle owner for keeping the sight line direction of the rearview mirror directions is longer than a preset time length, namely detecting whether the vehicle owner looks for traffic conditions in the rearview mirror for a long time, wherein the preset time length can be set by the vehicle owner, such as 4 seconds, 5 seconds and the like.
And step S103, when the time period of keeping the line of sight direction of the vehicle owner is longer than the preset time period, acquiring the facial expression of the vehicle owner through the camera device, and carrying out microexpressive analysis on the facial expression to obtain microexpressive analysis results.
Specifically, when the length of time that the vehicle owner keeps the sight line direction of the rearview mirror direction is longer than the preset length of time, the traffic condition of the vehicle owner in the rearview mirror is shown to be checked for a long time, at the moment, the condition that the rearview mirror is possibly blurred is also possible to be the condition that the vehicle owner is observing the traffic condition, in order to finish the conditions of vehicle steering, reversing and the like, in order to determine whether the rearview mirror is blurred, the facial expression of the vehicle owner is acquired through the camera device, and the facial expression of the vehicle owner is analyzed through the microexpressive analysis technology, so that the emotion change of the vehicle owner in the process that the vehicle owner looks at the rearview mirror can be obtained.
Step S104, a preset vehicle owner micro-expression set is obtained, the micro-expression analysis result is compared with the vehicle owner micro-expression set, and when the micro-expression analysis result is matched with the vehicle owner micro-expression set, the rearview mirror heating device is started to heat the rearview mirror.
Specifically, a preset vehicle owner micro-expression set is obtained, wherein the vehicle owner micro-expression set can be shot in advance by a vehicle owner, then an uploaded photo is obtained by facial expression collection, the facial expression collection comprises the characteristics of dissatisfaction, confusion, curiosity, liveliness and the like of the vehicle owner, the characteristics of tightening eyebrows, tension of lips, large eyes and the like are particularly shown on the micro-expression, when a micro-expression analysis result is matched with the vehicle owner micro-expression set, the user is in the emotion, information needs to be obtained from a rearview mirror, the rearview mirror is in a fuzzy state, a rearview mirror heating device is started to heat the rearview mirror, and the fact that the vehicle owner can timely obtain the current traffic condition is guaranteed.
According to the automatic heating method for the rearview mirror, provided by the embodiment of the invention, the shooting data of the vehicle owner is acquired through the shooting device, and the sight direction of the vehicle owner in the shooting data when the vehicle is driven is acquired; when the sight line direction is the rearview mirror direction, detecting whether the duration of the vehicle owner keeping the sight line direction is longer than the preset duration; when the time length of the vehicle owner keeping the sight direction is longer than the preset time length, acquiring the facial expression of the vehicle owner through the camera device, and carrying out microexpressive analysis on the facial expression to obtain microexpressive analysis results; and acquiring a preset vehicle owner microexpressive set, comparing the microexpressive analysis result with the vehicle owner microexpressive set, and starting a rearview mirror heating device to heat the rearview mirror when the microexpressive analysis result is matched with the vehicle owner microexpressive set. Therefore, the rearview mirror heating device can be started more intelligently according to the requirement of a vehicle owner, and further energy sources are saved.
On the basis of the above embodiment, the automatic heating method for a rearview mirror further includes:
external information is acquired, and corresponding heating demand degrees are determined according to the external information, wherein the external information comprises rainfall, external brightness, external temperature and vehicle fog lamp states;
and determining the heating time length after the heating device is started according to the heating demand degree.
In the embodiment of the invention, after the rearview mirror heating device is started to heat the rearview mirror, external information including information affecting the fuzzy degree of the rearview mirror such as the rainfall amount, the brightness outside the vehicle, the temperature outside the vehicle, the fog lamp state of the vehicle and the like can be obtained, then the corresponding heating requirement degree of the rearview mirror is determined according to the external information, and the heating time length after the heating device is started is determined according to the heating requirement degree, wherein the heating requirement degree corresponding to the rearview mirror is determined according to the external information, and the method comprises the steps of obtaining actual data of the rainfall amount, the brightness outside the vehicle, the temperature outside the vehicle and the fog lamp state of the vehicle, obtaining corresponding weight values, carrying out weighted summation on the rainfall amount, the brightness outside the vehicle, the temperature outside the vehicle and the fog lamp state according to a preset formula, and obtaining the corresponding heating requirement degree according to the calculation result of the weighted summation.
In addition, when the preset micro-expression set of the vehicle owner is not obtained, the condition that the vehicle owner possibly does not preset the corresponding micro-expression set is indicated, external information is obtained, whether heating is needed is determined according to the external information, the corresponding heating requirement degree is determined through the external information, when the heating requirement degree is greater than a preset level, the condition that the rearview mirror is in a fuzzy state is indicated, and then the rearview mirror heating device is started to heat the rearview mirror.
According to the embodiment of the invention, the heating time length after the heating device is started is intelligently adjusted through external information, so that the heating process of the rearview mirror of the vehicle is more intelligent, and the energy is saved.
Fig. 2 is a schematic diagram of an automatic heating device for a rearview mirror according to an embodiment of the present invention, including: the device comprises an acquisition module S201, a detection module S202, an acquisition module S203 and a comparison module S204, wherein:
and the acquisition module S201 is used for acquiring the shooting data of the vehicle owner through the shooting device and acquiring the sight direction of the vehicle owner in the shooting data when the vehicle is driven.
And the detection module S202 is used for detecting whether the duration of the vehicle owner keeping the sight line direction is longer than a preset duration when the sight line direction is the rearview mirror direction.
And the acquisition module S203 is used for acquiring the facial expression of the vehicle owner through the camera device when the time length of the vehicle owner keeping the sight direction is longer than the preset time length, and carrying out microexpressive analysis on the facial expression to obtain microexpressive analysis results.
And the comparison module S204 is used for acquiring a preset vehicle owner micro-expression set, comparing the micro-expression analysis result with the vehicle owner micro-expression set, and starting the rearview mirror heating device to heat the rearview mirror when the micro-expression analysis result is matched with the vehicle owner micro-expression set.
In one embodiment, the apparatus may further include:
the second acquisition module is used for acquiring external information, and determining the corresponding heating demand degree according to the external information, wherein the external information comprises rainfall, external brightness, external temperature and vehicle fog lamp state.
And the heating duration determining module is used for determining the heating duration after the heating device is started according to the heating demand degree.
In one embodiment, the apparatus may further include:
the third acquisition module is used for acquiring external information when a preset vehicle owner micro-expression set is not acquired, and determining the corresponding heating demand degree according to the external information, wherein the external information comprises rainfall, external brightness, external temperature and vehicle fog lamp state.
And the starting module is used for starting the rearview mirror heating device to heat the rearview mirror when the heating demand degree is greater than a preset level.
In one embodiment, the apparatus may further include:
and the fourth acquisition module is used for acquiring weight values corresponding to the rainfall magnitude, the vehicle exterior brightness, the vehicle exterior temperature and the vehicle fog lamp state, carrying out weighted summation on the rainfall magnitude, the vehicle exterior brightness, the vehicle exterior temperature and the vehicle fog lamp state by combining a preset formula, and obtaining the corresponding heating demand degree according to the calculation result of the weighted summation.
In one embodiment, the apparatus may further include:
and the second acquisition module is used for acquiring the micro-expression set obtained by facial expression according to the photo uploaded in advance by the vehicle owner.
The specific limitation of the automatic heating device for the rearview mirror can be referred to as the limitation of the automatic heating method for the rearview mirror, and the description thereof is omitted herein. The modules in the automatic heating device for the rearview mirror can be realized in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Fig. 3 illustrates a physical schematic diagram of an electronic device, as shown in fig. 3, where the electronic device may include: a processor (processor) 301, a memory (memory) 302, a communication interface (Communications Interface) 303 and a communication bus 304, wherein the processor 301, the memory 302 and the communication interface 303 perform communication with each other through the communication bus 304. The processor 301 may call logic instructions in the memory 302 to perform the following method: acquiring shooting data of a vehicle owner through a shooting device, and acquiring the sight direction of the vehicle owner in the shooting data when the vehicle is driven; when the sight line direction is the rearview mirror direction, detecting whether the duration of the vehicle owner keeping the sight line direction is longer than the preset duration; when the time length of the vehicle owner keeping the sight direction is longer than the preset time length, acquiring the facial expression of the vehicle owner through the camera device, and carrying out microexpressive analysis on the facial expression to obtain microexpressive analysis results; and acquiring a preset vehicle owner microexpressive set, comparing the microexpressive analysis result with the vehicle owner microexpressive set, and starting a rearview mirror heating device to heat the rearview mirror when the microexpressive analysis result is matched with the vehicle owner microexpressive set.
Further, the logic instructions in memory 302 described above may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, embodiments of the present invention further provide a non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor is implemented to perform the transmission method provided in the above embodiments, for example, including: acquiring shooting data of a vehicle owner through a shooting device, and acquiring the sight direction of the vehicle owner in the shooting data when the vehicle is driven; when the sight line direction is the rearview mirror direction, detecting whether the duration of the vehicle owner keeping the sight line direction is longer than the preset duration; when the time length of the vehicle owner keeping the sight direction is longer than the preset time length, acquiring the facial expression of the vehicle owner through the camera device, and carrying out microexpressive analysis on the facial expression to obtain microexpressive analysis results; and acquiring a preset vehicle owner microexpressive set, comparing the microexpressive analysis result with the vehicle owner microexpressive set, and starting a rearview mirror heating device to heat the rearview mirror when the microexpressive analysis result is matched with the vehicle owner microexpressive set.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.