CN114675442B - Method, device and system for controlling light intensity in vehicle and storage medium - Google Patents

Method, device and system for controlling light intensity in vehicle and storage medium Download PDF

Info

Publication number
CN114675442B
CN114675442B CN202210210834.XA CN202210210834A CN114675442B CN 114675442 B CN114675442 B CN 114675442B CN 202210210834 A CN202210210834 A CN 202210210834A CN 114675442 B CN114675442 B CN 114675442B
Authority
CN
China
Prior art keywords
user
driving side
glass
face state
state value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210210834.XA
Other languages
Chinese (zh)
Other versions
CN114675442A (en
Inventor
刘佳维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Wutong Chelian Technology Co Ltd
Original Assignee
Beijing Wutong Chelian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Wutong Chelian Technology Co Ltd filed Critical Beijing Wutong Chelian Technology Co Ltd
Priority to CN202210210834.XA priority Critical patent/CN114675442B/en
Publication of CN114675442A publication Critical patent/CN114675442A/en
Application granted granted Critical
Publication of CN114675442B publication Critical patent/CN114675442B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02FOPTICAL DEVICES OR ARRANGEMENTS FOR THE CONTROL OF LIGHT BY MODIFICATION OF THE OPTICAL PROPERTIES OF THE MEDIA OF THE ELEMENTS INVOLVED THEREIN; NON-LINEAR OPTICS; FREQUENCY-CHANGING OF LIGHT; OPTICAL LOGIC ELEMENTS; OPTICAL ANALOGUE/DIGITAL CONVERTERS
    • G02F1/00Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics
    • G02F1/01Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour 
    • G02F1/13Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour  based on liquid crystals, e.g. single liquid crystal display cells
    • G02F1/133Constructional arrangements; Operation of liquid crystal cells; Circuit arrangements
    • G02F1/13306Circuit arrangements or driving methods for the control of single liquid crystal cells
    • G02F1/13318Circuits comprising a photodetector
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60JWINDOWS, WINDSCREENS, NON-FIXED ROOFS, DOORS, OR SIMILAR DEVICES FOR VEHICLES; REMOVABLE EXTERNAL PROTECTIVE COVERINGS SPECIALLY ADAPTED FOR VEHICLES
    • B60J1/00Windows; Windscreens; Accessories therefor
    • B60J1/02Windows; Windscreens; Accessories therefor arranged at the vehicle front, e.g. structure of the glazing, mounting of the glazing
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60JWINDOWS, WINDSCREENS, NON-FIXED ROOFS, DOORS, OR SIMILAR DEVICES FOR VEHICLES; REMOVABLE EXTERNAL PROTECTIVE COVERINGS SPECIALLY ADAPTED FOR VEHICLES
    • B60J1/00Windows; Windscreens; Accessories therefor
    • B60J1/08Windows; Windscreens; Accessories therefor arranged at vehicle sides

Abstract

The embodiment of the application discloses a method, a device, a system and a storage medium for controlling the intensity of light in a vehicle, and belongs to the field of vehicles. In the embodiment of the application, the intensity of the current passing through the automobile glass is controlled according to the first facial image of the user in the automobile collected at the current moment and the first illumination intensity incident on the automobile glass, so that the intensity of the light passing through the automobile glass is further controlled, and as the first facial image of the user in the automobile can show the mental state of the user in the automobile at the current moment, the first illumination intensity can show the intensity of sunlight outside the automobile at the current moment, and the first facial image and the first illumination intensity are combined to control the intensity of the light passing through the automobile glass, the adjusted intensity of the light in the automobile can be more in accordance with the requirements of the user in the automobile, and the comfort of the user in the automobile is improved.

Description

Method, device and system for controlling light intensity in vehicle and storage medium
Technical Field
The present application relates to the field of automobiles, and in particular, to a method, an apparatus, a system, and a storage medium for controlling light intensity in an automobile.
Background
In the automobile driving process, the light intensity in the automobile can be changed continuously along with time and external environment, for example, when the sun in noon is strong, the light penetrating into the automobile is strong, and strong sun irradiation can accelerate the aging of automobile interior trim, and can stimulate eyes of a driver to influence safe driving.
In the related art, a dark-colored car film is generally attached to a car window and a front windshield to reduce the intensity of light penetrating into the car, but when sunlight is weak in the morning and evening, the dark-colored car film can make the light in the car darker, and the observation of a driver on road conditions can be influenced.
Disclosure of Invention
The embodiment of the application provides a method, a device and a system for controlling the intensity of light in a vehicle and a storage medium, which can solve the problem that the intensity of the light injected into the vehicle through the glass of the vehicle can not be regulated. The technical scheme is as follows:
in one aspect, a method for controlling light intensity in a vehicle is provided, the method comprising:
acquiring first illumination intensity acquired at the current moment and a first facial image of a user in the vehicle;
and outputting a control current to the automobile glass based on the first illumination intensity and the first facial image, wherein the control current is used for controlling the transparency of the automobile glass so as to control the intensity of light rays emitted into the automobile through the automobile glass.
Optionally, the outputting a control current to the automotive glass based on the first illumination intensity and the first facial image includes:
determining a first facial status value of the in-vehicle user at the current time based on the first facial image, wherein the first facial status value is used for indicating the fatigue degree of the in-vehicle user at the current time;
and outputting a control current to the automotive glass based on the first face state value and the first illumination intensity.
Optionally, the outputting a control current to the automotive glass based on the first face state value and the first illumination intensity includes:
acquiring a first current value corresponding to the first face state value;
acquiring a second current value corresponding to the first illumination intensity;
carrying out weighted summation on the first current value and the second current value to obtain a weighted current value;
and outputting the control current to the automobile glass based on the weighted current value.
Optionally, in the case that the user in the vehicle includes a first user located at a primary driving position, the automotive glass includes primary driving side glass, the primary driving side glass includes window glass and windshield corresponding to the primary driving position, and in the case that the user in the vehicle includes a second user located at a secondary driving position, the automotive glass includes secondary driving side glass, and the secondary driving side glass includes window glass and windshield corresponding to the secondary driving position.
Optionally, in a case where the automotive glass includes the primary driving side glass and the secondary driving side glass, the first face state value includes a face state value of the first user and a face state value of the second user, and the first current value includes a first sub-current value and a second sub-current value;
the obtaining the first current value corresponding to the first face state value includes:
acquiring the first sub-current value corresponding to the face state value of the first user based on a first mapping relation between the face state value corresponding to the main driving side and the current value;
and acquiring the second sub-current value corresponding to the face state value of the second user based on a second mapping relation between the face state value corresponding to the secondary driving side and the current value, wherein the first mapping relation and the second mapping relation are different, and the maximum current value in the first mapping relation is smaller than the maximum current value in the second mapping relation.
Optionally, in the case that the automotive glass includes the primary driving side glass and the secondary driving side glass, the first illumination intensity includes an illumination intensity of the primary driving side and an illumination intensity of the secondary driving side, and the first current value includes a third sub current value and a fourth sub current value;
The obtaining the second current value corresponding to the first illumination intensity includes:
acquiring a third sub-current value corresponding to the illumination intensity of the main driving side based on a third mapping relation between the illumination intensity corresponding to the main driving side and the current value;
and acquiring a fourth sub-current value corresponding to the illumination intensity of the auxiliary driving side based on a fourth mapping relation between the illumination intensity corresponding to the auxiliary driving side and the current value, wherein the third mapping relation is different from the fourth mapping relation, and the maximum current value in the third mapping relation is smaller than the maximum current value in the fourth mapping relation.
Optionally, the method further comprises:
acquiring a second face state value, wherein the second face state value is determined and obtained based on a second face image acquired at the last moment of the current moment;
and if the difference between the second face state value and the reference face state value is greater than a reference threshold value, performing the step of outputting a control current to the automobile glass based on the first face image and the first illumination intensity, and updating the reference face state value to the first face state value.
In another aspect, there is provided a control system for controlling light intensity in a vehicle, the control system comprising: the system comprises a main control device, automobile glass, an image acquisition device and an optical sensor;
The image acquisition equipment is positioned in the automobile and is used for acquiring the facial image of the user in the automobile and sending the facial image of the user in the automobile to the main control equipment;
the light sensor is positioned on the automobile glass and is used for collecting illumination intensity and sending the illumination intensity to the main control equipment;
the main control equipment is used for outputting control current to the automobile glass based on the face image of the user in the automobile and the illumination intensity;
the automobile glass is used for controlling the transparency of the automobile glass based on the control current so as to control the intensity of light rays emitted into the automobile through the automobile glass.
Optionally, the automobile glass comprises at least one of a primary driving side glass and a secondary driving side glass, the primary driving side glass comprises a window glass and a windshield corresponding to a primary driving position, and the secondary driving side glass comprises a window glass and a windshield corresponding to a secondary driving position.
Optionally, when the automotive glass includes a primary driving side glass, the image capturing device includes a first image capturing device located in front of the primary driving location, and the light sensor includes a first light sensor located on the primary driving side glass;
The first image acquisition device is used for acquiring a face image of a first user positioned on the main driving position and sending the face image of the first user to the main control device;
the first light sensor is used for collecting the illumination intensity of the main driving side and sending the illumination intensity of the main driving side to the main control equipment;
the main control equipment is used for outputting a first control current to the glass at the main driving side based on the face image of the first user and the illumination intensity at the main driving side;
the main driving side glass is used for controlling the transparency of the main driving side glass based on the first control current.
Optionally, when the automotive glass includes a secondary-side glass, the image capturing device includes a second image capturing device located in front of the secondary-side glass, and the light sensor includes a second light sensor located on the secondary-side glass;
the second image acquisition device is used for acquiring a face image of a second user positioned on the copilot and sending the face image of the second user to the main control device;
the second light sensor is used for collecting the illumination intensity of the secondary driving side and sending the illumination intensity of the secondary driving side to the main control equipment;
The main control equipment is used for outputting a second control current to the glass at the secondary driving side based on the face image of the second user and the illumination intensity at the secondary driving side;
the secondary driving side glass is used for controlling the transparency of the secondary driving side glass based on the second control current.
In another aspect, there is provided a control device for controlling intensity of light in a vehicle, the device comprising:
the first acquisition module is used for acquiring first illumination intensity acquired at the current moment and a first facial image of a user in the vehicle;
and the first output module is used for outputting control current to the automobile glass based on the first illumination intensity and the first facial image, wherein the control current is used for controlling the transparency of the automobile glass so as to control the intensity of light rays emitted into the automobile through the automobile glass.
Optionally, the first output module is configured to:
determining a first facial status value of the in-vehicle user at the current time based on the first facial image, wherein the first facial status value is used for indicating the fatigue degree of the in-vehicle user at the current time;
and outputting a control current to the automotive glass based on the first face state value and the first illumination intensity.
Optionally, the first output module is mainly configured to:
acquiring a first current value corresponding to the first face state value;
acquiring a second current value corresponding to the first illumination intensity;
carrying out weighted summation on the first current value and the second current value to obtain a weighted current value;
and outputting the control current to the automobile glass based on the weighted current value.
Optionally, in the case that the user in the vehicle includes a first user located at a primary driving position, the automotive glass includes primary driving side glass, the primary driving side glass includes window glass and windshield corresponding to the primary driving position, and in the case that the user in the vehicle includes a second user located at a secondary driving position, the automotive glass includes secondary driving side glass, and the secondary driving side glass includes window glass and windshield corresponding to the secondary driving position.
Optionally, in a case where the automotive glass includes the primary driving side glass and the secondary driving side glass, the first face state value includes a face state value of the first user and a face state value of the second user, and the first current value includes a first sub-current value and a second sub-current value;
The first output module is mainly used for:
acquiring the first sub-current value corresponding to the face state value of the first user based on a first mapping relation between the face state value corresponding to the main driving side and the current value;
and acquiring the second sub-current value corresponding to the face state value of the second user based on a second mapping relation between the face state value corresponding to the secondary driving side and the current value, wherein the first mapping relation and the second mapping relation are different, and the maximum current value in the first mapping relation is smaller than the maximum current value in the second mapping relation.
Optionally, in the case that the automotive glass includes the primary driving side glass and the secondary driving side glass, the first illumination intensity includes an illumination intensity of the primary driving side and an illumination intensity of the secondary driving side, and the first current value includes a third sub current value and a fourth sub current value;
the first output module is mainly used for:
acquiring a third sub-current value corresponding to the illumination intensity of the main driving side based on a third mapping relation between the illumination intensity corresponding to the main driving side and the current value;
and acquiring a fourth sub-current value corresponding to the illumination intensity of the auxiliary driving side based on a fourth mapping relation between the illumination intensity corresponding to the auxiliary driving side and the current value, wherein the third mapping relation is different from the fourth mapping relation, and the maximum current value in the third mapping relation is smaller than the maximum current value in the fourth mapping relation.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring a second face state value, and the second face state value is determined and obtained based on a second face image acquired at the last moment of the current moment;
and the triggering module is used for triggering the first output module to execute the step of outputting control current to the automobile glass based on the first facial image and the first illumination intensity and updating the reference facial state value into the first facial state value if the difference value between the second facial state value and the reference facial state value is larger than a reference threshold value.
In another aspect, a computer readable storage medium is provided, in which a computer program is stored, the computer program implementing the steps of the method for controlling the intensity of light in a vehicle described above when executed by a computer.
In another aspect, a computer program product is provided comprising instructions which, when run on a computer, cause the computer to perform the steps of the method for controlling the intensity of light in a vehicle as described above.
The technical scheme provided by the embodiment of the application has the beneficial effects that at least:
in the embodiment of the application, the intensity of the current passing through the automobile glass is controlled according to the first facial image of the user in the automobile collected at the current moment and the first illumination intensity incident on the automobile glass, so that the intensity of the light passing through the automobile glass is further controlled.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a system architecture diagram related to a method for controlling light intensity in a vehicle according to an embodiment of the present application;
fig. 2 is a system architecture diagram of a main driving side related to a method for controlling light intensity in a vehicle according to an embodiment of the present application;
fig. 3 is a system architecture diagram of a secondary driving side related to a method for controlling light intensity in a vehicle according to an embodiment of the present application;
FIG. 4 is a flowchart of a method for controlling the intensity of light in a vehicle according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a device for controlling light intensity in a vehicle according to an embodiment of the present application;
FIG. 6 is a schematic diagram of another device for controlling the intensity of light in a vehicle according to an embodiment of the present application;
fig. 7 is a schematic hardware structure of a master control device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
Before explaining the embodiment of the present application in detail, an application scenario related to the embodiment of the present application is described.
In the automobile driving process, the light intensity in the automobile can be changed continuously along with time and external environment, for example, when the sun in noon is strong, the light penetrating into the automobile is strong, and strong sun irradiation can accelerate the aging of automobile interior decoration and also can stimulate eyes of a driver. In addition, when a user in the passenger seat needs to rest, intense light rays emitted from the glass of the automobile into the automobile can also affect the rest of the user in the passenger seat. Based on the above, the control system for the light intensity in the vehicle according to the embodiment of the application can be configured on the vehicle, and the control method for the light intensity in the vehicle according to the embodiment of the application is adopted to control the intensity of the light emitted into the vehicle through the vehicle glass.
It should be noted that the foregoing is only some exemplary application scenarios provided by the embodiments of the present application, and does not limit the application scenarios of the method and system for controlling the intensity of light in a vehicle provided by the embodiments of the present application.
Fig. 1 is a system architecture diagram related to a method for controlling light intensity in a vehicle according to an embodiment of the present application. As shown in fig. 1, the system includes an image pickup device 101, a light sensor 102, a main control device 103, and an automobile glass 104. The image acquisition device 101 is located inside the automobile, and is used for acquiring facial images of a user in the automobile and sending the facial images of the user in the automobile to the main control device 103; the light sensor 102 is positioned on the automobile glass and is used for collecting illumination intensity and sending the illumination intensity to the main control equipment 103; the main control device 103 is used for outputting control current to the automobile glass 104 based on the face image and the illumination intensity of the user in the automobile; the automotive glass 104 is used to control its transparency based on the control current to control the intensity of light emitted into the vehicle through the automotive glass 104.
It should be noted that, the automotive glass in the embodiment of the present application can exhibit different transparency according to the received control current. Illustratively, the automobile glass 104 according to the embodiment of the application may include a first glass layer, a second glass layer and a liquid crystal layer, where the liquid crystal layer is disposed between the first glass layer and the second glass layer, and liquid crystal molecules in the liquid crystal layer can deflect to different degrees according to the magnitude of the current, so as to generate different transparencies, so that the main control device 103 can control the deflection angle of the liquid crystal molecules by adjusting the control current input into the liquid crystal layer of the automobile glass 104, thereby realizing the control of the transparence of the automobile glass 104. Alternatively, in the embodiment of the present application, other components capable of changing transparency based on the control current, for example, silver nanowires, may be disposed on the surface of the automotive glass 104, so that the automotive glass 104 may exhibit different transparency according to the received control current.
In addition, in the embodiment of the present application, the automobile glass 104 includes at least one of a primary driving side glass 1041 and a secondary driving side glass 1042, the primary driving side glass 1041 includes at least one of a window glass and a windshield corresponding to a primary driving position, and the secondary driving side glass 1042 includes at least one of a window glass and a windshield corresponding to a secondary driving position.
The windshield of the automobile may be divided into two parts based on a dividing line between the main driver's seat and the auxiliary driver's seat, and the two parts may or may not have equal areas. The portion of the windshield near the main driver's seat may be referred to as a windshield corresponding to the main driver's seat, or the portion of the windshield near the roof of the vehicle may be referred to as a windshield corresponding to the main driver's seat. The portion of the windshield near the passenger seat may be referred to as a windshield corresponding to the passenger seat, or the portion of the windshield near the passenger seat may be referred to as a windshield corresponding to the passenger seat.
In addition, the window glass of the automobile may be divided into two window glass sides based on the main driver's seat and the co-driver's seat, wherein all window glass on the side close to the main driver's seat may be used as the window glass corresponding to the main driver's seat, or a part of window glass on the side close to the main driver's seat and far from the vehicle head may be used as the window glass corresponding to the main driver's seat. All the window glasses near the side of the passenger seat may be used as the window glass corresponding to the passenger seat, or a part of the window glass near the side of the passenger seat and near the vehicle head may be used as the window glass corresponding to the passenger seat.
Alternatively, referring to fig. 2, when the car glass 104 includes the main driving side glass 1041, the image pickup device 101 includes a first image pickup device 1011 located in front of the main driving position, and the light sensor 102 includes a first light sensor 1021 located on the main driving side glass 1041. Wherein the first image acquisition device 1011 is configured to acquire a face image of a first user located on the main driving position, and transmit the face image of the first user to the main control device 103; the first light sensor 1021 is configured to collect illumination intensity of a main driving side, and send the illumination intensity of the main driving side to the main control device 103; the main control device 103 is configured to output a first control current to the primary driving side glass 1041 based on the face image of the first user and the illumination intensity of the primary driving side; the main driving side glass 1041 is used for controlling the transparency of the main driving side glass itself based on the first control current.
Alternatively, referring to fig. 3, when the car glass 104 includes the secondary side glass 1042, the image pickup device 101 includes a second image pickup device 1012 positioned in front of the secondary driver's seat, and the light sensor 102 includes a second light sensor 1022 positioned on the secondary side glass 1042. The second image acquisition device 1012 is configured to acquire a face image of a second user located on the co-driver's seat, and send the face image of the second user to the main control device 103; the second light sensor 1022 is configured to collect the illumination intensity of the secondary driving side, and send the illumination intensity of the secondary driving side to the main control device 103; the main control device 103 is configured to output a second control current to the secondary side glass 1042 based on the face image of the second user and the illumination intensity of the secondary side; the secondary side glass 1042 is used to control its transparency based on the second control current.
The main control device may be a vehicle machine in an automobile, or may be other hardware devices installed on the automobile and capable of implementing the method for controlling the light intensity in the automobile according to the embodiment of the application, which is not limited in the embodiment of the application.
The image capturing device may be an infrared image capturing device or a visible light image capturing device, which is not limited in the embodiment of the present application.
The method for controlling the light intensity in the vehicle provided by the embodiment of the application is described next.
Fig. 4 is a method for controlling light intensity in a vehicle according to an embodiment of the present application. The method can be applied to the master control device included in the control system described in the above embodiment, as shown in fig. 4, and includes the following steps:
step 401: and acquiring the first illumination intensity acquired at the current moment and a first facial image of the user in the vehicle.
As can be seen from the control system described in the foregoing fig. 1-3, the automotive glass according to the embodiment of the present application includes at least one of a primary driving side glass and a secondary driving side glass. When the automobile glass comprises primary driving side glass, the primary driving side glass is correspondingly provided with a first image acquisition device and a first light sensor, and when the automobile glass comprises secondary driving side glass, the secondary driving side glass is correspondingly provided with a second image acquisition device and a second light sensor.
Based on this, the in-vehicle user may include at least one of a first user located at the primary driver's seat and a second user located at the secondary driver's seat. Accordingly, the first facial image may include at least one of a facial image of the first user and a facial image of the second user, and the first illumination intensity may also include at least one of an illumination intensity on the primary driving side and an illumination intensity on the secondary driving side.
When the user in the vehicle includes a first user located on the main driving position, the first image capturing device disposed in front of the main driving position may capture a face image of the first user located on the main driving position and transmit the captured face image of the first user to the main control device, and the first light sensor disposed on the glass of the main driving side may capture the light intensity of the main driving side and transmit the captured light intensity of the main driving side to the main control device. Accordingly, the main control device receives the face image of the first user sent by the first image acquisition device and the illumination intensity of the main driving side sent by the first light sensor, at this time, the first illumination intensity comprises the illumination intensity of the main driving side, and the first face image comprises the face image of the first user.
When the user in the car includes the second user that is located on the co-driver's seat, the second image acquisition device that sets up in the place ahead of co-driver's seat can gather the facial image of the second user that is located on the co-driver's seat to send the facial image of second user who gathers to master control equipment, the illumination intensity of co-driver side can be gathered to the second light sensor that sets up on the glass of co-driver side, and also sends the illumination intensity of co-driver side who gathers to master control equipment. Accordingly, the main control device receives the face image of the second user sent by the second image acquisition device and the illumination intensity of the secondary driving side sent by the second light sensor, at this time, the first illumination intensity comprises the illumination intensity of the secondary driving side, and the first face image comprises the face image of the second user.
When the user in the vehicle comprises a first user and a second user at the same time, the first illumination intensity comprises the illumination intensity of the primary driving side and the illumination intensity of the secondary driving side, and the first facial image comprises a facial image of the first user and a facial image of the second user.
Step 402: based on the first illumination intensity and the first facial image, a control current is output to the automotive glass, the control current being used to control the transparency of the automotive glass to control the intensity of light emitted into the vehicle through the automotive glass.
In one implementation, the master control device may determine, based on the first facial image, a first facial status value of the in-vehicle user at the current time, the first facial status value being used to indicate a degree of fatigue of the in-vehicle user at the current time; based on the first face state value and the first illumination intensity, a control current is output to the automotive glass.
When the main control device receives a first facial image at the current moment, the received first facial image is input into a facial image analysis model, the facial image analysis model detects and extracts the eye characteristics and the mouth characteristics of the in-vehicle user in the first facial image, and a first facial state value is determined and output according to the eye characteristics and the mouth characteristics of the in-vehicle user in the first facial image.
The fatigue states of the in-vehicle user corresponding to the different eye features and the mouth features are different, for example, when the fact that eyes of the in-vehicle user in the first face image are tightly closed and the mouth is slightly open is detected, the fact that the in-vehicle user is tired at the moment is indicated, and a larger first face state value can be output to indicate that the in-vehicle user is tired at present. When the opening of the user in the vehicle in the first facial image is detected to be large and the mouth is closed, the condition that the user in the vehicle is good in mental state is indicated, the user is not tired, and a smaller first facial state value is output to indicate that the user in the vehicle is good in mental state.
After obtaining a first face state value, the main control equipment obtains a first current value corresponding to the first face state value; acquiring a second current value corresponding to the first illumination intensity; carrying out weighted summation on the first current value and the second current value to obtain a weighted current value; based on the weighted current value, a control current is output to the automotive glass.
In the embodiment of the application, the mapping relation between the face state value and the current value is stored in the main control equipment, after the first face state value is obtained, the current value corresponding to the first face state value can be determined from the stored mapping relation between the face state value and the current value, and the current value corresponding to the first face state value is taken as the first current value.
Illustratively, the main control device stores a plurality of face state value ranges, where each face state value range corresponds to one current value, and the main control device may determine the face state value range to which the first face state value belongs, and use the current value corresponding to the face state value range to which the first face state value belongs as the first current value.
For example, the main control device stores three face state value ranges, wherein the first face state value range is greater than 0 and not greater than 5, the second face state value range is greater than 5 and less than 10, the third face state value range is greater than or equal to 10, and if the first face state value obtained by the main control device is 7, the first face state value 7 belongs to the face state value in the second face state value range, and on the basis, the main control device can take a current value corresponding to the second face state value range as the first current value.
In addition, the main control device also stores a mapping relation between the illumination intensity and the current value, after the first illumination intensity is obtained, the main control device can determine the current value corresponding to the first illumination intensity from the stored mapping relation between the illumination intensity and the current value, and takes the current value corresponding to the first illumination intensity as the second current value.
The master control device may further store a plurality of illumination intensity ranges, where each illumination intensity range corresponds to one current value, and the master control device may determine an illumination intensity range to which the first illumination intensity belongs, and use, as the second current value, the current value corresponding to the illumination intensity range to which the first illumination intensity belongs.
For example, three illumination intensity ranges are stored in the master control device, wherein the first illumination intensity range is greater than 0 and not greater than 10000, the second illumination intensity range is greater than 10000 and less than 20000, the third illumination intensity range is greater than or equal to 20000, and if the first illumination intensity obtained by the master control device is 30000, the first illumination intensity 30000 belongs to illumination intensity in the third illumination intensity range, and on the basis, the master control device may use a current value corresponding to the third illumination intensity range as the second current value.
After obtaining the first current value and the second current value, the master control device may perform weighted summation on the first current value and the second current value to obtain a weighted current value. The weight corresponding to the first current value is smaller than the weight corresponding to the second current value, and the sum of the weight corresponding to the first current value and the weight corresponding to the second current value is equal to 1. For example, if the weight corresponding to the first current value is 0.3, the weight corresponding to the second current value is 0.7.
After obtaining the weighted current value, the master control device may take the weighted current value as a control current, output the control current to the automobile glass, and control the transparency of the automobile glass through the control current.
It should be noted that, as is known from the description in step 401, the user in the vehicle includes at least one of the first user located at the primary driving position and the second user located at the secondary driving position, and accordingly, the first face image will also include at least one of the face image of the first user and the face image of the second user, and the first illumination intensity will also include at least one of the illumination intensity on the primary driving side and the illumination intensity on the secondary driving side. In this case, the main control device may control the transparency of the glass on the primary driving side based on the related data on the primary driving side, and control the transparency of the glass on the secondary driving side based on the related data on the secondary driving side, respectively.
For example, when the in-vehicle user includes a first user located at the main driving position, that is, when the first facial image includes a facial image of the first user and the first illumination intensity includes an illumination intensity of the main driving side, the main control device may determine a face state value of the first user at the current time according to the facial image of the first user, where the face state value of the first user is used to indicate a fatigue degree of the first user located at the main driving position at the current time. And then, the main control equipment can acquire a first sub-current value corresponding to the face state value of the first user based on a first mapping relation between the face state value corresponding to the main driving side and the current value, and can acquire a third sub-current value corresponding to the illumination intensity of the main driving side based on a third mapping relation between the illumination intensity corresponding to the main driving side and the current value. After obtaining the first sub-current value and the third sub-current value, the main control equipment performs weighted summation on the first sub-current value and the third sub-current value to obtain a weighted current value, takes the weighted current value as a first control current, and outputs the first control current to the glass at the main driving side so as to control the transparency of the glass at the main driving side. It follows that when the in-vehicle user comprises a first user, then the first face state value will comprise the face state value of the first user, and accordingly the first current value comprises a first sub-current value, the second current value comprises a third sub-current value, and the control current output to the vehicle glazing will comprise the first control current.
It should be noted that, the implementation manner of the main control device to obtain the first sub-current value corresponding to the face state value of the first user may refer to the implementation manner of the main control device to obtain the first current value corresponding to the first face state value, which is not described herein in detail.
The implementation manner of the main control device to obtain the third sub-current value corresponding to the illumination intensity of the main driving side may refer to the implementation manner of the main control device to obtain the second current value corresponding to the first illumination intensity, and the embodiments of the present application are not described herein again.
In addition, as can be seen from the foregoing description, the weight corresponding to the first current value is smaller than the weight corresponding to the second current value, and accordingly, in the case that the in-vehicle user includes the first user, the weight corresponding to the first sub-current value will be smaller than the weight corresponding to the third sub-current value, for example, the weight corresponding to the first sub-current value is 0.3, and the weight corresponding to the third sub-current value is 0.7.
Optionally, when the user in the vehicle includes a second user located at the co-driver position, that is, when the first facial image includes a facial image of the second user and the first illumination intensity includes an illumination intensity on the co-driver side, the main control device determines a face state value of the second user at the current time according to the facial image of the second user, where the face state value of the second user is used to indicate a fatigue level of the second user located at the co-driver position at the current time. And then, the main control equipment can acquire a second sub-current value corresponding to the face state value of the second user based on a second mapping relation between the face state value corresponding to the secondary driving side and the current value, and can acquire a fourth sub-current value corresponding to the illumination intensity of the secondary driving side based on a fourth mapping relation between the illumination intensity corresponding to the secondary driving side and the current value. After obtaining the second sub-current value and the fourth sub-current value, the main control device may further perform weighted summation on the second sub-current value and the fourth sub-current value to obtain a weighted current value, and then use the weighted current value as a second control current, and output the second control current to the glass on the secondary driving side, so as to control the transparency of the glass on the secondary driving side. It follows that when the in-vehicle user comprises a second user, then the first face state value will comprise the face state value of the second user, and accordingly the first current value comprises the second sub-current value, the second current value comprises the fourth sub-current value, and the control current output to the vehicle glazing will comprise the second control current.
It should be noted that, the implementation manner of the main control device to obtain the second sub-current value corresponding to the face state value of the second user may refer to the implementation manner of the main control device to obtain the first current value corresponding to the first face state value, which is not described herein in detail.
The implementation manner of the main control device to obtain the fourth sub-current value corresponding to the illumination intensity of the secondary driving side may refer to the implementation manner of the main control device to obtain the second current value corresponding to the first illumination intensity, which is not described herein in detail.
In addition, as can be seen from the foregoing description, the weight corresponding to the first current value is smaller than the weight corresponding to the second current value, and accordingly, in the case that the in-vehicle user includes the second user, the weight corresponding to the second sub-current value will also be smaller than the weight corresponding to the fourth sub-current value, and the sum of the weight corresponding to the second sub-current value and the weight corresponding to the fourth sub-current value is equal to 1. For example, if the weight corresponding to the second sub-current value is 0.3, the weight corresponding to the fourth sub-current value is 0.7.
The first and second mapping relationships used in the process of controlling the transparency of the primary and secondary side glasses may be the same or different. The fact that the first mapping relationship and the second mapping relationship are different may mean that, for the same face state value, current values corresponding to the face state values obtained based on the two mapping relationships are not equal. When the first mapping relation and the second mapping relation are different, the maximum current value in the first mapping relation is smaller than the maximum current value in the second mapping relation, so that under the condition that the third sub-current value and the fourth sub-current value are equal, the maximum first control current obtained based on the maximum current value in the first mapping relation is smaller than the maximum second control current obtained based on the maximum current in the second mapping relation, on the basis, the minimum transparency of the glass on the primary driving side controlled by the first control current is higher than the minimum transparency of the glass on the secondary driving side controlled by the second control current, and therefore, the transparency of the glass on the primary driving side can be ensured not to be too low, the observation of a driver on the road condition in front can not be influenced, and meanwhile, a more proper rest environment can be created for the user on the secondary driving side.
Similarly, the third mapping relationship and the fourth mapping relationship may be the same or different. The fact that the third mapping relation is different from the fourth mapping relation means that for the same illumination intensity, current values corresponding to the illumination intensity obtained based on the two different mapping relations are not equal. When the third mapping relationship and the fourth mapping relationship are different, the maximum current value in the third mapping relationship is smaller than the maximum current value in the fourth mapping relationship. Therefore, under the condition that the first sub-current value and the second sub-current value are equal, the maximum first control current obtained based on the maximum current value in the third mapping relation is smaller than the maximum second control current obtained based on the maximum current value in the fourth mapping relation, and on the basis, the minimum transparency of the primary driving side glass controlled based on the first control current is higher than the minimum transparency of the secondary driving side glass controlled based on the second control current, so that the transparency of the glass on the primary driving side can be ensured not to be too low, the observation of the road condition in front by a driver can not be influenced, and meanwhile, a more comfortable rest environment can be created for a user on the secondary driving side.
In addition, it is noted that, when the first current value includes the first sub-current value and the second sub-current value, and the second current value includes the third sub-current value and the fourth sub-current value, weights corresponding to the first sub-current value and the second sub-current value may be the same or different, and weights corresponding to the third sub-current value and the fourth sub-current value may be the same or different, as long as it is ensured that the weight corresponding to the first sub-current value is smaller than the weight corresponding to the third sub-current value, and the sum of the weights corresponding to the first sub-current value and the weight corresponding to the third sub-current value is equal to 1, the weight corresponding to the second sub-current value is smaller than the weight corresponding to the fourth sub-current value, and the sum of the weights corresponding to the second sub-current value and the weight corresponding to the fourth sub-current value is equal to 1.
Optionally, in the embodiment of the present application, before outputting the control current to the automotive glass based on the first face state value and the first illumination intensity, the main control device may further obtain a second face state value, where the second face state value is determined based on a second face image acquired at a previous time of the current time; if the difference between the second face state value and the reference face state value is greater than the reference threshold value, a control current is output to the vehicle glass based on the first face state value and the first illumination intensity, and the reference face state value is updated to the first face state value.
The method includes the steps that after the image acquisition device arranged in the vehicle is started, face images of the user in the vehicle can be continuously acquired, the face images of the user in the vehicle, which are acquired at the current moment, are sent to the main control device, accordingly, the main control device receives the face images of the user in the vehicle, which are acquired at the current moment and are sent by the image acquisition device, a first face image is obtained, the face images of the user in the vehicle, which are received at the last moment of the current moment, are taken as second face images, and then the reference face images, which are acquired before the second face images, are acquired. The reference facial image may be the first frame image acquired by the image acquisition device, or may be the reference facial image updated last time before the current moment. And then, the main control equipment acquires a second face state value corresponding to the second face image and a reference face state value corresponding to the reference face image, calculates a difference value between the second face state value and the reference face state value, and obtains a first difference value. Comparing the first difference value with a reference threshold value, if the first difference value is larger than the reference threshold value, the current state of mind of the user in the vehicle is indicated to have larger change compared with the state of mind of the user in the vehicle in the reference facial image, and in this case, the main control equipment controls the transparency of the vehicle glass according to the first facial state value and the first illumination intensity, so that the fatigue degree of the personnel in the vehicle can be more accurately judged, the more suitable light intensity in the vehicle can be adjusted for the personnel in the vehicle, the light in the vehicle can be in a stable state in a period of time, discomfort of the user in the vehicle caused by frequent adjustment of the transparency of the vehicle glass is avoided, the adaptation times of the user in the vehicle to different light intensities in the vehicle are reduced, and the comfort of the user in the vehicle is improved.
The implementation manner of the main control device to obtain the second face state value corresponding to the second face image and the reference face state value corresponding to the reference face image may refer to the implementation manner of the main control device to obtain the first face state value corresponding to the first face image, which is not described herein in detail.
In one possible implementation manner, when the first difference value is greater than the reference threshold value, the master control device may output the control current to the automobile glass multiple times according to the control current value after determining the control current value according to the first face state value and the first illumination intensity, so as to gradually adjust the transparency of the automobile glass. For example, when the control current value is a, the main control device may output the control current 3 times, and the current value of the control current output each time is a/3, thereby gradually adjusting the transparency of the automobile glass. In this way, user discomfort caused by a large instantaneous change in transparency of the vehicle glass when adjusted directly based on the control current value can be reduced.
In addition, the main control device outputs the control current to the automobile glass, and meanwhile, the reference face image can be updated to be the first face image at the current moment, so that the change condition of the mental state of the user in the automobile can be judged based on the new reference face image.
In addition, the starting condition of the image acquisition device may be that the image acquisition device is started after the automobile is powered on, or the main control device controls the image acquisition device to be started when detecting that the user triggers a starting button of the automobile, or the main control device controls the image acquisition device to be started when determining that the illumination intensity sent by the received light sensor is greater than a first threshold or less than a second threshold. Wherein the first threshold is greater than the second threshold.
In the embodiment of the application, the intensity of the current passing through the automobile glass is controlled according to the first facial image of the user in the automobile collected at the current moment and the first illumination intensity incident on the automobile glass, so that the intensity of the light passing through the automobile glass is further controlled.
Next, an apparatus for controlling the intensity of light in a vehicle according to an embodiment of the present application will be described.
Referring to fig. 5, an embodiment of the present application provides a control device 500 for controlling light intensity in a vehicle, where the device 500 includes:
a first obtaining module 501, configured to obtain a first illumination intensity collected at a current moment and a first facial image of a user in a vehicle;
the first output module 502 is configured to output a control current to the automotive glass based on the first illumination intensity and the first face image, where the control current is used to control transparency of the automotive glass to control intensity of light emitted into the vehicle through the automotive glass.
Optionally, the first output module 502 is configured to:
determining a first facial status value of the in-vehicle user at the current time based on the first facial image, the first facial status value being used to indicate the degree of fatigue of the in-vehicle user at the current time;
based on the first face state value and the first illumination intensity, a control current is output to the automotive glass.
Alternatively, the first output module 502 is mainly used for:
acquiring a first current value corresponding to the first face state value;
acquiring a second current value corresponding to the first illumination intensity;
carrying out weighted summation on the first current value and the second current value to obtain a weighted current value;
Based on the weighted current value, a control current is output to the automotive glass.
Optionally, in the case that the user in the vehicle includes a first user located at the primary driving position, the vehicle glass includes a primary driving side glass, the primary driving side glass includes a window glass and a windshield corresponding to the primary driving position, and in the case that the user in the vehicle includes a second user located at the secondary driving position, the vehicle glass includes a secondary driving side glass, and the secondary driving side glass includes a window glass and a windshield corresponding to the secondary driving position.
Optionally, in the case that the automobile glass includes a primary driving side glass and a secondary driving side glass, the first face state value includes a face state value of the first user and a face state value of the second user, and the first current value includes a first sub current value and a second sub current value;
the first output module 502 is mainly used for:
acquiring a first sub-current value corresponding to a face state value of a first user based on a first mapping relation between the face state value corresponding to a main driving side and the current value;
based on a second mapping relation between the face state value corresponding to the secondary driving side and the current value, a second sub-current value corresponding to the face state value of the second user is obtained, the first mapping relation and the second mapping relation are different, and the maximum current value in the first mapping relation is smaller than the maximum current value in the second mapping relation.
Optionally, in the case that the automotive glass includes a primary driving side glass and a secondary driving side glass, the first illumination intensity includes an illumination intensity of the primary driving side and an illumination intensity of the secondary driving side, and the first current value includes a third sub current value and a fourth sub current value;
the first output module 502 is mainly used for:
acquiring a third sub-current value corresponding to the illumination intensity of the main driving side based on a third mapping relation between the illumination intensity corresponding to the main driving side and the current value;
and acquiring a fourth sub-current value corresponding to the illumination intensity of the auxiliary driving side based on a fourth mapping relation between the illumination intensity corresponding to the auxiliary driving side and the current value, wherein the third mapping relation is different from the fourth mapping relation, and the maximum current value in the third mapping relation is smaller than the maximum current value in the fourth mapping relation.
Optionally, referring to fig. 6, the apparatus 500 further includes:
a second obtaining module 503, configured to obtain a second face state value, where the second face state value is determined based on a second face image acquired at a time previous to the current time;
a triggering module 504, configured to trigger the first output module 502 to perform the step of outputting the control current to the automobile glass based on the first facial image and the first illumination intensity and update the reference facial status value to the first facial status value if the difference between the second facial status value and the reference facial status value is greater than the reference threshold value.
In summary, in the embodiment of the application, the intensity of the current passing through the automobile glass is controlled according to the first face image of the user in the automobile collected at the current moment and the first illumination intensity incident on the automobile glass, so as to further control the intensity of the light passing through the automobile glass and entering the automobile.
It should be noted that, when the control device for controlling the light intensity in the vehicle provided by the above embodiment is used to control the light intensity in the vehicle, only the division of the above functional modules is used to illustrate, in practical application, the above functional allocation may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the device for controlling the intensity of the light in the vehicle provided by the above embodiment and the method embodiment for controlling the intensity of the light in the vehicle belong to the same concept, and the detailed implementation process of the device is referred to the method embodiment and will not be described herein.
Fig. 7 is a possible hardware configuration diagram of a master device 700. Referring to fig. 7, the master control apparatus 700 may include: a processor 701 and a memory 702.
Processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 701 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 701 may also include a main processor, which is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 701 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 701 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 702 is used to store at least one instruction for execution by processor 701 to implement the method for controlling in-vehicle light intensity provided by the method embodiments of the present application.
In some embodiments, the master control apparatus 700 may further optionally include: a peripheral interface 703 and at least one peripheral. The processor 701, the memory 702, and the peripheral interface 703 may be connected by a bus or signal lines. The individual peripheral devices may be connected to the peripheral device interface 703 via buses, signal lines or a circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 704, a display 705, a camera assembly 706, audio circuitry 707, a positioning assembly 708, and a power supply 709.
A peripheral interface 703 may be used to connect I/O (Input/Output) related at least one peripheral device to the processor 701 and memory 702. In some embodiments, the processor 701, memory 702, and peripheral interface 703 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 701, the memory 702, and the peripheral interface 703 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 704 is configured to receive and transmit RF (Radio Frequency) signals, also referred to as electromagnetic signals. The radio frequency circuitry 704 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 704 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 704 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuitry 704 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the world wide web, metropolitan area networks, intranets, generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuitry 704 may also include NFC (Near Field Communication ) related circuitry, which is not limiting of the application.
The display screen 705 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 705 is a touch display, the display 705 also has the ability to collect touch signals at or above the surface of the display 705. The touch signal may be input to the processor 701 as a control signal for processing. At this time, the display 705 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 705 may be one, providing a front panel of the master device 700; in other embodiments, the display 705 may be at least two, respectively disposed on different surfaces of the main control device 700 or in a folded design; in still other embodiments, the display 705 may be a flexible display disposed on a curved surface or a folded surface of the master device 700. Even more, the display 705 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The display 705 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials. It should be noted that, in the embodiment of the present application, when the master device 700 is a flat screen master device, the aspect ratio of the display screen of the master device 700 is greater than 1, for example, the aspect ratio of the display screen of the master device 700 may be 16:9 or 4:3. When the master device 700 is a portrait master device, then the aspect ratio of the display of the master device 700 is less than 1, e.g., the aspect ratio of the display of the master device 700 may be 9:18 or 3:4, etc.
The audio circuit 707 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and environments, converting the sound waves into electric signals, and inputting the electric signals to the processor 701 for processing, or inputting the electric signals to the radio frequency circuit 704 for voice communication. For purposes of stereo acquisition or noise reduction, the microphones may be multiple and separately disposed at different locations of the master control device 700. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 701 or the radio frequency circuit 704 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuit 707 may also include a headphone jack.
The locating component 708 is used to locate the current geographic location of the master device 700 to enable navigation or LBS (Location Based Service, location-based services). The positioning component 708 may be a GPS (Global Positioning System ), beidou system or galileo system based positioning component.
The power supply 709 is used to power the various components in the master device 700. The power supply 709 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 709 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
That is, the embodiment of the present application provides not only a master control apparatus including a processor and a memory for storing instructions executable by the processor, wherein the processor is configured to perform the method for controlling the intensity of light in a vehicle shown in fig. 4, but also a computer-readable storage medium having a computer program stored therein, which when executed by the processor can implement the method for controlling the intensity of light in a vehicle shown in fig. 4.
The embodiment of the application also provides a computer program product containing instructions, which when run on a computer, cause the computer to execute the method for controlling the light intensity in the vehicle provided by the embodiment shown in fig. 4.
The above description should not be taken as limiting the embodiments of the application, but rather should be construed to cover all modifications, equivalents, improvements, etc. that may fall within the spirit and principles of the embodiments of the application.

Claims (10)

1. The method for controlling the light intensity in the automobile is used for adjusting the transparency of the automobile glass, the automobile glass comprises primary driving side glass and secondary driving side glass, the primary driving side glass comprises window glass and windshield corresponding to a primary driving position, the secondary driving side glass comprises window glass and windshield corresponding to a secondary driving position, and the method comprises the following steps:
acquiring a first facial image, a second facial image and a reference facial image of a first user positioned in a main driver seat, and acquiring the first facial image, the second facial image and the reference facial image of a second user positioned in a co-driver seat, wherein the first facial image is acquired based on the current moment, the second facial image is acquired based on the last moment of the current moment, and the reference facial image is acquired before the second facial image;
acquiring a first face state value, a second face state value and a reference face state value of a first user based on the first face image, the second face image and the reference face image of the first user, and acquiring a first face state value, a second face state value and a reference face state value of a second user based on the first face image and the second face image of the second user;
Outputting a first control current to the primary driving side glass based on the first face state value of the first user and the illumination intensity of the primary driving side if the difference between the second face state value of the first user and the reference face state value of the first user is greater than a reference threshold value, and updating the reference face state value of the first user to the first face state value of the first user, wherein the first control current is used for controlling the transparency of the primary driving side glass so as to control the intensity of light rays injected into a vehicle through the primary driving side glass;
and if the difference value between the second face state value of the second user and the reference face state value of the second user is larger than a reference threshold value, outputting a second control current to the secondary driving side glass based on the first face state value of the second user and the illumination intensity of the secondary driving side, and updating the reference face state value of the second user to the first face state value of the second user, wherein the second control current is used for controlling the transparency of the secondary driving side glass so as to control the intensity of light rays injected into the vehicle through the secondary driving side glass.
2. The method of claim 1, wherein the outputting a first control current to the primary side glass based on the first face state value of the first user and the primary side illumination intensity, and outputting a second control current to the secondary side glass based on the first face state value of the second user and the secondary side illumination intensity, comprises:
Acquiring a first sub-current value corresponding to a first face state value of the first user, a second sub-current value corresponding to a first face state value of the second user, a third sub-current value corresponding to the illumination intensity of the main driving side and a fourth sub-current value corresponding to the illumination intensity of the auxiliary driving side;
the first sub-current value and the third sub-current value are weighted and summed to obtain a first control current, and the second sub-current value and the fourth sub-current value are weighted and summed to obtain a second control current;
and outputting the first control current to the primary driving side glass and outputting the second control current to the secondary driving side glass.
3. The method of claim 2, wherein the obtaining a first sub-current value corresponding to the first face state value of the first user and a second sub-current value corresponding to the first face state value of the second user comprises:
acquiring a first sub-current value corresponding to a first face state value of a first user based on a first mapping relation between the first face state value and the current value corresponding to a main driving side;
and acquiring the second sub-current value corresponding to the first face state value of the second user based on a second mapping relation between the first face state value and the current value corresponding to the secondary driving side, wherein the first mapping relation and the second mapping relation are different, and the maximum current value in the first mapping relation is smaller than the maximum current value in the second mapping relation.
4. The method according to claim 2 or 3, wherein the obtaining a third sub-current value corresponding to the illumination intensity of the primary driving side and a fourth sub-current value corresponding to the illumination intensity of the secondary driving side includes:
acquiring a third sub-current value corresponding to the illumination intensity of the main driving side based on a third mapping relation between the illumination intensity corresponding to the main driving side and the current value;
and acquiring a fourth sub-current value corresponding to the illumination intensity of the auxiliary driving side based on a fourth mapping relation between the illumination intensity corresponding to the auxiliary driving side and the current value, wherein the third mapping relation is different from the fourth mapping relation, and the maximum current value in the third mapping relation is smaller than the maximum current value in the fourth mapping relation.
5. A control system for light intensity in a vehicle, the control system comprising: the system comprises a main control device, automobile glass, an image acquisition device and an optical sensor;
the automobile glass comprises main driving side glass and auxiliary driving side glass, the main driving side glass comprises window glass and windshield glass corresponding to a main driving position, and the auxiliary driving side glass comprises window glass and windshield glass corresponding to an auxiliary driving position;
The image acquisition device comprises a first image acquisition device positioned in front of the main driver seat and a second image acquisition device positioned in front of the auxiliary driver seat;
the first image acquisition device is used for acquiring a first facial image, a second facial image and a reference facial image of a first user, and sending the first facial image, the second facial image and the reference facial image of the first user to the main control device, wherein the first facial image of the first user is acquired based on the current moment, the second facial image is acquired based on the last moment of the current moment, and the reference facial image is acquired before the second facial image;
the second image acquisition device is used for acquiring a first facial image, a second facial image and a reference facial image of a second user, and sending the first facial image, the second facial image and the reference facial image of the second user to the main control device, wherein the first facial image of the second user is acquired based on the current moment, the second facial image is acquired based on the last moment of the current moment, and the reference facial image is acquired before the second facial image;
The light sensor comprises a first light sensor positioned on the glass of the primary driving side and a second light sensor positioned on the glass of the secondary driving side, wherein the first light sensor is used for collecting the illumination intensity of the primary driving side and sending the illumination intensity of the primary driving side to the main control equipment, and the second light sensor is used for collecting the illumination intensity of the secondary driving side and sending the illumination intensity of the secondary driving side to the main control equipment;
the main control equipment is used for calculating a difference value between a second face state value of a first user and a reference face state value of the first user, and if the difference value between the second face state value of the first user and the reference face state value of the first user is larger than a reference threshold value, the main control equipment outputs a first control current to the glass at the main driving side based on a first face image of the first user and the illumination intensity at the main driving side, and updates the reference face state value of the first user to the first face state value of the first user;
the main control equipment is also used for calculating a difference value between a second face state value of a second user and a reference face state value of the second user, and if the difference value between the second face state value of the second user and the reference face state value of the second user is larger than a reference threshold value, the main control equipment outputs a second control current to the glass at the secondary driving side based on the first face image of the second user and the illumination intensity at the secondary driving side, and updates the reference face state value of the second user to the first face state value of the second user;
The main driving side glass is used for controlling the transparency of the main driving side glass based on the first control current;
the secondary driving side glass is used for controlling the transparency of the secondary driving side glass based on the second control current.
6. The utility model provides a controlling means of light intensity in car, its characterized in that, the device is used for adjusting car glass's transparency, car glass includes main side glass and vice side glass of driving, main side glass of driving includes window glass and windshield that the main driver's seat corresponds, vice side glass of driving includes window glass and windshield that the vice driver's seat corresponds, the device includes:
the system comprises a first acquisition module, a second acquisition module and a first control module, wherein the first acquisition module is used for acquiring the illumination intensity of a main driving side, the illumination intensity of a secondary driving side, a first facial image, a second facial image and a reference facial image of a first user positioned in a main driving position, and the first facial image, the second facial image and the reference facial image of a second user positioned in a secondary driving position, wherein the first facial image is acquired based on the current moment, the second facial image is acquired based on the last moment of the current moment, and the reference facial image is acquired before the second facial image;
A second acquisition module, configured to acquire a second face state value of the first user based on a second face image of the first user and acquire a second face state value of the second user based on a second face image of the second user;
the first output module is used for determining a first face state value of a first user based on the first face image of the first user, determining a first face state value of a second user based on the first face image of the second user, outputting control current to the glass at the primary driving side based on the first face state value of the first user and the illumination intensity at the primary driving side, and outputting control current to the glass at the secondary driving side based on the first face state value of the second user and the illumination intensity at the secondary driving side;
and the triggering module is used for executing the step that the first output module outputs control current to the glass at the main driving side based on the first face state value of the first user and the illumination intensity at the main driving side if the difference value between the second face state value of the first user and the reference face state value of the first user is larger than a reference threshold value, and executing the step that the first output module outputs control current to the glass at the auxiliary driving side based on the first face state value of the second user and the illumination intensity at the auxiliary driving side if the difference value between the second face state value of the second user and the reference face state value of the second user is larger than the reference threshold value, and updating the reference face state value of the second user to the first face state value of the second user.
7. The apparatus of claim 6, wherein the first output module is configured primarily to:
acquiring a first sub-current value corresponding to a first face state value of the first user, a second sub-current value corresponding to a first face state value of the second user, a third sub-current value corresponding to the illumination intensity of the main driving side and a fourth sub-current value corresponding to the illumination intensity of the auxiliary driving side;
the first sub-current value and the third sub-current value are weighted and summed to obtain a first control current, and the second sub-current value and the fourth sub-current value are weighted and summed to obtain a second control current;
and outputting the first control current to the primary driving side glass and outputting the second control current to the secondary driving side glass.
8. The apparatus of claim 7, wherein the first output module is configured primarily to:
acquiring a first sub-current value corresponding to a first face state value of a first user based on a first mapping relation between the first face state value and the current value corresponding to a main driving side;
and acquiring the second sub-current value corresponding to the first face state value of the second user based on a second mapping relation between the first face state value and the current value corresponding to the secondary driving side, wherein the first mapping relation and the second mapping relation are different, and the maximum current value in the first mapping relation is smaller than the maximum current value in the second mapping relation.
9. The apparatus of claim 7 or 8, wherein the first output module is configured primarily to:
acquiring a third sub-current value corresponding to the illumination intensity of the main driving side based on a third mapping relation between the illumination intensity corresponding to the main driving side and the current value;
and acquiring a fourth sub-current value corresponding to the illumination intensity of the auxiliary driving side based on a fourth mapping relation between the illumination intensity corresponding to the auxiliary driving side and the current value, wherein the third mapping relation is different from the fourth mapping relation, and the maximum current value in the third mapping relation is smaller than the maximum current value in the fourth mapping relation.
10. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, which when executed by a computer, implements the method for controlling the intensity of light in a vehicle according to any one of claims 1 to 4.
CN202210210834.XA 2022-03-04 2022-03-04 Method, device and system for controlling light intensity in vehicle and storage medium Active CN114675442B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210210834.XA CN114675442B (en) 2022-03-04 2022-03-04 Method, device and system for controlling light intensity in vehicle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210210834.XA CN114675442B (en) 2022-03-04 2022-03-04 Method, device and system for controlling light intensity in vehicle and storage medium

Publications (2)

Publication Number Publication Date
CN114675442A CN114675442A (en) 2022-06-28
CN114675442B true CN114675442B (en) 2023-11-14

Family

ID=82072489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210210834.XA Active CN114675442B (en) 2022-03-04 2022-03-04 Method, device and system for controlling light intensity in vehicle and storage medium

Country Status (1)

Country Link
CN (1) CN114675442B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107962935A (en) * 2016-10-20 2018-04-27 福特全球技术公司 Vehicle glazing light transmittance control device and method
CN109849626A (en) * 2019-01-16 2019-06-07 深圳壹账通智能科技有限公司 Method for regulating transmittance, device, computer readable storage medium and terminal device
CN110341627A (en) * 2019-07-16 2019-10-18 北京梧桐车联科技有限责任公司 The method and apparatus for controlling interior behavior
CN110667348A (en) * 2019-09-19 2020-01-10 昆明理工大学 Film type automobile whole-vehicle external environment light intelligent control system with gesture control function
CN111796445A (en) * 2020-07-14 2020-10-20 中国第一汽车股份有限公司 Automobile windshield transparency adjusting system and method and automobile
CN112644255A (en) * 2020-12-17 2021-04-13 广州橙行智动汽车科技有限公司 Method and device for adjusting light transmission in vehicle, storage medium and vehicle
WO2021253953A1 (en) * 2020-06-18 2021-12-23 北京航迹科技有限公司 Car window adjustment method and apparatus, electronic device, and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107962935A (en) * 2016-10-20 2018-04-27 福特全球技术公司 Vehicle glazing light transmittance control device and method
CN109849626A (en) * 2019-01-16 2019-06-07 深圳壹账通智能科技有限公司 Method for regulating transmittance, device, computer readable storage medium and terminal device
CN110341627A (en) * 2019-07-16 2019-10-18 北京梧桐车联科技有限责任公司 The method and apparatus for controlling interior behavior
CN110667348A (en) * 2019-09-19 2020-01-10 昆明理工大学 Film type automobile whole-vehicle external environment light intelligent control system with gesture control function
WO2021253953A1 (en) * 2020-06-18 2021-12-23 北京航迹科技有限公司 Car window adjustment method and apparatus, electronic device, and readable storage medium
CN111796445A (en) * 2020-07-14 2020-10-20 中国第一汽车股份有限公司 Automobile windshield transparency adjusting system and method and automobile
CN112644255A (en) * 2020-12-17 2021-04-13 广州橙行智动汽车科技有限公司 Method and device for adjusting light transmission in vehicle, storage medium and vehicle

Also Published As

Publication number Publication date
CN114675442A (en) 2022-06-28

Similar Documents

Publication Publication Date Title
CN112078565B (en) Energy management method and device for hydrogen fuel cell electric vehicle and storage medium
CN113212257B (en) Automatic driver seat position adjusting method, device, terminal and storage medium based on Internet of vehicles
CN109334663B (en) Method and device for starting constant-speed cruise system of intelligent automobile and storage medium
CN110588307B (en) Control method and device for automobile window and skylight and storage medium
JP2023504945A (en) control vehicle
CN115817276A (en) Endurance mileage determination method and device, hybrid electric vehicle and storage medium
CN116108910A (en) Image processing model compression method, device and equipment for terminal deployment
CN111008055A (en) Equipment control method and electronic equipment
CN114675442B (en) Method, device and system for controlling light intensity in vehicle and storage medium
CN110970050A (en) Voice noise reduction method, device, equipment and medium
WO2023116085A1 (en) Intelligent sun shading method and system for automobile sun shield, terminal, and storage medium
CN108819661B (en) Vehicle control method, device and storage medium
CN117382391A (en) Method and device for adjusting light transmittance of glass
CN117608090A (en) Brightness adjusting method, brightness adjusting device, computer equipment and storage medium
CN113779503B (en) Method, system, terminal and storage medium for evaluating multi-temperature-zone control performance of air conditioner in passenger compartment of automobile
CN115674985A (en) Adjusting system, adjusting method, terminal and storage medium for automatically adjusting vehicle height of static vehicle
CN116704994A (en) Active noise reduction fusion control method and device for automobile, terminal and storage medium
CN113630501B (en) Ringing method and terminal equipment
WO2023246563A1 (en) Sound processing method and electronic device
CN116861648A (en) Method and device for checking operation comfort of outward-opening handle of passenger car
CN117863960A (en) Control method and device for battery output energy
CN114851932A (en) Intelligent seat heating control system and method and terminal equipment
CN116176233A (en) Method and device for adjusting transmittance of windshield
CN117622094A (en) Output torque control method, device, equipment and storage medium
CN116696199A (en) Vehicle window control method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant