Sun visor adjustment method, device, equipment and storage medium

By detecting and adjusting the status of the sun visor control unit through a camera, the problem of the sun visor protecting the driver's field of view and blocking sunlight is solved, thereby achieving maximum protection of the driver's field of view and improving safety.

CN116394724BActive Publication Date: 2025-09-09CHINA FAW CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310564499.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-17
Publication Date
2025-09-09
Estimated Expiration
2043-05-17

AI Technical Summary

Technical Problem

How to prevent sunlight from shining into the driver's eyes while protecting the driver's field of vision to the greatest extent and reducing the risk of the sun visor blocking the driver's vision.

Method used

A camera is used to detect whether the driver's eyes and face are directly exposed to sunlight, and the target control unit on the sun visor is adjusted to make it opaque. Three adjustments are made to ensure that the minimum area of ​​the human eye is not directly exposed to sunlight, including determining the working status of the first, second and third target control units on the sun visor.

Benefits of technology

By gradually expanding the blocking range of the sun visor, the driver's eyes are prevented from being exposed to sunlight, while the driver's field of vision is protected to the greatest extent, thereby improving driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116394724B_ABST
    Figure CN116394724B_ABST
Patent Text Reader

Abstract

The present invention discloses a sun visor adjustment method, device, equipment and storage medium. The method comprises: using a camera to detect the driver, and based on the detection result, determining whether the driver's eyes are directly exposed to sunlight; if so, determining a first target control unit on the sun visor and adjusting the working state of the first target control unit to a light-proof state; using a camera to perform a second detection to determine whether the driver's face is directly exposed to sunlight; if so, determining a second target control unit on the sun visor and adjusting the working state of the second target control unit to a light-proof state; and optimizing and adjusting the third target control unit on the sun visor based on a preset minimum range area of ​​the human eye so that the minimum range area of ​​the human eye is not directly exposed to sunlight. The technical solution of the present invention can not only prevent sunlight from irradiating the driver's eyes, but also protect the driver's field of vision to the greatest extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle technology, and in particular to a sun visor adjustment method, device, equipment and storage medium. Background Art

[0002] With the development of vehicle technology, smart sun visors used on vehicles can effectively prevent sunlight from interfering with driving judgment and thus reduce traffic accidents by adjusting the intensity of sunlight on the eyes. However, the sun visor itself will also block the driver's line of sight, which also poses a safety risk to a certain extent.

[0003] How to prevent sunlight from shining into the driver's eyes while protecting the driver's field of vision to the greatest extent is a problem that needs to be solved urgently. Summary of the Invention

[0004] The present invention provides a sun visor adjustment method, device, equipment and storage medium, which can prevent sunlight from irradiating the driver's eyes and protect the driver's field of vision to the greatest extent.

[0005] According to one aspect of the present invention, a sun visor adjustment method is provided, comprising:

[0006] A camera is used to detect the driver, and based on the detection result, it is determined whether the driver's eyes are directly exposed to sunlight. If so, a first target control unit on the sun visor is determined and the working state of the first target control unit is adjusted to a light-proof state;

[0007] A second detection is performed using a camera to determine whether the driver's face is directly exposed to sunlight; if so, a second target control unit on the sun visor is determined and the operating state of the second target control unit is adjusted to a light-proof state;

[0008] According to the preset minimum range area of ​​the human eye, the third target control unit on the sun visor is optimized and adjusted so that the minimum range area of ​​the human eye is not directly exposed to sunlight.

[0009] Optionally, a camera is used to detect the driver and, based on the detection results, determine whether the driver's eyes are directly exposed to sunlight, including:

[0010] Use a preset camera to capture images of the driver and determine the facial image;

[0011] Based on a preset target detection algorithm, the facial image is recognized and processed to determine the eye area in the facial image and the target brightness value of the eye area;

[0012] Based on the relationship between the target brightness value and the preset brightness threshold, it is determined whether the driver's eyes are directly exposed to sunlight.

[0013] Optionally, determining a first target control unit on the sun visor includes:

[0014] Determine the two-dimensional coordinates of the eye region in the facial image, and determine the three-dimensional coordinates of the eye region in the camera coordinate system based on the two-dimensional coordinates and a preset camera transformation matrix;

