Sun-shading device control method and device

By installing a light sensing device and a camera on the front windshield of the vehicle, the position of the sun visor is automatically adjusted, which solves the visual fatigue and safety hazards caused by direct sunlight in the vehicle, and improves driving safety.

CN118927962APending Publication Date: 2024-11-12DONGFENG MOTOR GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411161341.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

When driving a vehicle, strong sunlight causes visual fatigue and safety hazards for passengers. The manual operation of traditional sun visors is inconvenient, especially when frequent lane changes, which can easily distract attention and affect driving safety.

Method used

By installing a light sensing device on the front windshield of the vehicle, combining the camera to collect passenger images and seat position data, calculate the angle and power of the sunlight, and automatically adjust the position of the sun visor to avoid direct sunlight, and realize automatic control of the sunshade device.

Benefits of technology

It improves driving safety, reduces frequent operation of passengers manually adjusting the sun visor, and avoids visual fatigue and safety hazards caused by sunlight.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118927962A_ABST
    Figure CN118927962A_ABST
Patent Text Reader

Abstract

The invention discloses a sunshade device control method and device, and the method comprises the steps: obtaining a target image, a seat position and the illumination intensity detected by an illumination induction device, and enabling the target image to be an image, collected by a camera, of the eyes of a passenger; calculating power generated by the illumination sensing device at the current moment according to the illumination intensity; if the power is larger than a preset power threshold value, a first theoretical angle, a second theoretical angle and the equivalent height of the human eyes of the passenger are calculated according to the illumination intensity, the power, the target image and the seat position, the first theoretical angle is the included angle between solar rays and the front windshield, and the second theoretical angle is the included angle between the solar rays and the front windshield. The second theoretical angle is the maximum included angle between the solar rays and the front windshield when the solar rays irradiate the eyes of the passenger; and if the first theoretical angle is smaller than the second theoretical angle, the target position of the sun shield is determined according to the equivalent height of the human eyes of the passenger and the first theoretical angle. In this way, the automatic control of the sun-shading device is carried out under the driving conditions of different passengers, the situation that the passengers manually control the sun-shading plate is avoided, and the driving safety is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle control, and in particular to a sunshade device control method and device. Background Art

[0002] When driving, the sunlight shining into the car may change constantly. In many cases, the light through the front windshield is too strong, which may affect the passengers' driving. When the contrast between strong and weak light in the field of view is very high, the human eye cannot distinguish the information of weak light, and the glare makes it difficult to see the driving environment, which can easily cause traffic accidents. At the same time, the sunlight shining into the passengers' eyes can cause visual fatigue and blurred images, which may cause safety hazards. In addition, long-term strong light and glare can easily lead to various eye diseases.

[0003] When using a traditional sun visor, it is often necessary to manually rotate the sun visor body and flip it down to block the light above the driver's eyes and ensure that the passengers can see the situation outside the car clearly. When blocking light is not needed, the sun visor is manually flipped up.

[0004] This method is inconvenient to operate, especially when changing lanes frequently, passengers need to frequently manually adjust the angle of the sun visor, which distracts attention and affects driving safety. Summary of the invention

[0005] In view of the above problems, the present invention is proposed to provide a sunshade device control method and device, which solves the problem of automatic control of the sunshade device under different passenger driving conditions to avoid passengers frequently manually adjusting the sun visor, thereby improving driving safety.

[0006] According to a first aspect of the present invention, a sunshade device control method is provided, which is applied to a target vehicle, wherein a light sensing device is installed on the front windshield of the target vehicle; the method comprises:

[0007] Acquire a target image, a seat position, and the light intensity detected by the light sensing device, wherein the target image is an image of the passenger's eyes captured by a camera;

[0008] Calculating the power generated by the light sensing device at the current moment according to the light intensity;

[0009] If the power is greater than a preset power threshold, a first theoretical angle, a second theoretical angle and an equivalent height of the passenger's eyes are calculated according to the light intensity, the power, the target image and the seat position, wherein the first theoretical angle is the angle between the sun's rays and the front windshield, and the second theoretical angle is the maximum angle between the sun's rays and the front windshield when the sun's rays irradiate the passenger's eyes;

[0010] If the first theoretical angle is smaller than the second theoretical angle, the target position of the sun visor is determined according to the equivalent height of the passenger's eyes and the first theoretical angle.

