A vehicle sun visor control method, system, electronic device and vehicle
By obtaining the coordinates of the human eye and the distance between the eyelids and their opening and closing, and using the mapping relationship to optimize the sun visor parameters, the problem of low automation level of existing vehicle sun visors is solved, and the automation and shading experience of the sun visor are improved.
Patent Information
- Application Number
- CN202411655294.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2044-11-19
AI Technical Summary
The automation level of existing vehicle sun visors is not high, and it is difficult to adjust the sunshade area in real time according to the needs of drivers and passengers, resulting in a poor sunshade experience.
By obtaining the eye coordinates and eyelid opening and closing distance of the person in the vehicle, the sun visor parameters are adjusted using the mapping relationship, and the coarse adjustment and fine adjustment modules are combined to optimize the shading area of the sun visor. The setting parameters of the sun visor are continuously optimized based on the mapping relationship between the eye coordinates and the sun visor parameters.
The sun visor can better adapt to the needs of drivers and passengers when opened, and the automation level and sun shading experience of the sun visor are improved.
Smart Images

Figure CN119489667B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent control of vehicles, in particular to a vehicle sun visor control method and system, an electronic device and a vehicle. BACKGROUND
[0002] With the continuous development of the automobile industry, automobile technology is becoming more and more mature, and automobiles have become an indispensable means of transportation for people. In order to avoid the direct sunlight from shining into the driver's eyes and affecting the safety of vehicle driving, and to increase the comfort of driving, a sun visor is provided in the vehicle to block the sunlight from entering the vehicle.
[0003] At present, common vehicle sun visors include two types of manual sun visors and automatic sun visors. Among them, the manual sun visor needs to be manually unfolded or rolled up by the driver, which is extremely inconvenient to use. There are sun visors on the market that can automatically adjust, but the existing automatic sun visors cannot realize real-time adjustment in the process of realizing automatic sun visor, and the driver needs to actively adjust the sun visor according to his own needs. The automatic sun visor realizes the increase or decrease of the sun visor area by receiving the user's control instruction, such as receiving the remote control signal from the remote controller or the voice control active control method, and the automation level needs to be improved. There are also automatic sun visors on the market that are equipped with external light sensing devices to provide signal parameters for sun visor adjustment control, but the above-mentioned automatic sun visors do not have specific detailed algorithms and control models to realize the follow-up control of the sun visor, and it is difficult to adjust the sun visor area in real time according to the needs of the driver in different scenes, so as to bring a better sun visor experience to the driver. SUMMARY
[0004] In view of the above-mentioned shortcomings of the prior art, the purpose of the present application is to provide a vehicle sun visor control method, system, electronic device and vehicle, which can solve the problems of low automation level of the sun visor in the prior art and difficult to bring a better sun visor experience to the driver.
[0005] To achieve the above-mentioned purpose and other related purposes, the present application provides a vehicle sun visor control method, comprising:
[0006] S110: obtaining the human eye coordinates and the human eye eyelid opening distance of the person at a preset position in the vehicle, obtaining the first human eye coordinates and the first human eye eyelid opening distance, when the first human eye eyelid opening distance is less than the set human eye eyelid opening distance, obtaining the set sun visor parameter according to the first human eye coordinates and the preset mapping relationship between the first human eye coordinates and the set sun visor parameter, and adjusting the sun visor based on the set sun visor parameter;
[0007] S120: After adjusting the sun visor, the opening and closing distance of the eyelids of the person in the vehicle is obtained again to obtain a second eye opening and closing distance of the person, and if the second eye opening and closing distance of the person is greater than or equal to the set eye opening and closing distance of the person, the blocking area of the sun visor is reduced by a first preset adjustment amount, and if the second eye opening and closing distance of the person is less than the set eye opening and closing distance of the person, the blocking area of the sun visor is increased by a second preset adjustment amount;
[0008] S130: Repeat step S120 until the second eye opening and closing distance of the person after the blocking area of the sun visor is reduced by the first preset adjustment amount is less than the set eye opening and closing distance of the person, or the second eye opening and closing distance of the person after the blocking area of the sun visor is increased by the second preset adjustment amount is greater than or equal to the set eye opening and closing distance of the person;
[0009] The set sun visor parameter of each eye coordinate is a position parameter of a sun visor that remains at the each eye coordinate for the longest time.
[0010] In an exemplary embodiment, before the set sun visor parameter is obtained according to the first eye coordinate and a preset mapping relationship between the first eye coordinate and the set sun visor parameter after the first eye opening and closing distance of the person is less than the set eye opening and closing distance of the person, the method comprises:
[0011] An opening instruction of the sun visor is obtained, and the opening instruction of the sun visor comprises confirming to open the sun visor and not opening the sun visor;
[0012] When the opening instruction of the sun visor is to confirm to open the sun visor, the set sun visor parameter is obtained according to the first eye coordinate and a preset mapping relationship between the first eye coordinate and the set sun visor parameter;
[0013] When the opening instruction of the sun visor is not to open the sun visor, the sun visor does not act.
[0014] In an exemplary embodiment, after the second eye opening and closing distance of the person after the blocking area of the sun visor is reduced by the first preset adjustment amount is less than the set eye opening and closing distance of the person, the method comprises:
[0015] The blocking area of the sun visor is increased by the first preset adjustment amount;
[0016] Timing is started, a current sun visor parameter is obtained, and a current eye coordinate and a current eye opening and closing distance of a person in the vehicle are obtained in real time, and the timing is stopped when the current eye opening and closing distance of the person is less than the set eye opening and closing distance of the person or a difference between the current eye coordinate and the first eye coordinate is greater than a preset threshold value, and a duration of the timing is a comparison duration;
[0017] Based on the current human eye coordinates and the mapping relationship between the set current human eye coordinates and the set sun visor parameter and the basic time length, a basic time length is obtained. When the basic time length is less than the comparison time length, the current sun visor parameter is taken as a new set sun visor parameter, and the comparison time length is taken as a new basic time length.
[0018] In an exemplary embodiment, until the current human eye eyelid opening distance is less than the set human eye eyelid opening distance or the difference between the current human eye coordinates and the first human eye coordinates is greater than a preset threshold, the method further comprises:
[0019] If the current human eye eyelid opening distance is less than the set human eye eyelid opening distance, the sun visor blocking area is increased by the second preset adjustment amount until the current human eye eyelid opening distance is greater than or equal to the set human eye eyelid opening distance.
[0020] If the difference between the current human eye coordinates and the first human eye coordinates is greater than a preset threshold, steps S110 to S130 are performed.
[0021] In an exemplary embodiment, the sun visor parameter is a sun visor extension length or a sun visor rotation angle.
[0022] In an exemplary embodiment, when the current sun visor parameter of the sun visor is a maximum set value and the current human eye eyelid opening distance is less than the set human eye eyelid opening distance, the seat position is adjusted towards the tail of the vehicle along the length direction of the vehicle until the current human eye eyelid opening distance is greater than or equal to the set human eye eyelid opening distance.
[0023] In an exemplary embodiment, when the current sun visor parameter of the sun visor is a maximum set value, the current human eye eyelid opening distance is less than the set human eye eyelid opening distance, and the seat position is adjusted to a maximum adjustment value, the current human eye eyelid opening distance is obtained. When the current human eye eyelid opening distance is greater than or equal to the set human eye eyelid opening distance, steps S110 to S130 are performed.
[0024] The present application provides a vehicle sun visor control system, comprising:
[0025] The coarse adjustment module is configured to perform step S110 to obtain the human eye coordinates and the human eye eyelid opening distance of the person in the vehicle, to obtain the first human eye coordinates and the first human eye eyelid opening distance. When the first human eye eyelid opening distance is less than the set human eye eyelid opening distance, the set sun visor parameter is obtained based on the first human eye coordinates and the preset mapping relationship between the first human eye coordinates and the set sun visor parameter. The sun visor is adjusted based on the set sun visor parameter.
[0026] The fine adjustment module is used to adjust the sun visor according to step S120, and then the eyelid opening distance of the person in the vehicle is obtained again to obtain a second eyelid opening distance of the person, if the second eyelid opening distance of the person is greater than or equal to the set eyelid opening distance of the person, the shielding area of the sun visor is reduced by a first preset adjustment amount, and if the second eyelid opening distance of the person is less than the set eyelid opening distance of the person, the shielding area of the sun visor is increased by a second preset adjustment amount.
[0027] The analysis and determination module is used to repeat step S120 until the second eyelid opening distance of the person after the shielding area of the sun visor is reduced by the first preset adjustment amount is less than the set eyelid opening distance of the person, or the second eyelid opening distance of the person after the shielding area of the sun visor is increased by the second preset adjustment amount is greater than or equal to the set eyelid opening distance of the person; wherein the set sun visor parameter of each eye coordinate is the position parameter of the sun visor that has the longest retention time at the each eye coordinate.
[0028] The electronic device provided by the application comprises a memory and a processor, and the processor is used to execute the computer management program stored in the memory to realize the vehicle sun visor control method.
[0029] The vehicle provided by the application comprises the vehicle sun visor control method.
[0030] As described above, the vehicle sun visor control method, system, electronic device and vehicle provided by the application have the following beneficial effects: the sun visor is adjusted based on the set sun visor parameter at the beginning of adjustment, the position parameter of the sun visor with the longest retention time is taken as the set sun visor parameter corresponding to the eye coordinate, the set sun visor parameter of the sun visor under the corresponding eye coordinate is continuously optimized in the process that the driver or passenger uses the sun visor, so that the sun visor can better adapt to the use demand of the driver or passenger when the sun visor is opened. Meanwhile, in the process of sun visor adjustment, by comparing the second eyelid opening distance of the person with the set eyelid opening distance of the person, the sun visor parameter of the sun visor is corrected on the basis of adjusting the sun visor according to the set sun visor parameter, so that the needs of the driver or passenger are better met. BRIEF DESCRIPTION OF DRAWINGS
[0031] Figure 1 A flowchart of the vehicle sun visor control method is shown as an exemplary embodiment of the application.
[0032] Figure 2 A structural diagram of a telescopic sun visor of a vehicle is shown as an exemplary embodiment of the application.
[0033] Figure 3 A structural diagram of a rotating sun visor of a vehicle is shown as an exemplary embodiment of the application.
[0034] Figure 4 A block diagram of a vehicle sun visor control system is shown as an example embodiment of the present application.
[0035] Figure 5 A structural diagram of a computer system of an electronic device suitable for implementing embodiments of the present application.
[0036] Reference signs: 1, front windshield; 2, telescopic sun visor; 3, human eye; 4, rotary sun visor. DETAILED DESCRIPTION
[0037] The above embodiments of the present application are shown and described by specific examples, and other advantages and effects of the present application can be easily understood by those skilled in the art from the above description. The present application can also be implemented or applied by other different embodiments, and the details in the present description can be modified or changed based on different views and applications without departing from the spirit of the present application.
[0038] Reference signs: 1, front windshield; 2, telescopic sun visor; 3, human eye; 4, rotary sun visor. Figures 1 to 5 It is to be noted that the drawings provided in the present embodiments only schematically illustrate the basic concept of the present application, and only the components related to the present application are shown in the drawings, not the number, shape and size of the components in actual implementation. The shape, number and proportion of the components in actual implementation can be arbitrarily changed, and the layout pattern of the components can be more complex. The structure, proportion, size, etc. shown in the drawings attached to the present description are only used to understand and read the content disclosed in the present description by those skilled in the art, and are not used to limit the conditions that the present application can be implemented, and therefore do not have technical significance. Any modification of the structure, change of the proportional relationship or adjustment of the size, without affecting the effects and purposes that the present application can produce, should still fall within the scope of the technical content disclosed in the present application. Meanwhile, the terms such as "upper", "lower", "left", "right", "middle" and "one" used in the present description are only for the convenience of understanding and reading, and are not used to limit the scope of the present application, and the change or adjustment of the relative relationship, without substantially changing the technical content, should also be considered as the scope of the present application.
[0039] Before introducing the present application, the background applicable to the method is introduced first. A front windshield 1 is arranged on a vehicle for the driver to observe the front road conditions to drive the vehicle safely. The eyes 3 of the driver and the co-driver on the driver's seat and the co-driver's seat are close to the front windshield 1. Therefore, in the case that the sun is large, the sunlight is easy to directly shoot the eyes of the driver, which affects the driving safety and the driving experience of the driver and the co-driver. A sun visor is arranged at the driver's seat and the co-driver's seat of the front windshield 1 to avoid the sunlight directly shooting the eyes of the driver and the co-driver. However, the current vehicle sun visor is not high in automation, which causes the driver and the co-driver to have a poor experience of using the sun visor. Therefore, the present application is proposed. The detailed content of the present application is as follows:
[0040] Please refer to Figures 1 to 3 The present application provides a vehicle sun visor control method, comprising:
[0041] Step S110: obtaining the eye coordinate and the eye lid opening distance of the person at the preset position in the vehicle to obtain the first eye coordinate and the first eye lid opening distance. When the first eye lid opening distance is less than the set eye lid opening distance, the set sun visor parameter is obtained according to the first eye coordinate and the preset mapping relationship between the first eye coordinate and the set sun visor parameter. The sun visor is adjusted based on the set sun visor parameter. The set sun visor parameter of each eye coordinate is the position parameter of the sun visor that remains the longest at each eye coordinate.
[0042] It should be noted that one sun visor is arranged at the driver's seat and the co-driver's seat in the vehicle respectively. Each sun visor corresponds to a preset position for shading. The preset position of the sun visor for shielding the sunlight at the driver's seat is the driver's seat. The preset position of the sun visor for shielding the sunlight at the co-driver's seat is the co-driver's seat. The preset position of the sun visor is the driver and the co-driver on the driver's seat and the co-driver's seat.
[0043] It can be understood that the sun visor is adjusted based on the set sun visor parameter. By taking the position parameter of the sun visor that remains the longest as the set sun visor parameter corresponding to the eye coordinate, the set sun visor parameter of the sun visor under the corresponding eye coordinate can be continuously optimized in the process that the driver and the co-driver use the sun visor, so that the sun visor can better adapt to the use demand of the driver and the co-driver when the sun visor is opened.
[0044] In an exemplary embodiment, after the first eye lid opening distance is less than the set eye lid opening distance, before the set sun visor parameter is obtained according to the first eye coordinate and the preset mapping relationship between the first eye coordinate and the set sun visor parameter, steps S210 and S220 are included.
[0045] Step S210: Obtain the sun visor opening instruction; the sun visor opening instruction includes confirming to open the sun visor and not opening the sun visor.
[0046] Step S220: When the sun visor adjustment instruction is to confirm to open the sun visor, adjust the sun visor based on the set sun visor parameter; when the sun visor adjustment instruction is not to open the sun visor, the sun visor does not act.
[0047] It can be understood that obtaining the sun visor adjustment instruction is to avoid the driver's eye opening distance being difficult to reach the set eye opening distance due to his own reasons, so the driver's eye opening distance is still less than the set eye opening distance in the absence of light. By obtaining the sun visor adjustment instruction of the driver, it can be determined whether the driver needs to open the sun visor at this time to improve the applicability and comfort of the driver using the sun visor.
[0048] In an exemplary embodiment, when the current eye opening distance is less than the set eye opening distance, the car asks "Do you need to open the sun visor?" by voice, the driver can answer "yes" or "no", and the sun visor is opened when the answer is "yes", and the sun visor is not opened when the answer is "no". In another exemplary embodiment, when the first eye opening distance is less than the set eye opening distance, the button for controlling the opening of the sun visor on the instrument panel flashes to prompt the driver whether to open the sun visor, and the driver can open the sun visor by clicking the button, or after waiting for a preset time, the driver does not click the button to confirm to open the sun visor, and the system defaults that the driver does not need to open the sun visor.
[0049] In an example embodiment, the driver can modify the set eye-lid distance according to his / her own characteristics. For example, if the driver's own eye-lid distance is small, the set eye-lid distance can be appropriately reduced; if the driver's own eye-lid distance is large, the set eye-lid distance can be appropriately increased. In another example embodiment, after the driver sits in the vehicle, the vehicle starts the face recognition work to identify the eye position and the face features. Through the face feature recognition, different drivers can be distinguished, and the set eye-lid distance value of different drivers is continuously optimized according to the sun visor opening instruction of the current driver, the current eye-lid opening distance and the set eye-lid distance, so that different set eye-lid distances are set for different drivers. For example, when the first eye-lid distance of a driver is L1, the set eye-lid distance is L2, and L1 is less than L2, if the obtained sun visor opening instruction is to not open the sun visor, it can be considered that the current set eye-lid distance L2 is not suitable for the driver, and the set eye-lid distance of the driver is adjusted to L1; when the first eye-lid distance of another driver is L3, the set eye-lid distance is L2, and L3 is less than L2, if the obtained sun visor opening instruction is to open the sun visor, it can be considered that the current set eye-lid distance L2 is suitable for the driver, and the set eye-lid distance of the driver is not adjusted.
[0050] In an example embodiment, the height of the vehicle is taken as the coordinate Z-axis, and the length direction of the vehicle is taken as the coordinate X-axis to establish a coordinate system. The coordinate system is modeled on a driver with a height of 160-180 cm to obtain the value range of the coordinate Z-axis, and the adjustment range of the seat before and after is taken as the reference standard to obtain the value range of the coordinate X-axis. Therefore, when there is a driver on the seat of the vehicle, the current eye coordinate can be obtained through the above coordinate system, for example, (Z1, X1). In another example embodiment, in order to reduce the number of coordinate points and the data storage amount in the coordinate system and to speed up the data processing efficiency, 100 reference coordinate points are selected as the set eye coordinates in the above coordinate system for data calibration and storage to reduce the amount of stored data. The coordinate Z-axis and the coordinate X-axis in the above coordinate system are divided into 10 equal parts, so that there are 100 reference coordinate points in the above coordinate system, and the above reference coordinate points are set eye coordinates. Each set eye coordinate has corresponding set sun visor parameters and the basic time length of the corresponding set sun visor parameters. If the driver's eye 3 is not located on the above 100 reference coordinate points, the reference coordinate point closest to the driver's eye position is taken. For example, the driver's eye coordinate is (Z, X), and the coordinates of the four reference coordinate points around it are (Z1, X1), (Z2, X2), (Z3, X3) and (Z4, X4). Through the formula ΔS1, ΔS2, ΔS3 and ΔS4 can be obtained, by comparing the size of the above four numbers, the nearest reference coordinate point to the current eye coordinate can be found as the first eye coordinate to adjust the sun visor. If the current eye coordinate has two nearest reference coordinate points, that is, the distance between the coordinate point of the current eye coordinate and the two reference coordinate points is the same, and compared with the other two reference coordinate points, the distance is close to the current eye coordinate, the reference coordinate point closest to the coordinate origin is selected as the first eye coordinate. If the distance between the current eye coordinate and the four closest reference coordinate points is the same, the reference coordinate point closest to the coordinate origin is selected as the first eye coordinate. If the eye coordinate is located in the area outside the above coordinate system, the nearest reference coordinate point is taken as the current eye coordinate.
[0051] Step S120: After adjusting the sun visor, the eyelid opening distance of the person in the vehicle is obtained again to obtain a second eye eyelid opening distance. If the second eye eyelid opening distance is greater than or equal to the set eye eyelid opening distance, the sun visor area is reduced by the first preset adjustment amount. If the second eye eyelid opening distance is less than the set eye eyelid opening distance, the sun visor area is increased by the second preset adjustment amount.
[0052] It can be understood that, due to the different angles of sunlight during the day, the sun visor parameters required by the sun visor are different, so after adjusting the sun visor based on the set sun visor parameters, if the angle of sunlight is small, that is, the acute angle between the direction of sunlight and the horizontal line is small, the sun visor has reached the sun-shading effect, and the second eye eyelid opening distance is greater than or equal to the set eye eyelid opening distance. If the angle of sunlight is large, that is, the acute angle between the direction of sunlight and the horizontal line is large, the sun visor needs larger sun visor parameters to achieve better sun-shading effect, and at this time the second eye eyelid opening distance can be less than the set eye eyelid opening distance. Further, when the second eye eyelid opening distance is greater than or equal to the set eye eyelid opening distance after adjusting the sun visor based on the set sun visor parameters, it represents that the current sun visor has sun-shading effect, but the sun visor parameters of the current sun visor can be appropriate, but can also be large, that is, the sun visor parameters of the sun visor at this time can make the sun visor have an excessively large sun-shading area, and the above excessively large sun-shading area is at the cost of the loss of the field of view of the driver and passenger, so the sun visor area is reduced by the first preset adjustment amount each time to obtain a more appropriate sun visor parameter. When the second eye eyelid opening distance is greater than or equal to the set eye eyelid opening distance after adjusting the sun visor based on the set sun visor parameters, it represents that the current sun visor does not have effective sun-shading, so the sun visor area is increased by the second preset adjustment amount until the second eye eyelid opening distance is greater than or equal to the set eye eyelid opening distance, and the adjustment of the current sun visor parameter is stopped to achieve sun-shading.
[0053] In an example embodiment, after the sun visor parameter is set, if the current human eye eyelid opening distance is greater than or equal to the set human eye eyelid opening distance, the sun visor blocking area is reduced by a first preset adjustment amount after a preset interval time, if the current human eye eyelid opening distance is greater than or equal to the set human eye eyelid opening distance, the sun visor blocking area is reduced by the first preset adjustment amount after the preset interval time, and so on, until the second human eye eyelid opening distance is less than the set human eye eyelid opening distance. By setting the preset interval time, the frequent adjustment of the sun visor can be avoided, and the driving experience of the driver and passenger can be improved. The preset adjustment amount can be adjusted according to the needs of the driver and passenger.
[0054] In an example embodiment, the sun visor is a telescopic sun visor 2, and the sun visor parameter is the sun visor extension length. The telescopic sun visor 2 can obtain the telescopic sun visor 2 extension amount by the product of the extension speed and the extension time. It should be noted that the extension speed here should be uniform speed. Alternatively, the telescopic sun visor 2 can obtain the telescopic sun visor 2 extension amount by the inductor. The first preset adjustment amount of the telescopic sun visor 2 is the telescopic sun visor 2 extension amount each time the sun visor extension length is reduced, and the second preset adjustment amount of the telescopic sun visor 2 is the telescopic sun visor 2 extension amount each time the sun visor extension length is increased. The first preset adjustment amount and the second preset adjustment amount can be manually adjusted by the driver and passenger according to their own requirements to better adapt to the usage habits of the driver and passenger. In another example embodiment, the sun visor is a rotary sun visor 4, and the sun visor parameter is the sun visor rotation amount. The first preset adjustment amount is the sun visor rotation amount each time the sun visor rotation angle is reduced. It can be understood that when the sun visor is a rotary sun visor 4, the starting position of the rotary sun visor 4 is taken as the rotation zero point to calculate the rotation angle, and the rotation direction in which the sun visor area increases is taken as positive, that is, increasing the sun visor parameter means increasing the sun visor area. The rotation direction in which the sun visor area decreases is taken as negative, that is, reducing the sun visor parameter means reducing the sun visor area. It should be noted that the rotary sun visor 4 will have a sun visor area only after rotating a certain angle after being opened. The rotation angle range in which the rotary sun visor 4 has a sun visor area is the effective rotation angle range. The above increasing or reducing the sun visor parameter to adjust the sun visor area all occur within the above effective rotation angle range.
[0055] Step S130: Repeat step S120 until the second human eye eyelid opening distance after the sun visor blocking area is reduced by the first preset adjustment amount is less than the set human eye eyelid opening distance, or the second human eye eyelid opening distance after the sun visor blocking area is increased by the second preset adjustment amount is greater than or equal to the set human eye eyelid opening distance.
[0056] In an example embodiment, after the second interpalpebral distance of the human eye is less than the set interpalpebral distance of the human eye after the blocking area of the sun visor is reduced by the first preset adjustment amount, steps S310, S320 and S330 are included.
[0057] Step S310: increase the blocking area of the sun visor by the first preset adjustment amount.
[0058] Step S320: start timing, obtain the current sun visor parameter, and obtain the current human eye coordinates and the current interpalpebral distance of the human eye in real time, until the current interpalpebral distance of the human eye is less than the set interpalpebral distance of the human eye or the difference between the current human eye coordinates and the first human eye coordinates is greater than the preset threshold, stop timing, and the timing duration is the comparison duration.
[0059] Step S330: based on the current human eye coordinates and the mapping relationship between the set current human eye coordinates and the base duration of the set sun visor parameter, obtain the base duration, and when the base duration is less than the comparison duration, take the current sun visor parameter as the new set sun visor parameter and take the comparison duration as the new base duration.
[0060] By taking the position parameter of the sun visor with the longest holding time as the set sun visor parameter corresponding to the human eye coordinates, the set sun visor parameter of the sun visor under the corresponding human eye coordinates can be continuously optimized during the use of the sun visor by the driver or passenger, so that the sun visor can better adapt to the use requirements of the driver or passenger when the sun visor is opened.
[0061] By setting the preset threshold, the situation that the timing stops when the human eye 2 has a slight change and too much invalid data is generated can be avoided. Similarly, by selecting 100 reference coordinate points as the set human eye coordinates in the above coordinate system, the same intention as setting the preset threshold is also achieved.
[0062] Step S130: repeat step S120 until the second interpalpebral distance of the human eye is less than the set interpalpebral distance of the human eye after the blocking area of the sun visor is reduced by the first preset adjustment amount, or the second interpalpebral distance of the human eye is greater than or equal to the set interpalpebral distance of the human eye after the blocking area of the sun visor is increased by the second preset adjustment amount.
[0063] In an example embodiment, after the current interpalpebral distance of the human eye is less than the set interpalpebral distance of the human eye or the difference between the current human eye coordinates and the first human eye coordinates is greater than the preset threshold, step S410 is further included.
[0064] Step S410: If the current human eye eyelid opening distance is less than the set human eye eyelid opening distance, increase the sun visor blocking area by a second preset adjustment amount until the current human eye eyelid opening distance is greater than or equal to the set human eye eyelid opening distance; if the difference between the current human eye coordinates and the first human eye coordinates is greater than a preset threshold, execute steps S110 to S130.
[0065] In an exemplary embodiment, when the current sun visor parameter of the sun visor is the maximum set value, and the current human eye eyelid opening distance is less than the set human eye eyelid opening distance, adjust the seat position towards the tail of the vehicle along the length direction of the vehicle until the current human eye eyelid opening distance is greater than or equal to the set human eye eyelid opening distance.
[0066] In an exemplary embodiment, the sun visor is a telescopic sun visor 2, the telescopic sun visor 2 has a maximum extension amount, the maximum set value is the maximum extension amount, when the current human eye eyelid opening distance is less than the set human eye eyelid opening distance, and the telescopic sun visor 2 is extended to the maximum extension amount, it indicates that it is difficult to achieve sunshade requirements by adjusting the sun visor alone, so the corresponding seat position is adjusted in the direction away from the sun visor along the X direction, when the current human eye eyelid opening distance is greater than or equal to the set human eye eyelid opening distance, stop adjusting the seat position, to avoid direct sunlight on the eyes of the driver and passenger. In another exemplary embodiment, the sun visor is a rotary sun visor 4, the rotary sun visor 4 has a maximum rotation angle, the maximum set value is the maximum rotation angle, when the current human eye eyelid opening distance is less than the set human eye eyelid opening distance, and the rotary sun visor 4 is rotated to the maximum rotation angle, it indicates that it is difficult to achieve sunshade requirements by adjusting the sun visor alone, so the corresponding seat position is adjusted in the direction away from the sun visor along the X direction, when the current human eye eyelid opening distance is greater than or equal to the set human eye eyelid opening distance, stop adjusting the seat position, to avoid direct sunlight on the eyes of the driver and passenger. In other exemplary embodiments, when the current sun visor parameter of the sun visor is the maximum set value, the current human eye eyelid opening distance is less than the set human eye eyelid opening distance, and the seat position is adjusted to the maximum adjustment value, the current human eye eyelid opening distance is obtained, when the current human eye eyelid opening distance is greater than or equal to the set human eye eyelid opening distance, execute steps S110 to S130. If the seat needs to be adjusted manually, when the current sun visor parameter of the sun visor is the maximum set value, and the current human eye eyelid opening distance is less than the set human eye eyelid opening distance, the driver and passenger are reminded by sound in the vehicle: "the sun visor has reached the maximum adjustment limit, please manually adjust the seat", at this time the driver and passenger may be sleeping, the sun visor remains at the current position, and the current human eye eyelid opening distance is collected in real time, when the current human eye 3 of the driver and passenger 3 opening distance is greater than or equal to the set human eye eyelid opening distance, execute steps S110 to S130. In this way, the sun visor can provide the maximum blocking area when the driver and passenger are resting, ensuring that the driver and passenger have a good sunshade resting space in the vehicle.
[0067] In an example embodiment, if the eye coordinates of the person at the preset position in the vehicle and the opening and closing distance of the eyelids of the eyes of the person cannot be obtained, it is considered that the driver or passenger at the preset position has left the seat, and the sun visor automatically returns to the unopened state. That is, if the sun visor is a telescopic sun visor 2, the sun visor is retracted to the unopened state; if the sun visor is a rotary sun visor 4, the sun visor is rotated to the unopened state.
[0068] In an example embodiment, the driver or passenger can give a command to close the sun visor, such as a command to close the sun visor of the driver's seat, a command to close the sun visor of the front passenger's seat, a command to close all sun visors, and the like. In another example embodiment, the seat at the preset position corresponding to the sun visor can be used to sense whether the driver or passenger has left the seat. If the driver or passenger has left the seat, the sun visor is closed. The seat can be used to sense whether the driver or passenger is sitting on the seat, such as by using gravity sensing, to determine whether the driver or passenger has left the seat. In other example embodiments, the driver or passenger can use the central control screen in the vehicle to close the corresponding sun visor by pressing a specific button. The manner in which the sun visor is closed can be adjusted according to the needs of the driver or passenger.
[0069] In summary, the sun visor is adjusted based on the set sun visor parameters at the beginning of the adjustment. By using the position parameter of the sun visor with the longest holding time as the set sun visor parameter corresponding to the eye coordinates, the set sun visor parameter of the sun visor at the corresponding eye coordinates can be continuously optimized during the use of the sun visor by the driver or passenger, so that the sun visor can better adapt to the needs of the driver or passenger when the sun visor is opened. During the adjustment of the sun visor, by comparing the second eye opening and closing distance with the set eye opening and closing distance, the sun visor parameters of the sun visor can be corrected based on the adjustment of the sun visor by the set sun visor parameters, thereby better meeting the needs of the driver or passenger.
[0070] See Figure 4 The present application provides a vehicle sun visor control system, comprising:
[0071] The coarse adjustment module is configured to obtain the eye coordinates of the person in the vehicle and the opening and closing distance of the eyelids of the eyes of the person, obtain the first eye coordinates and the first eye opening and closing distance, and obtain the set sun visor parameters based on the first eye coordinates and a preset mapping relationship between the first eye coordinates and the set sun visor parameters when the first eye opening and closing distance is less than the set eye opening and closing distance, and adjust the sun visor based on the set sun visor parameters.
[0072] The fine adjustment module 420 is configured to adjust the sun visor according to the step S120, and then obtain the second eyelid opening distance of the person in the vehicle. If the second eyelid opening distance is greater than or equal to the set eyelid opening distance, the blocking area of the sun visor is reduced by the first preset adjustment amount. If the second eyelid opening distance is less than the set eyelid opening distance, the blocking area of the sun visor is increased by the second preset adjustment amount.
[0073] The analysis and determination module 430 is configured to repeat the step S120 until the second eyelid opening distance after the blocking area of the sun visor is reduced by the first preset adjustment amount is less than the set eyelid opening distance, or the second eyelid opening distance after the blocking area of the sun visor is increased by the second preset adjustment amount is greater than or equal to the set eyelid opening distance. The set sun visor parameter of each eye coordinate is the position parameter of the sun visor with the longest retention time at the eye coordinate.
[0074] The coarse adjustment module 410 can obtain the eye coordinate and the eyelid opening distance of the person in the vehicle through face recognition, and obtain the first eye coordinate and the first eyelid opening distance. In an exemplary embodiment, the height of the vehicle is taken as the coordinate Z axis, and the length direction of the vehicle is taken as the coordinate X axis to establish a coordinate system. The coordinate system is modeled on a driver or passenger with a height of 160 to 180 cm. The value range of the coordinate Z axis is obtained, and the value range of the coordinate X axis is obtained by taking the adjustment range of the seat as a reference standard. The coordinate Z axis and the coordinate X axis in the above coordinate system are divided into 10 equal parts, so that there are 100 reference coordinate points in the above coordinate system. The reference coordinate points are set eye coordinates. By obtaining the eye coordinate of the person in the vehicle, the reference coordinate point closest to the eye coordinate is found as the first eye coordinate. The sun visor is adjusted based on the set sun visor parameter, which can avoid frequent adjustment of the sun visor when the body of the driver or passenger at the preset position has a slight change.
[0075] Because the direction of sunlight is different at different times, the fine adjustment module 420 reduces the blocking area of the sun visor by the first preset adjustment amount or increases the blocking area of the sun visor by the second preset adjustment amount to adapt to the sunlight at different angles. The analysis and determination module 430 can find the appropriate sun visor parameter, and the position parameter of the sun visor with the longest retention time is taken as the set sun visor parameter of the corresponding eye coordinate. The set sun visor parameter of the sun visor at the corresponding eye coordinate can be continuously optimized during the use of the sun visor by the driver or passenger, so that the sun visor can better adapt to the use requirements of the driver or passenger when the sun visor is opened.
[0076] The application provides an electronic device, comprising a memory and a processor, the processor is used for executing a computer management program stored in the memory to realize the vehicle sun visor control method as described above.
[0077] Figure 5 A structural diagram of a computer system of an electronic device suitable for implementing the embodiments of the application is shown. It should be noted that, Figure 5 The computer system 500 of the electronic device shown is only an example and should not impose any limitation on the functions and use range of the embodiments of the application.
[0078] As Figure 5 shown, the computer system 500 comprises a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 502 or programs loaded from a storage portion 508 into a random access memory (RAM) 503, such as performing the methods in the above embodiments. Various programs and data required for system operation are also stored in the RAM 503. The CPU 501, the ROM 502 and the RAM 503 are connected to each other through a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0079] The following components are connected to the I / O interface 505: an input portion 507 comprising a keyboard, a mouse, etc.; an output portion 507 comprising a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 508 comprising a hard disk, etc.; and a communication portion 509 comprising a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication portion 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as required. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is mounted on the drive 510 as required, so that a computer program read therefrom is installed in the storage portion 508 as required.
[0080] In particular, according to embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program comprising computer programs for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by the communication section 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, various functions defined in the system of the present application are executed.
[0081] It should be noted that the computer readable medium shown in the embodiments of the present application can be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may, for example, be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination of the above. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer readable signal medium can include a data signal propagated in a baseband or as a carrier wave in a propagated data signal, in which the computer readable computer program is carried. Such a propagated data signal can take on many forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium can also be any computer readable medium other than the computer readable storage medium that can send, propagate or transfer the program for use by or in connection with the instruction execution system, apparatus or device. The computer program contained on the computer readable medium can be transmitted in any suitable medium, including but not limited to wireless, wired, or the like, or any suitable combination of the above.
[0082] The computer program product of the present application can be a computer program embodied on a non-transitory computer readable medium. The computer program product can also be a propagated signal on a carrier wave.
[0083] The units described in the embodiments of the present application can be implemented by software, or by hardware, or by a combination of software and hardware. The units described can also be implemented in a processor. In some cases, the names of the units do not constitute a limitation on the units themselves.
[0084] The present application provides a vehicle, comprising the vehicle sun visor control method as described above.
[0085] The above embodiments only illustrate the principles and effects of the present application, and are not intended to limit the present application. Any modification or change made by those skilled in the art without departing from the spirit and scope of the present application shall be covered by the claims of the present application.
Claims
1. A vehicle sun visor control method, characterized in that: include: S110: Obtaining eye coordinates and eyelid opening and closing distance of a person at a preset position in the vehicle, obtaining first eye coordinates and the first eyelid opening and closing distance, and when the first eyelid opening and closing distance is less than a set eyelid opening and closing distance, obtaining the set sun visor parameters according to the first eye coordinates and a pre-set mapping relationship between the first eye coordinates and set sun visor parameters, and adjusting the sun visor based on the set sun visor parameters; S120: After adjusting the sun visor, obtaining the eyelid opening and closing distance of the occupant of the vehicle again to obtain the eyelid opening and closing distance of the second eye; if the eyelid opening and closing distance of the second eye is greater than or equal to the set eyelid opening and closing distance of the eye, reducing the shielding area of the sun visor by a first preset adjustment amount; if the eyelid opening and closing distance of the second eye is less than the set eyelid opening and closing distance of the eye, increasing the shielding area of the sun visor by a second preset adjustment amount; S130: Repeat step S120 until the eyelid opening and closing distance of the second person's eye after the shielding area of the sun visor is reduced by the first preset adjustment amount is less than the set eyelid opening and closing distance of the person's eye, or the eyelid opening and closing distance of the second person's eye after the shielding area of the sun visor is increased by the second preset adjustment amount is greater than or equal to the set eyelid opening and closing distance of the person's eye; The set sun visor parameters for each eye coordinate are position parameters of the sun visor at which the sun visor remains at the eye coordinate for the longest time.
2. The vehicle sun visor control method according to claim 1, characterized in that: When the eyelid opening and closing distance of the first human eye is less than the set eyelid opening and closing distance of the human eye, before obtaining the set sun visor parameters according to the first human eye coordinates and a preset mapping relationship between the first human eye coordinates and the set sun visor parameters, the method includes: Obtaining a sun visor opening instruction, wherein the sun visor opening instruction includes confirming to open the sun visor and not to open the sun visor; When the sun visor opening instruction is to confirm opening the sun visor, obtaining the set sun visor parameters according to the first human eye coordinates and a preset mapping relationship between the first human eye coordinates and the set sun visor parameters; When the sun visor opening instruction is not to open the sun visor, the sun visor does not move.
3. The vehicle sun visor control method according to claim 1, characterized in that: Until the eyelid opening and closing distance of the second human eye after the shielding area of the sun visor is reduced by the first preset adjustment amount is less than the set eyelid opening and closing distance of the human eye, comprising: increasing the shielding area of the sun visor according to the first preset adjustment amount; Start timing, obtain the current sun visor parameters, and obtain the current eye coordinates and current eyelid opening and closing distance of the person in the vehicle in real time. When the current eyelid opening and closing distance is less than the set eyelid opening and closing distance or the difference between the current eye coordinates and the first eye coordinates is greater than a preset threshold, stop timing. The timing duration is the comparison duration. Based on the mapping relationship between the current eye coordinates and the set current eye coordinates and the basic duration for setting the sun visor parameters, a basic duration is obtained. When the basic duration is less than the comparison duration, the current sun visor parameters are used as new set sun visor parameters, and the comparison duration is used as the new basic duration.
4. The vehicle sun visor control method according to claim 3, characterized in that: Until the current eyelid opening and closing distance is less than the set eyelid opening and closing distance or the difference between the current eye coordinates and the first eye coordinates is greater than a preset threshold, the method further includes: If the current eyelid opening and closing distance of the human eye is less than the set eyelid opening and closing distance of the human eye, increasing the shielding area of the sun visor according to the second preset adjustment amount until the current eyelid opening and closing distance of the human eye is greater than or equal to the set eyelid opening and closing distance of the human eye; If the difference between the current eye coordinates and the first eye coordinates is greater than a preset threshold, steps S110 to S130 are executed.
5. The vehicle sun visor control method according to any one of claims 1 to 4, characterized in that: The sun visor parameter is the sun visor extension length or the sun visor rotation angle.
6. The vehicle sun visor control method according to claim 3 or 4, characterized in that: When the current sun visor parameter of the sun visor is the maximum set value and the current human eyelid opening and closing distance is less than the set human eyelid opening and closing distance, adjust the seat position along the length direction of the vehicle toward the rear of the vehicle until the current human eyelid opening and closing distance is greater than or equal to the set human eyelid opening and closing distance.
7. The vehicle sun visor control method according to claim 6, characterized in that: When the current sun visor parameter of the sun visor is the maximum setting value, the current human eyelid opening and closing distance is less than the set human eyelid opening and closing distance, and the seat position is adjusted to the maximum adjustment value, obtain the current human eyelid opening and closing distance. When the current human eyelid opening and closing distance is greater than or equal to the set human eyelid opening and closing distance, execute steps S110 to S130.
8. A vehicle sun visor control system, characterized in that: include: a coarse adjustment module, configured to execute step S110 in claim 1 to obtain eye coordinates and eyelid opening and closing distance of a person in the vehicle, obtain first eye coordinates and first eyelid opening and closing distance, and when the first eyelid opening and closing distance is less than a set eyelid opening and closing distance, obtain the set sun visor parameters according to the first eye coordinates and a pre-set mapping relationship between the first eye coordinates and set sun visor parameters, and adjust the sun visor based on the set sun visor parameters; a fine-tuning module for, after executing step S120 of claim 1 to adjust the sun visor, again obtaining the eyelid opening and closing distance of the person in the vehicle to obtain a second eyelid opening and closing distance; if the second eyelid opening and closing distance is greater than or equal to the set eyelid opening and closing distance, then reducing the shielding area of the sun visor by a first preset adjustment amount; and if the second eyelid opening and closing distance is less than the set eyelid opening and closing distance, then increasing the shielding area of the sun visor by a second preset adjustment amount; An analysis and judgment module is used to repeatedly execute step S120 in claim 1 until the eyelid opening and closing distance of the second human eye after the blocking area of the sun visor is reduced by the first preset adjustment amount is less than the set eyelid opening and closing distance of the human eye, or the eyelid opening and closing distance of the second human eye after the blocking area of the sun visor is increased by the second preset adjustment amount is greater than or equal to the set eyelid opening and closing distance of the human eye; wherein the set sun visor parameters of each human eye coordinate are the position parameters of the sun visor that maintains the longest time at the coordinates of each human eye.
9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the processor is used to implement the vehicle sun visor control method according to any one of claims 1 to 7 when executing a computer management program stored in the memory.
10. A vehicle, characterized in that: The method comprises the vehicle sun visor control method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Intelligent sun shading method and system for automobile sun visor, terminal and storage medium
CN114834221A
Sun shield control method and device
CN115771387A