Vehicle sun shield control method and device, vehicle and storage medium

Automatically adjusting the vehicle sun visor by obtaining facial features and brightness information, solving the distraction problem caused by manual operation and improving driving safety and comfort.

CN119459270APending Publication Date: 2025-02-18GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310976627.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-03
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The existing vehicle sun visor requires manual operation by the driver, resulting in frequent adjustment of the sun visor angle when the direction changes during driving, and distraction may cause traffic accidents.

Method used

By obtaining the light and shadow dividing line based on the facial feature information and facial brightness information of the person to be identified, the sun visor is automatically adjusted when the preset conditions are met, so as to adjust the distance between the boundary of the eye area and the light and shadow dividing line to meet the preset distance conditions. .

Benefits of technology

Automatic adjustment of the sun visor is realized, reducing the possibility of drivers being distracted during driving, improving driving safety and driving comfort, and reducing the probability of traffic accidents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119459270A_ABST
    Figure CN119459270A_ABST
Patent Text Reader

Abstract

The invention relates to the field of vehicle control strategies, and discloses a vehicle sun shield control method and device, a vehicle and a storage medium, and the method comprises the steps: obtaining a light and shadow boundary of the face of a to-be-recognized person according to the facial feature information and facial brightness information of the to-be-recognized person; when the light and shadow boundary line meets a preset horizontal condition, the vehicle sun shield is controlled to execute first sun shading operation, so that the distance between the horizontal boundary of the eye area and the light and shadow boundary line is adjusted to meet a first preset distance condition; and when the light and shadow boundary line meets the preset vertical condition, the vehicle sun shield is controlled to execute second sun shading operation, so that the distance between the vertical boundary of the eye area and the light and shadow boundary line is adjusted to meet a second preset distance condition. According to the invention, the self-adaptive adjustment of the sun shield is realized, and a driver does not need to manually adjust the position and angle of the sun shield, so that the vehicle can be driven more conveniently and comfortably, and the driving safety and the driving comfort are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] At present, the sun visor of a vehicle usually needs manual operation by the driver to achieve the purpose of sunshade. Therefore, if the driver changes direction while driving, it will lead to the need to frequently adjust the angle of the sun visor, which may cause the driver to be distracted and cause a traffic accident. Summary of the invention

[0003] Based on this, it is necessary to provide a vehicle sun visor control method, device, vehicle and storage medium to address the above technical problems, so as to achieve automatic adjustment of the sun visor.

[0004] A vehicle sun visor control method, comprising:

[0005] Obtaining a light-shadow boundary line on the face of the person to be identified based on facial feature information and facial brightness information of the person to be identified;

[0006] When the light-shadow dividing line meets a preset horizontal condition, controlling the vehicle sun visor to perform a first sunshade operation to adjust the distance between the horizontal boundary of the eye area and the light-shadow dividing line to meet a first preset distance condition;

[0007] When the light-shadow dividing line meets a preset vertical condition, the vehicle sun visor is controlled to perform a second sunshade operation to adjust the distance between the vertical boundary of the eye area and the light-shadow dividing line to meet a second preset distance condition.

[0008] A vehicle sun visor control device, comprising:

[0009] A light-shadow boundary line acquisition module, used to acquire the light-shadow boundary line on the face of the person to be identified based on the facial feature information and facial brightness information of the person to be identified;

[0010] A horizontal adjustment module, used for controlling the vehicle sun visor to perform a first sunshade operation when the light-shadow dividing line meets a preset horizontal condition, so as to adjust the distance between the horizontal boundary of the eye area and the light-shadow dividing line to meet a first preset distance condition;

[0011] The vertical adjustment module is used to control the vehicle sun visor to perform a second sunshade operation when the light-shadow dividing line meets a preset vertical condition, so as to adjust the distance between the vertical boundary of the eye area and the light-shadow dividing line to meet a second preset distance condition.

[0012] A vehicle comprises a control module of a sun visor motor, wherein the control module is used to execute any one of the above-mentioned vehicle sun visor control methods.

[0013] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the vehicle sun visor control method is implemented.

[0014] In the above-mentioned vehicle sun visor control method, device, vehicle and storage medium, the light and shadow dividing line of the face of the person to be identified is obtained according to the facial feature information and facial brightness information of the person to be identified. When the light and shadow dividing line meets the preset horizontal condition, the vehicle sun visor is controlled to perform a first shading operation, and the distance between the horizontal boundary of the eye area and the light and shadow dividing line is adjusted to meet the first preset distance condition. When the light and shadow dividing line meets the preset vertical condition, the vehicle sun visor is controlled to perform a second shading operation, and the distance between the vertical boundary of the eye area and the light and shadow dividing line is adjusted to meet the second preset distance condition.

[0015] The present invention obtains the light-shadow dividing line according to the facial feature information and facial brightness information of the person to be identified, and when the light-shadow dividing line meets the preset horizontal condition, controls the vehicle sun visor to perform the first sunshade operation, and when the light-shadow dividing line meets the preset vertical condition, controls the vehicle sun visor to perform the second sunshade operation. In the present invention, there is no need to manually adjust the position and angle of the sun visor, but through different sunshade operations, adaptive adjustment of the sun visor in different scenes is achieved, thereby making the driving experience more convenient and comfortable; at the same time, the driver does not need to be distracted to adjust the sun visor during driving, which improves driving safety and driving comfort, and reduces the probability of traffic accidents. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0017] Figure 1 is a flow chart of a vehicle sun visor control method according to an embodiment of the present invention;

[0018] Figure 2 It is a structural schematic diagram of a vehicle sun visor control device in one embodiment of the present invention. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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 creative work are within the scope of protection of the present invention.

[0020] In one embodiment, if Figure 1 As shown, a vehicle sun visor control method is provided, comprising the following steps S10-S30.

[0021] S10. Obtaining a light-shadow boundary line on the face of the person to be identified based on the facial feature information and facial brightness information of the person to be identified. Understandably, the facial feature information includes the contour, eyes, nose, mouth, ears, eyebrows, etc. of the face. The facial brightness information may be the brightness value of the face under different lighting conditions. The light-shadow boundary line may be the boundary line between the bright part and the dark part of the face, where the light-shadow boundary line may be a line close to a straight line or an irregular line.

[0022] Specifically, in the present invention, a facial image of a person to be identified (such as a driver) can be captured by a driver monitoring system in a vehicle, and then facial feature information of the person to be identified in the facial image can be identified and marked, and facial brightness information of the person to be identified in the facial image can be identified, and the light and shadow boundary of the face of the person to be identified can be determined based on the facial feature information and facial brightness information. Here, the driver monitoring system can be an in-vehicle camera installed in front of the driver.

[0023] S20. When the light-shadow dividing line meets a preset horizontal condition, control the vehicle sun visor to perform a first sunshade operation to adjust the distance between the horizontal boundary of the eye area and the light-shadow dividing line to meet a first preset distance condition.

[0024] It can be understood that the preset horizontal condition can be a first angle condition of the angle between the light and shadow dividing line and the horizontal line that is pre-set according to actual needs (for example, the first angle condition is that the angle between the light and shadow dividing line and the horizontal line is less than or equal to the preset angle). When the angle between the light and shadow dividing line and the horizontal line satisfies the first angle condition, the light and shadow dividing line is considered to meet the preset horizontal condition.

[0025] It is understandable that the first preset distance condition can be a control visor that is pre-set according to actual needs to perform an action to achieve an operation of adjusting the distance between the horizontal boundary of the eye area and the light and shadow dividing line to a specific sunshade effect that satisfies the first preset distance condition. Wherein, there are facial bright areas and facial shadow areas on both sides of the light and shadow dividing line, and the facial bright area refers to the area on the side with a higher facial brightness value of the person to be identified located on the first side or the second side of the light and shadow dividing line. Wherein, the first side and the second side are relatively arranged on opposite sides of the light and shadow dividing line, and the first side and the second side can refer to the upper side and the lower side of the light and shadow dividing line, respectively, and can also refer to the left side and the right side of the light and shadow dividing line, respectively. The horizontal boundary of the eye area refers to the lower boundary of the eye area or the upper boundary of the eye area, and its specific position can be set according to needs. For example, if the light and shadow dividing line is bright at the top and dark at the bottom (that is, the facial brightness value of the person to be identified on the upper side of the light and shadow dividing line is higher, and the facial brightness value of the lower side is lower), then the horizontal boundary of the eye area is located at the upper boundary of the eye area; if the light and shadow dividing line is dark at the top and bright at the bottom (that is, the facial brightness value of the person to be identified on the lower side of the light and shadow dividing line is higher, and the facial brightness value of the upper side is lower), then the horizontal boundary of the eye area refers to the lower boundary of the eye area. Further, the lower boundary of the eye area refers to the boundary line located at the lower boundary of the eye area and 1 cm away from the bottom of the eye, and the upper boundary of the eye area refers to the boundary line located at the upper boundary of the eye area and 1 cm away from the top of the eye. The distance between the horizontal boundary of the eye area and the light and shadow dividing line refers to the vertical distance between any point on the horizontal boundary of the eye area and the light and shadow dividing line. The first preset distance condition may be preset according to actual needs, and the first preset distance condition represents the distance range of the vertical distance between any point on the horizontal boundary of the eye region and the light-shadow dividing line. In one embodiment, if the horizontal boundary of the eye region is located at the upper boundary of the eye region, the light-shadow dividing line is bright at the top and dark at the bottom, and the light-shadow dividing line is located above the horizontal boundary of the eye region, then the distance between the horizontal boundary of the eye region and the light-shadow dividing line is a positive value, and if the light-shadow dividing line is located below the horizontal boundary of the eye region, then the distance between the horizontal boundary of the eye region and the light-shadow dividing line is a negative value; if the horizontal boundary of the eye region is located at the lower boundary of the eye region, the light-shadow dividing line is dark at the top and bright at the bottom, and the light-shadow dividing line is located above the horizontal boundary of the eye region, then the distance between the horizontal boundary of the eye region and the light-shadow dividing line is a negative value, and if the light-shadow dividing line is located below the horizontal boundary of the eye region, then the distance between the horizontal boundary of the eye region and the light-shadow dividing line is a positive value.

[0026] Specifically, in this embodiment, the eye region of the person to be identified can be first obtained, and the light and shadow dividing line of the face of the person to be identified can be obtained based on the eye region of the person to be identified. When it is determined that the light and shadow dividing line meets the preset horizontal condition, the vehicle sun visor is controlled by the sun visor motor to perform the first sunshade operation, and the distance between the horizontal boundary of the eye region and the light and shadow dividing line is adjusted to meet the first preset distance condition, and the first sunshade operation is stopped. It can be understood that if the distance between the horizontal boundary of the eye region and the light and shadow dividing line fails to meet the first preset distance condition when the sun visor runs to the extreme position of the vehicle sun visor, the first sunshade operation is also stopped at this time, and the vehicle sun visor is controlled to reset.

[0027] S30. When the light-shadow dividing line meets a preset vertical condition, control the vehicle sun visor to perform a second sunshade operation to adjust the distance between the vertical boundary of the eye area and the light-shadow dividing line to meet a second preset distance condition.

[0028] It can be understood that the preset vertical condition can be a second angle condition of the angle between the light and shadow dividing line and the horizontal line that is pre-set according to actual needs (for example, the second angle condition is whether the angle between the light and shadow dividing line and the horizontal line is greater than a preset angle). When the angle between the light and shadow dividing line and the horizontal line satisfies the second angle condition, the light and shadow dividing line is considered to meet the preset vertical condition.

[0029] Understandably, the second sunshade operation can be an operation of controlling the sunshade plate to be pre-set according to actual needs to adjust the distance between the vertical boundary of the eye area and the light and shadow dividing line to a specific sunshade effect that satisfies the second preset distance condition. Among them, the vertical boundary of the eye area refers to the right boundary of the eye area or the left boundary of the eye area, and its specific position can be set according to needs. For example, if the light and shadow dividing line is bright on the left and dark on the right (that is, the facial brightness value of the person to be identified on the left side of the light and shadow dividing line is higher, and the facial brightness value on the right side is lower), then the vertical boundary of the eye area is located at the left boundary of the eye area; if the light and shadow dividing line is dark on the left and bright on the right (that is, the facial brightness value of the person to be identified on the right side of the light and shadow dividing line is higher, and the facial brightness value on the left side is lower), then the vertical boundary of the eye area is located at the right boundary of the eye area. Further, the left boundary of the eye area refers to the boundary line located at the left boundary of the eye area and 1 cm away from the leftmost side of the eye; the right boundary of the eye area refers to the boundary line located at the right boundary of the eye area and 1 cm away from the rightmost side of the eye. The distance between the vertical boundary of the eye area and the light-shadow dividing line refers to the horizontal distance between any point on the vertical boundary of the eye area and the light-shadow dividing line. The second preset distance condition can be preset according to actual needs, and the second preset distance condition represents the distance range of the horizontal distance between any point on the vertical boundary of the eye area and the light-shadow dividing line. In one embodiment, if the vertical boundary of the eye area is located at the left boundary of the eye area, the light and shadow dividing line is bright on the left and dark on the right, and the light and shadow dividing line is located to the left of the vertical boundary of the eye area, then the distance between the vertical boundary of the eye area and the light and shadow dividing line is a positive value; if the light and shadow dividing line is located to the right of the vertical boundary of the eye area, then the distance between the vertical boundary of the eye area and the light and shadow dividing line is a negative value; if the vertical boundary of the eye area is located at the right boundary of the eye area, the light and shadow dividing line is dark on the left and bright on the right, and the light and shadow dividing line is located to the left of the vertical boundary of the eye area, then the distance between the horizontal boundary of the eye area and the light and shadow dividing line is a negative value; if the light and shadow dividing line is located to the right of the vertical boundary of the eye area, then the distance between the vertical boundary of the eye area and the light and shadow dividing line is a positive value.

[0030] Specifically, in the present embodiment, the eye area of ​​the person to be identified can be first obtained, and the vertical boundary of the eye area of ​​the person to be identified and the horizontal boundary of the eye area can be obtained based on the eye area of ​​the person to be identified. When it is judged that the light and shadow dividing line meets the preset vertical condition, the vehicle sun visor is controlled by the sun visor motor to perform the second shading operation, and at the same time, the distance between the horizontal boundary of the eye area and the light and shadow dividing line, and the distance between the vertical boundary of the eye area of ​​the person to be identified and the light and shadow dividing line are obtained in real time; the second shading operation will only be stopped when it is confirmed at the same time that the distance between the horizontal boundary of the eye area and the light and shadow dividing line meets the first preset distance condition, and the distance between the vertical boundary of the eye area and the light and shadow dividing line meets the second preset distance condition. It is understandable that if when the sun visor runs to the extreme position of the vehicle sun visor, it is still not confirmed that the distance between the horizontal boundary of the eye area and the light and shadow dividing line meets the first preset distance condition, and it is still not confirmed that the distance between the vertical boundary of the eye area and the light and shadow dividing line meets the second preset distance condition, then the second sunshade operation is also stopped and the vehicle sun visor is controlled to reset.

[0031] This embodiment obtains the light-shadow dividing line of the face of the person to be identified based on the facial feature information and facial brightness information of the person to be identified, and when the light-shadow dividing line meets the preset horizontal condition, controls the vehicle sun visor to perform the first sunshade operation, and when the light-shadow dividing line meets the preset vertical condition, controls the vehicle sun visor to perform the second sunshade operation. In the present invention, there is no need to manually adjust the position and angle of the sun visor, but through different sunshade operations, adaptive adjustment of the sun visor in different scenes is achieved, thereby making the driving experience more convenient and comfortable; at the same time, the driver does not need to be distracted to adjust the sun visor during driving, which improves driving safety and driving comfort and reduces the probability of traffic accidents.

[0032] In one embodiment, after step S10, that is, after obtaining the light and shadow boundary line of the face of the person to be identified according to the facial feature information and facial brightness information of the person to be identified, the method further includes:

[0033] S101. Obtain a first facial brightness value of the person to be identified located on the first side of the light and shadow dividing line and a second facial brightness value located on the second side of the light and shadow dividing line. It is understandable that the first side of the light and shadow dividing line and the second side of the light and shadow dividing line can be the left side and the right side of the light and shadow dividing line pre-set according to actual conditions, or the upper side and the lower side of the light and shadow dividing line. If the first side of the light and shadow dividing line is the left side, the second side of the light and shadow dividing line is the right side; if the first side of the light and shadow dividing line is the upper side, the second side of the light and shadow dividing line is the lower side.

[0034] S102. When the first facial brightness value is greater than the second facial brightness value, determine that the facial area of ​​the person to be identified located on the first side of the light and shadow dividing line is a bright facial area; and the facial area of ​​the person to be identified located on the second side of the light and shadow dividing line is a shadow facial area.

[0035] S103. When the first facial brightness value is less than the second facial brightness value, determine that the facial area of ​​the person to be identified located on the second side of the light and shadow dividing line is a bright facial area, and the facial area of ​​the person to be identified located on the first side of the light and shadow dividing line is a shadow facial area.

[0036] Specifically, after obtaining the first facial brightness value and the second facial brightness value, if the first facial brightness value is greater than the second facial brightness value, the facial area on the first side of the light-shadow dividing line is determined as the facial bright area, and the facial area on the second side of the light-shadow dividing line is determined as the facial shadow area; if the first facial brightness value is less than the second facial brightness value, the facial area on the second side of the light-shadow dividing line is determined as the facial bright area, and the facial area on the first side of the light-shadow dividing line is determined as the facial shadow area, so as to determine the specific type of the light-shadow dividing line, for example, the light-shadow dividing line is dark on the left and bright on the right or bright on the top and dark on the bottom, which is convenient for the subsequent determination of the eye boundary of the bright area; if the first facial brightness value is equal to the second facial brightness value, it means that the brightness of the facial areas on both sides of the person to be identified is consistent, so there is no light-shadow dividing line. This embodiment realizes the accurate and rapid positioning of the bright area of ​​the face of the person to be identified, thereby improving the accuracy of the subsequent adjustment of the sun visor.

[0037] In one embodiment, the step S20, i.e., controlling the vehicle sun visor to perform a first sunshade operation, includes:

[0038] S201, control the vehicle sun visor to rotate around the X-axis to adjust the distance between the horizontal boundary of the eye area and the light-shadow dividing line to meet a first preset distance condition; the horizontal boundary of the eye area includes the upper boundary of the eye area and the lower boundary of the eye area, and the first preset distance condition includes: when the facial shadow area is above the facial bright area, the absolute value of the difference between the distance between the lower boundary of the eye area and the light-shadow dividing line and 1 cm is less than or equal to 1 cm; when the facial shadow area is below the facial bright area, the absolute value of the difference between the distance between the upper boundary of the eye area and the light-shadow dividing line and 1 cm is less than or equal to 1 cm. It can be understood that the X-axis can be the horizontal axis of the sun visor, and the sun visor can be flipped up and down around the X-axis. Specifically, the sun visor of the vehicle is controlled to rotate around the X-axis by the sun visor motor so that |A-1|≤1, where A is the distance between the horizontal boundary of the eye area and the light-shadow dividing line, that is, the vertical distance between any point on the horizontal boundary of the eye area and the light-shadow dividing line, and the absolute value of the difference between the distance A between the horizontal boundary of the eye area and the light-shadow dividing line and 1 cm is less than or equal to 1 cm. If the light-shadow dividing line is dark at the top and bright at the bottom, the horizontal boundary of the eye area is the lower boundary of the eye area; if the light-shadow dividing line is bright at the top and dark at the bottom, the horizontal boundary of the eye area is the upper boundary of the eye area.

[0039] For example, if the horizontal boundary of the eye area is located at the lower boundary of the eye area, the light and shadow dividing line is dark at the top and light at the bottom, and the light and shadow dividing line is located 3 cm above the horizontal boundary of the eye area, then the vertical distance between any point on the horizontal boundary of the eye area and the light and shadow dividing line is -3 cm, and the sun visor of the vehicle is controlled by the sun visor motor to rotate downward around the X-axis until the absolute value of the difference between the vertical distance between any point on the horizontal boundary of the eye area and the light and shadow dividing line and 1 cm is less than or equal to 1 cm.

[0040] For another example, if the horizontal boundary of the eye area is located at the upper boundary of the eye area, the light and shadow dividing line is bright at the top and dark at the bottom, and the light and shadow dividing line is located 3 centimeters below the horizontal boundary of the eye area, then the vertical distance between any point on the horizontal boundary of the eye area and the light and shadow dividing line is -3 centimeters, and the sun visor of the vehicle is controlled by the sun visor motor to rotate upward around the X-axis until the absolute value of the difference between the vertical distance between any point on the horizontal boundary of the eye area and the light and shadow dividing line and 1 centimeter is less than or equal to 1 centimeter.

[0041] This embodiment controls the vehicle sun visor to rotate around the X-axis so that the distance between the horizontal boundary of the eye area and the light and shadow dividing line meets the first preset distance condition, thereby achieving precise control of the vehicle sun visor when the light and shadow dividing line meets the preset horizontal condition to prevent the driver's eyes from being exposed.

[0042] In one embodiment, the step S30, i.e., controlling the vehicle sun visor to perform a second sunshade operation, includes:

[0043] S301. Control the vehicle sun visor to rotate around the Y axis to adjust the distance between the vertical boundary of the eye area and the light and shadow dividing line to meet a second preset distance condition; the horizontal boundary of the eye area includes a left boundary of the eye area and a right boundary of the eye area, and the second preset distance condition includes: when the facial shadow area is on the left side of the facial bright area, the absolute value of the difference between the distance between the right boundary of the eye area and the light and shadow dividing line and 1 cm is less than or equal to 1 cm; when the facial shadow area is on the right side of the facial bright area, the absolute value of the difference between the distance between the left boundary of the eye area and the light and shadow dividing line and 1 cm is less than or equal to 1 cm. Specifically, the sun visor of the vehicle is controlled to rotate around the Y axis by the sun visor motor so that |B-1|≤1, where B is the distance between the vertical boundary of the eye area and the light and shadow dividing line, that is, the horizontal distance between any point on the vertical boundary of the eye area and the light and shadow dividing line, and the absolute value of the difference between the distance B between the vertical boundary of the eye area and the light and shadow dividing line and 1 cm is less than or equal to 1 cm, and then the sun visor motor is used to control the vehicle sun visor to rotate around the X axis so that the absolute value of the difference between the vertical distance between any point on the horizontal boundary of the eye area and the light and shadow dividing line and 1 cm is less than or equal to 1 cm. If the light and shadow dividing line is dark on the left and bright on the right, the vertical boundary of the eye area is the right boundary of the eye area; if the light and shadow dividing line is bright on the left and dark on the right, the vertical boundary of the eye area is the left boundary of the eye area.

[0044] S302. Control the vehicle sun visor to rotate around the X-axis to adjust the distance between the horizontal boundary of the eye area and the light and shadow dividing line to meet a first preset distance condition; the horizontal boundary of the eye area includes an upper boundary of the eye area and a lower boundary of the eye area, and the first preset distance condition includes: when the facial shadow area is above the facial bright area, the absolute value of the difference between the distance between the lower boundary of the eye area and the light and shadow dividing line and 1 cm is less than or equal to 1 cm; when the facial shadow area is below the facial bright area, the absolute value of the difference between the distance between the upper boundary of the eye area and the light and shadow dividing line and 1 cm is less than or equal to 1 cm.

[0045] For example, if the vertical boundary of the eye area is located at the right boundary of the eye area, the light and shadow dividing line is dark on the left and bright on the right, and the light and shadow dividing line is located 3 cm to the left of the vertical boundary of the eye area, then the horizontal distance between any point on the vertical boundary of the eye area and the light and shadow dividing line is -3 cm, and the sun visor of the vehicle is controlled by the sun visor motor to rotate left and right around the Y axis until the absolute value of the difference between the horizontal distance between any point on the vertical boundary of the eye area and the light and shadow dividing line and 1 cm is less than or equal to 1 cm. At this time, if the light and shadow dividing line in the horizontal direction (dark on the top and bright on the bottom) is located 3 cm above the horizontal boundary of the eye area (located at the lower boundary of the eye area), then the vertical distance between any point on the horizontal boundary of the eye area and the light and shadow dividing line in the horizontal direction is -3 cm, and the sun visor of the vehicle is controlled by the sun visor motor to rotate downward around the X axis until the absolute value of the difference between the vertical distance between any point on the horizontal boundary of the eye area and the light and shadow dividing line in the horizontal direction and 1 cm is less than or equal to 1 cm.

[0046] This embodiment controls the vehicle sun visor to rotate around the Y axis so that the distance between the vertical boundary of the eye area and the light and shadow dividing line meets the second preset distance condition, and then controls the vehicle sun visor to rotate around the X axis so that the distance between the horizontal boundary of the eye area and the light and shadow dividing line meets the first preset distance condition, thereby achieving precise control of the vehicle sun visor when the light and shadow dividing line meets the preset vertical condition to prevent the driver's eyes from being exposed.

[0047] In one embodiment, before step S10, that is, before obtaining the light-shadow boundary line of the face of the person to be identified based on the facial feature information and facial brightness information of the person to be identified, the following steps are included:

[0048] S104, obtaining the current time point, and the weather information and light intensity corresponding to the current coordinate position of the vehicle at the current time point. Understandably, the current coordinate position of the vehicle can be obtained by GPS (Global Positioning System) positioning. The light intensity can be obtained by a light sensor set on the vehicle (such as in front of the vehicle).

[0049] S105: When the current time point is within a preset time period, the weather information indicates that the current time point is sunny, and the light intensity is greater than a preset light threshold, the sunshade function is enabled. It is understandable that the preset time period may be a time period pre-set according to actual conditions. In this embodiment, the preset time period may be a time period between a preset sunrise and a preset sunset at the current coordinate position of the vehicle. The preset light threshold may be a light value pre-set according to actual conditions.

[0050] Specifically, the current time point is obtained, the current coordinate position of the vehicle is obtained through the GPS positioning system, the current weather information is obtained according to the current coordinate position of the vehicle and the current time point, the light intensity is obtained through the light sensor in front of the vehicle, and when the current time point is within the preset time period between sunrise and sunset, the weather information indicates that the current time point is sunny, and the light intensity is greater than the preset light threshold, the sunshade function is enabled; if the current time point is within the preset time period between sunrise and sunset, the weather information indicates that the current time point is sunny, and the light intensity is greater than the preset light threshold, any one of the conditions is not met (that is, the current time point is not within the preset time period between sunrise and sunset, the weather information indicates that the current time point is not sunny, and at least one of the conditions that the light intensity is less than or equal to the preset light threshold is met), there is no need to enable the sunshade function.

[0051] This embodiment obtains the current time point, and the weather information and light intensity corresponding to the current coordinate position of the vehicle at the current time point, and enables the sunshade function when the current time point is within a preset time period, the weather information indicates that the current time point is sunny, and the light intensity is greater than a preset light threshold. This achieves precise control of the sunshade function, and can automatically determine whether the sunshade function needs to be enabled under preset conditions, thereby improving driving comfort and driving safety.

[0052] In one embodiment, the step S10, i.e., obtaining the light-shadow boundary line of the face of the person to be identified according to the facial feature information and facial brightness information of the person to be identified, comprises:

[0053] S106, determining the facial region of the person to be identified based on the facial feature information. It is understandable that the driver monitoring system captures a facial image of the person to be identified (such as the driver), and can analyze and identify the facial feature information in the facial image through face recognition technology, thereby determining the specific location corresponding to the facial region of the person to be identified.

[0054] S107, determining whether there is obvious illumination on the face of the person to be identified according to the facial brightness information corresponding to the facial region. It can be understood that when the brightness value corresponding to the facial region is greater than or equal to a preset brightness threshold and the illuminated range is greater than or equal to a preset range threshold, it is considered that there is obvious illumination.

[0055] S108. When there is obvious light on the face of the person to be identified, determine whether there is a light-shadow boundary on the face of the person to be identified based on the brightness information corresponding to the facial area.

[0056] S109: When there is a light-shadow boundary on the face of the person to be identified, obtain position information of the light-shadow boundary in the face area. It can be understood that the position information may be information indicating the horizontal or vertical position of the light-shadow boundary.

[0057] This embodiment determines the facial area of ​​the person to be identified based on facial feature information, determines whether there is obvious light on the face of the person to be identified based on facial brightness information corresponding to the facial area, and when there is obvious light on the face of the person to be identified, obtains whether there is a light-shadow boundary line on the face of the person to be identified based on the brightness information corresponding to the facial area, and when there is a light-shadow boundary line on the face of the person to be identified, obtains the position information of the light-shadow boundary line in the facial area, thereby achieving accurate recognition and positioning of the light-shadow boundary line, ensuring subsequent accurate control of the sunshade operation, and improving the accuracy of the sunshade operation.

[0058] In one embodiment, after step S107, that is, after determining whether there is obvious light on the face of the person to be identified according to the facial brightness information corresponding to the facial area, the method further includes:

[0059] S1071. When there is no obvious light on the face of the person to be identified, control the vehicle sun visor to reset. It can be understood that when the brightness value corresponding to the facial area is less than a preset brightness threshold and the illuminated range is less than a preset range threshold, it is considered that there is no obvious light. Resetting can be controlling the sun visor to return to the initial position.

[0060] This embodiment controls the vehicle sun visor to reset when there is no obvious light on the face of the person to be identified, so that the sun visor can automatically reset when the driver is not affected by light, thereby improving the intelligence of the sun visor and driving comfort.

[0061] In one embodiment, after step S108, that is, after determining whether there is a light-shadow boundary line on the face of the person to be identified according to the brightness information corresponding to the facial area, the method further includes:

