Vehicle window control method and device, electronic equipment and computer-readable storage medium

文档序号:268750 发布日期:2021-11-19 浏览:17次 中文

阅读说明:本技术 车窗控制方法、装置、电子设备及计算机可读存储介质 (Vehicle window control method and device, electronic equipment and computer-readable storage medium ) 是由 沈刚 孙小冬 舒本洪 瞿胜 宋玲玲 于 2021-08-05 设计创作,主要内容包括:本申请公开了一种车窗控制方法、装置、电子设备及计算机可读存储介质,属于汽车电子技术领域,应用于车辆,用以避免车窗夹伤乘客的情况,提高关闭车窗过程中的安全性。所述方法包括:接收用于关闭第一车窗的关窗操作;响应于所述关窗操作,获取所述第一车窗和第二车窗的实时图像;将所述第一车窗和所述第二车窗的实时图像进行比对,确定所述第一车窗的目标区域内是否存在障碍物;若确定所述第一车窗的目标区域内存在障碍物,对所述第一车窗执行目标控制操作,其中,所述目标控制操作包括:禁止关闭车窗、延时关闭车窗、或关闭车窗至目标位置。(The application discloses a vehicle window control method and device, electronic equipment and a computer-readable storage medium, belongs to the technical field of automotive electronics, and is applied to a vehicle to avoid the situation that a passenger is injured by a vehicle window clamp and improve the safety in the vehicle window closing process. The method comprises the following steps: receiving a window closing operation for closing a first window; responding to the window closing operation, and acquiring real-time images of the first vehicle window and the second vehicle window; comparing the real-time images of the first vehicle window and the second vehicle window to determine whether an obstacle exists in a target area of the first vehicle window; if the obstacle is determined to exist in the target area of the first vehicle window, executing target control operation on the first vehicle window, wherein the target control operation comprises the following steps: and forbidding closing the window, closing the window in a delayed mode, or closing the window to a target position.)

1. A window control method, applied to a vehicle, comprising:

receiving a window closing operation for closing a first window;

responding to the window closing operation, and acquiring real-time images of the first vehicle window and the second vehicle window;

comparing the real-time images of the first vehicle window and the second vehicle window to determine whether an obstacle exists in a target area of the first vehicle window;

if the obstacle is determined to exist in the target area of the first vehicle window, executing target control operation on the first vehicle window, wherein the target control operation comprises the following steps: and forbidding closing the window, closing the window in a delayed mode, or closing the window to a target position.

2. The method of claim 1, wherein the second window comprises a window corresponding to the front-to-back of the first window and/or a window that is symmetric to the left-to-right of the first window.

3. The method of claim 1, wherein comparing the real-time images of the first window and the second window to determine whether an obstacle is present in the target area of the first window comprises:

calculating the difference between the gray values of the real-time images of the first vehicle window and the second vehicle window;

if the difference of the gray values is larger than or equal to a first threshold value, determining that an obstacle exists in a target area of the first vehicle window;

and if the difference of the gray values is smaller than the first threshold value, determining that no obstacle exists in the target area of the first vehicle window.

4. The method of claim 1, wherein after said acquiring the real-time images of the first and second windows, the method further comprises:

calculating a change value of the gray value of the real-time image of the first vehicle window;

if the change value is larger than or equal to a second threshold value, determining that an obstacle exists in the target area of the first vehicle window;

and if the change value is smaller than the second threshold value, determining that no obstacle exists in the target area of the first vehicle window.

5. The method of claim 1, wherein performing a target control operation on the first window if it is determined that an obstacle is present in the target area of the first window further comprises at least one of:

displaying reminding information that an obstacle exists in a target area of the first vehicle window;

and playing reminding information of the obstacles in the target area of the first vehicle window.

6. The method of claim 1, wherein after the target control operation that prohibits window closing is performed on the first window, the method further comprises:

and in a preset time, if the situation that no obstacle exists in the target area of the first window is determined, controlling the first window to be closed.

7. A vehicle window control apparatus, characterized in that the apparatus comprises:

the receiving module is used for receiving window closing operation for closing the first vehicle window;

the acquisition module is used for responding to the window closing operation and acquiring real-time images of the first vehicle window and the second vehicle window;

the determining module is used for comparing the real-time images of the first vehicle window and the second vehicle window and determining whether an obstacle exists in a target area of the first vehicle window;

a control module, configured to execute a target control operation on the first window if it is determined that an obstacle exists in a target area of the first window, where the target control operation includes: and forbidding closing the window, closing the window in a delayed mode, or closing the window to a target position.

8. The apparatus of claim 7, wherein the determination module is to:

calculating the difference between the gray values of the real-time images of the first vehicle window and the second vehicle window;

if the difference of the gray values is larger than or equal to a first threshold value, determining that an obstacle exists in a target area of the first vehicle window;

and if the difference of the gray values is smaller than the first threshold value, determining that no obstacle exists in the target area of the first vehicle window.

9. An electronic device comprising a processor and a memory arranged to store computer executable instructions, wherein the processor, when executing the executable instructions, implements a vehicle window control method as claimed in any one of claims 1 to 6.