[0011] Optionally, the calculating the first theoretical angle, the second theoretical angle, and the equivalent height of the passenger's eyes according to the light intensity, the power, the target image, and the seat position includes:

[0012] Determining a target power-angle relationship from preset power-angle relationships according to the light intensity;

[0013] Determining a first theoretical angle according to the target power-angle relationship and the power;

[0014] Determining the equivalent height of the passenger's eyes according to the target image and the seat position;

[0015] According to the equivalent height, based on a preset height angle relationship table, a second theoretical angle corresponding to the equivalent height is determined, wherein the height angle relationship table includes a target equivalent height and a theoretical angle corresponding to the target equivalent height.

[0016] Optionally, determining the equivalent height of the passenger's eyes according to the target image and the seat position includes:

[0017] Determining the actual height of the passenger's eyes according to the target image;

[0018] The equivalent height of the passenger's eyes is determined according to the seat position and the actual height of the passenger's eyes.

[0019] Optionally, determining the target position of the sun visor according to the equivalent height of the passenger's eyes and the first theoretical angle includes:

[0020] Determining a target number of running steps of the motor according to the equivalent height of the passenger's eyes and the first theoretical angle;

[0021] According to the target running steps of the motor, the motor movement is controlled to drive the sun visor to reach the target position.

[0022] Optionally, controlling the movement of the motor according to the target number of running steps of the motor includes:

[0023] Obtaining the current running step number of the motor;

[0024] Determining the rotation direction and the running step number of the motor according to the target running step number and the current running step number, so as to control the movement of the motor;

[0025] According to the target running number of steps, the current running number of steps is updated and stored.

[0026] Optionally, the left side body and the right side body of the target vehicle are respectively equipped with light sensing devices;

[0027] The method further comprises:

[0028] If the left power detected by the light sensor on the left side of the vehicle body is greater than the power detected by the light sensor on the front windshield, the sun visor is controlled to be retracted; or

[0029] If the right side power detected by the light sensing device on the right side of the vehicle body is greater than the power detected by the light sensing device on the front windshield, the sun visor is controlled to be retracted.

[0030] Optionally, if the left power detected by the light sensing device on the left side of the vehicle body is greater than the power detected by the light sensing device on the front windshield, controlling the sun visor to be retracted includes:

[0031] If the left power detected by the light sensing device on the left side of the vehicle body is greater than the power detected by the light sensing device on the front windshield and lasts for a target time, the sun visor is controlled to be retracted.

[0032] According to a second aspect of the present invention, a sunshade control device is provided, which is applied to a target vehicle, wherein a light sensing device is installed on the front windshield of the target vehicle; the method comprises:

[0033] An acquisition module, used to acquire a target image, a seat position, and the light intensity detected by the light sensing device, wherein the target image is an image of a passenger's eyes captured by a camera;

[0034] A power module, used for calculating the power generated by the light sensing device at the current moment according to the light intensity;

[0035] a calculation module, configured to calculate a first theoretical angle, a second theoretical angle and an equivalent height of the passenger's eyes according to the light intensity, the power, the target image and the seat position when the power is greater than a preset power threshold, wherein the first theoretical angle is an angle between the sun's rays and the front windshield, and the second theoretical angle is a maximum angle between the sun's rays and the front windshield when the sun's rays irradiate the passenger's eyes;

[0036] The position control module is used to determine the target position of the sun visor according to the equivalent height of the passenger's eyes and the first theoretical angle when the first theoretical angle is smaller than the sum of the second theoretical angle and the front windshield installation angle.

[0037] According to a third aspect of the present invention, a controller is provided, the controller comprising: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor executing the aforementioned sunshade device control method.

[0038] According to a fourth aspect of the present invention, a target vehicle is provided, the target vehicle comprising a vehicle body and a controller installed in the vehicle body, wherein the controller executes the aforementioned sunshade device control method.

[0039] The above one or more technical solutions in the embodiments of this specification have at least the following technical effects:

[0040] The embodiment of the present specification provides a sunshade control method and device, which obtains a target image, a seat position and the light intensity detected by the light sensing device, wherein the target image is an image of the passenger's eyes captured by a camera; according to the light intensity, the power generated by the light sensing device at the current moment is calculated; if the power is greater than a preset power threshold, the first theoretical angle, the second theoretical angle and the equivalent height of the passenger's eyes are calculated according to the light intensity, the power, the target image and the seat position, wherein the first theoretical angle is the angle between the sun's rays and the front windshield, and the second theoretical angle is the maximum angle between the sun's rays and the front windshield when the sun's rays irradiate the passenger's eyes; if the first theoretical angle is less than the second theoretical angle, the target position of the sun visor is determined according to the equivalent height of the passenger's eyes and the first theoretical angle. In this way, the sunshade is automatically controlled for different passenger driving conditions to avoid the passenger from manually controlling the sun visor and improve driving safety.

[0041] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Also, throughout the accompanying drawings, the same reference figures are used to represent the same components. In the drawings:

[0043] Figure 1 A flow chart of a sunshade device control method in an embodiment of the present invention is shown.

[0044] Figure 2 A schematic diagram of the sun irradiating a target vehicle in an embodiment of the present invention is shown.

[0045] Figure 3 A block diagram of a sunshade device control device in an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0047] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0049] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0050] The embodiment of the present invention provides a sunshade device control method, combined with Figure 1 As shown in the flowchart, the sunshade device control method includes steps 101 to 104:

[0051] Step 101: Acquire a target image, a seat position, and the light intensity detected by the light sensing device, wherein the target image is an image of a passenger's eyes captured by a camera;

[0052] In this embodiment, the target vehicle is a vehicle driven by a passenger. A light sensing device is installed on the front windshield of the target vehicle. The light sensing device is used to monitor the power generated by light. The light sensing device can be a photovoltaic cell device.

[0053] In this embodiment, a camera is installed in the cockpit of the target vehicle, for example, a camera is installed on the A-pillar. The camera is used to take a picture of the passenger in the main driving seat to generate a target image. Generally, if the passenger sits in the main driving seat, the target image taken by the camera contains the passenger's eyes. It is not difficult to understand that due to different heights, different seat positions, and different driving postures of passengers, the positions of the passenger's eyes in the target image are often different.

[0054] The seat position refers to the distance of the driver's seat relative to a reference object, for example, the reference object can be a steering wheel. The seat position can be collected and acquired. There are many seat positions, which are specifically determined by the passenger's adjustment. It should be noted that in this embodiment, the position of the seat closest to the front windshield is set as the calibration position of the seat to facilitate the calibration of other data.

[0055] Step 102: Calculate the power generated by the light sensing device at the current moment according to the light intensity;

[0056] In this embodiment, the light sensing device can detect the sunlight intensity in real time, and then calculate the power generated in n seconds as the power at the current moment. It is not difficult to understand that the greater the sunlight intensity, the greater the calculated power, and the smaller the sunlight intensity, the smaller the calculated power.

[0057] Step 103: If the power is greater than a preset power threshold, a first theoretical angle, a second theoretical angle and an equivalent height of the passenger's eyes are calculated according to the light intensity, the power, the target image and the seat position, wherein the first theoretical angle is the angle between the sun's rays and the front windshield, and the second theoretical angle is the maximum angle between the sun's rays and the front windshield when the sun's rays irradiate the passenger's eyes;

[0058] In this embodiment, the greater the power, the more uncomfortable a person feels under this light. Therefore, this embodiment sets a power threshold, which is obtained by experimental calibration: the target vehicle angle can be adjusted so that the passenger faces the sun, and then the light intensity at this time is recorded, and the position of the light sensing device is adjusted to face the sun, and then to form a preset angle with the sun, for example, 15 degrees, 30 degrees, 45 degrees, 60 degrees, 75 degrees, 90 degrees, etc., and the power corresponding to these angles is obtained, so as to fit a curve of the power-angle relationship, obtain coefficients a, b and c, and thus determine the power P = a*θ 2 +b*θ+c, where θ is the angle between the light sensing device (or the front windshield) and the sunlight. The above steps are then repeated to obtain the power-angle relationship under different light intensities.

[0059] Optionally, when calculating the first theoretical angle and the second theoretical angle, the following steps may be performed:

[0060] Determining a target power-angle relationship from preset power-angle relationships according to the light intensity;

[0061] Determining a first theoretical angle according to the target power-angle relationship and the power;

[0062] Determining the equivalent height of the passenger's eyes according to the target image and the seat position;

[0063] According to the equivalent height, based on a preset height angle relationship table, a second theoretical angle corresponding to the equivalent height is determined, wherein the height angle relationship table includes a target equivalent height and a theoretical angle corresponding to the target equivalent height.

[0064] Among them, combined Figure 2 As shown, the first theoretical angle refers to the angle between the sun's rays and the front windshield. The second theoretical angle is the maximum angle between the sun's rays and the front windshield when the sun's rays hit the passenger's eyes. It can also be interpreted as the line connecting the equivalent height of the passenger's eyes and the upper edge of the front windshield, and the angle between this line and the horizontal line is the second theoretical angle.

[0065] When calculating the first theoretical angle, the corresponding target power angle relationship can be determined from multiple sets of preset power angle relationships according to the light intensity. Then, based on the calculated power, the corresponding first theoretical angle can be determined through the target power angle relationship.

[0066] When calculating the second theoretical angle, it is necessary to first determine the equivalent height of the passenger's eyes. The equivalent height is based on the actual height of the passenger's eyes converted to the height of the calibrated position. Specifically, the position of the seat closest to the front windshield is set as the calibrated position h of the seat, and the corresponding calibrated height can be calculated for the target image taken at this position. During actual driving, the passenger will adjust the seat position, recorded as h1 (for example, with the steering wheel as a reference, h is the distance from the calibrated position of the seat to the steering wheel, and h1 is the distance from the actual position of the seat to the steering wheel). Then, based on the acquired target image, determine the actual height top of the passenger's eyes in the target image, and through the conversion relationship, correspond to the converted height top1=top*h / h1 of the calibrated position. The converted height refers to the height of the passenger's eyes in the target image based on the calibrated position. Then, based on the converted height, determine the equivalent height of the passenger's eyes in the target vehicle.

[0067] After the equivalent height is determined, a second theoretical angle corresponding to the equivalent height is determined based on a preset height angle relationship table, wherein the height angle relationship table includes a target equivalent height and a theoretical angle corresponding to the target equivalent height.

[0068] It should be noted that the height angle relationship table is calibrated based on the seat being in the calibrated position. The target equivalent height is the height of the passenger's eyes at the calibrated position, and the theoretical angle refers to the maximum angle between the sun's rays and the front windshield when the sun's rays can reach the passenger's eyes at the corresponding target equivalent height.

[0069] Step 104: If the first theoretical angle is smaller than the second theoretical angle, the target position of the sun visor is determined according to the equivalent height of the passenger's eyes and the first theoretical angle.

[0070] If the first theoretical angle is less than the second theoretical angle, it means that the sun may shine into the passenger's eyes and make the passenger feel uncomfortable. At this time, the sun visor can be opened to the specified target position to block the light.

[0071] The target position of the visor can be determined by the following steps:

[0072] Determining a target number of running steps of the motor according to the equivalent height of the passenger's eyes and the first theoretical angle;

[0073] According to the target running steps of the motor, the motor movement is controlled to drive the sun visor to reach the target position.

[0074] In this embodiment, the target running steps of the motor corresponding to different passenger eye heights are calibrated at the calibration position based on the first theoretical angle. The target running steps of the motor refer to the number of steps the motor needs to run when adjusting the sun visor from the initial position to the target position. It should be noted that the sun visor may be already opened in a certain position, or it may be folded, that is, in the initial position. Therefore, the current running steps of the motor are obtained; according to the target running steps and the current running steps, the rotation direction and running steps of the motor are determined to control the movement of the motor; and according to the target running steps, the current running steps are updated and stored.

[0075] The current running step number refers to the stored step number of the motor's last movement. The step number value can be positive or negative, and the positive or negative value is related to the running direction of the motor. The direction and number of steps that the motor needs to run can be determined by subtracting the current running step number from the target running step number of the motor, thereby controlling the sun visor to reach the target position. The sun visor can be a rotating sun visor or a curtain-type sun visor, which is not limited in this embodiment.

[0076] In addition, when a passenger drives the target vehicle, the target vehicle is not traveling in a fixed direction. It is possible that the sun's rays directly hit the passenger, or that the sun's rays hit the passenger from the left or right side. When the sun's rays are at a large angle, it is not necessary to use a sun visor. Therefore, in this embodiment, light sensors are installed on the left and right sides of the target vehicle respectively.

[0077] The method further comprises:

[0078] If the left power detected by the light sensor on the left side of the vehicle body is greater than the power detected by the light sensor on the front windshield, the sun visor is controlled to be retracted; or

[0079] If the right side power detected by the light sensing device on the right side of the vehicle body is greater than the power detected by the light sensing device on the front windshield, the sun visor is controlled to be retracted.

[0080] Since the target vehicle may turn frequently in some driving routes (for example, in city streets, the road is short and there are many traffic lights, so the vehicle may turn continuously; or in mountain roads, continuous turns may occur in a short period of time), in order to avoid frequent adjustment of the sun visor in a short period of time (i.e., opening and closing multiple times in a short period of time), this embodiment controls the sun visor to be retracted when the left power detected by the light sensing device on the left side of the vehicle body is greater than the power detected by the light sensing device on the front windshield and lasts for a target period of time.

[0081] The target duration is determined according to navigation information. If the target vehicle is determined to be on a highway according to the navigation information, the target duration is a preset duration (for example, 20 seconds); if the target vehicle is determined to be on a city road according to the navigation information, the time taken to pass the road section between the two current traffic lights is multiplied by a preset multiple as the target duration. In this way, frequent adjustment of the sun visor can be avoided, reducing interference with driving.

[0082] In summary, the embodiment of the specification provides a sunshade control method, which obtains a target image, a seat position and the light intensity detected by the light sensing device, wherein the target image is an image of the passenger's eyes captured by a camera; according to the light intensity, the power generated by the light sensing device at the current moment is calculated; if the power is greater than a preset power threshold, the first theoretical angle, the second theoretical angle and the equivalent height of the passenger's eyes are calculated according to the light intensity, the power, the target image and the seat position, wherein the first theoretical angle is the angle between the sun's rays and the front windshield, and the second theoretical angle is the maximum incident angle when the sun's rays hit the passenger's eyes; if the first theoretical angle is less than the second theoretical angle, the target position of the sun visor is determined according to the equivalent height of the passenger's eyes and the first theoretical angle. In this way, the sunshade is automatically controlled for different passenger driving conditions to avoid the passenger from manually controlling the sun visor and improve driving safety.

[0083] Based on the same inventive concept, Figure 3As shown, an embodiment of the present invention further provides a sunshade device control device, which is applied to a target vehicle, and a light sensing device is installed on the front windshield of the target vehicle; the method includes:

[0084] An acquisition module, used to acquire a target image, a seat position, and the light intensity detected by the light sensing device, wherein the target image is an image of a passenger's eyes captured by a camera;

[0085] A power module, used for calculating the power generated by the light sensing device at the current moment according to the light intensity;

[0086] a calculation module, configured to calculate a first theoretical angle, a second theoretical angle and an equivalent height of the passenger's eyes according to the light intensity, the power, the target image and the seat position when the power is greater than a preset power threshold, wherein the first theoretical angle is the angle between the sun's rays and the front windshield, and the second theoretical angle is the maximum incident angle when the sun's rays irradiate the passenger's eyes;

[0087] The position control module is used to determine the target position of the sun visor according to the equivalent height of the passenger's eyes and the first theoretical angle when the first theoretical angle is smaller than the sum of the second theoretical angle and the front windshield installation angle.

[0088] Optionally, the computing module is further configured to:

[0089] Determining a target power-angle relationship from preset power-angle relationships according to the light intensity;

[0090] Determining a first theoretical angle according to the target power-angle relationship and the power;

[0091] Determining the equivalent height of the passenger's eyes according to the target image and the seat position;

[0092] According to the equivalent height, based on a preset height angle relationship table, a second theoretical angle corresponding to the equivalent height is determined, wherein the height angle relationship table includes a target equivalent height and a theoretical angle corresponding to the target equivalent height.

[0093] Optionally, the computing module is further configured to:

[0094] Determining the actual height of the passenger's eyes according to the target image;

[0095] The equivalent height of the passenger's eyes is determined according to the seat position and the actual height of the passenger's eyes.

[0096] Optionally, the position control module is also used to:

[0097] Determining a target number of running steps of the motor according to the equivalent height of the passenger's eyes;

[0098] According to the target running steps of the motor, the motor movement is controlled to drive the sun visor to reach the target position.

[0099] Optionally, the position control module is also used to:

[0100] Obtaining the current running step number of the motor;

[0101] Determining the rotation direction and the running step number of the motor according to the target running step number and the current running step number, so as to control the movement of the motor;

[0102] According to the target running number of steps, the current running number of steps is updated and stored.

[0103] Optionally, the left side body and the right side body of the target vehicle are respectively equipped with light sensing devices;

[0104] The position control module is also used for:

[0105] If the left power detected by the light sensor on the left side of the vehicle body is greater than the power detected by the light sensor on the front windshield, the sun visor is controlled to be retracted; or

[0106] If the right side power detected by the light sensing device on the right side of the vehicle body is greater than the power detected by the light sensing device on the front windshield, the sun visor is controlled to be retracted.

[0107] Optionally, the position control module is also used to:

[0108] If the left power detected by the light sensor on the left side of the vehicle body is greater than the power detected by the light sensor on the front windshield and lasts for a target time, the sun visor is controlled to be retracted.

[0109] Among them, the target duration is determined according to the navigation information. If the target vehicle is determined to be in a highway section according to the navigation information, the target duration is a preset duration; if the target vehicle is determined to be in a city section according to the navigation information, the time it takes to pass the section between the current two traffic lights is used as the target duration.

[0110] In summary, the sunshade control device provided in the embodiment of the present specification obtains the target image, the seat position and the light intensity detected by the light sensing device, wherein the target image is the image of the passenger's eyes captured by the camera; according to the light intensity, the power generated by the light sensing device at the current moment is calculated; if the power is greater than the preset power threshold, the first theoretical angle, the second theoretical angle and the equivalent height of the passenger's eyes are calculated according to the light intensity, the power, the target image and the seat position, wherein the first theoretical angle is the angle between the sun's rays and the front windshield, and the second theoretical angle is the maximum incident angle when the sun's rays irradiate the passenger's eyes; if the first theoretical angle is less than the second theoretical angle, the target position of the sun visor is determined according to the equivalent height of the passenger's eyes and the first theoretical angle. In this way, the sunshade device is automatically controlled for different passenger driving conditions to avoid the passenger from manually controlling the sun visor and improve driving safety.

[0111] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the sunshade device control device described above can refer to the corresponding process in the aforementioned method, and will not be elaborated here.

[0112] Based on the same inventive concept, an embodiment of the present invention also provides a controller, which includes a sunshade device control device, a memory, a processor and a communication unit. The memory stores machine-readable instructions executable by the processor. When the controller is running, the processor and the memory communicate through a bus, the processor executes the machine-readable instructions, and executes the sunshade device control method.

[0113] The memory, the processor, and the communication unit are electrically connected to each other directly or indirectly to achieve signal transmission or interaction. For example, these elements can be electrically connected to each other through one or more communication buses or signal lines. The sunshade control device includes at least one software function module that can be stored in the memory in the form of software or firmware. The processor is used to execute the executable module stored in the memory (for example, the software function module or computer program included in the sunshade control device).

[0114] Among them, the memory can be, but is not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read On ly Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable read-only memory (Electrical Erasable Programmable Read-Only Memory, EEPROM), etc.

[0115] In some embodiments, the processor is used to perform one or more functions described in this embodiment. In some embodiments, the processor may include one or more processing cores (eg, a single-core processor (S) or a multi-core processor (S)).

[0116] In this embodiment, the memory is used to store the program, and the processor is used to execute the program after receiving the execution instruction. The process definition method disclosed in any implementation of this embodiment can be applied to the processor, or implemented by the processor.

[0117] The communication unit is used to establish a communication connection between the controller and other devices through the network, and to send and receive data through the network.

[0118] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the controller described above can refer to the corresponding process in the aforementioned method, and will not be elaborated here.

[0119] Based on the same inventive concept, an embodiment of the present invention further provides a target vehicle, including a vehicle body and a controller installed in the vehicle body, wherein the controller is used to implement the aforementioned sunshade device control method.

[0120] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the controller of the vehicle described above can refer to the corresponding process in the aforementioned method, and will not be elaborated here.