[0062] S1081. When there is no light-shadow dividing line on the face of the person to be identified, the vehicle sun visor is controlled to rotate around the X-axis until the light-shadow dividing line appears on the face of the person to be identified, and the position information of the light-shadow dividing line in the face area is obtained; or when the vehicle sun visor rotates to the extreme position, the vehicle sun visor is controlled to reset. It can be understood that the extreme position can be the maximum position that the vehicle sun visor can reach by rotating left or right around the X-axis.

[0063] Specifically, when there is obvious illumination on the face of the person to be identified, but there is no light-shadow dividing line on the face of the person to be identified, it means that there is illumination on the entire face of the person to be identified. At this time, the person to be identified needs to be shaded, so it is necessary to control the vehicle sun visor to rotate around the X-axis through the sun visor motor. At this time, if a light-shadow dividing line appears on the face of the person to be identified, it means that the vehicle sun visor can already cover part of the face of the person to be identified, so the position information of the light-shadow dividing line in the facial area can be obtained, and then subsequent operations are performed, that is, the above steps S20 or S30 and subsequent operations are performed. When the vehicle sun visor rotates to the extreme position around the X-axis, there is still no light-shadow dividing line on the face of the person to be identified, which means that the vehicle sun visor cannot play a sunshade role at any angle in the current state (or the obvious illumination on the face is not the sunlight outside the car). At this time, the vehicle sun visor is controlled to return to the initial position and wait for the next adjustment.

[0064] This embodiment controls the vehicle sun visor to rotate around the X-axis until a light-shadow dividing line appears on the face of the person to be identified when there is obvious light on the face of the person to be identified, but there is no light-shadow dividing line on the face of the person to be identified, and obtains the position information of the light-shadow dividing line in the facial area, thereby ensuring that the driver controls the vehicle sun visor to block the light outside the vehicle when affected by the light outside the vehicle, thereby confirming the position of the light-shadow dividing line, improving the subsequent precise control of the sunshade operation, and enhancing driving safety. At the same time, if the light-shadow dividing line still does not appear on the face of the person to be identified when the vehicle sun visor is rotated to the extreme position, the vehicle sun visor is directly controlled to reset, preventing the driver from misjudging the sunshade operation when affected by non-external light, causing the vehicle sun visor to affect the driver's field of vision, and improving the intelligence of the sun visor control.

[0065] In one embodiment, after step S10, that is, after obtaining the light and shadow boundary line of the face of the person to be identified according to the facial feature information and facial brightness information of the person to be identified, the following steps are included:

[0066] S110, obtaining position and direction information of the light-shadow dividing line. Understandably, the position and direction information may be the position of the light-shadow dividing line in the facial region, the angle between the light-shadow dividing line on the face and the horizontal line, and the like.

[0067] S111. When the position direction information indicates that the angle between the light-shadow dividing line and the horizontal line is less than or equal to a preset angle, confirm that the light-shadow dividing line meets the preset horizontal condition. It is understandable that the preset angle can be an angle value pre-set according to actual conditions. In this embodiment, the preset angle is 45 degrees, that is, when the angle between the light-shadow dividing line and the horizontal line is less than or equal to 45 degrees, the light-shadow dividing line meets the preset horizontal condition.

[0068] S112: When the position direction information indicates that the angle between the light-shadow dividing line and the horizontal line is greater than the preset angle, confirm that the light-shadow dividing line meets the preset vertical condition. In this embodiment, the preset angle is 45 degrees, that is, when the angle between the light-shadow dividing line and the horizontal line is greater than 45 degrees, the light-shadow dividing line meets the preset vertical condition.

[0069] This embodiment obtains the position and direction information of the light and shadow dividing line, and confirms that the light and shadow dividing line meets the preset horizontal condition when the position and direction information indicates that the angle between the light and shadow dividing line and the horizontal line is less than or equal to the preset angle; and confirms that the light and shadow dividing line meets the preset vertical condition when the position and direction information indicates that the angle between the light and shadow dividing line and the horizontal line is greater than the preset angle, thereby realizing the classification of the position of the light and shadow dividing line, ensuring that the light and shadow dividing lines obtained at different positions can all perform subsequent matching shading operations, thereby improving the intelligence of the sun visor control and the accuracy of the shading operation.

[0070] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0071] In one embodiment, a vehicle sun visor control device is provided, and the vehicle sun visor control device corresponds one-to-one to the vehicle sun visor control method in the above embodiment. Figure 1 As shown, the vehicle sun visor control device includes a light-shadow boundary line acquisition module 10, a horizontal adjustment module 20 and a vertical adjustment module 30. Each functional module is described in detail as follows:

[0072] The light-shadow boundary line acquisition module 10 is used to acquire the light-shadow boundary line of the face of the person to be identified according to the facial feature information and facial brightness information of the person to be identified;

[0073] A horizontal adjustment module 20, configured to control the vehicle sun visor to perform a first sunshade operation when the light-shadow dividing line meets a preset horizontal condition, so as to adjust the distance between the horizontal boundary of the eye area and the light-shadow dividing line to meet a first preset distance condition;

[0074] The vertical adjustment module 30 is used to control the vehicle sun visor to perform a second sunshade operation when the light-shadow dividing line meets a preset vertical condition, so as to adjust the distance between the vertical boundary of the eye area and the light-shadow dividing line to meet a second preset distance condition.

[0075] Preferably, the light-shadow boundary line acquisition module 10 includes:

[0076] A brightness value acquisition unit, used to acquire a first facial brightness value of the person to be identified located on a first side of the light-shadow dividing line and a second facial brightness value located on a second side of the light-shadow dividing line;

[0077] A first bright area determination unit is used to determine, when the first facial brightness value is greater than the second facial brightness value, that the facial area of ​​the person to be identified that is located on the first side of the light-shadow dividing line is a facial bright area; and the facial area of ​​the person to be identified that is located on the second side of the light-shadow dividing line is a facial shadow area;

[0078] The second bright area determination unit is used to determine that the facial area of ​​the person to be identified located on the second side of the light and shadow dividing line is a facial bright area, and the facial area of ​​the person to be identified located on the first side of the light and shadow dividing line is a facial shadow area when the first facial brightness value is less than the second facial brightness value.

