Vehicle window control method and device and vehicle
By acquiring road images to identify water trucks and calculating their approach time, the system automatically controls the windows to close, solving the problem of vehicles not being able to close their windows in time when in front of water trucks, thus improving the cleanliness of the vehicle interior and the user experience.
Patent Information
- Application Number
- CN202511265674.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-05
- Publication Date
- 2025-10-28
AI Technical Summary
When a vehicle encounters a water truck while driving, the windows cannot be closed in time, causing water to splash into the vehicle and affecting the driving and riding environment. The existing manual operation method is not timely enough.
By acquiring road images on both sides of the target vehicle, the system determines whether a water truck is present and calculates the approach time. It then automatically controls the windows to close and, by combining vehicle speed and relative distance, accurately predicts the time of convergence, thus enabling automatic window adjustment.
It improves the accuracy and timeliness of window control, reduces the possibility of water entering the vehicle, and enhances the user experience.
Smart Images

Figure CN120844875A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle control technology, and in particular to a method, device, and vehicle for controlling vehicle windows. Background Technology
[0002] While driving, it's often necessary to keep car windows open to maintain ventilation. However, if a water truck is encountered along the way, water can easily splash into the vehicle, affecting the driving and riding environment. Although the driver or passengers can manually close the windows to prevent water from entering, this method relies on manual operation, resulting in insufficient responsiveness and a poor experience. Furthermore, occupants may sometimes fail to notice the water truck in time or react too slowly to close the windows, still leading to water entering the vehicle. Summary of the Invention
[0003] This invention provides a method, device, and vehicle for controlling vehicle windows, which solves the problem in related technologies of the inability to accurately control vehicle windows to avoid water trucks.
[0004] In a first aspect, embodiments of the present invention provide a method for controlling vehicle windows, the method comprising: Acquire the first road images on both sides of the target vehicle; If, based on the first road image, it is determined that there are water trucks in operation on both sides of the target vehicle, and the target vehicle's window is open, the approach time between the target vehicle and the water truck is determined based on the target vehicle's first speed, the water truck's second speed, and the relative distance between the target vehicle and the water spraying station. Based on the approach time, a closing command is issued to the target window of the target vehicle, and the closing command is used to control the target window to adjust from the current opening degree to the closed state.
[0005] Optionally, the target window includes the near window of the target vehicle on the side closest to the sprinkler truck; The step of issuing a closing command to the target window of the target vehicle based on the proximity duration includes: Based on the proximity duration, predict the start time and end time of the convergence between the target vehicle and the sprinkler truck. During the convergence period between the convergence start time and the convergence end time, if there is no first target obstacle between the near window and the sprinkler truck, a closing command is issued to the near window. The first target obstacle is an obstacle, which includes roadblocks and / or intermediate vehicles. The intermediate vehicles are vehicles traveling in the middle lane, and the middle lane is the lane between the lane where the target vehicle is located and the lane where the sprinkler truck is located. During the vehicle convergence period, if there is a first target obstacle between the near window and the sprinkler bay, no closing command will be issued to the near window.
[0006] Optionally, predicting the convergence start time of the target vehicle and the sprinkler truck based on the proximity duration includes: If it is determined from the first road image that the target vehicle and the sprinkler truck are traveling in the same direction and the target vehicle is located to the side and in front of the sprinkler truck, and the first vehicle speed is less than the second vehicle speed, the time when the rear of the target vehicle and the front of the sprinkler truck are on the same horizontal line is determined based on the approach time, and this time is taken as the starting time of the convergence. The horizontal line is perpendicular to the lane where the target vehicle is located and / or the lane where the sprinkler truck is located. If it is determined from the first road image that the target vehicle and the sprinkler truck are traveling in the same direction and the target vehicle is located to the side and rear of the sprinkler truck, and the first vehicle speed is greater than the second vehicle speed, the time when the front of the target vehicle and the rear of the sprinkler truck are on the same horizontal line is determined based on the approach time and is taken as the convergence start time. If it is determined from the first road image that the target vehicle and the sprinkler truck are traveling towards each other, the time when the front of the target vehicle and the front of the sprinkler truck are on the same horizontal line is determined based on the approach time, and this time is taken as the starting time of the convergence.
[0007] Optionally, issuing a closing command to the near window includes: Obtain the time required for the target window to adjust from its current opening to a closed state; After a target time has elapsed, a closing command is issued to the near window, where the target time is the difference between the approach duration and the elapsed time.
[0008] Optionally, the target window also includes a far window on the side of the target vehicle furthest from the sprinkler truck, and the method further includes: During the vehicle convergence period, if there is a second target obstacle on the side of the target vehicle away from the sprinkler truck, the distance between the far window and the second target obstacle is obtained, and the second target obstacle originates from the obstacle; If the distance is less than the preset distance, a closing command is sent to the far window after the target time has elapsed; If the distance is not less than the preset distance, the closing command will not be sent to the far window.
[0009] Optionally, the target vehicle window may also include a sunroof; The method further comprises: The water spraying direction of the sprinkler truck is identified based on the first road image. If the water spraying direction is in the air, a closing command is issued to the sunroof based on the approach time.
[0010] Optionally, after issuing a closing command to the target window of the target vehicle based on the proximity duration, the method further includes: At the end of the vehicle convergence time, an opening command is issued to the target window. The opening command is used to restore the target window from a closed state to the opening degree before the closing command was issued.
[0011] Optionally, predicting the merging end time of the target vehicle and the sprinkler truck based on the proximity duration includes: When the target vehicle and the water truck are traveling in the same direction, the target vehicle is located to the side and in front of the water truck, and the first vehicle speed is less than the second vehicle, the time when the rear of the water truck passes the front of the target vehicle is determined based on the approach time and is taken as the merging end time. When the target vehicle and the water truck are traveling in the same direction, the target vehicle is located to the side and rear of the water truck, and the first vehicle speed is greater than the second vehicle speed, the time when the rear of the target vehicle passes the front of the water truck is determined based on the approach time and is taken as the merging end time. When the target vehicle and the water truck are traveling towards each other, the time when the rear of the target vehicle and the front of the water truck are on the same horizontal line is determined based on the approach time, and this time is taken as the time when the vehicles meet.
[0012] Secondly, embodiments of the present invention provide a vehicle window control device, the device comprising: The acquisition module is used to acquire the first road images on both sides of the target vehicle; The determination module is used to determine the approach time between the target vehicle and the water truck if it is determined from the first road image that there are water trucks in operation on both sides of the target vehicle and the target vehicle's window is open, based on the first speed of the target vehicle, the second speed of the water truck, and the relative distance between the target vehicle and the water spraying station. The closing module is used to issue a closing command to the target window of the target vehicle according to the approach time. The closing command is used to control the target window to adjust from the current opening degree to the closed state.
[0013] Thirdly, embodiments of the present invention provide a vehicle, the vehicle comprising: Vehicle body; An in-vehicle infotainment system located on the vehicle body is used to perform the method described in the first aspect.
[0014] According to an embodiment of the present invention, a method for controlling vehicle windows is provided. The method involves acquiring first road images on both sides of a target vehicle. If, based on the first road images, it is determined that there are water trucks operating on both sides of the target vehicle, and the target vehicle's window is open, the approach time between the target vehicle and the water trucks is determined based on the target vehicle's first speed, the water truck's second speed, and the relative distance between the target vehicle and the water trucks. A closing command is then issued to the target vehicle's window based on the approach time, controlling the window to adjust from its current open position to a closed state. By determining whether the target vehicle needs to close its window using the first road images and determining the approach time based on the target vehicle's first speed and the water truck's second speed, issuing the closing command based on the approach time minimizes the impact of closing the target window, improves the user experience, and to some extent solves the problem of inaccurate window control to avoid water trucks in related technologies. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 The flowchart of a vehicle window control method provided by an embodiment of the present invention is shown; Figure 2 This illustrates the concept of a sub-case one of the target vehicle and the sprinkler truck provided in an embodiment of the present invention; Figure 3 This illustrates the concept of a second sub-case involving the target vehicle and the water truck, as provided in an embodiment of the present invention. Figure 4 This illustrates the concept of sub-case three of the target vehicle and sprinkler truck provided in an embodiment of the present invention; Figure 5 The structure of a window control device provided in an embodiment of the present invention is shown. Detailed Implementation
[0017] As described in the background section, vehicles often need to have their windows open to maintain ventilation while driving. However, if a water truck is encountered along the way, water can easily splash into the vehicle, affecting the driving and riding environment. Although the driver or passengers can manually close the windows to prevent water from entering, this method relies on manual operation, resulting in insufficient timeliness and a poor experience. In addition, occupants may sometimes fail to notice the water truck in time or fail to close the windows quickly enough, still leading to water entering the vehicle.
[0018] According to an embodiment of the present invention, a method for controlling vehicle windows is provided. The method involves acquiring first road images on both sides of a target vehicle. If, based on the first road images, it is determined that there are water trucks operating on both sides of the target vehicle, and the target vehicle's window is open, the approach time between the target vehicle and the water trucks is determined based on the target vehicle's first speed, the water truck's second speed, and the relative distance between the target vehicle and the water trucks. A closing command is then issued to the target vehicle's window based on the approach time, controlling the window to adjust from its current open position to a closed state. By determining whether the target vehicle needs to close its window using the first road images and determining the approach time based on the target vehicle's first speed and the water truck's second speed, issuing the closing command based on the approach time minimizes the impact of closing the target window, improves the user experience, and to some extent solves the problem of inaccurate window control to avoid water trucks in related technologies.
[0019] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of the present invention will now be described with reference to the accompanying drawings.
[0020] The window control method provided in this embodiment of the invention can be executed by a target device, which can be an in-vehicle infotainment system or a cloud device corresponding to the infotainment system. Figure 1 The flowchart illustrates a vehicle window control method provided by an embodiment of the present invention. For example... Figure 1 As shown, the window control method provided in this embodiment of the invention includes steps 110 to 130.
[0021] Step 110: Obtain the first road images on both sides of the target vehicle.
[0022] In this embodiment of the invention, the target vehicle can be any vehicle. The first road image can be a road condition image on both sides in front of the target vehicle and the sprinkler truck merging. The first road image may include one image or multiple images. Correspondingly, this embodiment of the invention may also use the road condition image after the target vehicle and the sprinkler truck have merged as the second road image, as described below. The vehicle's infotainment system can acquire the first road image through an onboard camera installed on the target vehicle. This embodiment of the invention does not limit the range of road conditions included in the first road image.
[0023] In this embodiment of the invention, the vehicle's infotainment system can acquire not only the first road images on both sides of the target vehicle, but also the first road images in front of and behind the target vehicle, so that during driving, the water sprayed by the sprinkler truck can be carried into the target vehicle by the wind generated by the sprinkler truck.
[0024] In this embodiment of the invention, the vehicle system of the target vehicle can acquire first road images on both sides of the target vehicle in real time and execute steps 120 and 130 after each acquisition of the first road image, so as to better respond to the changes between the target vehicle and the sprinkler truck.
[0025] Step 120: If it is determined from the first road image that there are water trucks in operation on both sides of the target vehicle, and the target vehicle's window is open, determine the approach time between the target vehicle and the water truck based on the target vehicle's first speed, the water truck's second speed, and the relative distance between the target vehicle and the water spraying station.
[0026] In this embodiment of the invention, the target window can be any window on the target vehicle, such as the windows on both sides of the passenger compartment or the sunroof. After obtaining the first road image, image recognition can be performed on the first road image to determine whether the content of the first road image includes a water truck in operation. If the content of the first road image does not include a water truck, or if the water truck is not in operation (the water truck is not performing water spraying) as determined by the first road image, a closing command may not be issued to the target window of the target vehicle.
[0027] In this embodiment of the invention, if the first road image is identified and it is determined that there are water trucks in operation on both sides of the target vehicle, but the target window of the target vehicle is closed, it is not necessary to issue a closing command to the target window of the target vehicle.
[0028] In this embodiment of the invention, when there are water trucks operating on both sides of the target vehicle, and the target vehicle's windows are open, the target vehicle's first speed, the water trucks' second speed, and the relative distance between the target vehicle and the water spraying station can be determined based on the vehicle-mounted radar on the target vehicle. The approach time between the target vehicle and the water trucks can also be determined, and it can be predicted that the target vehicle, traveling at the first speed, will begin to converge with the water truck traveling at the second speed after the estimated approach time. The relative distance can be the distance between the line segments of the target vehicle and the water spraying station projected onto the lane. That is, the approach time can be the time required for the target vehicle traveling at the first speed to converge with the water truck traveling at the second speed.
[0029] Step 130: Based on the approach time, a closing command is sent to the target window of the target vehicle. The closing command is used to control the target window to adjust from its current opening to a closed state.
[0030] In this embodiment of the invention, a closing command can be issued to the target window of the target vehicle within a short time interval, so that the target vehicle closes the target window before passing the water truck, thus preventing water from being sprayed into the target vehicle through the target window when the water truck passes the target vehicle.
[0031] In this embodiment of the invention, after determining the approach time, indicating that the target vehicle and the water truck are about to intersect, not only can the target vehicle's windows be closed based on the approach time, but the air conditioning can also be switched from external circulation to internal circulation simultaneously to prevent water mist and odors from the water truck from entering the vehicle through the air conditioning system. Furthermore, if the target vehicle's door handles are extended, they can be retracted and hidden to prevent water residue from remaining on the door handles.
[0032] In this embodiment of the invention, when the water truck passes the target vehicle, the sprayed water not only enters the vehicle but may also remain in the rearview mirror, affecting the mirror's visibility. To address this, while issuing the shutdown command in step 130, the vehicle's rearview mirror can be briefly folded to prevent water droplets from remaining on the mirror, which could impair the target vehicle's visibility and cause a safety hazard.
[0033] The system determines whether the target vehicle needs to close its windows based on the first road image and determines the approach time based on the target vehicle's first speed and the water truck's second speed. Issuing a closing command based on the approach time can minimize the impact on the target vehicle's window closing operation, improve the user experience, and to some extent solve the problem of not being able to accurately control the windows to avoid the water truck in related technologies.
[0034] In this embodiment of the invention, not only can the presence of a water truck in operation on both sides of the target vehicle be determined based on the first road image obtained by the vehicle-mounted camera as described in step 120, but also, when the vehicle-mounted camera has poor visibility (such as being blocked by a large vehicle in front) or is obstructed by obstacles, the unique music sound (such as "Happy Birthday") or water pump spraying sound of the water truck can be identified by acoustic sensors installed around the target vehicle, such as microphones, as a supplementary judgment to the first road image.
[0035] In this embodiment of the invention, the target window includes the near window of the target vehicle on the side closest to the sprinkler truck. One implementation of step 130, issuing a closing command to the target window of the target vehicle based on the proximity duration, may include the following steps: predicting the start time and end time of the convergence between the target vehicle and the sprinkler truck based on the proximity duration; during the convergence period between the start and end times, if there is no first target obstacle between the near window and the sprinkler truck, a closing command is issued to the near window, where the first target obstacle is an obstacle, including roadblocks and / or intermediate vehicles, where the intermediate vehicles are vehicles traveling in the middle lane, and the middle lane is the lane between the lane where the target vehicle is located and the lane where the sprinkler truck is located; during the convergence period, if there is a first target obstacle between the near window and the sprinkler truck, no closing command is issued to the near window.
[0036] In this embodiment of the invention, the approach time between the target vehicle and the sprinkler truck can be predicted based on the approach duration, including the start time of their convergence, the end time of their convergence, their initial positions, and their final positions. Specifically, the position of the target vehicle after approaching at a first speed for the specified duration can be considered the position when the target vehicle and the sprinkler truck converge. After predicting the convergence position, a first road image is acquired via an onboard camera to predict whether a first target obstacle exists between the target vehicle's near-window and the sprinkler truck during the convergence period. The first target obstacle can be an obstacle, including roadblocks and / or intermediate vehicles. Roadblocks can be, for example, road obstruction facilities. Intermediate vehicles can be any vehicle located in the middle lane between the target vehicle's lane and the sprinkler truck's lane. When the onboard radar acquires the sprinkler truck's second speed, it can also simultaneously acquire the intermediate speed of the intermediate vehicles, thereby determining whether an intermediate vehicle exists between the target vehicle and the sprinkler truck during the convergence period.
[0037] During the convergence period between the target vehicle and the water truck, if it is determined that there is no primary obstacle between the target vehicle and the water sprinkler station that can block the water sprayed by the water truck, a closing command can be issued at the start of the convergence to close the near-vehicle window to prevent water from entering the target vehicle. Conversely, if it is predicted that there is a primary obstacle between the target vehicle and the water sprinkler station that can block the water sprayed by the water truck, a closing command may not be issued to the target vehicle's window.
[0038] In this embodiment of the invention, there are several sub-cases in the process of predicting the convergence start time of the target vehicle and the sprinkler truck based on the proximity duration. Specifically, Figure 2 This illustrates a sub-case scenario one involving the target vehicle and the water truck provided in an embodiment of the present invention. For example... Figure 2 As shown, if the target vehicle (e.g., ...) is determined based on the first road image... Figure 2 The small car shown) and the sprinkler truck (such as Figure 2 When the large vehicle shown is traveling in the same direction as the target vehicle and the target vehicle is located to the side and in front of the sprinkler truck, the approach time can be determined by the following formula (1) if the first vehicle speed is less than the second vehicle speed:
[0039] in, To approximate the duration, d represents the relative distance between the target vehicle and the sprinkler station, obtained via vehicle-mounted radar. The target vehicle's first speed. This is the second speed of the water truck.
[0040] In this embodiment of the invention, after a certain period of time, when the rear of the target vehicle and the front of the sprinkler truck are on the same horizontal line, the target vehicle and the sprinkler truck begin to converge, and the horizontal line (e.g., Figure 2 The dashed line shown is perpendicular to the lane where the target vehicle is located and / or the lane where the sprinkler truck is located. The relative distance between the target vehicle and the sprinkler station can be the shortest straight-line distance between the horizontal line corresponding to the rear of the target vehicle and the horizontal line corresponding to the front of the sprinkler truck (e.g., the dashed line shown). Figure 2 The shortest straight-line distance between the two dashed lines shown.
[0041] exist Figure 2 In the design of the target vehicle and the sprinkler truck shown, there is a middle lane between the target vehicle and the sprinkler workshop. If a vehicle in the middle lane happens to be located between the target vehicle and the sprinkler workshop during the passing period, a closing command can be not issued to the near window of the target vehicle.
[0042] Figure 3This illustrates a sub-case two of the target vehicle and sprinkler truck provided by an embodiment of the present invention. For example... Figure 3 As shown, if the target vehicle is determined based on the first road image ( Figure 3 The small car on it) and the sprinkler truck ( Figure 3 When the target vehicle is located to the side and rear of the water truck and the large vehicle on the truck is traveling in the same direction, the approach time can be determined by the following formula (2) if the first vehicle speed is greater than the second vehicle speed:
[0043] in, To approximate the duration, d represents the relative distance between the target vehicle and the sprinkler station, obtained via vehicle-mounted radar. The target vehicle's first speed. This is the second speed of the water truck.
[0044] In this embodiment of the invention, after a certain period of time, when the front of the target vehicle and the rear of the sprinkler truck are on the same horizontal line, the target vehicle and the sprinkler truck begin to converge.
[0045] exist Figure 3 In the design of the target vehicle and the water truck, there is no intermediate lane or roadblock between the target vehicle and the water truck. During the convergence period after the approximate time, a closing command can be issued to the near window of the target vehicle.
[0046] Figure 4 This illustrates the concept of sub-case three involving the target vehicle and the water truck, as provided in an embodiment of the present invention. For example... Figure 4 As shown, if it is determined from the first road image that the target vehicle and the sprinkler truck are traveling in opposite directions, the approach time can be confirmed by the following formula (3):
[0047] in, To approximate the duration, d represents the relative distance between the target vehicle and the sprinkler station, obtained via vehicle-mounted radar. The target vehicle's first speed. This is the second speed of the water truck.
[0048] In this embodiment of the invention, when the front of the target vehicle and the front of the sprinkler truck are on the same horizontal line, the target vehicle and the sprinkler truck begin to converge. Different formulas are used to determine the approach time required for the target vehicle and the sprinkler truck to converge, allowing for a more accurate approach time and thus a more precise timing for closing the target vehicle's window.
[0049] In this embodiment of the invention, the first vehicle speed, the second vehicle speed, and the relative distance can be data acquired by the vehicle radar at the same time. When any one of these data changes, the approach time can be recalculated to achieve real-time updates.
[0050] In this embodiment of the invention, during the convergence period when the target vehicle and the water truck converge, not only can a closing command be issued to the target vehicle window based on whether there is a first target obstacle between the target vehicle and the water truck, but a closing command can also be issued to the target vehicle window by default during the convergence period when the target vehicle and the water truck converge, thereby reducing the error rate of water sprayed by the water truck entering the vehicle due to calculation errors.
[0051] In this embodiment of the invention, considering that closing a car window takes time and the time required to close the window varies depending on the window opening, in order to make the timing of issuing the closing command more accurate, the step of issuing the closing command to the near window includes: obtaining the time required for the target window to adjust from its current opening to a closed state; and after a target time has elapsed, issuing the closing command to the near window, wherein the target time is the difference between the approach time and the elapsed time.
[0052] For example, the time required for the target window to adjust from its current opening to its closed state can be determined using the following formula (4):
[0053] in, The time required for the target window to adjust from its current open position to its closed position. The current opening degree of the target vehicle window, expressed as a percentage (%) or deg. The target window's operating speed is expressed in units corresponding to the opening degree, either % / s or deg / s.
[0054] After determining the time consumption, the target time can be... This ensures that the target vehicle's window closes before the vehicle merges, minimizing disruption to the user and improving the accuracy of the window closing timing.
[0055] In this embodiment of the invention, the target vehicle window may include not only the near window close to the sprinkler truck, but also the far window on the side of the target vehicle furthest from the sprinkler truck. Since the sprinkler truck sprays water close to the ground, if there is a second target obstacle on the side of the target vehicle furthest from the sprinkler truck, and the far window on that side is open, the water sprayed by the sprinkler truck may bounce off the second target obstacle and enter the vehicle through the far window. To prevent this, during the convergence period, if there is a second target obstacle on the side of the target vehicle furthest from the sprinkler truck, the distance between the far window and the second target obstacle is obtained, where the second target obstacle originates from the obstacle. If the distance is less than a preset distance, a closing command is issued to the far window after a target time has elapsed; if the distance is not less than the preset distance, the closing command is not issued to the far window. The preset distance can be any distance, such as 0.5m or 1m. If the distance is less than the preset distance, it indicates that the water sprayed by the sprinkler truck may bounce off the second target obstacle and enter the vehicle through the rear window. Therefore, after the target time has elapsed, a closing command is issued to the rear window. If the distance is not less than the preset distance, it indicates that the water sprayed by the sprinkler truck will not enter the vehicle after passing the second target obstacle due to the greater distance, and therefore the closing command is not issued to the rear window.
[0056] In this embodiment of the invention, if there is no second target obstacle on the side of the target vehicle away from the sprinkler truck, it is not necessary to issue a closing command to the far window.
[0057] In this embodiment of the invention, the target vehicle window may also include a sunroof. The water truck may include not only those spraying water close to the road surface to both sides, but also those spraying atomized water into the air to humidify the air. When encountering a water truck spraying into the air, the spraying direction of the water truck is identified based on the first road image. If the spraying direction is into the air, a closing command is issued to the sunroof based on the approach duration to prevent water sprayed by the water truck from entering the vehicle through the sunroof. During the process of issuing the closing command to the sunroof based on the approach duration, the method described above can be used to issue the closing command to the sunroof at a target time.
[0058] In this embodiment of the invention, after issuing a closing command to the target window of the target vehicle according to the proximity duration, road condition images on both sides of the target vehicle can be acquired as a second road image; at the end of the convergence time, an opening command is issued to the target window, which is used to restore the target window from a closed state to the opening degree before the closing command was issued. The opening degree before the closing command is issued can be the opening degree in formula (4) described above. After the water truck has completely passed the target vehicle, all previously closed windows can be reopened to their original opening position, eliminating the need for passengers to open the windows again and improving the user experience. When issuing the opening command at the end of the convergence time, a second road image can also be used as an auxiliary tool to determine whether the convergence between the target vehicle and the water truck has been completed.
[0059] In this embodiment of the invention, determining the point at which the target vehicle and the sprinkler truck meet based on the second road image may specifically include the following sub-cases: In such Figure 2 In the first sub-case shown, when the target vehicle and the water truck are traveling in the same direction, the target vehicle is located to the side and slightly in front of the water truck, and the first vehicle speed is less than the second vehicle, the time when the rear of the water truck passes the front of the target vehicle is determined based on the approach duration, and this time is taken as the merging end time. Correspondingly, if the second road image determines that the rear of the water truck has passed the front of the target vehicle, it can also be considered that the merging of the target vehicle and the water truck has ended, i.e., the horizontal line corresponding to the rear of the water truck is in front of the horizontal line corresponding to the front of the target vehicle.
[0060] In such Figure 3 In the second sub-case shown, when the target vehicle and the water truck are traveling in the same direction, the target vehicle is located to the side and rear of the water truck, and the first vehicle speed is greater than the second vehicle speed, the time when the rear of the target vehicle passes the front of the water truck is taken as the merging end time based on the approach duration. Correspondingly, if it is determined from the second road image that the rear of the target vehicle passes the front of the water truck, the merging of the target vehicle and the water truck can also be considered complete.
[0061] In such Figure 4 In sub-case three, where the target vehicle and the water truck are traveling towards each other, the time when the rear of the target vehicle and the rear of the water truck are on the same horizontal line is determined based on the approach duration and is taken as the merging end time. Correspondingly, if the second road image determines that the rear of the target vehicle and the rear of the water truck are on the same horizontal line, it can also be considered that the merging of the target vehicle and the water truck has ended.
[0062] The window control method provided in this invention automatically closes the windows when a water truck and a target vehicle intersect. It calculates the precise window-closing timing (target time) to ensure the windows close completely just as the water truck passes, guaranteeing a good user experience and vehicle cleanliness. Furthermore, this invention addresses the issue of obstacles between the water truck and the target vehicle during their intersection, eliminating the need to close windows and improving user experience. Moreover, this invention further resolves the problem of water sprayed by the water truck being bounced back into the vehicle by obstacles on the other side; if an obstacle is nearby when the far window is open, the far window is closed.
[0063] In this embodiment of the invention, if the air conditioning system and / or the rearview mirror are adjusted while the car window is closed in step 130, the air conditioning system and / or the rearview mirror can be restored to the state before the car meets the water truck after the target vehicle and the water truck have met, so as to minimize the impact on the driving experience.
[0064] The window control method provided in this invention can not only be applied to vehicles facing water sprayed by a sprinkler truck, but also to other similar "water ingress risks." For example, when a first road image detects water accumulation on both sides in front of the target vehicle, water may splash into the vehicle as it passes. The method can be used to determine the water accumulation using vehicle radar and / or a vehicle camera, and then control the windows using the method provided in this invention. Another example is when a target vehicle enters a car wash environment and forgets to close the windows. If a humidity sensor around the vehicle detects high humidity around the vehicle, the method provided in this invention can be used to control the windows.
[0065] Figure 5 The structure of an automatic window control device provided by an embodiment of the present invention is shown. For example... Figure 5 As shown, the automatic window control device 500 provided in this embodiment of the invention includes: The acquisition module 510 is used to acquire first road images on both sides of the target vehicle; The determination module 520 is used to determine the approach time between the target vehicle and the water truck if it is determined from the first road image that there are water trucks in operation on both sides of the target vehicle and the target vehicle's window is open, based on the first speed of the target vehicle, the second speed of the water truck, and the relative distance between the target vehicle and the water truck. After the target vehicle travels at the first speed for the approach time, it begins to meet the water truck traveling at the second speed. The closing module 530 is used to send a closing command to the target window of the target vehicle according to the approach time. The closing command is used to control the target window to adjust from the current opening degree to the closed state.
[0066] The window control device provided in this embodiment of the invention and the window control method provided in this embodiment of the invention are based on the same technical concept. The description of the window control device can be referred to the description of the window control method above, and will not be repeated here.
[0067] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory including instructions that can be executed by a processor of a device to perform the described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc. This non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform... Figure 1 The method shown.
[0068] This application also provides a computer program product, including a computer program, which, when executed by a processor, performs... Figure 1 The method shown.
[0069] The above description does not provide detailed technical specifications regarding the structure of each layer. However, those skilled in the art should understand that layers and regions of desired shapes can be formed using various technical means. Furthermore, to form the same structure, those skilled in the art can also design methods that are not entirely identical to those described above. Additionally, although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be advantageously combined.
[0070] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.
[0071] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
Claims
1. A method for controlling vehicle windows, characterized in that, The method comprises: Acquire the first road images on both sides of the target vehicle; If, based on the first road image, it is determined that there are water trucks in operation on both sides of the target vehicle, and the target vehicle's window is open, the approach time between the target vehicle and the water truck is determined based on the target vehicle's first speed, the water truck's second speed, and the relative distance between the target vehicle and the water spraying station. Based on the approach time, a closing command is issued to the target window of the target vehicle, and the closing command is used to control the target window to adjust from the current opening degree to the closed state.
2. The method according to claim 1, characterized in that, The target vehicle window includes the near window of the target vehicle on the side closest to the sprinkler truck; The step of issuing a closing command to the target window of the target vehicle based on the proximity duration includes: Based on the proximity duration, predict the start time and end time of the convergence between the target vehicle and the sprinkler truck. During the convergence period between the convergence start time and the convergence end time, if there is no first target obstacle between the near window and the sprinkler truck, a closing command is issued to the near window. The first target obstacle is an obstacle, which includes roadblocks and / or intermediate vehicles. The intermediate vehicles are vehicles traveling in the middle lane, and the middle lane is the lane between the lane where the target vehicle is located and the lane where the sprinkler truck is located. During the vehicle convergence period, if there is a first target obstacle between the near window and the sprinkler bay, no closing command will be issued to the near window.
3. The method according to claim 2, characterized in that, The step of predicting the convergence start time of the target vehicle and the sprinkler truck based on the proximity duration includes: If it is determined from the first road image that the target vehicle and the sprinkler truck are traveling in the same direction and the target vehicle is located to the side and in front of the sprinkler truck, and the first vehicle speed is less than the second vehicle speed, the time when the rear of the target vehicle and the front of the sprinkler truck are on the same horizontal line is determined based on the approach time, and this time is taken as the starting time of the convergence. The horizontal line is perpendicular to the lane where the target vehicle is located and / or the lane where the sprinkler truck is located. If it is determined from the first road image that the target vehicle and the sprinkler truck are traveling in the same direction and the target vehicle is located to the side and rear of the sprinkler truck, and the first vehicle speed is greater than the second vehicle speed, the time when the front of the target vehicle and the rear of the sprinkler truck are on the same horizontal line is determined based on the approach time and is taken as the convergence start time. If it is determined from the first road image that the target vehicle and the sprinkler truck are traveling towards each other, the time when the front of the target vehicle and the front of the sprinkler truck are on the same horizontal line is determined based on the approach time, and this time is taken as the starting time of the convergence.
4. The method according to claim 3, characterized in that, The step of issuing a closing command to the near window includes: Obtain the time required for the target window to adjust from its current opening to a closed state; After a target time has elapsed, a closing command is issued to the near window, where the target time is the difference between the approach duration and the elapsed time.
5. The method according to claim 4, characterized in that, The target vehicle window also includes a far window on the side of the target vehicle furthest from the sprinkler truck, and the method further includes: During the vehicle convergence period, if there is a second target obstacle on the side of the target vehicle away from the sprinkler truck, the distance between the far window and the second target obstacle is obtained, and the second target obstacle originates from the obstacle; If the distance is less than the preset distance, a closing command is sent to the far window after the target time has elapsed; If the distance is not less than the preset distance, the closing command will not be sent to the far window.
6. The method according to claim 1, characterized in that, The target vehicle window also includes a sunroof; The method further comprises: The water spraying direction of the sprinkler truck is identified based on the first road image. If the water spraying direction is in the air, a closing command is issued to the sunroof based on the approach time.
7. The method according to claim 3, characterized in that, After issuing a closing command to the target window of the target vehicle based on the proximity duration, the method further includes: At the end of the vehicle convergence time, an opening command is issued to the target window. The opening command is used to restore the target window from a closed state to the opening degree before the closing command was issued.
8. The method according to claim 7, characterized in that, Based on the proximity duration, the predicted merging end time of the target vehicle and the sprinkler truck includes: When the target vehicle and the water truck are traveling in the same direction, the target vehicle is located to the side and in front of the water truck, and the first vehicle speed is less than the second vehicle, the time when the rear of the water truck passes the front of the target vehicle is determined based on the approach time and is taken as the merging end time. When the target vehicle and the water truck are traveling in the same direction, the target vehicle is located to the side and rear of the water truck, and the first vehicle speed is greater than the second vehicle speed, the time when the rear of the target vehicle passes the front of the water truck is determined based on the approach time and is taken as the merging end time. When the target vehicle and the water truck are traveling towards each other, the time when the rear of the target vehicle and the rear of the water truck are on the same horizontal line is determined based on the approach time, and this time is taken as the time when the vehicles meet.
9. A vehicle window control device, characterized in that, The device comprises: The acquisition module is used to acquire the first road images on both sides of the target vehicle; The determination module is used to determine the approach time between the target vehicle and the water truck if it is determined from the first road image that there are water trucks in operation on both sides of the target vehicle and the target vehicle's window is open, based on the first speed of the target vehicle, the second speed of the water truck, and the relative distance between the target vehicle and the water spraying station. The closing module is used to issue a closing command to the target window of the target vehicle according to the approach time. The closing command is used to control the target window to adjust from the current opening degree to the closed state.
10. A vehicle, characterized in that, The vehicles include: Vehicle body; An in-vehicle infotainment system disposed on the vehicle body, the in-vehicle infotainment system being used to perform the method as described in any one of claims 1-8.