10. A computer-readable storage medium storing one or more programs which, when executed by a processor, implement the vehicle window control method of any one of claims 1-6.

Technical Field

The application belongs to the technical field of automotive electronics, and particularly relates to a vehicle window control method and device, electronic equipment and a computer-readable storage medium.

Background

With the development of automotive electronics technology, it is common to arrange a power window on a vehicle for sale so that a user can easily control the window to ascend or descend. However, because the power-driven lifting window has large force when lifting, if the hands or heads of passengers are just above the window in the lifting process of the window, the situation of clamping injury or even life safety endangering is easy to occur. Especially for children, accidents involving window pinching frequently occur.

Therefore, in the related art, when the window is closed, a passenger is likely to be injured by window pinching, and safety in the process of closing the window is in need of improvement.

Disclosure of Invention

The embodiment of the application aims to provide a vehicle window control method, a vehicle window control device, electronic equipment and a computer readable storage medium, which can avoid the situation that a passenger is injured by a vehicle window clamp and improve the safety in the vehicle window closing process.

In order to solve the technical problem, the present application is implemented as follows:

in a first aspect, an embodiment of the present application provides a vehicle window control method, which is applied to a vehicle, and includes: receiving a window closing operation for closing a first window; responding to the window closing operation, and acquiring real-time images of the first vehicle window and the second vehicle window; comparing the real-time images of the first vehicle window and the second vehicle window to determine whether an obstacle exists in a target area of the first vehicle window; if the obstacle is determined to exist in the target area of the first vehicle window, executing target control operation on the first vehicle window, wherein the target control operation comprises the following steps: and forbidding closing the window, closing the window in a delayed mode, or closing the window to a target position.

In one implementation, the second window includes a window corresponding to the front and rear of the first window and/or a window symmetrical to the left and right of the first window.

In one implementation, the comparing the real-time images of the first window and the second window to determine whether an obstacle exists in the target area of the first window includes: calculating the difference between the gray values of the real-time images of the first vehicle window and the second vehicle window; if the difference of the gray values is larger than or equal to a first threshold value, determining that an obstacle exists in a target area of the first vehicle window; and if the difference of the gray values is smaller than the first threshold value, determining that no obstacle exists in the target area of the first vehicle window.

In one implementation, after the acquiring the real-time images of the first and second windows, the method further comprises: calculating a change value of the gray value of the real-time image of the first vehicle window; if the change value is larger than or equal to a second threshold value, determining that an obstacle exists in the target area of the first vehicle window; and if the change value is smaller than the second threshold value, determining that no obstacle exists in the target area of the first vehicle window.

In one implementation, if it is determined that an obstacle exists in the target area of the first window, performing a target control operation on the first window further includes at least one of: displaying reminding information that an obstacle exists in a target area of the first vehicle window; and playing reminding information of the obstacles in the target area of the first vehicle window.

In one implementation, after the performing of the target control operation for prohibiting window closing on the first window, the method further includes: and in a preset time, if the situation that no obstacle exists in the target area of the first window is determined, controlling the first window to be closed.

In a second aspect, an embodiment of the present application provides a vehicle window control device, including: the receiving module is used for receiving window closing operation for closing the first vehicle window; the acquisition module is used for responding to the window closing operation and acquiring real-time images of the first vehicle window and the second vehicle window; the determining module is used for comparing the real-time images of the first vehicle window and the second vehicle window and determining whether an obstacle exists in a target area of the first vehicle window; a control module, configured to execute a target control operation on the first window if it is determined that an obstacle exists in a target area of the first window, where the target control operation includes: and forbidding closing the window, closing the window in a delayed mode, or closing the window to a target position.

In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory arranged to store computer-executable instructions, wherein the processor, when executing the executable instructions, implements the steps of the method according to the first aspect.

In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing one or more programs which, when executed by a processor, implement the steps of the method according to the first aspect.

In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.

In the embodiment of the application, the window closing operation for closing the first window is received; responding to the window closing operation, and acquiring real-time images of the first vehicle window and the second vehicle window; comparing the real-time images of the first vehicle window and the second vehicle window to determine whether an obstacle exists in a target area of the first vehicle window; if the obstacle is determined to exist in the target area of the first vehicle window, executing target control operation on the first vehicle window, wherein the target control operation comprises the following steps: the automobile window is forbidden to be closed, the automobile window is closed in a delayed mode, or the automobile window is closed to a target position, so that the condition that passengers are injured by the automobile window clamp can be avoided, and the safety in the automobile window closing process is improved.

Drawings

The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:

FIG. 1 is a schematic diagram of a hardware configuration of a vehicle to which embodiments of the present application are applicable;

FIG. 2 is a schematic flow diagram of a vehicle window control method according to one embodiment of the present application;

FIG. 3 is a schematic flow diagram of a vehicle window control method according to another embodiment of the present application;

FIG. 4 is a schematic flow diagram of a vehicle window control method according to another embodiment of the present application;

FIG. 5 is a schematic flow diagram of a vehicle window control method according to another embodiment of the present application;

FIG. 6 is a schematic flow diagram of a vehicle window control method according to another embodiment of the present application;

fig. 7 is a schematic structural view of a window control apparatus according to an embodiment of the present application;

FIG. 8 is a schematic structural diagram of an electronic device according to one embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

In the specification and claims of the present application, "and/or" means at least one of connected objects, a character "/" generally means that the former and latter related objects are in an "or" relationship.

The following describes in detail a vehicle window control method provided in the embodiment of the present application with reference to the accompanying drawings through specific embodiments and application scenarios thereof.

Fig. 1 is a schematic diagram showing a hardware configuration of a vehicle to which an embodiment of the present application is applicable, including: the camera is used for acquiring a real-time image of a vehicle window in the vehicle; the controller is used for controlling the camera to acquire real-time images of the car window and controlling the car window to lift; the video and audio module is used for displaying and playing video and audio data; the window comprises a window capable of being lifted electrically on a vehicle, for example, the vehicle is a four-door sedan, and the window can comprise a driving position window, a passenger position window, a rear left side window and a rear right side window.

In one implementation mode, the camera is a camera installed inside the vehicle and used for functions of vehicle internal environment monitoring, human-computer interaction and the like. In the embodiment of the application, the existing camera for monitoring and man-machine interaction in the vehicle is multiplexed to acquire the real-time image of the vehicle window, so that equipment for monitoring the obstacle blocking the vehicle window to be closed is not required to be additionally configured on the vehicle, and the cost of the whole vehicle can be greatly reduced.

As shown in fig. 2, is a schematic flow chart of a window control method 200 according to an embodiment of the present application, which may be performed by an electronic device, which may be a vehicle, a smart vehicle, an unmanned vehicle, etc., which may have, for example, but not limited to, a hardware structure as shown in fig. 1. Or the electronic device may be a software or hardware device installed on a vehicle, a smart vehicle, an unmanned vehicle, in other words, the method may be performed by software or hardware installed on the electronic device, the method comprising the steps of:

s210: a window closing operation for closing the first window is received.

The window closing operation can be that a passenger pushes a control key on a door of a sitting position, a driver pushes a control key on a door of a driving position, and a remote control key is used for carrying out window closing operation. The first window is understood to be the window which needs to be closed for which the window closing operation is intended. Of course, the window closing operation may also be other operations for closing the window, which is not limited in the embodiment of the present application.

It will be understood that if the window closing function is provided with a plurality of gears, for example with two gears: and lifting the window by one key, wherein the window closing operation comprises a window lifting operation and a window lifting operation by one key.

For example, when a passenger in the right rear seat wants to close the window on the right rear seat, the passenger toggles the control button on the door to the window-up shift position, and at this time, the window closing operation for closing the first window is received, where the first window is the window on the right rear seat.

S220: and responding to the window closing operation, and acquiring real-time images of the first vehicle window and the second vehicle window.

In the embodiment of the application, the camera installed in the vehicle can simultaneously acquire real-time images of all windows on the vehicle, for example, the camera can simultaneously acquire real-time images of a driving position window, a copilot window, a rear left window and a rear right window.

In one implementation mode, in response to the window closing operation, the camera is controlled to enter a window closing monitoring mode, a vehicle window image is collected, and real-time images of the first vehicle window and the second vehicle window are obtained. Wherein the acquired real-time image may be a real-time image of a target area of an upper edge of the vehicle window.

Wherein the second glazing may comprise any glazing of the vehicle other than the first glazing. For example, in the case where a window closing operation of closing the right rear window is received, the first window may be the right rear window, and the second window may include at least one of a driver window, a passenger window, and a left rear window. Thus, a comparison can be made between the acquired real-time images of the first window and the second window.

S230: and comparing the real-time images of the first vehicle window and the second vehicle window to determine whether an obstacle exists in the target area of the first vehicle window.

Under normal conditions, i.e. with no obstacles on the windows, the real-time images of all windows in the vehicle are usually similar. If an obstacle is present in the target area along the upper edge of the first window, there will be a large difference between the real-time image of the first window and the real-time images of the other windows (i.e. the second window). Therefore, whether an obstacle exists in the target area of the first vehicle window can be determined by comparing the real-time images of the first vehicle window and the second vehicle window.

Specifically, an image difference threshold may be preset. And comparing the real-time images of the first vehicle window and the second vehicle window to determine image difference. And if the image difference is greater than or equal to a preset image difference threshold value, determining that an obstacle exists in the target area of the first vehicle window. And if the image difference is smaller than a preset image difference threshold value, determining that no obstacle exists in the target area of the first vehicle window.

S240: if the obstacle is determined to exist in the target area of the first vehicle window, executing target control operation on the first vehicle window, wherein the target control operation comprises the following steps: and forbidding closing the window, closing the window in a delayed mode, or closing the window to a target position.

The time delay for closing the window in the delayed manner may be preset by a user, and the target position from closing the window to the target position may also be preset by the user, and of course, the time delay and the target position may also be set in other manners, which is not limited in this embodiment of the application.