[0079] Preferably, the level adjustment module 20 includes:

[0080] A first preset distance unit is used to control the vehicle sun visor to rotate around the X-axis to adjust the distance between the horizontal boundary of the eye area and the light and shadow dividing line to meet a first preset distance condition; the horizontal boundary of the eye area includes an upper boundary of the eye area and a lower boundary of the eye area, and the first preset distance condition includes: when the facial shadow area is above the facial bright area, the absolute value of the difference between the distance between the lower boundary of the eye area and the light and shadow dividing line and 1 cm is less than or equal to 1 cm; when the facial shadow area is below the facial bright area, the absolute value of the difference between the distance between the upper boundary of the eye area and the light and shadow dividing line and 1 cm is less than or equal to 1 cm.

[0081] Preferably, the vertical adjustment module 30 comprises:

[0082] a second preset distance unit, for controlling the vehicle sun visor to rotate around the Y axis, so as to adjust the distance between the vertical boundary of the eye area and the light-shadow dividing line to satisfy a second preset distance condition; the horizontal boundary of the eye area includes a left boundary of the eye area and a right boundary of the eye area, and the second preset distance condition includes: when the facial shadow area is on the left side of the facial bright area, the distance between the right boundary of the eye area and the light-shadow dividing line has an absolute value of a difference of 1 cm less than or equal to 1 cm; when the facial shadow area is on the right side of the facial bright area, the distance between the left boundary of the eye area and the light-shadow dividing line has an absolute value of a difference of 1 cm less than or equal to 1 cm;

[0083] A first preset distance satisfaction unit is used to control the vehicle sun visor to rotate around the X-axis to adjust the distance between the horizontal boundary of the eye area and the light and shadow dividing line to satisfy the first preset distance condition; the horizontal boundary of the eye area includes the upper boundary of the eye area and the lower boundary of the eye area, and the first preset distance condition includes: when the facial shadow area is above the facial bright area, the absolute value of the difference between the distance between the lower boundary of the eye area and the light and shadow dividing line and 1 cm is less than or equal to 1 cm; when the facial shadow area is below the facial bright area, the absolute value of the difference between the distance between the upper boundary of the eye area and the light and shadow dividing line and 1 cm is less than or equal to 1 cm.

[0084] Preferably, the light-shadow boundary line acquisition module 10 includes:

[0085] An enabling condition acquisition unit is used to acquire the current time point, and the weather information and light intensity corresponding to the current coordinate position of the vehicle at the current time point;

[0086] The function enabling unit is used to enable the sunshade function when the current time point is within a preset time period, the weather information indicates that the current time point is sunny, and the light intensity is greater than a preset light threshold.

[0087] Preferably, the light-shadow boundary line acquisition module 10 includes:

[0088] A facial region determination unit, configured to determine the facial region of the person to be identified according to the facial feature information;

[0089] A lighting judgment unit, used to determine whether there is obvious lighting on the face of the person to be identified according to the facial brightness information corresponding to the facial area;

[0090] A cut-off line judgment unit, used for obtaining whether there is a light-shadow dividing line on the face of the person to be identified according to the brightness information corresponding to the facial area when there is obvious light on the face of the person to be identified;

[0091] The position information acquisition unit is used to acquire the position information of the light-shadow boundary line in the facial area when there is a light-shadow boundary line on the face of the person to be identified.

[0092] The above-mentioned illumination judgment unit comprises:

[0093] The no-light control subunit is used to control the vehicle sun visor to reset when there is no obvious light on the face of the person to be identified.

[0094] The above-mentioned cut-off line judgment unit comprises:

[0095] The no-cutoff-line control subunit is used to control the vehicle sun visor to rotate around the X-axis when there is no light-shadow dividing line on the face of the person to be identified, until the light-shadow dividing line appears on the face of the person to be identified, and obtain the position information of the light-shadow dividing line in the facial area; or until the vehicle sun visor rotates to the extreme position, control the vehicle sun visor to reset.

[0096] Preferably, the light-shadow boundary line acquisition module 10 includes:

[0097] A position and direction acquisition unit, used for position and direction information of the light and shadow boundary line;

[0098] A horizontal condition judgment unit, configured to confirm that the light-shadow dividing line meets a preset horizontal condition when the position direction information indicates that the angle between the light-shadow dividing line and the horizontal line is less than or equal to a preset angle;

[0099] The vertical condition judgment unit is used to confirm that the light and shadow dividing line meets the preset vertical condition when the position direction information indicates that the angle between the light and shadow dividing line and the horizontal line is greater than the preset angle.

[0100] The specific definition of the vehicle sun visor control device can be found in the definition of the vehicle sun visor control method above, which will not be repeated here. Each module in the above-mentioned vehicle sun visor control device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0101] In one embodiment, a vehicle is provided that includes a control module for a sun visor motor.

[0102] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program is used by a processor to execute the steps of the above-mentioned vehicle sun visor control method.

[0103] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0104] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0105] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A vehicle sun visor control method, characterized in that: include: Obtaining a light-shadow boundary line on the face of the person to be identified based on facial feature information and facial brightness information of the person to be identified; When the light-shadow dividing line meets a preset horizontal condition, controlling the vehicle sun visor to perform a first sunshade operation to adjust the distance between the horizontal boundary of the eye area and the light-shadow dividing line to meet a first preset distance condition; When the light-shadow dividing line meets a preset vertical condition, the vehicle sun visor is controlled to perform a second sunshade operation to adjust the distance between the vertical boundary of the eye area and the light-shadow dividing line to meet a second preset distance condition.

2. The vehicle sun visor control method according to claim 1, characterized in that: After obtaining the light and shadow boundary line of the face of the person to be identified according to the facial feature information and facial brightness information of the person to be identified, the method further includes: Acquire a first facial brightness value of the person to be identified located on a first side of the light-shadow dividing line and a second facial brightness value located on a second side of the light-shadow dividing line; When the first facial brightness value is greater than the second facial brightness value, determining that the facial area of ​​the person to be identified located on the first side of the light-shadow dividing line is a facial bright area, and the facial area of ​​the person to be identified located on the second side of the light-shadow dividing line is a facial shadow area; When the first facial brightness value is less than the second facial brightness value, the facial area of ​​the person to be identified located on the second side of the light and shadow dividing line is determined to be a bright facial area, and the facial area of ​​the person to be identified located on the first side of the light and shadow dividing line is determined to be a shadow facial area.