[0015] Determine the coordinate range of the sun visor corresponding to the three-dimensional coordinates of the eye according to the three-dimensional coordinates of the eye and a preset coordinate conversion matrix between the camera and the sun visor;

[0016] According to the coordinate range of the sun visor, a first target control unit on the sun visor is determined.

[0017] Optionally, the above method further includes:

[0018] Determine the minimum number of light-proof units contained in the sun visor after two adjustments;

[0019] If the minimum number of light-proof units is greater than a preset threshold, the third target control unit on the sun visor is optimized and adjusted according to the preset minimum range area of ​​the human eye.

[0020] Optionally, the third target control unit on the sun visor is optimized and adjusted according to the preset minimum range of the human eye, including:

[0021] determining a target boundary area excluding an eye area and a driver's face area in a preset minimum range area of ​​a human eye;

[0022] The camera is controlled to perform a third detection to determine whether the target boundary area is directly exposed to sunlight. If so, the third target control unit on the sun visor is determined and the working state of the third target control unit is adjusted to an opaque state.

[0023] Optionally, determining a second target control unit on the sun visor includes:

[0024] Determine the irradiation area based on the direct sunlight on the driver's face;

[0025] Determine the target shading area on the sun visor corresponding to the irradiation area according to the irradiation area and the preset coordinate transformation matrix between the camera and the sun visor;

[0026] The candidate target control unit included in the target shading area is determined as the second target control unit on the sun visor.

[0027] Optionally, the working state of the target control unit is an opaque state or a translucent state; the camera is configured on the left A-pillar or steering column of the vehicle.

[0028] According to another aspect of the present invention, there is provided a sun visor adjustment device, comprising:

[0029] a first adjustment module, configured to detect the driver using a camera and determine, based on the detection result, whether the driver's eyes are directly exposed to sunlight; if so, determine a first target control unit on the sun visor and adjust the working state of the first target control unit to a light-proof state;

[0030] A second adjustment module is configured to perform a second detection using a camera to determine whether the driver's face is directly exposed to sunlight; if so, determine a second target control unit on the sun visor and adjust the working state of the second target control unit to a light-proof state;

[0031] The third adjustment module is used to optimize and adjust the third target control unit on the sun visor according to the preset minimum range area of ​​the human eye, so that the minimum range area of ​​the human eye is not directly exposed to sunlight.

[0032] According to another aspect of the present invention, an electronic device is provided, comprising:

[0033] at least one processor; and

[0034] a memory communicatively connected to the at least one processor; wherein,

[0035] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the sun visor adjustment method described in any embodiment of the present invention.

[0036] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the sun visor adjustment method according to any embodiment of the present invention when executed.

[0037] The technical solution of the embodiment of the present invention uses a camera to detect the driver and, based on the detection results, determines whether the driver's eyes are directly exposed to sunlight. If so, the first target control unit on the sun visor is determined and the operating state of the first target control unit is adjusted to an opaque state. The camera is used to perform a second detection to determine whether the driver's face is directly exposed to sunlight. If so, the second target control unit on the sun visor is determined and the operating state of the second target control unit is adjusted to an opaque state. Based on a preset minimum range of the human eye, the third target control unit on the sun visor is optimized and adjusted so that the minimum range of the human eye is not directly exposed to sunlight. Through three targeted sun visor adjustments, the sun visor's shielding range is gradually expanded, which can not only prevent sunlight from shining on the driver's eyes, but also maximize the protection of the driver's field of vision.

[0038] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0040] Figure 1A This is a flow chart of a sun visor adjustment method provided in Example 1 of the present invention;

[0041] Figure 1B is a structural schematic diagram of a sun visor provided in Embodiment 1 of the present invention;

[0042] Figure 2 This is a flow chart of a sun visor adjustment method provided in the second embodiment of the present invention;

[0043] Figure 3 This is a structural block diagram of a sun visor adjustment device provided in the third embodiment of the present invention;

[0044] Figure 4 It is a structural diagram of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0045] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0046] It should be noted that the terms "first", "second", "target", "candidate", "alternative", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0047] Example 1

[0048] Figure 1A This is a flow chart of a sun visor adjustment method provided in Example 1 of the present invention; Figure 1B Schematic diagram of the structure of the sun visor provided by the first embodiment of the present invention; this embodiment is applicable to the case where the working state of the sun visor control unit is adjusted according to the exposure of the driver to sunlight. The method can be performed by a sun visor adjustment device, which can be implemented in the form of hardware and / or software. The sun visor adjustment device can be configured in an electronic device, such as a vehicle control module, and executed by an intelligent sun visor controller, such as Figure 1A As shown, the sun visor adjustment method includes:

[0049] S101. Use a camera to detect the driver and determine whether the driver's eyes are directly exposed to sunlight based on the detection result. If so, determine the first target control unit on the sun visor and adjust the working state of the first target control unit to an opaque state.

[0050] The target control unit refers to a unit on the sun visor that can control whether light is transmitted. A target control unit can include at least one minimum controllable light transmission unit.

[0051] Optionally, the target control unit can be in a light-proof state or a light-transmitting state; the camera is disposed on the left A-pillar or steering column of the vehicle. The left A-pillar of the vehicle refers to the connecting pillar connecting the roof and the front cabin on the left front and right front of the vehicle.

[0052] For example, see Figure 1B The sun visor can be composed of 32 minimum controllable light-transmitting units, each of which can be independently set to be light-transmitting or light-impermeable. That is to say, the working state of the minimum controllable contribution unit includes the light-transmitting state and the light-impermeable state, in which the light-transmitting unit does not block the line of sight, and the light-impermeable unit blocks the line of sight.

[0053] Optionally, a camera is used to detect the driver, and based on the detection results, it is determined whether the driver's eyes are directly exposed to sunlight, including: using a preset camera to capture an image of the driver and determine a facial image; based on a preset target detection algorithm, the facial image is recognized and processed to determine the eye area in the facial image and the target brightness value of the eye area; based on the relationship between the target brightness value and a preset brightness threshold, it is determined whether the driver's eyes are directly exposed to sunlight.

[0054] Optionally, a certain number of facial images of people's eyes with and without direct sunlight can be obtained in advance, and by analyzing the distribution of the brightness values ​​of the human eyes, the brightness thresholds of the human eyes with and without direct sunlight can be obtained, that is, the preset brightness threshold is determined, and further, based on the relationship between the target brightness value and the preset brightness threshold, it is determined whether the driver's eyes are directly exposed to sunlight; a large number of facial images of people's eyes with and without direct sunlight can also be used to train a deep learning training algorithm model, so as to intelligently identify whether the human eyes are directly exposed to the sun through the trained model, that is, to determine whether the driver's eyes are directly exposed to sunlight.

[0055] Optionally, if it is determined that the driver's eyes are directly exposed to sunlight, the first target control unit on the sun visor is determined, including: determining the two-dimensional coordinates of the eye area in the facial image, and determining the three-dimensional coordinates of the eye area in the camera coordinate system based on the two-dimensional coordinates and the preset camera conversion matrix; determining the sun visor coordinate range corresponding to the three-dimensional coordinates of the eye based on the three-dimensional coordinates of the eye and the preset coordinate conversion matrix between the camera and the sun visor; and determining the first target control unit on the sun visor based on the sun visor coordinate range.

[0056] By controlling the working state of the first target control unit to be opaque, the driver's eyes can be shielded from direct sunlight. The camera transformation matrix can be calculated based on camera intrinsic parameters and extrinsic parameters (such as the camera's layout position parameters in the camera coordinate system).

[0057] Optionally, if it is determined that the driver's eyes are directly exposed to sunlight, the coordinates of the driver's eyes in the camera image pixel coordinate system can be determined as the two-dimensional coordinates of the eye area in the facial image, and further based on the preset camera transformation matrix, the two-dimensional coordinates of the eyes are converted into a three-dimensional coordinate system to obtain the 3D coordinates of the driver's eyes, that is, the three-dimensional coordinates of the eyes in the eye area in the camera coordinate system are determined.

[0058] S102: Perform a second detection using a camera to determine whether the driver's face is directly exposed to sunlight; if so, determine a second target control unit on the sun visor and adjust the working state of the second target control unit to a light-proof state.