For example, if it is determined that an obstacle exists in a target area of a right window on the rear row of the vehicle, a target control operation is performed on the right window on the rear row, and the target control operation may be to directly prohibit the right window on the rear row from executing a window-up command, so that the window can be stopped from being lifted up, and a passenger cannot be accidentally pinched by the window.

The target control operation can also be to control the rear-row right window to execute the window-lifting instruction after delaying for 10s, so that the situation that the window cannot normally execute the window-lifting instruction due to instantaneous actions such as outward throwing of things by passengers or certain temporary obstacles can be avoided, and the reliability and convenience of the window-closing function are ensured.

The target control operation can also be to lift the rear row right side door window to half of the height of the door window, so that the window closing requirements of passengers can be considered, the closing range of the door window is ensured to be always in a safety range, and the passengers are prevented from being accidentally pinched.

Therefore, the window control method provided by the embodiment of the application receives a window closing operation for closing the first window; responding to the window closing operation, and acquiring real-time images of the first vehicle window and the second vehicle window; comparing the real-time images of the first vehicle window and the second vehicle window to determine whether an obstacle exists in a target area of the first vehicle window; if the obstacle is determined to exist in the target area of the first vehicle window, executing target control operation on the first vehicle window, wherein the target control operation comprises the following steps: the method has the advantages that the closing of the car window is forbidden, the car window is closed in a delayed mode, or the car window is closed to the target position, the obstacles on the upper edge of the car window can be identified in time through image comparison in the car window closing process, and the window closing strategy is adjusted, so that the situation that passengers are injured by the car window clamp can be avoided, and the safety and the intelligent degree in the car window closing process are improved.

As shown in fig. 3, is a schematic flow chart of a window control method 300 according to another embodiment of the present application, which may be executed by an electronic device, which may be a vehicle, a smart vehicle, an unmanned vehicle, etc., or a software or hardware device installed on the vehicle, the smart vehicle, the unmanned vehicle, in other words, the method may be executed by software or hardware installed on the electronic device, the method including the steps of:

s310: a window closing operation for closing the first window is received.

S320: and responding to the window closing operation, and acquiring real-time images of the first vehicle window and the second vehicle window.

Steps S310 to S320 may adopt the descriptions of steps S210 to S220 in the embodiment of fig. 2, and are not described herein again.

In view of the surrounding environment of the vehicle, the real-time images of windows on the same row or side of the vehicle are more similar without obstacles on the windows, and therefore, in one implementation, the second window may include windows corresponding to the front and back of the first window and/or windows symmetrical to the left and right of the first window. For example, on a four-door sedan, if the window closing operation is directed to a rear right seat window, in response to the window closing operation, a real-time image of the rear right seat window and a passenger seat window (front right seat window) or a real-time image of the rear right seat window and a rear left seat window may be acquired, and a real-time image of the rear right seat window, the passenger seat window (front right seat window) and a rear left seat window may also be acquired.

It can be understood that, when the obtained second window is a window corresponding to the front and the back of the first window, the real-time images of the first window and the window corresponding to the front and the back of the first window may be compared to determine whether an obstacle exists in the target area of the first window. When the obtained second window is a window which is bilaterally symmetrical to the first window, the real-time images of the first window and the window which is bilaterally symmetrical to the first window can be compared to determine whether an obstacle exists in the target area of the first window.

When the obtained second window includes windows corresponding to the front and back of the first window and windows symmetrical to the left and right of the first window, the first window may be compared with real-time images of the windows corresponding to the front and back of the first window and windows symmetrical to the left and right of the first window, so as to determine whether an obstacle exists in the target area of the first window. Specifically, the first window is compared with the windows corresponding to the front and the back of the first window and the real-time images of the windows symmetrical to the left and the right of the first window respectively to obtain two comparison results, and if the two comparison results both indicate that an obstacle exists in the target area of the first window, it is determined that an obstacle exists in the target area of the first window.

Therefore, when the window images are compared, the window images which correspond to each other in the front-back direction and/or are symmetrical in the left-right direction are used for comparison, so that the interference of the surrounding environment of the vehicle can be reduced, and the accuracy of obstacle identification can be improved.

S331: and calculating the difference between the gray values of the real-time images of the first vehicle window and the second vehicle window.

After the real-time images of the first vehicle window and the second vehicle window are obtained, the gray value of the real-time image of the first vehicle window and the gray value of the real-time image of the second vehicle window are respectively determined. The gray scale value may represent luminance information of the image, and the larger the gray scale value, the higher the luminance of the image.

Normally, i.e. without an obstacle on the window, the gray values of the real-time images of the first window and the second window should be similar and within a certain range. If an obstacle exists on the first vehicle window, the brightness of an area where the obstacle exists is relatively low, and the gray value of the real-time image of the first vehicle window is obviously smaller than that of the real-time image of the second vehicle window. Therefore, whether an obstacle exists in the target area of the first vehicle window can be determined according to the difference of the gray values by calculating the difference of the gray values of the real-time images of the first vehicle window and the second vehicle window.

