Automatic automobile screen brightness adjusting method and system, electronic equipment and vehicle
Technical Field
The invention belongs to the field of automobiles, and particularly relates to an automatic automobile screen brightness adjusting method, an automatic automobile screen brightness adjusting system, electronic equipment and a vehicle.
Background
In an automobile, a plurality of types of vehicle screens or automobile machine screens are configured, such as a vehicle central control screen, an instrument screen and the like, and a driver usually needs to set proper screen brightness according to external light conditions or own visual perception during running of the automobile, so that the light in a cabin is prevented from being too strong to interfere with driving, and driving experience and driving safety are prevented from being influenced.
The existing market has the automobile type that the brightness of the screen is regulated through soft and hard keys, and most users operate independently to finish the brightness regulation, but the operations usually depend on the initiative judgment and manual intervention of a driver, so that the degree of automation is not high, the operation burden of the driver is increased to a certain extent, the attention of the driver is possibly dispersed, and the driving safety is reduced.
Disclosure of Invention
Aiming at the defects of the prior art, the invention discloses an automatic adjusting method and system for the brightness of an automobile screen, electronic equipment and a vehicle.
The invention is realized by the following technical scheme:
in a first aspect, a method for automatically adjusting brightness of an automobile screen includes:
Collecting face image information, locating pupil positions based on the face image information and constructing a head and eye position model;
Based on the eye position model, calculating to obtain a sight line direction and a sight line focus, and judging whether the position of the sight line focus is in a screen range or not;
Acquiring the ambient light intensity by using a light sensor, and converting the ambient light intensity into an electric signal to serve as ambient light information for adjusting the screen brightness;
and automatically adjusting the screen brightness according to the sight focus position and the ambient illumination information.
In some embodiments, collecting face image information includes:
and recording a dynamic video by using a camera in the vehicle, intercepting the dynamic video to obtain a key image, and identifying the key image by using a face recognition technology to obtain face image information.
In some embodiments, locating pupil positions based on face image information includes:
and capturing the irradiation position of the light source to the pupil of the human eye in the face image information, and positioning the pupil position through the visible reflection pattern.
In some embodiments, collecting face image information further comprises:
preprocessing a face image obtained through the in-car camera, wherein the preprocessing comprises graying and histogram equalization.
In some embodiments, constructing the head and eye position model includes:
And extracting the facial 3D point location distribution of the preprocessed face image, and constructing a head and eye position model.
In some embodiments, extending the gaze direction results in a gaze focus.
In some embodiments, the distance between the focus position and the screen range increases, and the screen brightness decreases step by step;
the distance between the focus position and the screen range is reduced, and the screen brightness is gradually increased;
When the focus position is in the screen, the screen brightness is adjusted to be the brightness most suitable for human eyes according to the ambient illumination information.
In a second aspect, an automatic adjustment system for brightness of an automotive screen, comprising:
the system comprises a face recognition module, a sight line processing module, a light sensing module and a brightness adjusting module;
the face recognition module is used for recognizing face information in an image acquired by the camera in the vehicle and constructing a head and eye position model according to the 3D point position of the face;
the sight line processing module is used for acquiring a sight line direction and a sight line focus and judging whether the position of the sight line focus is in the screen range or not;
the light sensing module is used for converting the acquired ambient illumination intensity into ambient illumination information for adjusting the screen brightness through the light sensor;
and the brightness adjusting module is used for automatically adjusting the brightness of the screen according to the sight focus position and the ambient illumination information.
The electronic equipment comprises a processor and a memory, wherein the processor and the memory are connected through a communication bus, the processor is used for calling and executing a program stored in the memory, and the memory is used for storing the program, and the program is used for realizing the automatic adjustment method of the automobile screen brightness.
A fourth aspect of the present invention is a vehicle, including the electronic device described above, wherein the electronic device is configured to perform the automatic adjustment method for the brightness of an automobile screen described above.
Compared with the prior art, the invention has the following advantages:
1. the screen brightness adjustment according to the sight of the driver can always keep proper brightness under different sight focuses and light conditions, so that the sight interference of the driver is reduced, and the driving safety is improved;
2. the screen is always in the optimal visual effect state of the driver according to the environment, so that visual fatigue of the driver caused by uncomfortable screen brightness is avoided, and the driving experience and comfort are improved;
3. The brightness can be reduced at a proper time, the energy consumption is reduced, and the energy conservation and the environmental protection are realized.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an automatic adjustment method for brightness of an automobile screen according to the present embodiment.
Fig. 2 is a schematic diagram of an in-vehicle camera for capturing a position of a human eye and a direction of a line of sight in the present embodiment.
Fig. 3 is a schematic diagram showing the matching of the screen brightness and the human eye position and the sight line direction of the driver in the present embodiment.
Fig. 4 is a schematic diagram of an automatic adjustment system for brightness of an automobile screen according to the present embodiment.
Fig. 5 is a schematic diagram of an electronic device according to the present embodiment.
Detailed Description
The drawings are for illustrative purposes only and are not to be construed as limiting the patent, and certain components of the drawings may be omitted, enlarged or reduced in order to better illustrate the present embodiments, and do not represent the actual product size, and it will be appreciated by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted. The positional relationship depicted in the drawings is for illustrative purposes only and is not to be construed as limiting the present patent.
The automatic brightness adjusting method of the automobile screen shown in fig. 1 is applied to automatic brightness adjustment of two large screens which are commonly arranged in a seat cabin, such as an instrument and a central control, and specifically comprises the following steps:
S1, acquiring face image information, positioning pupil positions based on the face image information, and constructing a head and eye position model.
Specifically, a face recognition technology is adopted to detect images acquired by cameras in the vehicle, and corresponding driver face image information is extracted from the images based on acquisition and comparison of face features through line-of-sight recognition and authentication.
Further, capturing images of dynamic video data acquired by a camera in a vehicle, extracting image information thereof, carrying out face recognition on the image information based on face image information of a driver, capturing the irradiation position of a light source to the pupil of the human eye, and completing pupil position positioning through a visible reflection pattern.
S2, calculating based on the eye position model to obtain a sight line direction and a sight line focus, and judging whether the position of the sight line focus is in a screen range.
Specifically, the position of an eye and a sight focus are located according to the eye position model, a threshold-based projection method or a minimum neighborhood mean filtering method is used for calculating the sight direction, a calculation formula for acquiring the position of the eye and the sight direction by a camera in a vehicle is generally based on the following formula, namely the sight direction = the position of the eye/the area of the eye, wherein the position of the eye is obtained through the eye position model, the area of the eye area is the number of pixels of the area where the eye is located in an image, and in addition, the position of the sight focus is obtained based on the extension of the sight direction.
In some embodiments, after the driver gets on the vehicle and adjusts the seat position, as shown in fig. 2, the eye position and the eye direction obtained by image positioning are acquired based on the in-vehicle camera, and the eye focus is calculated, the positions of the eye focus are respectively positioned by the X1Y1 axis and the X2Y2 axis on the two in-vehicle screens shown in fig. 3, wherein the small black point at the intersection point of the X1Y1 axis and the intersection point of the X2Y2 axis represents the eye focus, if the eye focus is in the plane range of the in-vehicle screen, the screen brightness is adjusted to be suitable for observation, the current optimal screen brightness is used, if the eye focus moves, the eye focus position and the XY axis of the plane of the screen are judged, when the eye focus leaves the screen range, the screen brightness reducing effect is triggered, and when the eye focus enters the screen range, the screen brightness which is most suitable for the eye observation in the current environment is calculated by combining with the light sensor.
S3, acquiring ambient illumination intensity by using a light sensor, and converting the ambient illumination intensity into an electric signal to serve as control signal ambient illumination information for adjusting screen brightness.
Specifically, the light sensor comprises a light projector and a light receiver, when a focus of a sight enters a screen range, the light sensor receives signals to automatically start to work, the illumination intensity of surrounding environment is measured, the light projector focuses collected light through a lens, so that the light is transmitted to the lens of the light receiver, and after the light receiver amplifies, compares and filters, light signals are converted into electric signals to serve as control signals for adjusting the brightness of the screen, so that intelligent control of the light of the screen is realized.
And S4, automatically adjusting the screen brightness according to the sight focus position and the ambient illumination information.
Specifically, the brightness of the screen is adjusted to be the brightness which is most suitable for the human eyes according to the distance change of the focal point of the sight on the XY axis from the screen and the environmental factors by the light sensor, when the distance between the focal point on the XY axis and the screen range is increased, the brightness of the screen is gradually decreased, otherwise, the brightness is gradually increased until the brightness is most suitable for the human eyes.
In some embodiments, an automatic automobile screen brightness adjustment system as shown in FIG. 4 comprises a face recognition module, a sight line processing module, a light sensing module and a brightness adjustment module.
Specifically, the face recognition module is used for recognizing face information in an image acquired by the camera in the vehicle, and constructing a head and eye position model according to the 3D point position of the face.
The sight processing module is used for acquiring the sight direction and the sight focus and judging whether the sight focus is in the screen range.
The light sensing module is used for converting the acquired ambient illumination intensity into a control signal for adjusting the screen brightness through the light sensor.
And the brightness adjusting module is used for automatically adjusting the brightness of the screen according to the sight focus and the ambient light information.
An embodiment of the present invention provides an electronic device, as shown in fig. 5, where the electronic device includes a processor and a memory, and stores program codes and data for storing an automatic adjustment method for brightness of an automobile screen, and the processor executes steps shown in the automatic adjustment method for brightness of an automobile screen in the above embodiment by calling program instructions in the memory.
The embodiment of the application provides a vehicle, which comprises the electronic equipment provided by the embodiment of the application, and the electronic equipment is used for executing the automatic adjustment method of the automobile screen brightness disclosed by the embodiment of the application.
Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that modifications may be made to the technical solutions described in the foregoing embodiments or equivalents may be substituted for some of the technical features thereof, and that such modifications or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention in essence of the corresponding technical solutions.