[0059] The driver's face includes a left face and a right face. If the left face and / or the right face of the driver are directly exposed to sunlight, it can be determined that the driver's face is directly exposed to sunlight. By controlling the operating state of the second target control unit to a light-proof state, the driver's face can be prevented from being directly exposed to sunlight.

[0060] Optionally, the shape of the sunlight in the facial image can be analyzed to determine the direction of incidence of the sunlight. For example, if the shape of the sunlight in the image is observed and it is determined that the proportion of sunlight area on the left face is smaller than that on the right face, then the direction of incidence of the sunlight can be determined to be the left side. Further, by analyzing the brightness areas in the facial image, the direct exposure of sunlight on the driver's face can be determined. The irradiation area can be determined by combining the direct exposure and the direction of incidence of the sunlight.

[0061] Optionally, if it is determined that the driver's face is directly exposed to sunlight, the second target control unit on the sun visor is determined, including: determining the illumination area according to the direct exposure of sunlight to the driver's face; determining the target shading area on the sun visor corresponding to the illumination area according to the illumination area and the preset coordinate conversion matrix between the camera and the sun visor; and determining the candidate target control unit contained in the target shading area as the second target control unit on the sun visor.

[0062] It should be noted that since the vehicle is constantly moving and the angle of incidence of the sun varies over time, it is necessary to perform a second detection of the driver's face including the driver's eyes to confirm whether the driver's eyes are still directly exposed and whether the driver's face is directly exposed. If so, a new target control unit is determined for adjustment.

[0063] S103: Optimize and adjust the third target control unit on the sun visor according to the preset minimum range of the human eye, so that the minimum range of the human eye is not directly exposed to sunlight.

[0064] The minimum eye area may be a predetermined range around the pre-set eye area. The driver's facial area may or may not completely encompass the minimum eye area. If the minimum eye area is not completely encompassed, the area within the minimum eye area that does not overlap with the driver's facial area is the area that requires optimization and adjustment using the third target control unit. If the minimum eye area is completely encompassed, the above-described step S103 may not be performed.

[0065] Optionally, the minimum number of opaque units contained in the sun visor after two adjustments is determined; if the minimum number of opaque units is greater than a preset number threshold, the third target control unit on the sun visor is optimized and adjusted according to the preset minimum range area of ​​the human eye.

[0066] Exemplarily, n is the minimum number of opaque units. If n≤4, no boundary area adjustment is performed. If n>4, that is, the minimum number of opaque units is greater than the preset number threshold, the third target control unit on the sun visor is optimized and adjusted according to the preset minimum range area of ​​the human eye.

[0067] Optionally, the third target control unit on the sun visor is optimized and adjusted according to the preset minimum range area of ​​the human eye, including: determining the target boundary area excluding the eye area and the driver's face area in the preset minimum range area of ​​the human eye; controlling the camera to perform a third detection to determine whether the target boundary area is directly exposed to sunlight, and if so, determining the third target control unit on the sun visor, and adjusting the working state of the third target control unit to an opaque state.

[0068] The technical solution of the embodiment of the present invention uses a camera to detect the driver and, based on the detection results, determines whether the driver's eyes are directly exposed to sunlight. If so, the first target control unit on the sun visor is determined and the operating state of the first target control unit is adjusted to an opaque state. The camera is used for a second detection to determine whether the driver's face is directly exposed to sunlight. If so, the second target control unit on the sun visor is determined and the operating state of the second target control unit is adjusted to an opaque state. Based on a preset minimum range of the human eye, the third target control unit on the sun visor is optimized and adjusted to prevent the minimum range of the human eye from being directly exposed to sunlight. Through three targeted sun visor adjustments, the sun visor's blocking range is gradually expanded, achieving rapid and intelligent regional shading of the smart sun visor while ensuring the driver's maximum visual range.

[0069] Example 2

[0070] Figure 2 This is a flow chart of a sun visor adjustment method provided by the second embodiment of the present invention; based on the above embodiment, this embodiment proposes a preferred example of performing secondary detection and optimization of sunlight exposure to achieve intelligent adjustment of the sun visor, such as Figure 2 Said method comprises the following process:

[0071] 1. Use the driver status monitoring camera to monitor the 3D coordinates of the driver's eyes under the vehicle coordinates and whether there is sunlight in real time.