In one implementation, the real-time image is a real-time image of a target area on an upper edge of a vehicle window, and the difference between the gray values is a difference between the gray values of the target area of the first vehicle window and the target area of the second vehicle window. According to the difference of the gray values of the target area, whether an obstacle exists in the target area of the first vehicle window can be determined more accurately.

S332: if the difference of the gray values is larger than or equal to a first threshold value, determining that an obstacle exists in a target area of the first vehicle window; and if the difference of the gray values is smaller than the first threshold value, determining that no obstacle exists in the target area of the first vehicle window.

S340: if the obstacle is determined to exist in the target area of the first vehicle window, executing target control operation on the first vehicle window, wherein the target control operation comprises the following steps: and forbidding closing the window, closing the window in a delayed mode, or closing the window to a target position.

Step S340 may adopt the description of step S240 in the embodiment of fig. 2, and is not described herein again.

Therefore, the window control method provided by the embodiment of the application receives a window closing operation for closing the first window; responding to the window closing operation, and acquiring real-time images of the first vehicle window and the second vehicle window; comparing the real-time images of the first vehicle window and the second vehicle window to determine whether an obstacle exists in a target area of the first vehicle window; if the obstacle is determined to exist in the target area of the first vehicle window, executing target control operation on the first vehicle window, wherein the target control operation comprises the following steps: the method has the advantages that the closing of the car window is forbidden, the car window is closed in a delayed mode, or the car window is closed to the target position, the obstacles on the upper edge of the car window can be identified in time through image comparison in the car window closing process, and the window closing strategy is adjusted, so that the situation that passengers are injured by the car window clamp can be avoided, and the safety and the intelligent degree in the car window closing process are improved.

Therefore, according to the vehicle window control method provided by the embodiment of the application, the difference between the gray values of the real-time images of the first vehicle window and the second vehicle window is calculated; if the difference of the gray values is larger than or equal to a first threshold value, determining that an obstacle exists in a target area of the first vehicle window; if the difference of the gray values is smaller than the first threshold value, it is determined that no obstacle exists in the target area of the first vehicle window, and the abnormal condition of the first vehicle window can be determined by comparing the gray values of the real-time images of the first vehicle window and the second vehicle window, so that the complexity of image comparison is simplified, the obstacle on the vehicle window is identified more timely, the condition that passengers are injured by the vehicle window is further avoided, and the safety in the vehicle window closing process is improved.

As shown in fig. 4, which is a schematic flow chart of a window control method 400 according to another embodiment of the present application, the method may be performed by an electronic device, which may be a vehicle, a smart vehicle, an unmanned vehicle, etc., or a software or hardware device installed on the vehicle, the smart vehicle, the unmanned vehicle, in other words, the method may be performed by software or hardware installed on the electronic device, the method includes the following steps:

s410: a window closing operation for closing the first window is received.

S420: and responding to the window closing operation, and acquiring real-time images of the first vehicle window and the second vehicle window.

Steps S410-S420 can adopt the descriptions of steps S210-S220 in the embodiment of fig. 2, and are not described herein again.

S431: and calculating the change value of the gray value of the real-time image of the first vehicle window.

Understandably, in the process of closing the first window, the real-time image of the first window is continuously acquired, the gray value of the real-time image of the first window is determined, and the change value of the gray value of the real-time image of the first window is calculated. For example, the difference between the gray values of the image corresponding to the first window at the current moment and the image corresponding to the previous moment is calculated.

Normally, i.e. without obstacles on the window, the gray values of the real-time images of the first window at different times should be similar and within a certain range. If an obstacle suddenly appears on the first window in the closing process of the first window, the gray value of the real-time image of the first window is obviously jumped. Therefore, whether an obstacle exists in the target area of the first window can be determined according to the change value by calculating the change value of the gray value of the real-time image of the first window.

In one implementation manner, the real-time image is a real-time image of a target area of an upper edge of a vehicle window, and the change value is a change value of a gray value of the target area of the first vehicle window. According to the change value of the gray value of the target area, whether an obstacle exists in the target area of the first vehicle window can be determined more accurately.

S432: if the change value is larger than or equal to a second threshold value, determining that an obstacle exists in the target area of the first vehicle window; and if the change value is smaller than the second threshold value, determining that no obstacle exists in the target area of the first vehicle window.

Steps S331-S332 in the embodiment of fig. 3 may also be included before or after steps S431-S432, which is not described herein again.

S440: if the obstacle is determined to exist in the target area of the first vehicle window, executing target control operation on the first vehicle window, wherein the target control operation comprises the following steps: and forbidding closing the window, closing the window in a delayed mode, or closing the window to a target position.

Step S440 may adopt the description of step S240 in the embodiment of fig. 2, and is not described herein again.