3. The vehicle sun visor control method according to claim 2, characterized in that: The controlling the vehicle sun visor to perform a first sunshade operation comprises: The vehicle sun visor is controlled to rotate around the X-axis to adjust the distance between the horizontal boundary of the eye area and the light and shadow dividing line to meet a first preset distance condition; the horizontal boundary of the eye area includes an upper boundary of the eye area and a lower boundary of the eye area, and the first preset distance condition includes: when the facial shadow area is above the facial bright area, the absolute value of the difference between the distance between the lower boundary of the eye area and the light and shadow dividing line and 1 cm is less than or equal to 1 cm; when the facial shadow area is below the facial bright area, the absolute value of the difference between the distance between the upper boundary of the eye area and the light and shadow dividing line and 1 cm is less than or equal to 1 cm.

4. The vehicle sun visor control method according to claim 1, characterized in that: The controlling the vehicle sun visor to perform a second sunshade operation comprises: The vehicle sun visor is controlled to rotate around the Y axis to adjust the distance between the vertical boundary of the eye area and the light-shadow dividing line to meet a second preset distance condition; the horizontal boundary of the eye area includes a left boundary of the eye area and a right boundary of the eye area, and the second preset distance condition includes: when the facial shadow area is on the left side of the facial bright area, the absolute value of the difference between the distance between the right boundary of the eye area and the light-shadow dividing line and 1 cm is less than or equal to 1 cm; when the facial shadow area is on the right side of the facial bright area, the absolute value of the difference between the distance between the left boundary of the eye area and the light-shadow dividing line and 1 cm is less than or equal to 1 cm; The vehicle sun visor is controlled to rotate around the X-axis to adjust the distance between the horizontal boundary of the eye area and the light and shadow dividing line to meet a first preset distance condition; the horizontal boundary of the eye area includes an upper boundary of the eye area and a lower boundary of the eye area, and the first preset distance condition includes: when the facial shadow area is above the facial bright area, the absolute value of the difference between the distance between the lower boundary of the eye area and the light and shadow dividing line and 1 cm is less than or equal to 1 cm; when the facial shadow area is below the facial bright area, the absolute value of the difference between the distance between the upper boundary of the eye area and the light and shadow dividing line and 1 cm is less than or equal to 1 cm.

5. The vehicle sun visor control method according to claim 1, characterized in that: Before obtaining the light and shadow boundary line of the face of the person to be identified based on the facial feature information and facial brightness information of the person to be identified, the method includes: Obtain the current time point, as well as the weather information and light intensity corresponding to the current coordinate position of the vehicle at the current time point; When the current time point is within a preset time period, the weather information indicates that the current time point is sunny, and the light intensity is greater than a preset light threshold, the sunshade function is enabled.

6. The vehicle sun visor control method according to claim 1, characterized in that: The step of obtaining the light-shadow boundary line of the face of the person to be identified according to the facial feature information and the facial brightness information includes: Determining a facial region of the person to be identified according to the facial feature information; Determining whether there is obvious light on the face of the person to be identified according to the facial brightness information corresponding to the facial area; When there is obvious light on the face of the person to be identified, obtaining whether there is a light-shadow boundary line on the face of the person to be identified according to the brightness information corresponding to the facial area; When there is a light-shadow boundary line on the face of the person to be identified, position information of the light-shadow boundary line in the facial area is obtained.

7. The vehicle sun visor control method according to claim 6, characterized in that: After determining whether there is obvious light on the face of the person to be identified according to the facial brightness information corresponding to the facial area, the method further includes: When there is no obvious light on the face of the person to be identified, the vehicle sun visor is controlled to reset.

8. The vehicle sun visor control method according to claim 6, characterized in that: After determining whether there is a light-shadow boundary line on the face of the person to be identified according to the brightness information corresponding to the facial area, the method further includes: When there is no light-shadow dividing line on the face of the person to be identified, the vehicle sun visor is controlled to rotate around the X-axis until the light-shadow dividing line appears on the face of the person to be identified, and the position information of the light-shadow dividing line in the facial area is obtained; or until the vehicle sun visor is rotated to the extreme position, the vehicle sun visor is controlled to reset.

9. The vehicle sun visor control method according to claim 1, characterized in that: After obtaining the light and shadow boundary line of the face of the person to be identified according to the facial feature information and the facial brightness information, the method includes: Obtaining position and direction information of the light-shadow dividing line; When the position direction information indicates that the angle between the light-shadow dividing line and the horizontal line is less than or equal to a preset angle, confirming that the light-shadow dividing line meets a preset horizontal condition; When the position direction information indicates that the angle between the light-shadow dividing line and the horizontal line is greater than the preset angle, it is confirmed that the light-shadow dividing line meets the preset vertical condition.

10. A vehicle sun visor control device, characterized in that: include: A light-shadow boundary line acquisition module, used to acquire the light-shadow boundary line on the face of the person to be identified based on the facial feature information and facial brightness information of the person to be identified; A horizontal adjustment module, used for controlling the vehicle sun visor to perform a first sunshade operation when the light-shadow dividing line meets a preset horizontal condition, so as to adjust the distance between the horizontal boundary of the eye area and the light-shadow dividing line to meet a first preset distance condition; The vertical adjustment module is used to control the vehicle sun visor to perform a second sunshade operation when the light-shadow dividing line meets a preset vertical condition, so as to adjust the distance between the vertical boundary of the eye area and the light-shadow dividing line to meet a second preset distance condition.

11. A vehicle, comprising a control module for a sun visor motor, characterized in that: The control module is used to execute the vehicle sun visor control method as described in any one of claims 1 to 9.

12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the vehicle sun visor control method according to any one of claims 1 to 9 is implemented.