[0072] Optionally, when the vehicle is in motion, the driver status monitoring camera can be controlled to transmit a photo of the driver's face to the controller in real time for image recognition. When it is first detected that the driver's eyes are exposed to direct sunlight, the 3D coordinates of the driver's eyes at this time are converted into the sun visor's opaque coordinates and sent to the intelligent sun visor controller (the 3D coordinates of the human eye are converted into the sun visor's opaque coordinate area through the coordinate conversion matrix).

[0073] Optionally, the brightness values ​​of the driver's eyes can be analyzed, and the brightness thresholds of the eyes when the sun is directly shining on them and when the sun is not directly shining on them can be obtained by statistically analyzing the distribution of the brightness values ​​of the eyes in a large number of sample pictures of the eyes when the sun is directly shining on them and when the sun is not directly shining on them. Alternatively, a deep learning training algorithm model can be used to intelligently identify whether the eyes are directly exposed to the sun by using a large number of sample pictures of the eyes when the sun is directly shining on them and when the sun is not directly shining on them.

[0074] Optionally, the camera can generally be arranged on the left A-pillar or steering column sheath, and the 3D coordinates of the driver's eyes are obtained by converting the camera image pixel coordinate system into the vehicle coordinate system. The conversion matrix is ​​calculated based on the camera's internal and external parameters (the layout position under the vehicle coordinates). The sun visor also has corresponding vehicle coordinates. According to the approximate direction of sunlight incidence (observe the shape of sunlight in the image, for example, the proportion of sunlight area on the left face is less than that on the right face, and the direction of sunlight incidence is basically on the left), it is converted into the sun visor's opaque coordinates according to the pre-set conversion matrix.

[0075] 2. The smart sun visor controller determines the target control unit of the smart sun visor according to the above-mentioned opaque coordinate range, and adjusts the minimum light-transmitting unit of the specific area of ​​the smart sun visor (the working state of the target control unit) to the opaque state, wherein the working state of the target control unit includes the light-transmitting state and the opaque state.

[0076] 3. After the intelligent sun visor controls the eye area to be opaque, it will detect the sunlight exposure to the driver's eyes again. If there is still sunlight exposure, the sun visor opaque area will be adjusted directly according to the exposure area; the sun visor opaque unit will be optimized and adjusted according to the sunlight exposure on the face;

[0077] Optionally, since the vehicle is constantly moving and the angle of incidence of the sun varies, it is necessary to confirm whether the driver's eyes are still being directly illuminated. If so, dynamic adjustments need to be made based on the latest opaque coordinates; if not, proceed to step 4.

[0078] 4. By adjusting the brightness and darkness of the minimum light-transmitting unit in the opaque boundary area, it is determined whether the minimum range of the human eye is directly illuminated. If so, a secondary optimization is performed (i.e., multiple adjustments are made until the minimum range of the human eye is not directly illuminated) (n is the number of minimum light-transmitting units. If n≤4, no boundary area adjustment is performed). The minimum light-transmitting area is secondary optimized to ensure that the minimum range of the human eye is not directly illuminated, thereby maximizing the driver's field of view under sun shading and improving driving safety.

[0079] For example, regarding the changes in sunlight on a person's face before and after the sun visor blocks the sun for the first time, for example, only the right face is blocked for the first time, after adjusting a specific area of ​​the sun visor to be opaque, the right side of the right face is still directly exposed to sunlight, and the translucent area to the right of the opaque area needs to be adjusted to become opaque.

[0080] For example, if it is detected that the face is directly exposed to sunlight, the secondary detection is to find that the human eyes are not directly exposed and the opaque area is a 4x4 area. At the same time, it is found that the opaque boundary on the left side of the face in the image is the left face, but the right side is the ear. At this time, the opaque area on the right side can be made transparent to observe whether the right eye is directly exposed to sunlight, that is, the minimum opaque area is optimized secondary to ensure that the minimum range area of ​​the human eye is not directly exposed to sunlight.

[0081] Example 3

[0082] Figure 3 This is a structural block diagram of a sun visor adjustment device provided in the third embodiment of the present invention; this embodiment is applicable to the case where the working state of the sun visor control unit is adjusted according to the exposure of the driver to sunlight. The sun visor adjustment device can be implemented in the form of hardware and / or software and configured in a device with a sun visor adjustment function, such as a control module of a vehicle, such as Figure 3 As shown, the device specifically includes:

[0083] The first adjustment module 301 is configured to detect the driver using a camera and determine whether the driver's eyes are directly exposed to sunlight based on the detection result. If so, the first target control unit on the sun visor is determined and the operating state of the first target control unit is adjusted to a light-proof state.

[0084] The second adjustment module 302 is configured to perform a second detection using a camera to determine whether the driver's face is directly exposed to sunlight; if so, determine a second target control unit on the sun visor and adjust the operating state of the second target control unit to a light-proof state;

[0085] The third adjustment module 303 is used to optimize and adjust the third target control unit on the sun visor according to the preset minimum range of the human eye, so that the minimum range of the human eye is not directly exposed to sunlight.

[0086] The technical solution of the embodiment of the present invention uses a camera to detect the driver and, based on the detection results, determines whether the driver's eyes are directly exposed to sunlight. If so, the first target control unit on the sun visor is determined and the operating state of the first target control unit is adjusted to an opaque state. The camera is used to perform a second detection to determine whether the driver's face is directly exposed to sunlight. If so, the second target control unit on the sun visor is determined and the operating state of the second target control unit is adjusted to an opaque state. Based on a preset minimum range of the human eye, the third target control unit on the sun visor is optimized and adjusted so that the minimum range of the human eye is not directly exposed to sunlight. Through three targeted sun visor adjustments, the sun visor's shielding range is gradually expanded, which can not only prevent sunlight from shining on the driver's eyes, but also maximize the protection of the driver's field of vision.

[0087] Furthermore, the first adjustment module 301 is specifically configured to:

[0088] Use a preset camera to capture images of the driver and determine the facial image;

[0089] Based on a preset target detection algorithm, the facial image is recognized and processed to determine the eye area in the facial image and the target brightness value of the eye area;

[0090] Based on the relationship between the target brightness value and the preset brightness threshold, it is determined whether the driver's eyes are directly exposed to sunlight.

[0091] Furthermore, the first adjustment module 301 is further configured to:

[0092] Determine the two-dimensional coordinates of the eye region in the facial image, and determine the three-dimensional coordinates of the eye region in the camera coordinate system based on the two-dimensional coordinates and a preset camera transformation matrix;

[0093] Determine the coordinate range of the sun visor corresponding to the three-dimensional coordinates of the eye according to the three-dimensional coordinates of the eye and a preset coordinate conversion matrix between the camera and the sun visor;

[0094] According to the coordinate range of the sun visor, a first target control unit on the sun visor is determined.

[0095] Furthermore, the above device is also used for:

[0096] Determine the minimum number of light-proof units contained in the sun visor after two adjustments;

[0097] If the minimum number of light-proof units is greater than a preset threshold, the third target control unit on the sun visor is optimized and adjusted according to the preset minimum range area of ​​the human eye.

[0098] Furthermore, the third adjustment module 303 is specifically configured to:

[0099] determining a target boundary area excluding an eye area and a driver's face area in a preset minimum range area of ​​a human eye;

[0100] The camera is controlled to perform a third detection to determine whether the target boundary area is directly exposed to sunlight. If so, the third target control unit on the sun visor is determined and the working state of the third target control unit is adjusted to an opaque state.

[0101] Furthermore, the second adjustment module 302 is specifically configured to:

[0102] Determine the irradiation area based on the direct sunlight on the driver's face;

[0103] Determine the target shading area on the sun visor corresponding to the irradiation area according to the irradiation area and the preset coordinate transformation matrix between the camera and the sun visor;

[0104] The candidate target control unit included in the target shading area is determined as the second target control unit on the sun visor.

[0105] Furthermore, the working state of the target control unit is a light-proof state or a light-transmitting state; and the camera is arranged on the A-pillar or steering column on the left side of the vehicle.

[0106] Example 4

[0107] Figure 4 It is a structural diagram of an electronic device provided in Embodiment 4 of the present invention. Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0108] like Figure 4As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0109] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0110] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any other suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the sun visor adjustment method.