Therefore, the window control method provided by the embodiment of the application receives a window closing operation for closing the first window; responding to the window closing operation, and acquiring real-time images of the first vehicle window and the second vehicle window; comparing the real-time images of the first vehicle window and the second vehicle window to determine whether an obstacle exists in a target area of the first vehicle window; if the obstacle is determined to exist in the target area of the first vehicle window, executing target control operation on the first vehicle window, wherein the target control operation comprises the following steps: the method has the advantages that the closing of the car window is forbidden, the car window is closed in a delayed mode, or the car window is closed to the target position, the obstacles on the upper edge of the car window can be identified in time through image comparison in the car window closing process, and the window closing strategy is adjusted, so that the situation that passengers are injured by the car window clamp can be avoided, and the safety and the intelligent degree in the car window closing process are improved.

Therefore, according to the vehicle window control method provided by the embodiment of the application, the change value of the gray value of the real-time image of the first vehicle window is calculated; if the change value is larger than or equal to a second threshold value, determining that an obstacle exists in the target area of the first vehicle window; if the change value is smaller than the second threshold value, it is determined that no obstacle exists in the target area of the first vehicle window, and the abnormal condition of the first vehicle window can be determined by comparing the gray values of the real-time images of the front and rear moments of the first vehicle window, so that the complexity of image comparison is simplified, the obstacle on the vehicle window is identified more timely, the condition that a passenger is injured by the vehicle window is further avoided, and the safety in the vehicle window closing process is improved.

As shown in fig. 5, is a schematic flow chart of a window control method 500 according to another embodiment of the present application, which may be executed by an electronic device, which may be a vehicle, a smart vehicle, an unmanned vehicle, or the like, or a software or hardware device installed on the vehicle, the smart vehicle, the unmanned vehicle, or the like, in other words, the method may be executed by software or hardware installed on the electronic device, the method including the steps of:

s510: a window closing operation for closing the first window is received.

S520: and responding to the window closing operation, and acquiring real-time images of the first vehicle window and the second vehicle window.

Steps S510-S520 may adopt the descriptions of steps S210-S220 in the embodiment of fig. 2, and are not described herein again.

S530: and comparing the real-time images of the first vehicle window and the second vehicle window to determine whether an obstacle exists in the target area of the first vehicle window.

Step S530 may adopt the description of step S230 in the embodiment of fig. 2, or the description of steps S331-S332 in the embodiment of fig. 3, or the description of steps S431-S432 in the embodiment of fig. 4, which is not described herein again.

S541: if the obstacle is determined to exist in the target area of the first vehicle window, executing target control operation on the first vehicle window, wherein the target control operation comprises the following steps: and forbidding closing the window, closing the window in a delayed mode, or closing the window to a target position.

Step S541 may adopt the description of step S240 in the embodiment of fig. 2, and is not described herein again.

S542: displaying reminding information that an obstacle exists in a target area of the first vehicle window; and/or playing reminding information that an obstacle exists in the target area of the first vehicle window.

When the target control operation is executed on the first vehicle window, the reminding information of the existence of the obstacle in the target area of the first vehicle window can be displayed through a video module on the vehicle, and/or the reminding information of the existence of the obstacle in the target area of the first vehicle window can be played. For example, the reminding information can be displayed through an instrument display screen in front of the driving position to remind the driver of the abnormal situation, and the reminding information can be played through sound equipment in the vehicle to remind the driver and passengers in the vehicle of the abnormal situation.

In one implementation, the reminder information may also include the executed target control operation.

For example, if a target control operation for prohibiting window closing is performed on the first window, the driver and the passenger may be informed by a warning message "because there is an obstacle on the upper edge of the window, the window will be prohibited from closing, please retry after removing the obstacle". At this time, the driver and the passenger can notice the potential safety hazard in the window closing process in time, and after the potential safety hazard is eliminated, the driver and the passenger can try to close the window again.

If the target control operation of closing the window in a delayed manner is performed on the first window, a driver and passengers can be informed through reminding information, and the window is closed in a delayed manner and is required to be removed in time due to the fact that the obstacle exists on the upper edge of the window, so that the window is closed after the preset time. At the moment, the driver and the passengers can also notice the potential safety hazard in the closing process of the car window in time, and remove the potential safety hazard in the preset time in time, so that the car window can be normally closed.

If the first window is subjected to target control operation of closing the window to the target position, a driver and passengers can be informed through reminding information, and the window is closed to the target position due to the fact that an obstacle exists on the upper edge of the window, and if the window needs to be closed continuously, the driver needs to retry after the obstacle is removed. At this time, the driver and the passenger can also notice the potential safety hazard in the window closing process in time, and after the potential safety hazard is eliminated, the driver and the passenger can try to close the window again.

Therefore, the window control method provided by the embodiment of the application receives a window closing operation for closing the first window; responding to the window closing operation, and acquiring real-time images of the first vehicle window and the second vehicle window; comparing the real-time images of the first vehicle window and the second vehicle window to determine whether an obstacle exists in a target area of the first vehicle window; if the obstacle is determined to exist in the target area of the first vehicle window, executing target control operation on the first vehicle window, wherein the target control operation comprises the following steps: the method has the advantages that the closing of the car window is forbidden, the car window is closed in a delayed mode, or the car window is closed to the target position, the obstacles on the upper edge of the car window can be identified in time through image comparison in the car window closing process, and the window closing strategy is adjusted, so that the situation that passengers are injured by the car window clamp can be avoided, and the safety and the intelligent degree in the car window closing process are improved.

