Vehicle sun shield control method and system, electronic equipment and vehicle
By obtaining the human eye coordinates and eyelid opening and closing distances of people in the vehicle and adjusting the visor parameters, the problem of low automation level of existing vehicles is solved, and a better shading experience is achieved.
Patent Information
- Application Number
- CN202411655294.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2025-02-21
- 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 in different scenarios, resulting in poor sunshade experience for drivers and passengers.
By obtaining the human eye coordinates and eyelid opening and closing distances of people in the vehicle, adjusting the visor parameters according to the mapping relationship, real-time adjustment of the visor is achieved. The specific steps include obtaining the initial human eye coordinates and eyelid opening and closing distance, adjusting the sun visor, and repeating the adjustment process until the set conditions are met.
The automation level of sun visors has been improved, which can better adapt to the needs of drivers and passengers and provide a better sunshade experience.
Smart Images

Figure CN119489667A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle intelligent control, and in particular to a vehicle sun visor control method, system, electronic equipment and vehicle. Background Art
[0002] With the continuous development of the automobile industry and the increasing maturity of automobile technology, automobiles have become an indispensable means of transportation for people to travel. When driving a vehicle, in order to avoid direct sunlight from the driver's eyes, affecting the driving safety of the vehicle, and at the same time increase the driving comfort of the driver and passengers, a sun visor is installed in the car to block the sunlight from entering the car.
[0003] At present, common vehicle sun visors include two types: manual sun visors and automatic sun visors. Among them, manual sun visors require the driver and passenger to manually unfold or retract the curtain, which is extremely inconvenient to use. At present, there are sun visors that can be adjusted automatically on the market, but the existing automatic sun visors cannot be adjusted in real time during the process of realizing automatic sun shading. The driver and passenger need to actively adjust the sun visor according to their own needs. The automatic sun visor receives the user's control instructions, such as receiving the remote control signal sent from the remote control or voice control and other active control methods to increase or reduce the sun shading area of the sun visor. Its automation level needs to be improved. At present, there are also automatic sun visors equipped with external light sensing devices to provide signal parameters for sun shading adjustment control on the market, but the above-mentioned automatic sun visors are not equipped with specific and detailed algorithms and control models to realize the follow-up control of the sun visor. It is difficult to adjust the sun shading area of the sun visor in real time according to the needs of the driver and passenger in different scenarios, so it is difficult to provide the driver and passenger with a better sun shading experience. Summary of the invention
[0004] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a vehicle sun visor control method, system, electronic device and vehicle, which are used to solve the problems in the prior art that the sun visor has a low level of automation and is difficult to provide a good sunshade experience for the driver and passengers.
[0005] To achieve the above objectives and other related objectives, the present invention provides a vehicle sun visor control method, comprising:
[0006] S110: acquiring eye coordinates and eyelid opening and closing distance of a person at a preset position in the vehicle, obtaining first eye coordinates and eyelid opening and closing distance of the first eye, and when the eyelid opening and closing distance of the first eye is less than the set eyelid opening and closing distance of the eye, obtaining the set sun visor parameters according to the first eye coordinates and a pre-set mapping relationship between the first eye coordinates and the set sun visor parameters, and adjusting the sun visor based on the set sun visor parameters;
[0007] S120: After adjusting the sun visor, the eyelid opening and closing distance of the person in the vehicle is obtained again to obtain the eyelid opening and closing distance of the second person's eye, if the eyelid opening and closing distance of the second person's eye is greater than or equal to the set eyelid opening and closing distance of the human eye, then the shielding area of the sun visor is reduced according to the first preset adjustment amount, if the eyelid opening and closing distance of the second person's eye is less than the set eyelid opening and closing distance of the human eye, then the shielding area of the sun visor is increased according to the second preset adjustment amount;
[0008] S130: repeating step S120 until the eyelid opening and closing distance of the second 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 eye, or the eyelid opening and closing distance of the second 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 eye;
[0009] The set sun visor parameters for each eye coordinate are position parameters of the sun visor at which the sun visor is maintained for the longest time at each eye coordinate.
[0010] In an exemplary embodiment, after 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 the pre-set mapping relationship between the first human eye coordinates and the set sun visor parameters, the method includes:
[0011] 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;
[0012] When the sun visor opening instruction is to confirm opening the sun visor, the set sun visor parameters are obtained according to the first human eye coordinates and a preset mapping relationship between the first human eye coordinates and the set sun visor parameters;
[0013] When the sun visor opening instruction is not to open the sun visor, the sun visor does not move.
[0014] In an exemplary embodiment, 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, it includes:
[0015] Increasing the shielding area of the sun visor according to the first preset adjustment amount;
[0016] Start timing, obtain the current sun visor parameters, and obtain the current eye coordinates and the current eyelid opening and closing distance of the person in the vehicle in real time, 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, then stop timing, and the timing duration is the comparison duration;
[0017] Based on the mapping relationship between the current eye coordinates and the basic duration for setting the sun visor parameters, the basic duration is obtained. When the basic duration is less than the comparison duration, the current sun visor parameters are used as new sun visor parameters, and the comparison duration is used as the new basic duration.
[0018] In an exemplary embodiment, 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:
[0019] 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;
[0020] 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.
[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 the maximum setting value and the current human eyelid opening and closing distance is less than the set human eyelid opening and closing distance, the seat position is adjusted 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.
[0023] In an exemplary embodiment, when the current sun visor parameter of the sun visor is the maximum setting value, the current human eye eyelid opening and closing distance is less than the set human eye eyelid opening and closing distance, and the seat position is adjusted to the maximum adjustment value, the current human eye eyelid opening and closing distance is obtained, and when the current human eye eyelid opening and closing distance is greater than or equal to the set human eye eyelid opening and closing distance, steps S110 to S130 are executed.
[0024] The present invention provides a vehicle sun visor control system, comprising:
[0025] A coarse adjustment module, used for executing the above-mentioned step S110 to obtain the eye coordinates and eyelid opening and closing distance of the person in the vehicle, obtaining the first eye coordinates and the first eyelid opening and closing distance, and when the first eyelid opening and closing distance is less than the 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 the set sun visor parameters, and adjusting the sun visor based on the set sun visor parameters;
[0026] A fine-tuning module, for performing the above-mentioned step S120 to adjust the sun visor, and then obtaining the eyelid opening and closing distance of the person in the vehicle again to obtain the eyelid opening and closing distance of the second person's eye, and if the eyelid opening and closing distance of the second person's eye is greater than or equal to the set eyelid opening and closing distance of the human eye, then reducing the shielding area of the sun visor according to the first preset adjustment amount, and if the eyelid opening and closing distance of the second person's eye is less than the set eyelid opening and closing distance of the human eye, then increasing the shielding area of the sun visor according to the second preset adjustment amount;
[0027] An analysis and judgment module is used to repeat step S120 as described above 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.
[0028] The present invention provides an electronic device, comprising a memory and a processor, wherein the processor is used to implement the vehicle sun visor control method as described above when executing a computer management program stored in the memory.
[0029] The present invention provides a vehicle, comprising the vehicle sun visor control method as described above.
[0030] As described above, the vehicle sun visor control method, system, electronic device and vehicle of the present invention have the following beneficial effects: at the beginning of the adjustment, the sun visor is adjusted based on the set sun visor parameters, and the position parameters of the sun visor that is maintained for the longest time are used as the set sun visor parameters corresponding to the human eye coordinates. In the process of the driver and passenger using the sun visor, the set sun visor parameters of the sun visor corresponding to the human eye coordinates can be continuously optimized, so as to better meet the use needs of the driver and passenger when the sun visor is opened. At the same time, in the process of adjusting the sun visor, by comparing the eyelid opening and closing distance of the second human eye with the eyelid opening and closing distance of the set human eye, the sun visor parameters of the sun visor can be corrected on the basis of adjusting the sun visor with the set sun visor parameters, so as to better meet the needs of the driver and passenger. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 Shown is a flow chart of a vehicle sun visor control method according to an exemplary embodiment of the present application.
[0032] Figure 2 Shown is a schematic structural diagram of a vehicle retractable sun visor according to an exemplary embodiment of the present application.
[0033] Figure 3 Shown is a schematic structural diagram of a vehicle rotating sun visor according to an exemplary embodiment of the present application.
[0034] Figure 4 Shown is a block diagram of a vehicle sun visor control system according to an exemplary embodiment of the present application.
[0035] Figure 5 The structure of the computer system shown is suitable for implementing the electronic device of the embodiment of the present application.
[0036] Explanation of numbers: 1. Front windshield; 2. Retractable sun visor; 3. Human eyes; 4. Rotating sun visor. DETAILED DESCRIPTION
[0037] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.
[0038] See also Figures 1 to 5 It should be noted that the diagrams provided in the present embodiment only illustrate the basic concept of the present invention in a schematic manner, so the diagrams only show the components related to the present invention rather than drawing according to the number, shape and size of the components in actual implementation. The type, quantity and proportion of each component in actual implementation can be changed at will, and the component layout type may also be more complicated. The structure, proportion, size, etc. shown in the drawings attached to this specification are only used to match the content disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions that the present invention can be implemented, so they have no technical substantive significance. Any modification of the structure, change of the proportional relationship or adjustment of the size should still fall within the scope of the technical content disclosed by the present invention without affecting the effect and purpose that the present invention can produce. At the same time, the terms such as "upper", "lower", "left", "right", "middle" and "one" quoted in this specification are only for the convenience of description, and are not used to limit the scope of the implementation of the present invention. The change or adjustment of the relative relationship should also be regarded as the scope of the implementation of the present invention without substantially changing the technical content.
[0039] Before introducing this application, the background of the application of this method is introduced first. The vehicle is provided with a front windshield 1 for the driver to observe the road ahead and drive the vehicle safely. The eyes 3 of the drivers and passengers in the driver's seat and the co-pilot seat are close to the front windshield 1. Therefore, when the sun is strong, the sunlight is easy to directly hit the driver's eyes, affecting driving safety and the driving experience of the drivers and passengers. A sun visor is respectively provided for the driver's seat and the co-pilot seat at the front windshield 1 to prevent the sun from directly hitting the eyes of the drivers and passengers. However, the current degree of automation of vehicle sun visors is not high, resulting in poor experience of the drivers and passengers using the sun visors. Therefore, this application is proposed. The details of this application are as follows:
[0040] See also Figures 1 to 3 The present invention provides a vehicle sun visor control method, comprising:
[0041] Step S110: Obtain the eye coordinates and eyelid opening and closing distance of a person at a preset position in the vehicle, and obtain the first eye coordinates and the first eyelid opening and closing distance. When the first eyelid opening and closing distance is less than the set eyelid opening and closing distance, obtain the set sun visor parameters based on the first eye coordinates and the mapping relationship between the pre-set first eye coordinates and the set sun visor parameters. Adjust the sun visor based on the set sun visor parameters. The set sun visor parameters for each eye coordinate are the position parameters of the sun visor that maintains the longest time at each eye coordinate.
[0042] It should be noted that a sun visor is respectively provided for the driver's seat and the co-pilot seat in the vehicle, and each sun visor has a preset position for shading. The preset position of the sun visor for blocking sunlight at the driving seat is the driving seat, and the preset position personnel of the above sun visor are the driver and passenger located on the driving seat; the preset position of the sun visor for blocking sunlight at the co-pilot seat is the co-pilot seat, and the preset position personnel of the above sun visor are the driver and passenger located on the co-pilot seat.
[0043] It can be understood that the sun visor is adjusted based on the set sun visor parameters. By taking the position parameters of the sun visor that is maintained for the longest time as the set sun visor parameters corresponding to the human eye coordinates, the set sun visor parameters of the sun visor corresponding to the human eye coordinates can be continuously optimized during the process of the driver and passengers using the sun visor, so as to better adapt to the usage needs of the driver and passengers when the sun visor is opened.
[0044] In an exemplary embodiment, when the eyelid opening and closing distance of the first eye is less than the set eyelid opening and closing distance of the eye, before obtaining the set sun visor parameters based on the first eye coordinates and the mapping relationship between the pre-set first eye coordinates and the set sun visor parameters, steps S210 and S220 are included.
[0045] Step S210: obtaining a sun visor opening instruction; the sun visor opening instruction includes confirming to open the sun visor and not to open the sun visor.
[0046] Step S220: When the sun visor adjustment instruction is to confirm opening the sun visor, the sun visor is adjusted based on the set sun visor parameters; when the sun visor adjustment instruction is not to open the sun visor, the sun visor does not move.
[0047] It is understandable that the purpose of obtaining the sun visor adjustment instruction is to prevent the driver and passenger from having difficulty in opening and closing the eyelids to the set eyelid opening and closing distance due to their own reasons. Therefore, when the eyes of the above-mentioned driver and passenger are not exposed to light, the eyelid opening and closing distance of the first eye is still less than the set eyelid opening and closing distance. By obtaining the driver and passenger's sun visor adjustment instruction, it can be determined whether the driver and passenger need to open the sun visor at this time, so as to improve the applicability and comfort of the driver and passenger when using the sun visor.
[0048] In an exemplary embodiment, when the eyelid opening and closing distance of the current person's eye is less than the set eyelid opening and closing distance of the person's eye, a voice message is activated in the vehicle to ask "Do you need to open the sun visor?" The driver and passenger can answer "yes" or "no". When the answer is "yes", the sun visor is opened for sunshade, and when the answer is "no", the sun visor is not opened for sunshade. In another exemplary embodiment, when the eyelid opening and closing distance of the first person's eye is less than the set eyelid opening and closing distance of the person's eye, the button on the dashboard in the vehicle that controls the opening of the sun visor flashes a prompt light to prompt the driver and passenger whether to open the sun visor. The driver and passenger can open the sun visor by clicking the button, or after waiting for a preset time, if the driver and passenger does not click the button to confirm opening the sun visor, the system defaults that the driver and passenger does not need to open the sun visor.
[0049] In an exemplary embodiment, the set eye-lid distance can be modified by the driver and passenger according to their own characteristics. For example, if the driver and passenger's own eye-lid distance is small, the set eye-lid distance can be appropriately reduced; if the driver and passenger's own eye-lid distance is large, the set eye-lid distance can be appropriately increased. In another exemplary embodiment, after the driver and passenger sit down in the car, the vehicle will start face recognition to identify the eye position and facial features. Different drivers and passengers can be identified through facial feature recognition. According to the current driver and passenger's sun visor opening instruction, the current eyelid opening and closing distance and the set eyelid opening and closing distance, the set eyelid opening and closing distance values of different drivers and passengers are continuously optimized, and different set eyelid opening and closing distances are set for different drivers and passengers. For example, when the first eyelid opening and closing distance of a certain driver and passenger is L1, the set eyelid opening and closing distance is L2, and L1 is smaller than L2, when the sun visor opening instruction obtained at this time is not to open the sun visor, it can be considered that the currently set eyelid opening and closing distance L2 is not suitable for the above-mentioned driver and passenger, and the set eyelid opening and closing distance of the driver and passenger is adjusted to L1; when the first eyelid opening and closing distance of another driver and passenger is L3, the set eyelid opening and closing distance is L2, and L3 is smaller than L2, when the sun visor opening instruction obtained at this time is to open the sun visor, it can be determined that the current set eyelid opening and closing distance L2 is suitable for the driver and passenger, and the set eyelid opening and closing distance of the driver and passenger is not adjusted.
[0050] In an exemplary embodiment, the height of the vehicle is used as the coordinate Z axis, and the length direction of the whole vehicle is used as the coordinate X axis to establish a coordinate system. The coordinate system uses a driver with a height of 160 to 180 cm as a model to obtain the value range of the coordinate Z axis, and the adjustment range of the front and rear of the seat is used as a reference standard to obtain the value range of the coordinate X axis. It can be seen that when there are drivers and passengers on the vehicle seat, the current human eye coordinates, such as (Z1, X1), can be obtained through the above coordinate system. In another exemplary embodiment, in order to reduce the number of coordinate points and data storage in the coordinate system to speed up data processing efficiency, 100 reference coordinate points are selected in the above coordinate system as the set human eye coordinates for calibration and storage of data to reduce the amount of stored data. The coordinate Z axis and X axis in the above coordinate system are divided into 10 equal parts, so that in the above coordinate system, there are 100 reference coordinate points, and the above reference coordinate points are set human eye coordinates. Each set human eye coordinate has a corresponding set sun visor parameter and a basic duration corresponding to the set sun visor parameter. If the eye 3 of the driver or passenger is not located at the above 100 reference coordinate points, the reference coordinate point closest to the eye position of the driver or passenger is selected. For example, the eye coordinates of the driver or passenger are (Z, X), and the coordinates of the four reference coordinate points around it are (Z1, X1), (Z2, X2), (Z3, X3) and (Z4, X4), respectively. ΔS1, ΔS2, ΔS3 and ΔS4 can be obtained. By comparing the sizes of the above four numbers, the reference coordinate point closest to the current eye coordinates can be found as the first eye coordinates to adjust the sun visor. If the current eye coordinates have two closest reference coordinate points, that is, the distances from the coordinate point of the current eye coordinates to the two reference coordinate points are the same, and compared with the other two reference coordinate points, the distance to the current eye coordinates is closer, and the reference coordinate point closest to the coordinate origin is selected as the first eye coordinates; if the distances from the current eye coordinates to the four close reference coordinate points are the same, the reference coordinate point closest to the coordinate origin is selected as the first eye coordinates. If the eye coordinates are located in an area outside the above coordinate system, the closest reference coordinate point is used as the current eye coordinates.
[0051] Step S120: After adjusting the sun visor, obtain the eyelid opening and closing distance of the person in the vehicle again to obtain the eyelid opening and closing distance of the second person's eye. If the eyelid opening and closing distance of the second person's eye is greater than or equal to the set eyelid opening and closing distance of the human eye, reduce the blocking area of the sun visor according to the first preset adjustment amount. If the eyelid opening and closing distance of the second person's eye is less than the set eyelid opening and closing distance of the human eye, increase the blocking area of the sun visor according to the second preset adjustment amount.
[0052] It is understandable that during the day, due to the different angles of sunlight, the sun visor requires different sun visor parameters. Therefore, 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 achieved the shading effect, and the eyelid opening and closing distance of the second human eye is greater than or equal to the set eyelid opening and closing distance of the human eye. 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 requires larger sun visor parameters to achieve better shading effect. At this time, the eyelid opening and closing distance of the second human eye may be less than the set eyelid opening and closing distance of the human eye. Further, after adjusting the sun visor based on the set sun visor parameters, when the eyelid opening and closing distance of the second person's eye is greater than or equal to the set eyelid opening and closing distance of the person's eye, it means that the current sun visor has a sunshade effect, but the sun visor parameters of the current sun visor may be appropriate, but may also be larger, that is, the sun visor parameters of the sun visor at this time may make the sun visor have an excessively large sunshade area, and the above-mentioned excessive sunshade area is obtained at the expense of the driver and passengers' field of vision, so the blocking area of the sun visor is reduced by the first preset adjustment amount each time to obtain more appropriate sun visor parameters; after adjusting the sun visor based on the set sun visor parameters, when the eyelid opening and closing distance of the second person's eye is greater than or equal to the set eyelid opening and closing distance of the person's eye, it means that the current sun visor does not provide effective sunshade, so the blocking area of the sun visor is increased by the second preset adjustment amount until the eyelid opening and closing distance of the second person's eye is greater than or equal to the set eyelid opening and closing distance of the person's eye, and the current sun visor parameters are stopped to achieve sunshade.
[0053] In an exemplary embodiment, after adjusting the sun visor based on the set sun visor parameters, if 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, then after waiting for a preset interval time, the sun visor's shielding area is reduced by a first preset adjustment amount; if 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, then after waiting for a preset interval time, the sun visor's shielding area is reduced by the first preset adjustment amount until the second eyelid opening and closing distance is less than the set eyelid opening and closing distance of the human eye. By setting a preset interval time, frequent adjustment of the sun visor can be avoided, which affects the driving experience of the driver and passengers. The preset adjustment amount can be adjusted according to the needs of the driver and passengers.
[0054] In an exemplary 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 extension amount of the telescopic sun visor 2 by multiplying the extension speed and the extension time. It should be noted that the extension speed here should be uniform extension. Or, the telescopic sun visor 2 can obtain the extension amount of the telescopic sun visor 2 through a sensor. The first preset adjustment amount of the telescopic sun visor 2 is the extension amount of the sun visor when the extension length of the sun visor is reduced each time, and the second preset adjustment amount of the telescopic sun visor 2 is the extension amount of the sun visor when the extension length of the sun visor is increased each time. The first preset adjustment amount and the second preset adjustment amount can be manually adjusted by the driver and the passenger according to their own requirements to better adapt to the use habits of the driver and the passenger. In another exemplary embodiment, the sun visor is a rotating sun visor 4, and the sun visor parameter is the sun visor rotation amount. The first preset adjustment amount is the rotation amount of the sun visor when the rotation angle of the sun visor is reduced each time. It can be understood that when the sun visor is a rotating sun visor 4, the rotation angle is calculated with the starting position of the rotating sun visor 4 as the rotation zero point, the rotation direction of the rotating sun visor 4 increasing the sunshade area is positive, that is, increasing the sun visor parameter is to increase the sunshade area of the sun visor, and the rotation direction of the sunshade area decreasing is negative, that is, reducing the sun visor parameter is to reduce the sunshade area of the sun visor. It should be noted that the rotating sun visor 4 will have a sunshade area only after it is rotated a certain angle after opening, and the rotation angle interval in which the rotating sun visor 4 has a sunshade area is the effective rotation angle interval, and the above-mentioned increase or decrease of the sun visor parameters to adjust the sunshade area of the sun visor occurs within the above-mentioned effective rotation angle interval.
[0055] Step S130: Repeat step S120 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.
[0056] In an exemplary embodiment, 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, the process includes step S310, step S320 and step S330.
[0057] Step S310: increasing the shielding area of the sun visor according to a first preset adjustment amount.
[0058] Step S320: Start timing, obtain the current sun visor parameters, and obtain the current eye coordinates and the current eyelid opening and closing distance of the person in the vehicle in real time, 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 the preset threshold, then stop timing, and the timing duration is the comparison duration.
[0059] Step S330: Based on the current eye coordinates and the mapping relationship between the current eye coordinates and the basic duration for setting the sun visor parameters, the basic duration is obtained. When the basic duration is less than the comparison duration, the current sun visor parameters are used as new sun visor parameters, and the comparison duration is used as the new basic duration.
[0060] By using the position parameters of the sun visor that is maintained for the longest time as the set sun visor parameters corresponding to the human eye coordinates, the set sun visor parameters of the sun visor corresponding to the human eye coordinates can be continuously optimized during the process of the driver and passengers using the sun visor, so as to better adapt to the usage needs of the driver and passengers when the sun visor is opened.
[0061] By setting a preset threshold, it is possible to avoid the situation where the timing stops when there is a slight change in the human eye 2, thereby generating too much invalid data. Similarly, by selecting 100 reference coordinate points in the above coordinate system to set the human eye coordinates, this also has the same intention as setting a preset threshold.
[0062] Step S130: Repeat step S120 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.
[0063] In an exemplary embodiment, 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, step S410 is also included.
[0064] Step S410: If the current eyelid opening and closing distance is less than the set eyelid opening and closing distance, increase the blocking area of the sun visor according to the second preset adjustment amount until the current eyelid opening and closing distance is greater than or equal to the set eyelid opening and closing distance; if the difference between the current eye coordinates and the first eye coordinates is greater than the 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 setting value and the current human eyelid opening and closing distance is less than the set human eyelid opening and closing distance, the seat position is adjusted 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.
[0066] In an exemplary embodiment, the sun visor is a retractable sun visor 2, and the retractable sun visor 2 has a maximum extension, and the maximum setting value is the maximum extension. When the current human eyelid opening and closing distance is less than the set human eyelid opening and closing distance, and the retractable sun visor 2 is extended to the maximum extension, it means that it is difficult to meet the sunshade requirements by adjusting the sun visor alone, so the corresponding seat position is adjusted along the X direction away from the sun visor. When the current human eyelid opening and closing distance is greater than or equal to the set human eyelid opening and closing distance, stop adjusting the seat position to avoid direct sunlight into the eyes of the driver and passengers. In another exemplary embodiment, the sun visor is a rotating sun visor 4, and the rotating sun visor 4 has a maximum rotation angle, and the maximum setting value is the maximum rotation angle. When the current human eyelid opening and closing distance is less than the set human eyelid opening and closing distance, and the rotating sun visor 4 rotates to the maximum rotation angle, it means that it is difficult to meet the sunshade requirements by adjusting the sun visor alone, so by adjusting the corresponding seat position along the X direction away from the sun visor, when the current human eyelid opening and closing distance is greater than or equal to the set human eyelid opening and closing distance, stop adjusting the seat position to avoid direct sunlight on the eyes of the driver and passengers. In another exemplary embodiment, 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, the current human eyelid opening and closing distance is obtained, and when the current human eyelid opening and closing distance is greater than or equal to the set human eyelid opening and closing distance, steps S110 to S130 are performed. If the seat needs to be adjusted manually, when the current sun visor parameter of the sun visor is the maximum setting value, and the current eyelid opening and closing distance of the human eye is less than the set eyelid opening and closing distance, the driver and passenger are reminded by voice in the car: "The sun visor has reached the maximum adjustment limit, please adjust the seat manually", the driver and passenger may be sleeping at this time, the sun visor maintains the current position, and collects the current eyelid opening and closing distance of the human eye in real time, and when the current eye 3 opening and closing distance of the driver and passenger 3 is greater than or equal to the set eyelid opening and closing distance, execute steps S110 to S130. In this way, when the driver and passenger are resting, the sun visor can provide the largest shielding area, ensuring that the driver and passenger have a resting space with good light shielding in the car.
[0067] In an exemplary embodiment, if the eye coordinates and eyelid opening and closing distance of the person at the preset position in the vehicle cannot be obtained, it is deemed that the driver and passenger at the preset position have left the seat, and the sun visor automatically returns to the closed state. That is, if the sun visor is a retractable sun visor 2, the sun visor is retracted to the closed state; if the sun visor is a rotating sun visor 4, the sun visor is rotated to the closed state.
[0068] In an exemplary embodiment, the visor closing instruction from the driver and passenger is obtained to close the visor. For example, the driver and passenger can close the visor through instructions such as "close the driver's seat visor", "close the co-pilot seat visor", "close all visors", etc. In another exemplary embodiment, the seat at the preset position corresponding to the sun visor can sense whether the driver and passenger have left the seat. If the driver and passenger leave the seat at the preset position, the sun visor will be closed. The seat can sense whether the driver and passenger are sitting on the seat through gravity sensing, etc., to determine whether the driver and passenger have left the seat. In other exemplary embodiments, the driver and passenger can close the corresponding sun visor by pressing a specific button on the vehicle's central control screen. The method of closing the sun visor can be adjusted according to the usage requirements of the driver and passenger.
[0069] In summary, at the beginning of the adjustment, the sun visor is adjusted based on the set sun visor parameters. By taking the position parameters of the sun visor that has been maintained for the longest time as the set sun visor parameters corresponding to the human eye coordinates, the set sun visor parameters of the sun visor corresponding to the human eye coordinates can be continuously optimized during the process of the driver and passengers using the sun visor, so as to better meet the use needs of the driver and passengers when the sun visor is opened. In the process of adjusting the sun visor, by comparing the eyelid opening and closing distance of the second human eye with the eyelid opening and closing distance of the set human eye, the sun visor parameters of the sun visor can be corrected on the basis of adjusting the sun visor with the set sun visor parameters, so as to better meet the needs of the driver and passengers.
[0070] See also Figure 4 The present invention provides a vehicle sun visor control system, comprising:
[0071] A coarse adjustment module, for executing step S110 as described above to obtain the eye coordinates and eyelid opening and closing distance of the person in the vehicle, to obtain the first eye coordinates and the first eyelid opening and closing distance, and when the first eyelid opening and closing distance is less than the set eyelid opening and closing distance, to obtain the set sun visor parameters according to the first eye coordinates and the mapping relationship between the pre-set first eye coordinates and the set sun visor parameters, and to adjust the sun visor based on the set sun visor parameters;
[0072] The fine-tuning module 420 is used to, after executing the above-mentioned step S120 to adjust the sun visor, obtain the eyelid opening and closing distance of the person in the vehicle again to obtain the eyelid opening and closing distance of the second person's eye, if the eyelid opening and closing distance of the second person's eye is greater than or equal to the set eyelid opening and closing distance of the human eye, then reduce the shielding area of the sun visor according to the first preset adjustment amount, if the eyelid opening and closing distance of the second person's eye is less than the set eyelid opening and closing distance of the human eye, then increase the shielding area of the sun visor according to the second preset adjustment amount;
[0073] The analysis and judgment module 430 is used to repeat the step S120 as described above 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.
[0074] The coarse adjustment module 410 can obtain the eye coordinates and eyelid opening and closing distance of the person in the vehicle through face recognition, and obtain the first eye coordinates and the first eyelid opening and closing distance. In an exemplary embodiment, the height of the vehicle is used as the coordinate Z axis, and the length direction of the whole vehicle is used as the coordinate X axis to establish a coordinate system. The coordinate system uses a driver and passenger with a height of 160 to 180 cm as a model to obtain the value range of the coordinate Z axis, and uses the front and rear adjustment range of the seat as a reference standard to obtain the value range of the coordinate X axis. The coordinate Z axis and X axis in the above coordinate system are divided into 10 equal parts, so that in the above coordinate system, there are 100 reference coordinate points, and the above reference coordinate points are set eye coordinates. By obtaining the eye coordinates of the person in the vehicle, the reference coordinate point closest to the eye coordinates is found as the first eye coordinates, and the sun visor is adjusted based on the set sun visor parameters, so that when the driver and passenger at the preset position have slight changes in their body, frequent adjustment of the sun visor can be avoided.
[0075] Since the direction of sunlight exposure is different at different times, the fine-tuning module 420 reduces the blocking area of the sun visor according to the first preset adjustment amount, or increases the blocking area of the sun visor according to the second preset adjustment amount to adapt to sunlight exposure at different angles. In conjunction with the analysis and judgment module 430, suitable sun visor parameters can be found, and the position parameters of the sun visor maintained the longest are used as the set sun visor parameters corresponding to the human eye coordinates. During the process of the driver and passengers using the sun visor, the set sun visor parameters of the sun visor corresponding to the human eye coordinates can be continuously optimized, so as to better adapt to the usage needs of the driver and passengers when the sun visor is opened.
[0076] The present invention provides an electronic device, comprising a memory and a processor, wherein the processor is used to implement the vehicle sun visor control method as described above when executing a computer management program stored in the memory.
[0077] Figure 5 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 5 The computer system 500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0078] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the method in the above embodiment. In the RAM 503, various programs and data required for system operation are also stored. The CPU 501, the ROM 502 and the RAM 503 are connected to each other through the bus 504. The 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 section 507 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.
[0080] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 509, and / or installed from a removable medium 511. When the computer program is executed by a 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 embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0082] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0083] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0084] The present invention provides a vehicle, comprising the vehicle sun visor control method as described above.
[0085] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A vehicle sun visor control method, characterized in that: include: S110: acquiring eye coordinates and eyelid opening and closing distance of a person at a preset position in the vehicle, obtaining first eye coordinates and eyelid opening and closing distance of the first eye, and when the eyelid opening and closing distance of the first eye is less than the set eyelid opening and closing distance of the eye, obtaining the set sun visor parameters according to the first eye coordinates and a pre-set mapping relationship between the first eye coordinates and the set sun visor parameters, and adjusting the sun visor based on the set sun visor parameters; S120: After adjusting the sun visor, the eyelid opening and closing distance of the person in the vehicle is obtained again to obtain the eyelid opening and closing distance of the second person's eye, if the eyelid opening and closing distance of the second person's eye is greater than or equal to the set eyelid opening and closing distance of the human eye, then the shielding area of the sun visor is reduced according to the first preset adjustment amount, if the eyelid opening and closing distance of the second person's eye is less than the set eyelid opening and closing distance of the human eye, then the shielding area of the sun visor is increased according to the second preset adjustment amount; S130: repeating step S120 until the eyelid opening and closing distance of the second 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 eye, or the eyelid opening and closing distance of the second 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 eye; The set sun visor parameters for each eye coordinate are position parameters of the sun visor at which the sun visor is maintained for the longest time at each eye coordinate.
2. The vehicle sun visor control method according to claim 1, characterized in that: After 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 the pre-set 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, the set sun visor parameters are obtained 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 according to the first preset adjustment amount is less than the set eyelid opening and closing distance of the human eye, it includes: 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 the current eyelid opening and closing distance of the person in the vehicle in real time, 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, then stop timing, and the timing duration is the comparison duration; Based on the mapping relationship between the current eye coordinates and the basic duration for setting the sun visor parameters, the basic duration is obtained. When the basic duration is less than the comparison duration, the current sun visor parameters are used as new 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 setting 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, and 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, for executing step S110 in claim 1 to obtain eye coordinates and eyelid opening and closing distance of a person in a 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 the set sun visor parameters, and adjust the sun visor based on the set sun visor parameters; A fine-tuning module, for executing step S120 in claim 1 to adjust the sun visor, and then obtaining the eyelid opening and closing distance of the person in the vehicle again to obtain the eyelid opening and closing distance of the second person's eye, and if the eyelid opening and closing distance of the second person's eye is greater than or equal to the set eyelid opening and closing distance of the human eye, then reducing the shielding area of the sun visor according to the first preset adjustment amount, and if the eyelid opening and closing distance of the second person's eye is less than the set eyelid opening and closing distance of the human eye, then increasing the shielding area of the sun visor according to the 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 each human eye coordinate.
9. An electronic device, characterized in that: It comprises a memory and a processor, wherein the processor is used to implement the vehicle sun visor control method as described in any one of claims 1 to 7 when executing a computer management program stored in the memory.
10. A vehicle, characterized in that: It includes a vehicle sun visor control method as described in any one of claims 1-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
Electric sun shield control method, device and equipment and storage medium
CN118478662A
Active dynamic sun visor and method of operation thereof
US20240217317A1
Cited By
Sun shield control method and device, electronic equipment and vehicle
CN121340915A