[0111] In some embodiments, the sun visor adjustment method can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the sun visor adjustment method described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the sun visor adjustment method in any other suitable manner (e.g., via firmware).

[0112] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0113] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0114] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0115] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0116] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0117] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.

[0118] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0119] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A sun visor adjustment method, characterized in that: include: A camera is used to detect the driver, and based on the detection result, it is determined whether the driver's eyes are directly exposed to sunlight. If so, a first target control unit on the sun visor is determined and the working state of the first target control unit is adjusted to a light-proof state; A second detection is performed using a camera to determine whether the driver's face is directly exposed to sunlight; if so, a second target control unit on the sun visor is determined and the operating state of the second target control unit is adjusted to a light-proof state; According to the preset minimum range of human eyes, the third target control unit on the sun visor is optimized and adjusted so that the minimum range of human eyes is not directly exposed to sunlight, including: determining a target boundary area in the preset minimum range of human eyes excluding the eye area and the driver's face area; The camera is controlled to perform a third detection to determine whether the target boundary area is directly exposed to sunlight. If so, the third target control unit on the sun visor is determined and the working state of the third target control unit is adjusted to an opaque state.

2. The method according to claim 1, characterized in that The camera is used to detect the driver and, based on the detection results, determine whether the driver's eyes are directly exposed to sunlight, including: Use a preset camera to capture images of the driver and determine the facial image; Based on a preset target detection algorithm, the facial image is recognized and processed to determine the eye area in the facial image and the target brightness value of the eye area; Based on the relationship between the target brightness value and the preset brightness threshold, it is determined whether the driver's eyes are directly exposed to sunlight.