Therefore, according to the vehicle window control method provided by the embodiment of the application, the reminding information of the obstacle existing in the target area of the first vehicle window is displayed; and/or playing reminding information of the obstacles in the target area of the first window, and reminding a driver and passengers of paying attention to abnormal conditions occurring in the window closing process through instrument images and sound alarm, so that the condition that the passengers are injured by window clamping is further avoided, and the safety in the window closing process is improved.

As shown in fig. 6, which is a schematic flow chart of a window control method 600 according to another embodiment of the present application, the method may be performed by an electronic device, which may be a vehicle, a smart vehicle, an unmanned vehicle, etc., or a software or hardware device installed on the vehicle, the smart vehicle, the unmanned vehicle, in other words, the method may be performed by software or hardware installed on the electronic device, the method includes the following steps:

s610: a window closing operation for closing the first window is received.

S620: and responding to the window closing operation, and acquiring real-time images of the first vehicle window and the second vehicle window.

Steps S610-S620 may adopt the descriptions of steps S210-S220 in the embodiment of fig. 2, and are not described herein again.

S630: and comparing the real-time images of the first vehicle window and the second vehicle window to determine whether an obstacle exists in the target area of the first vehicle window.

Step S630 may adopt the description of step S230 in the embodiment of fig. 2, or the description of steps S331-S332 in the embodiment of fig. 3, or the description of steps S431-S432 in the embodiment of fig. 4, which is not described herein again.

S640: if the obstacle is determined to exist in the target area of the first vehicle window, executing target control operation on the first vehicle window, wherein the target control operation comprises the following steps: and forbidding closing the window, closing the window in a delayed mode, or closing the window to a target position.

Step S640 may adopt the description of step S240 in the embodiment of fig. 2, or the description of steps S541-S542 in the embodiment of fig. 5, which is not described herein again.

If it is determined that an obstacle exists in the target area of the first window and a target control operation for prohibiting closing of the window is performed on the first window, after step S640, the method may further include:

s650: and in a preset time, if the situation that no obstacle exists in the target area of the first window is determined, controlling the first window to be closed.

For example, if it is determined that an obstacle exists above the right rear window, the right rear window is directly prohibited from executing a window-up command, whether the obstacle is removed or not is monitored within a preset time 10s, and if it is determined that the obstacle is removed within the preset time 10s, the right rear window may be controlled to continue to normally execute the window-up command. Therefore, the situation that the window cannot normally execute the window lifting instruction due to transient actions such as outward throwing of things by passengers or certain temporary obstacles can be avoided.

Therefore, the window control method provided by the embodiment of the application receives a window closing operation for closing the first window; responding to the window closing operation, and acquiring real-time images of the first vehicle window and the second vehicle window; comparing the real-time images of the first vehicle window and the second vehicle window to determine whether an obstacle exists in a target area of the first vehicle window; if the obstacle is determined to exist in the target area of the first vehicle window, executing target control operation on the first vehicle window, wherein the target control operation comprises the following steps: the method has the advantages that the closing of the car window is forbidden, the car window is closed in a delayed mode, or the car window is closed to the target position, the obstacles on the upper edge of the car window can be identified in time through image comparison in the car window closing process, and the window closing strategy is adjusted, so that the situation that passengers are injured by the car window clamp can be avoided, and the safety and the intelligent degree in the car window closing process are improved.

Therefore, according to the vehicle window control method provided by the embodiment of the application, in the preset time, if it is determined that no obstacle exists in the target area of the first vehicle window, the first vehicle window is controlled to be closed, the situation that the vehicle window cannot normally execute a window lifting instruction due to instantaneous actions such as outward throwing of objects by passengers and the like or certain temporary obstacles is avoided, the intelligent level of the vehicle window closing function is further improved, the reliability and the convenience of the vehicle window closing function are guaranteed, and the user experience is improved.

Fig. 7 is a schematic structural diagram of a window control device according to an embodiment of the present application. As shown in fig. 7, the window control apparatus 700 includes: a receiving module 710, an obtaining module 720, a determining module 730, and a control module 740.

A receiving module 710 for receiving a window closing operation for closing a first window; an obtaining module 720, configured to obtain real-time images of the first vehicle window and the second vehicle window in response to the window closing operation; the determining module 730 is configured to compare the real-time images of the first vehicle window and the second vehicle window, and determine whether an obstacle exists in a target area of the first vehicle window; a control module 740, configured to, if it is determined that an obstacle exists in a target area of the first window, perform a target control operation on the first window, where the target control operation includes: and forbidding closing the window, closing the window in a delayed mode, or closing the window to a target position.

In one implementation, the second window includes a window corresponding to the front and rear of the first window and/or a window symmetrical to the left and right of the first window.

