A method, device, equipment and storage medium for controlling automobile vanity mirror lights
By obtaining and comparing the mechanical and software switch status of the car's vanity mirror lights, as well as the brightness parameters in the car, the brightness of the vanity mirror lights is automatically adjusted, and facial recognition is used for control when necessary, solving the problem of vanity mirror light control in the existing technology. Intelligent light management is achieved to eliminate driving risks and single control logic problems associated with sun visors.
Patent Information
- Application Number
- CN202210915416.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-07-30
AI Technical Summary
In the existing technology, the control of automobile vanity mirror lights is related to the action of the sun visor, which leads to increased driving risks. The control logic is single and the degree of intelligence is poor, making it difficult to carry out intelligent control according to the actual environment and user needs.
By obtaining the mechanical switch status and software switch status of the vanity mirror light, as well as the brightness parameters in the car, it compares and matches the brightness range, generates lighting control instructions, automatically adjusts the brightness of the vanity mirror light, and uses facial recognition for control when necessary.
Redundant operations are reduced, driving risks are reduced, the level of intelligent control of vanity mirror lights is improved, and the user experience and the level of intelligence of the car are improved.
Smart Images

Figure CN115195585B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent automobile technology, and in particular to a method, device, equipment and storage medium for controlling automobile vanity mirror lights. Background Art
[0002] The car vanity mirror is embedded in the sun visor. When the light is poor, the vanity mirror light can be used for fill-in light. The vanity mirror light is generally equipped with an independent switch for the driver to operate the vanity mirror light according to his or her own needs. As the concept of smart cars becomes more and more popular, in order to reduce redundant operations during the use of the car, automobile manufacturers have begun to explore automatic control solutions for vanity mirror lights.
[0003] At present, the most common way to control the vanity mirror light in the prior art is to associate it with the opening and closing of the sun visor, thereby omitting the operation steps of manually switching the vanity mirror light on and off. For example, the patent with publication number CN204801624U discloses a control device for a car vanity mirror light, which sets a disconnect button in series with the vanity mirror light switch within the overlapping range of the car roof and the sun visor, so that the sun visor automatically presses the disconnect button when it is folded, thereby automatically cutting off the power to the vanity mirror light when the sun visor is folded. The prior art has at least the following disadvantages: the control process of the vanity mirror light is interrelated with the action of the sun visor, and additional operations are required, resulting in increased driving risks; the control logic of the vanity mirror light is single, and it is difficult to achieve intelligent control requirements that combine the actual environment with user needs. Summary of the invention
[0004] In view of the above-mentioned shortcomings of the prior art that controlling the vanity mirror light requires additional operations, resulting in increased driving risks, and the vanity mirror light control logic is single and has a poor degree of intelligence, the present invention provides a method, device, equipment and storage medium for controlling a car vanity mirror light to solve the above-mentioned technical problems.
[0005] In a first aspect, the present invention provides a method for controlling a car vanity mirror light, comprising:
[0006] Get the mechanical switch status and software switch status corresponding to the vanity mirror light, and get the brightness parameters inside the car;
[0007] Compare the interior brightness parameter with a preset maximum brightness threshold to obtain a brightness comparison result, and determine a lighting control instruction corresponding to the vanity mirror light according to at least one of the brightness comparison result, the mechanical switch state, and the software switch state;
[0008] If the light control instruction includes a light on instruction, multiple preset brightness intervals are matched by the interior brightness parameter to obtain a target interval corresponding to the interior brightness parameter, and the light brightness of the vanity mirror lamp is determined according to the target interval, wherein the brightness intervals are all within the range of the maximum brightness threshold;
[0009] The brightness of the vanity mirror light is controlled according to the light control instruction and the light brightness.
[0010] Furthermore, the software switch status corresponding to the vanity mirror light is obtained in the following way:
[0011] Pulling information from the vehicle system to obtain the software switch state includes preset gear information of the vanity mirror light, and the preset gear information includes an open gear, a closed gear and an automatic gear.
[0012] Further, the step of determining the lighting control instruction corresponding to the vanity mirror light according to at least one of the brightness comparison result, the mechanical switch state and the software switch state comprises:
[0013] Presetting a first determination condition, a second determination condition and a third determination condition, wherein the first determination condition includes that the mechanical switch state is turned on, the second determination condition includes that the preset gear information is an on gear or an automatic gear, and the third determination condition includes that the brightness comparison result is that the interior brightness parameter does not exceed the maximum brightness threshold;
[0014] If the first determination condition, the second determination condition and the third determination condition are simultaneously satisfied, the light control instruction is determined as the light on instruction;
[0015] If at least one of the first determination condition, the second determination condition and the third determination condition is not satisfied, the light control instruction is determined as a light off instruction.
[0016] Furthermore, the step of matching a plurality of preset brightness intervals by using the interior brightness parameter to obtain a target interval corresponding to the interior brightness parameter specifically includes:
[0017] Determining whether the preset gear position information is an open gear position or an automatic gear position;
[0018] If the preset gear information is an automatic gear, a plurality of preset brightness intervals are matched by the vehicle interior brightness parameter to obtain the target interval corresponding to the vehicle interior brightness parameter;
[0019] If the preset gear information is the on gear, the makeup mirror light is controlled according to the preset maximum brightness.
[0020] Furthermore, the mechanical switch state corresponding to the vanity mirror light is obtained in the following manner:
[0021] The state of the shading plate is obtained. If the shading plate is in an unfolded state, the state of the mechanical switch is open. If the shading plate is in a folded state, the state of the mechanical switch is closed.
[0022] Further, after controlling the brightness of the vanity mirror light according to the light control instruction and the light brightness, the method further includes:
[0023] Determine the mechanical switch state and the software switch state as target data, and monitor the target data;
[0024] If any of the target data changes, the light control instruction is regenerated and the light brightness of the vanity mirror light is determined.
[0025] Furthermore, a face recognition device is provided inside the vanity mirror lamp. After controlling the brightness of the vanity mirror lamp according to the light control instruction and the light brightness, the control method further includes:
[0026] Based on the face recognition device, it is determined whether there is anyone in the illumination area of the vanity mirror light. If there is someone, the current brightness of the vanity mirror light is maintained; if there is no one, the vanity mirror light is controlled to be turned off.
[0027] In a second aspect, the present invention provides a vanity mirror light control device, comprising:
[0028] The state detection module is used to obtain the mechanical switch state and software switch state corresponding to the vanity mirror light, and obtain the brightness parameters inside the vehicle;
[0029] an instruction issuing module, comparing the interior brightness parameter with a preset maximum brightness threshold to obtain a brightness comparison result, and determining a lighting control instruction corresponding to the vanity mirror light according to at least one of the brightness comparison result, the mechanical switch state, and the software switch state;
[0030] a brightness matching module, which, if the light control instruction includes a light-on instruction, matches a plurality of preset brightness intervals through the in-vehicle brightness parameter to obtain a target interval corresponding to the in-vehicle brightness parameter, and determines the light brightness of the vanity mirror lamp according to the target interval;
[0031] An execution module is used to control the brightness of the vanity mirror light according to the light control instruction and the light brightness.
[0032] In a third aspect, the present invention provides an electronic device, comprising:
[0033] one or more processors;
[0034] A storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the electronic device implements a method for controlling a car vanity mirror light in the above-mentioned solution.
[0035] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor of a computer, the computer executes a method for controlling a car vanity mirror light in the above-mentioned scheme.
[0036] In the present invention, firstly, the mechanical switch state and software switch state corresponding to the vanity mirror light are obtained, and the in-car brightness parameter is obtained, and the brightness comparison result is obtained by comparing the in-car brightness parameter with a preset maximum brightness threshold, and the light control instruction corresponding to the vanity mirror light is determined according to the brightness comparison result, the mechanical switch state and at least one of the software switch state, if the light control instruction includes a light turn-on instruction, a plurality of preset brightness intervals are matched through the in-car brightness parameter to obtain a target interval, and the light brightness is determined, and the brightness of the vanity mirror light is controlled according to the light control instruction and the light brightness control, which solves the problem in the prior art that additional operations are required to control the vanity mirror light, resulting in increased driving risks, and the control logic of the vanity mirror light is single and the degree of intelligence is poor, and the on / off and brightness of the vanity mirror light can be intelligently controlled to reduce redundant operations, which is conducive to improving user experience and improving the level of automobile intelligence.
[0037] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0039] Figure 1 is a flow chart of a method for controlling a car vanity mirror light shown in an exemplary embodiment of the present application;
[0040] Figure 2 yes Figure 1 A flowchart of an exemplary implementation of step S120 in the illustrated embodiment;
[0041] Figure 3 yes Figure 1A flowchart of an exemplary implementation of step S130 in the illustrated embodiment;
[0042] Figure 4 yes Figure 1 A flowchart of an exemplary implementation after step S140 in the illustrated embodiment;
[0043] Figure 5 yes Figure 1 A flowchart of another exemplary implementation after step S140 in the illustrated embodiment;
[0044] Figure 6 is a structural schematic diagram of a vehicle vanity mirror light control device shown in an exemplary embodiment of the present application;
[0045] Figure 7 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0046] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0047] It should be noted that the illustrations provided in the following embodiments are only used to schematically illustrate the basic concept of the present invention. Therefore, the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may change according to actual needs, and the component layout type may also be more complicated.
[0048] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.
[0049] First of all, it should be noted that the vanity mirror light described in this application refers to the vanity mirror light on the car, which is used to provide fill light when the vanity mirror in the car's cab is in use. The vanity mirror is generally embedded on the sun visor, and the vanity mirror light is generally set near the vanity mirror or the sun visor. The vanity mirror can be used after the sun visor is unfolded. In different application scenarios, such as at night, due to insufficient light, the vanity mirror light can be used to illuminate the cab so that the vanity mirror can be used normally.
[0050] In one embodiment, the present application exemplarily provides a method for controlling a car vanity mirror light, such as Figure 1 As shown, Figure 1 1 is a flow chart of a method for controlling a car vanity mirror lamp according to an exemplary embodiment of the present application, which at least includes steps S110 to S140, which are described in detail as follows:
[0051] Step S110, obtaining the mechanical switch state and software switch state corresponding to the vanity mirror light, and obtaining the brightness parameters inside the vehicle.
[0052] For step S110, it should be first explained that the mechanical switch refers to a switch device that uses physical parts to control the vanity mirror light. The control process of the vanity mirror light needs to be completed by mechanical movement of all or part of the parts, such as pressing, rotating, etc. The specific form can be, for example, the sun visor itself or a button linked to the sun visor. Correspondingly, the mechanical switch state refers to the current state of the mechanical switch. Different mechanical switch states correspond to different vanity mirror light control schemes. For example, in some embodiments, the mechanical switch is, for example, the sun visor itself, and the mechanical switch state is the folded and extended state of the sun visor. When the sun visor is unfolded, the mechanical switch state is on, indicating that the user may have a need to use the vanity mirror light at this time. When the sun visor is folded, the mechanical switch state is off, indicating that the user does not have a need to use the vanity mirror light at this time. The mechanical switch state is used for judging the control of the vanity mirror light in subsequent steps. In this embodiment, the mechanical switch is linked to the sun visor, and the folded and extended state of the sun visor is used as the mechanical switch state. Specifically, if the sun visor is in the unfolded state, the mechanical switch state is on, and if the sun visor is in the folded state, the mechanical switch state is off.
[0053] A software switch refers to a virtual switch device that mainly uses a virtual method such as a computer program and judgment logic to control a vanity mirror light, or a physical switch device equipped with a virtual device. The specific form may be a vanity mirror light brightness requirement or on / off requirement preset in the car computer. The software switch state is the current state of the software switch. Different software switch states correspond to different vanity mirror light control schemes. For example, in some embodiments, the software switch is a plurality of gears of the vanity mirror light preset in the car computer, such as an on gear and an off gear. The user selects a gear by pre-setting or real-time operation of the car computer. When the selected gear is the on gear, the software switch state is on, indicating that the user may have a need to use the vanity mirror light at this time. When the selected gear is the on gear, the software switch state is on, indicating that the user may have a need to use the vanity mirror light at this time. For the off position, the software switch state is off, indicating that the user has no need to use the vanity mirror light at this time. The software switch state is also used to determine the control of the vanity mirror light in subsequent steps. In this embodiment, the gear information of the vanity mirror light preset by the user on the car computer is used as the software switch state, and the current software switch state is obtained by acquiring the gear information. Specifically, the user can set the gear of the vanity mirror light by, for example, pressing buttons or voice on the central control interface of the car computer. The settable gears specifically include on, off and automatic. When acquiring the software switch state, information is pulled from the car computer system to obtain the software switch state including the preset gear information of the vanity mirror light, and the preset gear information includes an on gear, a off gear and an automatic gear.
[0054] It is worth noting that the on gear included in the preset gear information can be understood as indicating that the user intends to turn on the makeup mirror light at a fixed brightness, and the automatic gear can be understood as indicating that the user intends to automatically control the brightness of the makeup mirror light according to the preset control logic. The on, off, on gear, off gear and automatic gear in the above scheme and subsequent descriptions are all general descriptions adopted through their functions and intentions to facilitate understanding, rather than limitations on specific implementation methods.
[0055] The in-car brightness parameter refers to an indicator used to evaluate the current in-car brightness, including but not limited to light intensity, brightness or other photometric indicators that can be used to evaluate the in-car brightness. The in-car brightness parameter can be obtained by a light sensor set in the car. For example, in some embodiments, a light sensor is set near the sun visor to detect the in-car light intensity, and the detected light intensity is the in-car brightness parameter.
[0056] Step S120, comparing the interior brightness parameter with a preset maximum brightness threshold to obtain a brightness comparison result, and determining a lighting control instruction corresponding to the vanity mirror light according to at least one of the brightness comparison result, the mechanical switch state, and the software switch state.
[0057] For step S120, the obtained interior brightness parameter is only a judgment indicator and cannot directly reflect the control demand for the vanity mirror light. Therefore, it is necessary to first compare the interior brightness parameter to obtain a brightness comparison result. The comparison here includes comparing the interior brightness parameter with a preset maximum brightness threshold. The preset maximum brightness threshold refers to a preset maximum interior brightness parameter critical value for judging whether it is necessary to control the vanity mirror light to be turned on. When the interior brightness parameter exceeds the maximum brightness threshold, it means that the interior brightness is sufficient and the vanity mirror light does not need to be turned on. When the interior brightness parameter does not exceed the maximum brightness threshold, it means that the interior brightness is insufficient and the vanity mirror light needs to be turned on. It can be seen that the brightness ratio The comparison result ultimately reflects the need to turn the vanity mirror light on or off. The obtained brightness comparison result, the mechanical switch state, and the software switch state all reflect the control demand of the vanity mirror light. Furthermore, it is necessary to determine the light control instruction of the vanity mirror light based on at least one of the three conditions reflecting the control demand, namely the brightness comparison result, the mechanical switch state, and the software switch state. The light control instruction is determined based on one or several of the brightness comparison result, the mechanical switch state, and the software switch state. The actual needs in different implementation modes may be different. For example, in some implementation modes, only the brightness comparison result and the mechanical switch state are used to determine whether there is a need to turn on the vanity mirror light.
[0058] In this embodiment, a solution is specifically provided for determining a lighting control instruction corresponding to a vanity mirror lamp according to at least one of a brightness comparison result, a mechanical switch state, and a software switch state, such as Figure 2 As shown, Figure 2 yes Figure 1 The flowchart of an exemplary implementation of step S120 in the illustrated embodiment specifically includes the following steps:
[0059] Step S210, pre-setting a first judgment condition, a second judgment condition and a third judgment condition, wherein the first judgment condition includes that the mechanical switch state is on, the second judgment condition includes that the preset gear information is an on gear or an automatic gear, and the third judgment condition includes that the brightness comparison result is that the in-vehicle brightness parameter does not exceed the maximum brightness threshold.
[0060] Step S220: If the first determination condition, the second determination condition and the third determination condition are simultaneously satisfied, the light control instruction is determined as a light on instruction.
[0061] Step S230: If at least one of the first determination condition, the second determination condition and the third determination condition is not satisfied, the light control instruction is determined as a light off instruction.
[0062] For step S210, a first determination condition corresponding to the mechanical switch state, a second determination condition corresponding to the software switch state, and a third determination condition corresponding to the brightness comparison result are respectively preset. Specifically, in this embodiment, the first determination condition includes that the mechanical switch state is turned on, the second determination condition includes that the preset gear information is the on gear or the automatic gear, and the third determination condition includes that the brightness comparison result is that the vehicle interior brightness parameter does not exceed the maximum brightness threshold, that is, when the mechanical switch state is turned on, the first determination condition is satisfied, when the software switch state is turned on, the second determination condition is satisfied, and when the brightness comparison result is that the vehicle interior brightness parameter does not exceed the maximum brightness threshold, the third determination condition is satisfied;
[0063] For steps S220-S230, judgment is performed based on the first judgment condition, the second judgment condition and the third judgment condition. If the three judgment conditions are met at the same time, that is, the mechanical switch state is on, the software switch state is on and the interior brightness parameter does not exceed the maximum brightness threshold, it is determined that the makeup mirror light needs to be turned on at this time, and the light control instruction is determined as the light on instruction; if at least one of the three judgment conditions cannot be met, that is, the mechanical switch state is off, or the software switch state is off, or the interior brightness parameter exceeds the maximum brightness threshold, it means that the sun visor is currently folded, or the user presets to turn off the makeup mirror light, or the interior brightness is sufficient and the makeup mirror light does not need to be turned on, and the light control instruction is determined as the light off instruction.
[0064] It should be understood that both the light-on instruction and the light-off instruction are included in the category of the light control instruction. The light-on instruction includes information for controlling the vanity mirror light to be turned on, and the light-off instruction includes information for controlling the vanity mirror light to be turned off. According to the light-on instruction or the light-off instruction, the vanity mirror light is controlled to be turned on or off. The light control instructions, light-on instructions and light-off instructions in the above scheme and subsequent descriptions are all general descriptions adopted through their functions and intentions to facilitate understanding, rather than limitations on specific implementation methods.
[0065] Step S130, if the lighting control instruction includes a lighting on instruction, multiple preset brightness intervals are matched through the in-vehicle brightness parameters to obtain a target interval corresponding to the in-vehicle brightness parameters, and the light brightness of the vanity mirror lamp is determined according to the target interval, wherein the brightness intervals are all within the range of the maximum brightness threshold.
[0066] For step S130, according to the type of the light control instruction, if the light control instruction includes a light-on instruction, further processing is performed based on the in-vehicle brightness parameter to determine the specific brightness that needs to be controlled to achieve the vanity mirror light. Specifically, if the obtained light control instruction includes a light-on instruction, the in-vehicle brightness parameter is matched to multiple preset brightness intervals to obtain a corresponding target interval. The matching here refers to confirming the brightness interval to which the in-vehicle brightness parameter belongs. The matching can be performed only by numerical comparison or according to a preset matching rule. The brightness interval to which it belongs is the target interval. Each brightness interval corresponds to a light brightness. The light brightness corresponding to each interval can be the same or different. In a different way, since the brightness interval represents the brightness when the makeup mirror light is turned on, the brightness intervals are all within the range of the maximum brightness threshold. For example, in some embodiments, a first brightness interval and a second brightness interval are set, and the first brightness interval and the second brightness interval are both within the range of the maximum brightness threshold. The makeup mirror light brightness corresponding to the first brightness interval and the second brightness interval are the first brightness and the second brightness, respectively. If the interior brightness parameter falls in the first brightness interval, for example, the target interval is the first brightness interval, the light brightness is determined to be the first brightness, and the subsequent control of the makeup mirror light brightness is the first brightness. In other embodiments, the division of the brightness space and the correspondence between the brightness space and the light brightness can also be adjusted according to actual needs.
[0067] It should be understood that if the light control instruction includes a light off instruction, the vanity mirror light can be turned off according to the light off instruction. The vanity mirror light state corresponding to the light off instruction is only off, so there is no need to further process it according to the above solution.
[0068] In this embodiment, the present application also specifically provides a solution for matching brightness intervals, such as Figure 3 As shown, Figure 3 yes Figure 1 In the flowchart of an exemplary implementation of step S130 in the illustrated embodiment, the step of matching a plurality of preset brightness intervals by the interior brightness parameter to obtain a target interval corresponding to the interior brightness parameter, i.e., step S130, specifically includes the following steps:
[0069] Step S310, determining whether the preset gear position information is an open gear position or an automatic gear position.
[0070] Step S320: If the gear is in automatic gear, multiple preset brightness intervals are matched by the interior brightness parameter to obtain the target interval corresponding to the interior brightness parameter.
[0071] Step S330: If the gear is on, the makeup mirror light is controlled according to the preset maximum brightness.
[0072] For steps S310-S330, when the lighting control instruction includes a lighting on instruction and the brightness interval is matched, the software switch state, i.e., the preset gear information, is further judged. If the preset gear information is the automatic gear, the preset logic is still used to match the multiple preset brightness intervals through the in-vehicle brightness parameters to obtain the target interval corresponding to the in-vehicle brightness parameters. If the preset gear information is the on gear, the vanity mirror light is directly controlled according to the preset maximum brightness. It should be understood that if the preset gear information is the on gear, the vanity mirror light is directly controlled according to the preset maximum brightness, which is still part of the brightness interval matching logic and can be understood as a special matching logic. Its purpose is to determine, based on the on gear set by the user, that the user's intention is to keep the vanity mirror light turned on at a fixed brightness. Therefore, the brightness interval is no longer matched to obtain the target interval, but the preset maximum brightness is directly installed to control the vanity mirror light. The preset maximum brightness here can be the maximum brightness of the vanity mirror light itself, or it can be the maximum brightness value that the vanity mirror light can maintain continuously set by humans.
[0073] Step S140: controlling the brightness of the vanity mirror light according to the light control instruction and the light brightness.
[0074] In step S140, the brightness of the vanity mirror lamp is controlled according to the brightness of the lamp obtained in steps S110-S130. In this embodiment, a supplementary solution for real-time control of the brightness of the vanity mirror lamp is also provided, such as Figure 4 As shown, Figure 4 yes Figure 1 The flowchart of an exemplary implementation after step S140 in the illustrated embodiment, after step S140, that is, after controlling the brightness of the vanity mirror light according to the light control instruction and the light brightness, further includes:
[0075] Step S410: determining the mechanical switch state and the software switch state as target data, and monitoring the target data.
[0076] Step S420: if any of the target data changes, the light control instruction is regenerated, and the light brightness of the vanity mirror light is determined.
[0077] It can be understood that in this embodiment, the control of the vanity mirror light can be periodic or real-time. For steps S410-S420, it can be understood as a scheme for real-time control of the brightness of the vanity mirror light. After completing a brightness control, the mechanical switch state and the software switch state are determined as target data and monitored. If any target data is monitored to change, the light control instruction is regenerated, that is, the vanity mirror light control method in this embodiment is started again, and then the light brightness is re-determined to adjust the brightness of the vanity mirror light. For example, in some embodiments, after the vanity mirror light is controlled to remain on at maximum brightness according to the light brightness, it is monitored that the sun visor changes from an unfolded state to a folded state, that is, the mechanical switch state changes from on to off. At this time, the light control instruction is re-determined as a light off instruction, and the vanity mirror light is controlled to be off according to the light off instruction.
[0078] In this embodiment, a face recognition device is also provided inside the vanity mirror lamp. This application specifically provides a solution for controlling the vanity mirror lamp using the face recognition device. Figure 5 As shown, Figure 5 yes Figure 1 The flowchart of another exemplary implementation after step S140 in the illustrated embodiment, after step S140, that is, after controlling the brightness of the vanity mirror light according to the light control instruction and the light brightness, further includes:
[0079] Step S510: determining whether there is anyone in the illumination area of the vanity mirror light based on a face recognition device.
[0080] Step S520: If there is someone, keep the current brightness of the makeup mirror light.
[0081] Step S530: If no one is there, the makeup mirror light is controlled to be turned off.
[0082] For steps S510-S530, according to the face recognition result of the face recognition device on the illumination area of the vanity mirror light, it can be understood that if there is no one in the illumination area, it is determined that the vanity mirror light no longer needs to be turned on, and the vanity mirror light is controlled to be turned off; if there is someone in the illumination area, no operation is required, and the current brightness of the vanity mirror light is maintained. The face recognition device here can be, for example, a device or equipment equipped with an image acquisition port, and the acquired image is recognized through face recognition algorithms such as feature face algorithm and linear discriminant algorithm.
[0083] As described above, in a method for controlling a car vanity mirror light provided by the present application, the mechanical switch state and software switch state corresponding to the vanity mirror light are first obtained, and the in-car brightness parameter is obtained. The brightness comparison result is obtained by comparing the in-car brightness parameter with a preset maximum brightness threshold. The light control instruction corresponding to the vanity mirror light is determined according to the brightness comparison result, the mechanical switch state and at least one of the software switch state. If the light control instruction includes a light-on instruction, multiple preset brightness intervals are matched through the in-car brightness parameter to obtain a target interval, the light brightness is determined, and the brightness of the vanity mirror light is controlled according to the light control instruction and the light brightness. This solves the problem in the prior art that additional operations are required to control the vanity mirror light, resulting in increased driving risks, and the problem that the control logic of the vanity mirror light is single and the degree of intelligence is poor. The on / off and brightness of the vanity mirror light can be intelligently controlled to reduce redundant operations, which is conducive to improving user experience and improving the level of automobile intelligence.
[0084] In one embodiment, the present application further specifically provides a vehicle vanity mirror light control device, which corresponds one-to-one to the vanity mirror light control method in the above embodiment, such as Figure 6 As shown, Figure 6 6 is a schematic diagram of the structure of an automobile vanity mirror light control device shown in an exemplary embodiment of the present application, including a state detection module 601, an instruction issuing module 602, a brightness matching module 603 and an execution module 604. The detailed description of each functional module is as follows:
[0085] The state detection module 601 is used to obtain the mechanical switch state and software switch state corresponding to the vanity mirror light, and obtain the brightness parameter inside the vehicle;
[0086] The instruction issuing module 602 compares the interior brightness parameter with a preset maximum brightness threshold to obtain a brightness comparison result, and determines a lighting control instruction corresponding to the vanity mirror light according to at least one of the brightness comparison result, the mechanical switch state, and the software switch state;
[0087] The brightness matching module 603, if the light control instruction includes a light on instruction, matches a plurality of preset brightness intervals through the in-vehicle brightness parameter to obtain a target interval corresponding to the in-vehicle brightness parameter, and determines the light brightness of the vanity mirror lamp according to the target interval;
[0088] The execution module 604 is used to control the brightness of the vanity mirror light according to the light control instruction and the light brightness.
[0089] In some implementations, the state detection module 601 is further configured to:
[0090] Pull information from the car system to obtain the software switch status including the preset gear information of the vanity mirror light, wherein the preset gear information includes the open gear, the closed gear and the automatic gear.
[0091] In some implementations, the state detection module 601 is further configured to:
[0092] The state of the shading plate is obtained. If the shading plate is in an unfolded state, the state of the mechanical switch is open. If the shading plate is in a folded state, the state of the mechanical switch is closed.
[0093] In some implementations, the instruction issuing module 602 is further configured to:
[0094] Presetting a first determination condition, a second determination condition and a third determination condition, wherein the first determination condition includes that the mechanical switch state is turned on, the second determination condition includes that the preset gear information is an on gear or an automatic gear, and the third determination condition includes that the brightness comparison result is that the interior brightness parameter does not exceed the maximum brightness threshold;
[0095] If the first determination condition, the second determination condition and the third determination condition are simultaneously satisfied, the light control instruction is determined as the light on instruction;
[0096] If at least one of the first determination condition, the second determination condition and the third determination condition is not satisfied, the light control instruction is determined as a light off instruction.
[0097] In some implementations, the brightness matching module 603 is further configured to:
[0098] Determining whether the preset gear position information is an open gear position or an automatic gear position;
[0099] If the preset gear information is an automatic gear, a plurality of preset brightness intervals are matched by the vehicle interior brightness parameter to obtain the target interval corresponding to the vehicle interior brightness parameter;
[0100] If the preset gear information is the on gear, the makeup mirror light is controlled according to the preset maximum brightness.
[0101] In some implementations, the state detection module 601, the instruction issuing module 602, and the brightness matching module 603 are also used together to:
[0102] Determine the mechanical switch state and the software switch state as target data, and monitor the target data;
[0103] If any of the target data changes, the light control instruction is regenerated and the light brightness of the vanity mirror light is determined.
[0104] In some implementations, the state detection module 601 and the execution module 604 are also used together to:
[0105] Based on the face recognition device, it is determined whether there is anyone in the illumination area of the vanity mirror light. If there is someone, the current brightness of the vanity mirror light is maintained; if there is no one, the vanity mirror light is controlled to be turned off.
[0106] In a car vanity mirror light control device provided by the present application, a mechanical switch state and a software switch state corresponding to the vanity mirror light are first obtained, and an in-car brightness parameter is obtained, and a brightness comparison result is obtained by comparing the in-car brightness parameter with a preset maximum brightness threshold, and a light control instruction corresponding to the vanity mirror light is determined according to the brightness comparison result, the mechanical switch state, and at least one of the software switch state. If the light control instruction includes a light turn-on instruction, a plurality of preset brightness intervals are matched through the in-car brightness parameter to obtain a target interval, and the light brightness is determined. The brightness of the vanity mirror light is controlled according to the light control instruction and the light brightness. This solves the problem in the prior art that additional operations are required to control the vanity mirror light, resulting in increased driving risks, and that the control logic of the vanity mirror light is single and the degree of intelligence is poor. The on / off and brightness of the vanity mirror light can be intelligently controlled to reduce redundant operations, which is conducive to improving user experience and improving the level of automobile intelligence.
[0107] It should be noted that the automobile vanity mirror light control device provided in the above embodiment and the automobile vanity mirror light control method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In actual application, the automobile vanity mirror light control device provided in the above embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0108] An embodiment of the present application also provides an electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the electronic device implements the makeup mirror light control method provided in the above-mentioned embodiments.
[0109] Figure 7 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 7The computer system 700 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0110] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage part 708 to the random access memory (RAM) 703, such as executing the method described in the above embodiment. In the RAM 703, various programs and data required for system operation are also stored. The CPU 701, ROM 702 and RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0111] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.
[0112] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 709, and / or installed from a removable medium 711. When the computer program is executed by a central processing unit (CPU) 701, various functions defined in the system of the present application are executed.
[0113] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0114] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0115] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0116] Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the above-mentioned method for controlling a car vanity mirror light. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0117] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the automotive vanity mirror light control method provided in each of the above embodiments.
[0118] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A method for controlling a car vanity mirror light, characterized in that: The method comprises: Obtaining a mechanical switch state and a software switch state corresponding to a vanity mirror light, and obtaining an interior brightness parameter of the vehicle, wherein the software switch state includes preset gear information of the vanity mirror light; Compare the interior brightness parameter with a preset maximum brightness threshold to obtain a brightness comparison result, and determine a lighting control instruction corresponding to the vanity mirror light according to at least one of the brightness comparison result, the mechanical switch state, and the software switch state; If the light control instruction includes a light on instruction, multiple preset brightness intervals are matched by the interior brightness parameter to obtain a target interval corresponding to the interior brightness parameter, and the light brightness of the vanity mirror lamp is determined according to the target interval, wherein the brightness intervals are all within the range of the maximum brightness threshold; Controlling the brightness of the vanity mirror light according to the light control instruction and the light brightness; Among them, determining the light brightness of the vanity mirror light includes: judging whether the preset gear information is an on gear or an automatic gear; if the preset gear information is an automatic gear, matching multiple preset brightness intervals through the in-vehicle brightness parameters to obtain the target interval corresponding to the in-vehicle brightness parameters; if the preset gear information is an on gear, controlling the vanity mirror light according to the preset maximum brightness.
2. The method for controlling a car vanity mirror light according to claim 1, characterized in that: Get the software switch status corresponding to the vanity mirror light in the following way: Pull information from the vehicle computer system to obtain preset gear information of the vanity mirror light, wherein the preset gear information includes an on gear, a off gear, and an automatic gear.
3. The method for controlling a car vanity mirror light according to claim 2, characterized in that: The step of determining the lighting control instruction corresponding to the vanity mirror lamp according to at least one of the brightness comparison result, the mechanical switch state and the software switch state comprises: Presetting a first determination condition, a second determination condition and a third determination condition, wherein the first determination condition includes that the mechanical switch state is turned on, the second determination condition includes that the preset gear information is an on gear or an automatic gear, and the third determination condition includes that the brightness comparison result is that the interior brightness parameter does not exceed the maximum brightness threshold; If the first determination condition, the second determination condition and the third determination condition are simultaneously satisfied, the light control instruction is determined as the light on instruction; If at least one of the first determination condition, the second determination condition and the third determination condition is not satisfied, the light control instruction is determined as a light off instruction.
4. A method for controlling a car vanity mirror light according to claim 1 or 3, characterized in that: Get the mechanical switch status corresponding to the vanity mirror light in the following way: The state of the shading plate is obtained. If the shading plate is in an unfolded state, the state of the mechanical switch is open. If the shading plate is in a folded state, the state of the mechanical switch is closed.
5. The method for controlling a car vanity mirror light according to claim 1, characterized in that: After controlling the brightness of the vanity mirror light according to the light control instruction and the light brightness, the method further includes: Determine the mechanical switch state and the software switch state as target data, and monitor the target data; If any of the target data changes, the light control instruction is regenerated and the light brightness of the vanity mirror light is determined.
6. The method for controlling a car vanity mirror light according to claim 1, characterized in that: A face recognition device is provided inside the vanity mirror lamp. After controlling the brightness of the vanity mirror lamp according to the light control instruction and the light brightness, the control method further includes: Based on the face recognition device, it is determined whether there is anyone in the illumination area of the vanity mirror light. If there is someone, the current brightness of the vanity mirror light is maintained; if there is no one, the vanity mirror light is controlled to be turned off.
7. A vanity mirror light control device, characterized in that: The device comprises: A state detection module, used to obtain the mechanical switch state and software switch state corresponding to the vanity mirror light, and obtain the brightness parameter inside the vehicle, wherein the software switch state includes the preset gear information of the vanity mirror light; an instruction issuing module, comparing the interior brightness parameter with a preset maximum brightness threshold to obtain a brightness comparison result, and determining a lighting control instruction corresponding to the vanity mirror light according to at least one of the brightness comparison result, the mechanical switch state, and the software switch state; A brightness matching module, if the light control instruction includes a light on instruction, matches a plurality of preset brightness intervals through the in-car brightness parameter to obtain a target interval corresponding to the in-car brightness parameter, and determines the light brightness of the vanity mirror lamp according to the target interval; wherein determining the light brightness of the vanity mirror lamp comprises: determining whether the preset gear position information is an on gear position or an automatic gear position; if the preset gear position information is an automatic gear position, matches a plurality of preset brightness intervals through the in-car brightness parameter to obtain the target interval corresponding to the in-car brightness parameter; if the preset gear position information is an on gear position, controlling the vanity mirror lamp according to a preset maximum brightness; An execution module is used to control the brightness of the vanity mirror light according to the light control instruction and the light brightness.
8. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the electronic device to implement the makeup mirror light control method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the makeup mirror light control method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Controlling means of car mirror lamp
CN204801624U
Method and device for controlling automatic turn-on of light-sensitive make-up lighting lamp
CN103533720A
Automatic light adjusting device and method for cosmetic mirror
CN110769568A
Method of using cosmetic mirror for vehicle and system
CN112519675A
Scene-based in-vehicle light control method and system and readable storage medium
CN114286479A