3. The method according to claim 2, characterized in that Determine the first target control unit on the sun visor, including: Determine the two-dimensional coordinates of the eye region in the facial image, and determine the three-dimensional coordinates of the eye region in the camera coordinate system based on the two-dimensional coordinates and a preset camera transformation matrix; Determine the coordinate range of the sun visor corresponding to the three-dimensional coordinates of the eye according to the three-dimensional coordinates of the eye and the preset coordinate conversion matrix between the camera and the sun visor; According to the coordinate range of the sun visor, a first target control unit on the sun visor is determined.

4. The method according to claim 1, wherein Also includes: Determine the minimum number of light-proof units contained in the sun visor after two adjustments; If the minimum number of light-proof units is greater than a preset threshold, the third target control unit on the sun visor is optimized and adjusted according to the preset minimum range area of ​​the human eye.

5. The method according to claim 1, wherein Determine the second target control unit on the sun visor, including: Determine the irradiation area based on the direct sunlight on the driver's face; Determine the target shading area on the sun visor corresponding to the irradiation area according to the irradiation area and the preset coordinate transformation matrix between the camera and the sun visor; The candidate target control unit included in the target shading area is determined as the second target control unit on the sun visor.

6. The method according to claim 1, characterized in that in, The working state of the target control unit is a light-proof state or a light-transmitting state; the camera is arranged on the A-pillar or steering column on the left side of the vehicle.

7. A sun visor adjustment device, characterized in that: include: a first adjustment module, configured to detect the driver using a camera and determine, based on the detection result, whether the driver's eyes are directly exposed to sunlight; if so, determine a first target control unit on the sun visor and adjust the working state of the first target control unit to a light-proof state; A second adjustment module is configured to perform a second detection using a camera to determine whether the driver's face is directly exposed to sunlight; if so, determine a second target control unit on the sun visor and adjust the working state of the second target control unit to a light-proof state; The third adjustment module is used to optimize and adjust the third target control unit on the sun visor according to the preset minimum range of the human eye, so that the minimum range of the human eye is not directly exposed to sunlight; The third adjustment module is specifically used for: determining a target boundary area excluding an eye area and a driver's face area in a preset minimum range area of ​​a human eye; The camera is controlled to perform a third detection to determine whether the target boundary area is directly exposed to sunlight. If so, the third target control unit on the sun visor is determined and the working state of the third target control unit is adjusted to an opaque state.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the sun visor adjustment method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the sun visor adjustment method according to any one of claims 1 to 6 when executed.

Citation Information

Patent Citations

  • Visibility control device for a vehicle

    CN110871672A

  • Shading device adjusting method and system, vehicle and storage medium

    CN115593194A