In one implementation, the determining module is configured to calculate a difference between gray values of the real-time images of the first vehicle window and the second vehicle window; if the difference of the gray values is larger than or equal to a first threshold value, determining that an obstacle exists in a target area of the first vehicle window; and if the difference of the gray values is smaller than the first threshold value, determining that no obstacle exists in the target area of the first vehicle window.

In one implementation, the determining module is configured to calculate a change value of a gray value of the real-time image of the first vehicle window; if the change value is larger than or equal to a second threshold value, determining that an obstacle exists in the target area of the first vehicle window; and if the change value is smaller than the second threshold value, determining that no obstacle exists in the target area of the first vehicle window.

In one implementation manner, the control module is configured to display a reminding message that an obstacle exists in a target area of the first vehicle window; and/or playing reminding information that an obstacle exists in the target area of the first vehicle window.

In one implementation, the control module is configured to control the first window to close if it is determined that no obstacle exists in the target area of the first window within a preset time.

Therefore, the window control device provided by the embodiment of the application receives a window closing operation for closing the first window; responding to the window closing operation, and acquiring real-time images of the first vehicle window and the second vehicle window; comparing the real-time images of the first vehicle window and the second vehicle window to determine whether an obstacle exists in a target area of the first vehicle window; if the obstacle is determined to exist in the target area of the first vehicle window, executing target control operation on the first vehicle window, wherein the target control operation comprises the following steps: the method has the advantages that the closing of the car window is forbidden, the car window is closed in a delayed mode, or the car window is closed to the target position, the obstacles on the upper edge of the car window can be identified in time through image comparison in the car window closing process, and the window closing strategy is adjusted, so that the situation that passengers are injured by the car window clamp can be avoided, and the safety and the intelligent degree in the car window closing process are improved.

The window control device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), and the like, and the embodiments of the present application are not limited in particular.

The window control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.

The device 700 according to the embodiment of the present application may refer to the process corresponding to the method 200-600 of the embodiment of the present application, and each unit/module and the other operations and/or functions in the device 700 are respectively for implementing the corresponding process in the method 200-600, and can achieve the same or equivalent technical effects, and for brevity, no further description is provided herein.

FIG. 8 is a schematic structural diagram of an electronic device according to one embodiment of the present application.

Fig. 8 shows that the embodiment of the present application further provides an electronic device, which may be a terminal device or a server device, and the electronic device includes: antenna 801, radio frequency device 802, baseband device 803, network interface 804, memory 805 and processor 806, programs or instructions stored on memory 805 and executable on said processor 806, which when executed by processor 806, implement:

wherein, the processor 806 is configured to receive a window closing operation for closing the first window; responding to the window closing operation, and acquiring real-time images of the first vehicle window and the second vehicle window; comparing the real-time images of the first vehicle window and the second vehicle window to determine whether an obstacle exists in a target area of the first vehicle window; if the obstacle is determined to exist in the target area of the first vehicle window, executing target control operation on the first vehicle window, wherein the target control operation comprises the following steps: and forbidding closing the window, closing the window in a delayed mode, or closing the window to a target position.

In one implementation, the second window includes a window corresponding to the front and rear of the first window and/or a window symmetrical to the left and right of the first window.

In one implementation, a processor 806 for calculating a difference between grey values of real-time images of the first and second vehicle windows; if the difference of the gray values is larger than or equal to a first threshold value, determining that an obstacle exists in a target area of the first vehicle window; and if the difference of the gray values is smaller than the first threshold value, determining that no obstacle exists in the target area of the first vehicle window.

In one implementation, the processor 806 is configured to calculate a change value of a gray value of the real-time image of the first vehicle window; if the change value is larger than or equal to a second threshold value, determining that an obstacle exists in the target area of the first vehicle window; and if the change value is smaller than the second threshold value, determining that no obstacle exists in the target area of the first vehicle window.

In one implementation, the processor 806 is configured to display a reminder that an obstacle exists in a target area of the first window; and/or playing reminding information that an obstacle exists in the target area of the first vehicle window.

In one implementation, the processor 806 is configured to control the first window to close if it is determined that no obstacle exists in the target area of the first window within a preset time.

The electronic device 800 according to the embodiment of the present application may refer to the process corresponding to the method 200-600 of the embodiment of the present application, and each unit/module and the other operations and/or functions in the electronic device 800 are respectively for implementing the corresponding process in the method 200-600 and achieving the same or equivalent technical effects, and for brevity, no further description is provided herein.

The embodiment of the present application further provides a computer-readable storage medium, where a program or an instruction is stored on the computer-readable storage medium, and when the program or the instruction is executed by a processor, the processes of the above-mentioned embodiment of the vehicle window control method are implemented, and the same technical effects can be achieved, and in order to avoid repetition, details are not repeated here.

The processor is the processor in the electronic device described in the above embodiment. Such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, etc.

The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above method for switching antennas, and can achieve the same technical effect, and is not described herein again to avoid repetition.

It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.

Embodiments of the present application further provide a computer program product comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, which when executed by the processor implement the steps of the method according to the first aspect.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.

While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

22页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种气动塞拉门门泵结构

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!