[0121] The above are only various embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A sunshade device control method, characterized in that: The method is applied to a target vehicle, wherein a light sensing device is installed on the front windshield of the target vehicle; the method comprises: Acquire a target image, a seat position, and the light intensity detected by the light sensing device, wherein the target image is an image of the passenger's eyes captured by a camera; Calculating the power generated by the light sensing device at the current moment according to the light intensity; If the power is greater than a preset power threshold, a first theoretical angle, a second theoretical angle and an equivalent height of the passenger's eyes are calculated according to the light intensity, the power, the target image and the seat position, wherein the first theoretical angle is the angle between the sun's rays and the front windshield, and the second theoretical angle is the maximum angle between the sun's rays and the front windshield when the sun's rays irradiate the passenger's eyes; If the first theoretical angle is smaller than the second theoretical angle, the target position of the sun visor is determined according to the equivalent height of the passenger's eyes and the first theoretical angle.

2. The method according to claim 1, characterized in that The calculating the first theoretical angle, the second theoretical angle and the equivalent height of the passenger's eyes according to the light intensity, the power, the target image and the seat position includes: Determining a target power-angle relationship from preset power-angle relationships according to the light intensity; Determining a first theoretical angle according to the target power-angle relationship and the power; Determining the equivalent height of the passenger's eyes according to the target image and the seat position; According to the equivalent height, based on a preset height angle relationship table, a second theoretical angle corresponding to the equivalent height is determined, wherein the height angle relationship table includes a target equivalent height and a theoretical angle corresponding to the target equivalent height.

3. The method according to claim 2, characterized in that Determining the equivalent height of the passenger's eyes according to the target image and the seat position includes: Determining the actual height of the passenger's eyes in the target image according to the target image; The equivalent height of the passenger's eyes in the target vehicle is determined according to the seat position and the actual height of the passenger's eyes in the target image.

4. The method according to claim 1, characterized in that: The step of determining the target position of the sun visor according to the equivalent height of the passenger's eyes and the first theoretical angle includes: Determining a target number of running steps of the motor according to the equivalent height of the passenger's eyes and the first theoretical angle; According to the target running steps of the motor, the motor movement is controlled to drive the sun visor to reach the target position.

5. The method according to claim 4, characterized in that The step of controlling the motor movement according to the target number of running steps of the motor comprises: Obtaining the current running step number of the motor; Determining the rotation direction and the running step number of the motor according to the target running step number and the current running step number, so as to control the movement of the motor; According to the target running number of steps, the current running number of steps is updated and stored.

6. The method according to claim 1, characterized in that The left side body and the right side body of the target vehicle are respectively equipped with light sensing devices; The method further comprises: If the left power detected by the light sensor on the left side of the vehicle body is greater than the power detected by the light sensor on the front windshield, the sun visor is controlled to be retracted; or If the right side power detected by the light sensing device on the right side of the vehicle body is greater than the power detected by the light sensing device on the front windshield, the sun visor is controlled to be retracted.

7. The method according to claim 6, characterized in that If the left power detected by the light sensor on the left side of the vehicle body is greater than the power detected by the light sensor on the front windshield, the sun visor is controlled to be retracted, comprising: If the left power detected by the light sensing device on the left side of the vehicle body is greater than the power detected by the light sensing device on the front windshield and lasts for a target time, the sun visor is controlled to be retracted.

8. A sunshade device control device, characterized in that: The method is applied to a target vehicle, wherein a light sensing device is installed on the front windshield of the target vehicle; the method comprises: An acquisition module, used to acquire a target image, a seat position, and the light intensity detected by the light sensing device, wherein the target image is an image of a passenger's eyes captured by a camera; A power module, used for calculating the power generated by the light sensing device at the current moment according to the light intensity; a calculation module, configured to calculate a first theoretical angle, a second theoretical angle and an equivalent height of the passenger's eyes according to the light intensity, the power, the target image and the seat position when the power is greater than a preset power threshold, wherein the first theoretical angle is an angle between the sun's rays and the front windshield, and the second theoretical angle is a maximum angle between the sun's rays and the front windshield when the sun's rays irradiate the passenger's eyes; The position control module is used to determine the target position of the sun visor according to the equivalent height of the passenger's eyes and the first theoretical angle when the first theoretical angle is smaller than the sum of the second theoretical angle and the front windshield installation angle.

9. A controller, characterized in that: The controller includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the sunshade device control method described in any one of claims 1 to 7 when executing the computer program.

10. A target vehicle, characterized in that: The target vehicle includes a vehicle body and a controller installed in the vehicle body, wherein the controller executes the sunshade device control method described in any one of claims 1-7.