Vehicle window control method, device, electronic equipment and storage medium
By identifying the hand movements of the target object in the car and automatically adjusting the opening and closing status of the car window, the convenience and safety problems caused by mechanical switches are solved, contactless intelligent window control is realized, and circuit arrangement difficulty is reduced And improves the safety of the car windows.
Patent Information
- Application Number
- CN202210325118.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-29
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2042-03-29
AI Technical Summary
The existing window control methods rely on mechanical switches, which cause the personnel in the car to press continuously to achieve the lifting and lowering of the windows. The windows may not be completely closed when the driver leaves the car, which increases the difficulty of circuit arrangement and safety risks.
By obtaining the body signal and the target object image collected by the camera, identifying its hand movements to automatically adjust the opening and closing state of the car window, and achieving contactless intelligent control.
Convenient window control is realized, reducing the difficulty of circuit layout, improving the safety and functional design of windows, ensuring that the windows can be automatically closed when the driver leaves the vehicle, and preventing property loss.
Smart Images

Figure CN114708577B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, specifically to the field of vehicle control using computer vision technology, and more particularly to a vehicle window control method, device, electronic device, and storage medium. Background Art
[0002] At present, in the process of automobile design and manufacturing, more and more emphasis is placed on improving the comfort and convenience of vehicle operation. In the related technology, the vehicle window control usually adopts a mechanical switch, and the occupants of the vehicle continuously press the mechanical switch to raise and lower the window, which is not conducive to meeting the needs of the occupants for intelligent and convenient control of the window. Summary of the invention
[0003] The present disclosure proposes a technical solution for controlling a vehicle window.
[0004] According to one aspect of the present disclosure, a method for controlling a vehicle window is provided, comprising: acquiring a vehicle body signal; determining whether a target object in a vehicle has an intention to leave the vehicle or an intention to drive away based on the vehicle body signal; acquiring an image of the target object when it is determined that the target object has an intention to leave the vehicle or an intention to drive away; recognizing a hand movement of the target object based on the image of the target object; and adjusting the opening and closing state of the vehicle window based on the intention to leave the vehicle or the intention to drive away based on the determination that the hand movement of the target object is a preset movement.
[0005] In a possible implementation manner, the vehicle body signal includes at least one of a seat belt buckle signal of a seat where the target object is located, a driving status signal of the vehicle, and a door signal of the vehicle.
[0006] In a possible implementation, the vehicle body signal includes a seat belt usage signal; and obtaining the vehicle body signal includes: obtaining an in-vehicle image; detecting the seat belt wearing status of the target object based on the in-vehicle image, and obtaining the seat belt usage signal of the seat where the target object is located.
[0007] In a possible implementation, when it is determined that the hand movement of the target object is a preset movement, adjusting the opening and closing state of the vehicle window according to the intention to leave the vehicle or the driving intention includes: when it is determined that the hand movement of the target object is a preset movement, determining the pointing area of the hand movement; determining the target window according to the pointing area of the hand movement; and adjusting the opening and closing state of the target window according to the intention to leave the vehicle or the driving intention.
[0008] In a possible implementation, acquiring the image of the target object includes: acquiring images with the target object from multiple perspectives captured by multiple cameras installed in the vehicle; determining the target window according to the pointing area of the hand movement includes: generating a confidence level corresponding to each window according to the pointing area of the hand movement in the images with the target object from multiple perspectives; and determining the target window among the windows of the vehicle according to the confidence level.
[0009] In a possible implementation, acquiring the image of the target object includes: acquiring multiple consecutive frames of images of the target object; identifying the hand movement of the target object based on the image of the target object includes: for the multiple consecutive frames of images of the target object, separately identifying the gestures of the target object in each frame of the image; and determining gesture change information of the target object as the recognition result of the hand movement of the target object based on the recognition result of the gestures of the target object in the multiple consecutive frames of images of the target object.
[0010] In a possible implementation, adjusting the opening and closing state of the vehicle windows according to the intention to leave the vehicle or the intention to drive includes at least one of the following: closing at least one window of the vehicle when the target object has an intention to leave the vehicle; opening at least one window of the vehicle when the target object has an intention to drive.
[0011] In a possible implementation, when the target object is the driver of the vehicle, closing at least one window of the vehicle includes closing all windows of the vehicle, and opening at least one window of the vehicle includes opening all windows of the vehicle.
[0012] In a possible implementation, the method further includes: identifying the target object based on the image of the target object and the registered driver information of the vehicle to determine whether the target object is the driver of the vehicle; or acquiring an image of the interior scene of the vehicle and identifying the seating position of the target object in the vehicle based on the image of the interior scene of the vehicle to determine whether the target object is the driver of the vehicle.
[0013] In a possible implementation, the adjusting the opening and closing state of the vehicle's windows includes at least one of the following: adjusting the opening and closing degree of the vehicle's windows according to environmental information of the environment in which the vehicle is located; generating an adjustment end request when it is determined that there is an obstruction in the lifting and lowering area of at least one of the windows; wherein the adjustment end request is used to stop adjusting the opening and closing of at least one of the windows.
[0014] According to one aspect of the present disclosure, a vehicle window control device is provided, comprising: a vehicle body signal acquisition module for acquiring a vehicle body signal; an intention determination module for determining whether a target object in a vehicle has an intention to leave the vehicle or an intention to drive the vehicle based on the vehicle body signal; an image acquisition module for acquiring an image of the target object when it is determined that the target object has an intention to leave the vehicle or an intention to drive the vehicle; a hand motion recognition module for recognizing the hand motion of the target object based on the image of the target object; and a window adjustment module for adjusting the opening and closing state of the vehicle window according to the intention to leave the vehicle or the intention to drive the vehicle when it is determined that the hand motion of the target object is a preset motion.
[0015] According to one aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to call the instructions stored in the memory to execute the above method.
[0016] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor.
[0017] The disclosed embodiment can obtain a vehicle body signal, and then determine whether a target object in the vehicle has an intention to leave the vehicle or drive the vehicle based on the vehicle body signal. When it is determined that the target object has an intention to leave the vehicle or drive the vehicle, an image of the target object is obtained, and then the hand movement of the target object is recognized based on the image of the target object. Finally, when it is determined that the hand movement of the target object is a preset movement, the opening and closing state of the vehicle window is adjusted according to the intention to leave the vehicle or the intention to drive the vehicle. The window control method provided in the disclosed embodiment can intelligently adjust the opening and closing of the window by determining different intentions of the target object to realize an automated window control process. In addition, since the control method provided in the disclosed embodiment can realize contactless window control, it can be applied to vehicles without mechanical window switches to reduce the difficulty of circuit arrangement and save circuit arrangement space, which is conducive to the further development of window function design.
[0018] It should be understood that the above general description and the following detailed description are exemplary and explanatory only and do not limit the present disclosure. Other features and aspects of the present disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.
[0020] Figure 1 A flow chart of a vehicle window control method provided according to an embodiment of the present disclosure is shown.
[0021] Figure 2 A reference schematic diagram of a preset action provided according to an embodiment of the present disclosure is shown.
[0022] Figure 3 A reference schematic diagram of camera setting positions provided according to an embodiment of the present disclosure is shown.
[0023] Figure 4 A block diagram of a vehicle window control device provided according to an embodiment of the present disclosure is shown.
[0024] Figure 5 A block diagram of an electronic device provided according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0025] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0026] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0027] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.
[0028] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0029] In the related art, people in the car usually raise and lower the windows by manually adjusting the mechanical switch. This has the following problems: 1. People in the car usually need to press the mechanical switch continuously, and the window control process is not convenient. 2. When the driver leaves the car, if the mechanical switch is not pressed for a long enough time, the window may not be completely closed, which may cause the property in the car to be lost. 3. The mechanical switch increases the difficulty of circuit layout. In other words, the window control method in the related art is not only not convenient enough, but also has low safety and high difficulty in circuit layout.
[0030] In view of this, the embodiment of the present disclosure provides a method for controlling a vehicle window, which can obtain a vehicle body signal, and then determine whether a target object in the vehicle has an intention to leave the vehicle or drive the vehicle based on the vehicle body signal. When it is determined that the target object has an intention to leave the vehicle or drive the vehicle, an image of the target object is obtained, and then the hand movement of the target object is recognized based on the image of the target object. Finally, when it is determined that the hand movement of the target object is a preset movement, the opening and closing state of the vehicle window is adjusted according to the intention to leave the vehicle or the intention to drive the vehicle. The method for controlling a vehicle window provided by the embodiment of the present disclosure can intelligently adjust the opening and closing of the vehicle window by determining the intention of the target object, so as to realize an automated vehicle window control process. In addition, since the control method provided by the embodiment of the present disclosure can realize contactless vehicle window control, it can be applied to vehicles without mechanical window switches to reduce the difficulty of circuit arrangement and save circuit arrangement space, which is conducive to the further development of vehicle window function design.
[0031] In a possible implementation, the control method can be performed by an electronic device such as a terminal device, and the terminal device can be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc., and the method can be implemented by a processor calling a computer-readable instruction stored in a memory. For example, the control method can be integrated into a vehicle-mounted terminal (e.g., a vehicle computer), and the vehicle-mounted terminal can be connected to automobile components such as a dashboard and a window controller to monitor the real-time signal parameters of the vehicle (e.g., vehicle speed, in-vehicle temperature, air conditioning wind direction, etc.). The vehicle-mounted terminal can be connected to at least one camera, such as an OMS (i.e., Occupant Monitoring System, abbreviation of occupant monitoring system) camera, a DMS (i.e., Driver Monitoring System, abbreviation of driver monitoring system) camera, an external entertainment camera (e.g., a smart phone), etc., to collect images of the target object.
[0032] See also Figure 1 As shown, Figure 1 FIG. 1 is a flow chart showing a method for controlling a vehicle window according to an embodiment of the present disclosure. Figure 1 As shown, the above control method may include:
[0033] Step S100, obtaining a vehicle body signal. Exemplarily, the vehicle body signal can be obtained by the vehicle components such as the instrument panel, the window controller, and then transmitted to the terminal device connected thereto. In one example, the vehicle body signal includes at least one of a seat belt usage signal in the vehicle, a driving status signal of the vehicle, and a door signal of the vehicle. The seat belt usage signal can be used to indicate whether the seat belt of the vehicle is in a wearing state, the driving status signal can be used to indicate whether the vehicle is in a moving state, and the door signal can be used to indicate whether the door of the vehicle is in an open state. Exemplarily, the seat belt usage signal can include a seat belt buckle signal, which can be obtained by a signal sent by a seat belt buckle sensor; the driving status signal of the vehicle can be obtained by a vehicle speed sensor; the door signal of the vehicle can be obtained by a door sensor of the vehicle, for example: information can be transmitted between the sensor and the terminal device via a CAN signal (i.e., Controller Area Network, short for Controller Local Area Network).
[0034] The seat belt usage signal can also be obtained by processing the in-car image. In one possible implementation, step S100 may include: acquiring the in-car image, and then detecting the seat belt wearing status of the target object based on the in-car image, and obtaining the seat belt usage signal of the seat where the target object is located. Exemplarily, the in-car image can be obtained by the camera connected to the terminal device mentioned above. In one example, the machine learning model in the relevant technology can be used to detect whether the target object is wearing a seat belt. For example, the in-car image can be input into a trained machine learning model, and the machine learning model performs binary classification to output whether the target person is wearing a seat belt. Exemplarily, the input of the machine learning model during training can be: training images marked as 'wearing seat belts' and training images marked as 'not wearing seat belts', so that the trained machine learning model can determine whether the target person is wearing seat belts based on the input image, thereby obtaining the seat belt usage signal.
[0035] Step S200, determining whether the target object in the vehicle has the intention to leave the vehicle or the intention to drive the vehicle based on the vehicle body signal. The above target object can be any target person in the vehicle. In one example, in order to improve the representativeness of the target person, the driver can be selected as the above target person. In view of the actual situation, when the driver leaves the vehicle, it usually means that the vehicle is about to be locked, that is, the probability that the windows need to be controlled is greater, and when the passengers leave the vehicle, the driver may also need to go to the next place, and the vehicle may need to continue driving, so the demand for the windows to be controlled is relatively small. Therefore, the driver can be used as the above target person to increase the representativeness of the intention to leave the vehicle and the intention to drive the vehicle, thereby reducing the probability of the windows being controlled by mistake.
[0036] For example, in at least one of the following cases, it can be determined that the target person has the intention to leave the vehicle: the target person changes from a seat belt wearing state to a seat belt not wearing state, the vehicle changes from a moving state to a stopped state, the door is in a closed state and a door opening signal is received. In at least one of the following cases, it can be determined that the target person has the intention to drive: the target person changes from a seat belt not wearing state to a seat belt wearing state, the vehicle is in a stopped state and an ignition signal is received, the door is in an open state and a door closing signal is received.
[0037] Continue reading Figure 1 , step S300, when it is determined that the target object has an intention to leave the vehicle or to drive, an image of the target object is acquired. Exemplarily, the image of the target object can be acquired through the camera connected to the terminal device mentioned above, wherein the image of the target object and the in-vehicle image mentioned above can be acquired through the same or different cameras, and the embodiments of the present disclosure are not limited thereto.
[0038] Step S400, identifying the hand movements of the target object based on the image of the target object. The above-mentioned hand movements can be any movements made by the hand of the target object in the image. Exemplarily, the image including the hand movement of the target object captured by the camera can be input into the hand detection model in the related technology, and then the hand detection model outputs the position of the hand area in the image. Optionally, the hand detection model can further output hand movement information. Alternatively, the hand area in the image can be segmented out and input into a trained gesture detection model, which outputs the recognition result of the hand movement of the target object.
[0039] Step S500, when it is determined that the hand movement of the target object is a preset movement, the opening and closing state of the vehicle window is adjusted according to the intention to leave the vehicle or the intention to drive. For example, it can be determined whether the hand movement of the target object output by the gesture detection model is a preset movement. The terminal device can also display the correspondence between the preset movement and the window control instruction through a display screen to facilitate the user to control the window. Figure 2 As shown, Figure 2 A reference schematic diagram of preset actions provided according to an embodiment of the present disclosure is shown. In one example, the preset action may include at least one of a static action and a dynamic action. The static action is suitable for detecting a single hand action, and the dynamic action is suitable for detecting a change in hand action. The present disclosure embodiment does not limit the specific form of the preset action. For example, the static action may include: making a fist, extending the thumb, extending the index finger, and spreading the palm. The dynamic action may include: the hand is transformed from spreading the palm to making a fist (such as Figure 2 Middle gesture 1), the hand changes from a clenched fist to an open palm (such as Figure 2 In gesture 2), the hand changes from extending the thumb to making a fist, etc. Exemplarily, in the case where the preset action includes a dynamic action, the input of the above-mentioned gesture detection model is at least two frames of hand area images including different hand actions, so that the gesture detection model can detect changes in the hand actions of the target object. For example: during training, the machine learning model can input hand coordinate information in 5 consecutive frames of training images (which can be obtained through the hand key point detection model / algorithm in the relevant technology), that is, 5 sets of hand coordinate information, each set of hand coordinate information includes coordinates corresponding to multiple hand key points, and the coordinates corresponding to the above-mentioned hand key points are the coordinates of the corresponding positions of the hand key points in the two-dimensional coordinate system established based on the training image. By inputting 5 sets of hand coordinate information into the machine learning model and iteratively training it, the trained machine learning model can detect hand actions on the input multiple frames of images of the target object, that is, the trained machine learning model is used as the above-mentioned gesture detection model.
[0040] In a possible implementation, the above-mentioned acquisition of the image of the target object may include: acquiring multiple consecutive frames of images of the target object. The above-mentioned identification of the hand movement of the target object based on the image of the target object includes: for the multiple consecutive frames of images of the target object, respectively identifying the gesture of the target object in each frame of the image, and then based on the recognition result of the gesture of the target object in the multiple consecutive frames of images of the target object, finally determining the gesture change information of the target object as the recognition result of the hand movement of the target object. Exemplarily, the above-mentioned gesture change information is the order in which different hand movements are transformed in sequence and the action content information.
[0041] In a possible implementation, adjusting the opening and closing state of the vehicle windows according to the intention to leave the vehicle or the intention to drive in step S500 may include at least one of the following: when the target object has the intention to leave the vehicle, closing at least one window of the vehicle. When the target object has the intention to drive, opening at least one window of the vehicle. In combination with actual application scenarios, when the target object has the intention to leave the vehicle, the target object can use the above-mentioned preset actions to automatically close the windows to reduce the possibility of loss of property in the vehicle. When the target object has the intention to drive, the target object can use the above-mentioned preset actions to automatically open the windows to speed up the ventilation efficiency.
[0042] In a possible implementation, when the target object is the driver of the vehicle, closing at least one window of the vehicle includes closing all windows of the vehicle, and opening at least one window of the vehicle includes opening all windows of the vehicle. In this way, the driver can conveniently control the opening and / or closing of all vehicle windows through one hand movement, thereby improving the flexibility of control.
[0043] In one example, whether the target object is the driver of the vehicle can be determined in the following manner: the target object is identified according to the image of the target object and the registered driver information of the vehicle to determine whether the target object is the driver of the vehicle. Exemplarily, the driver of the vehicle can complete the registration in advance, and the image can be collected through the camera in the car, so that the terminal device bound to the vehicle can save the driver's body features (such as: obtaining the driver's facial features through the facial feature extraction model in the relevant technology, etc.), or the driver's body features and vehicle information can be associated and registered to the cloud. Then, the body features of the target object extracted from the image of the target object can be compared with the body features of the driver to determine whether the target object is the driver of the vehicle. In one example, the image of the interior scene of the vehicle can also be obtained, and the seating position of the target object in the vehicle can be identified according to the image of the interior scene of the vehicle to determine whether the target object is the driver of the vehicle. For example, the target object sitting in the driving area is the driver of the vehicle. Exemplarily, the corresponding sitting position of the driver can be set according to the driving regulations or vehicle model settings of different regions to compare with the sitting position of the target object. For example, the driver's sitting position is usually set to the left or right side of the front row, which is not limited in the embodiments of the present disclosure. The above-mentioned sitting position can be expressed as the world coordinates corresponding to the position of the target object in the image captured by the camera (used to represent the actual position of the target object). For example, a world coordinate system can be established based on the space inside the vehicle. The camera can map the world coordinate system with the image coordinate system of the image captured by itself, so that the terminal device can determine the world coordinates of the target object in the space inside the vehicle based on the image coordinates of the target object in the image. The generation method of the world coordinate system, the setting of the internal and external parameters of the camera, and the mapping relationship of the coordinate system can refer to the relevant technology, and the embodiments of the present disclosure will not be repeated here.
[0044] In a possible implementation, adjusting the opening and closing state of the vehicle window in step S500 may include: adjusting the opening and closing degree of the vehicle window according to the environmental information of the environment in which the vehicle is located. Exemplarily, the above environmental information may include: rainfall information, temperature information, pollution information, etc., which are not limited in the embodiment of the present disclosure. For example, the above rainfall information, temperature information, and pollution information may be obtained by accessing a wireless network through a terminal device, or through corresponding sensors, or may be obtained through a camera. The embodiment of the present disclosure may determine whether the control instruction of the window is reasonable according to the environment in which the vehicle is located, and may intelligently adjust the opening and closing degree of the window according to different environments. For example, if the weather is light rain, the target object wants to control the window to open, then the terminal device may control the opening degree of the window to 50% to reduce the probability of the target object being wet by rain. If the weather is hot, the target object wants to control the window to open, then the terminal device may control the opening degree of the window to 100% to speed up the air circulation efficiency. In cold weather, if the target object wants to control the opening of the window, the terminal device can control the opening degree of the window to 20% to reduce the probability of the target object feeling uncomfortable due to the cold. The above opening and closing degree can be uniformly set by the developer at the factory, or can be adjusted by the occupants of the car to better meet the actual needs, and the embodiment of the present disclosure is not limited here. Then, if it is determined that there is an obstruction in the lifting area of at least one of the windows, an adjustment end request is generated. The adjustment end request is used to stop adjusting the opening and closing of at least one of the windows. Exemplarily, it can be determined whether there is an obstruction in the lifting area of the window through the infrared sensor of the window or the camera in the car. The obstruction can be any foreign object such as human body and clothing that hinders the lifting of the window. Exemplarily, after generating the adjustment end request, the terminal device can generate an end prompt (for example: voice prompt, text prompt, etc.) to remind the target object that the window control process is over, and then it can also be determined by voice detection and virtual button detection whether the target object insists on adjusting the window. If the target object insists on adjusting the window, the terminal device readjusts the opening and closing of the window. The disclosed embodiment can reduce the probability of property damage and personal injury by determining whether there is an obstruction in the vehicle window area.
[0045] In a possible implementation, step S500 may include: determining the pointing area of the hand action when it is determined that the hand action of the target object is a preset action. Exemplarily, the image of the target object may be input into a gesture direction detection model in the related art to obtain the above-mentioned pointing area. For example, three-dimensional space modeling may be performed based on the interior space of the vehicle to obtain a three-dimensional space model, and then a three-dimensional coordinate system may be established with the three-dimensional space model. The above-mentioned pointing detection model may output the three-dimensional coordinates corresponding to the pointing area in the three-dimensional coordinate system based on the image of the target object. For example, the pointing area may correspond to multiple boundary point coordinates. The terminal device determines the target window according to the pointing area of the hand action. Exemplarily, each window may be represented as a window area by the three-dimensional coordinates in the three-dimensional coordinate system. For example, the terminal device may store the boundary point coordinates corresponding to multiple window areas for comparison with the pointing area. Exemplarily, by comparing the boundary point coordinates of the pointing area and the window area, it may be determined whether there is an overlapping area between the two. If there is an overlapping area between the two, the window corresponding to the window area is used as the above-mentioned target window. In one example, the area of the overlapped region may be compared with an area threshold, and when the area of the overlapped region is greater than the area threshold, the window corresponding to the window region may be used as the target window. Then, according to the leaving intention or the driving intention, the opening and closing state of the target window may be adjusted.
[0046] In a possible implementation, the above-mentioned acquisition of the image of the target object may include: acquiring images with the target object from multiple perspectives captured by multiple cameras arranged in the vehicle. The above-mentioned determination of the target window according to the pointing area of the hand movement may include: generating a confidence corresponding to each window according to the pointing area of the hand movement in the images with the target object from multiple perspectives, and then determining the target window among the windows of the vehicle according to the confidence. Exemplarily, the above-mentioned confidence is used to indicate the possibility that each window is the target window, and the embodiment of the present disclosure does not limit the specific calculation method of the confidence. For example: the above-mentioned confidence may be positively correlated with the above-mentioned overlapping area. The terminal device may determine the target window among the windows according to the confidence. For example: the terminal device may use the window with the highest sum of confidences in different perspectives as the above-mentioned target window. For another example: the terminal device can set different weights for images under different perspectives according to the distance between the hand movement and different cameras (which can be expressed as the number of pixels occupied by the hand movement in the image with the target object), and then use the window with the highest sum of confidence as the above-mentioned target window to improve the accuracy of obtaining the target window.
[0047] See also Figure 3 , Figure 3The reference schematic diagram of the camera setting position provided according to the embodiment of the present disclosure is shown. In combination with the actual application scenario, the terminal device can be a vehicle computer in a vehicle, and the camera can be set at Figure 3 A in the figure is used to obtain the image of the driver. The vehicle computer obtains the information that the vehicle switches from a moving state to a stationary state through the CAN signal, and the seat belt buckle of the main driver's seat changes from buckled to unbuckled. The vehicle computer infers that the driver is about to leave the vehicle and starts to collect images. At this time, the driver makes a preset movement with his hand (such as the hand movement changes from extending the palm to making a fist), and all windows (for example: the left front window, the right front window, the left rear window, the right rear window, the sunroof, etc.) can be automatically closed to improve the safety of the property in the car.
[0048] For another example, the car computer obtains the information through CAN signals that the vehicle is stationary and the seat belt buckle of the main driver's seat changes from unlocked to buckled, and the car computer infers that the driver is about to drive and starts collecting images. At this time, the driver makes a preset hand movement (such as changing the hand movement from clenching a fist to extending a palm), and all the windows can be automatically opened to improve the ventilation efficiency in the car.
[0049] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not repeat them. It can be understood by those skilled in the art that in the above-mentioned method of the specific implementation method, the specific execution order of each step should be determined according to its function and possible internal logic.
[0050] In addition, the present disclosure also provides a vehicle window control device, an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any vehicle window control method provided by the present disclosure. The corresponding technical solutions and descriptions are referred to the corresponding records in the method part and will not be repeated here.
[0051] See also Figure 4 , Figure 4 A block diagram of a vehicle window control device 100 according to an embodiment of the present disclosure is shown. Figure 4 As shown, the device includes: a body signal acquisition module 110, used to acquire a body signal; an intention determination module 120, used to determine whether a target object in the vehicle has an intention to leave the vehicle or an intention to drive the vehicle based on the body signal; an image acquisition module 130, used to acquire an image of the target object when it is determined that the target object has an intention to leave the vehicle or an intention to drive the vehicle; a hand motion recognition module 140, used to recognize the hand motion of the target object based on the image of the target object; and a window adjustment module 150, used to adjust the opening and closing state of the vehicle's windows according to the intention to leave the vehicle or the intention to drive the vehicle when it is determined that the hand motion of the target object is a preset motion.
[0052] In a possible implementation manner, the vehicle body signal includes at least one of a seat belt buckle signal of a seat where the target object is located, a driving status signal of the vehicle, and a door signal of the vehicle.
[0053] In a possible implementation, the vehicle body signal includes a seat belt usage signal; and obtaining the vehicle body signal includes: obtaining an in-vehicle image; detecting the seat belt wearing status of the target object based on the in-vehicle image, and obtaining the seat belt usage signal of the seat where the target object is located.
[0054] In a possible implementation, when it is determined that the hand movement of the target object is a preset movement, adjusting the opening and closing state of the vehicle window according to the intention to leave the vehicle or the driving intention includes: when it is determined that the hand movement of the target object is a preset movement, determining the pointing area of the hand movement; determining the target window according to the pointing area of the hand movement; and adjusting the opening and closing state of the target window according to the intention to leave the vehicle or the driving intention.
[0055] In a possible implementation, acquiring the image of the target object includes: acquiring images with the target object from multiple perspectives captured by multiple cameras installed in the vehicle; determining the target window according to the pointing area of the hand movement includes: generating a confidence level corresponding to each window according to the pointing area of the hand movement in the images with the target object from multiple perspectives; and determining the target window among the windows of the vehicle according to the confidence level.
[0056] In a possible implementation, acquiring the image of the target object includes: acquiring multiple consecutive frames of images of the target object; identifying the hand movement of the target object based on the image of the target object includes: for the multiple consecutive frames of images of the target object, separately identifying the gestures of the target object in each frame of the image; and determining gesture change information of the target object as the recognition result of the hand movement of the target object based on the recognition result of the gestures of the target object in the multiple consecutive frames of images of the target object.
[0057] In a possible implementation, adjusting the opening and closing state of the vehicle windows according to the intention to leave the vehicle or the intention to drive includes at least one of the following: closing at least one window of the vehicle when the target object has an intention to leave the vehicle; opening at least one window of the vehicle when the target object has an intention to drive.
[0058] In a possible implementation, when the target object is the driver of the vehicle, closing at least one window of the vehicle includes closing all windows of the vehicle, and opening at least one window of the vehicle includes opening all windows of the vehicle.
[0059] In a possible embodiment, the device also includes an object recognition module for performing the following steps: identifying the target object based on the image of the target object and the registered driver information of the vehicle to determine whether the target object is the driver of the vehicle; or acquiring an image of the interior scene of the vehicle and identifying the seating position of the target object in the vehicle based on the image of the interior scene of the vehicle to determine whether the target object is the driver of the vehicle.
[0060] In a possible implementation, the adjusting the opening and closing state of the vehicle's windows includes at least one of the following: adjusting the opening and closing degree of the vehicle's windows according to environmental information of the environment in which the vehicle is located; generating an adjustment end request when it is determined that there is an obstruction in the lifting and lowering area of at least one of the windows; wherein the adjustment end request is used to stop adjusting the opening and closing of at least one of the windows.
[0061] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0062] The embodiment of the present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor. The computer-readable storage medium can be a volatile or non-volatile computer-readable storage medium.
[0063] An embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to call the instructions stored in the memory to execute the above method.
[0064] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.
[0065] The electronic device may be provided as a terminal or a device in other forms.
[0066] Figure 5A block diagram of an electronic device 800 provided according to an embodiment of the present disclosure is shown. For example, the electronic device 800 may be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, or other terminal devices.
[0067] Reference Figure 5 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0068] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0069] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0070] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.
[0071] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0072] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0073] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0074] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a complementary metal oxide semiconductor (CMOS) or a charge coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0075] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as a wireless network (Wi-Fi), a second generation mobile communication technology (2G), a third generation mobile communication technology (3G), a fourth generation mobile communication technology (4G), a long-term evolution (LTE) of a universal mobile communication technology, a fifth generation mobile communication technology (5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0076] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0077] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions, which can be executed by a processor 820 of an electronic device 800 to perform the above method.
[0078] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0079] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, (but not limited to) an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.
[0080] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0081] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0082] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0083] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0084] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0085] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0086] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (SDK) and the like.
[0087] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
[0088] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0089] If the technical solution of this application involves personal information, the product using the technical solution of this application has clearly informed the personal information processing rules and obtained the individual's voluntary consent before processing the personal information. If the technical solution of this application involves sensitive personal information, the product using the technical solution of this application has obtained the individual's separate consent before processing the sensitive personal information, and at the same time meets the "explicit consent" requirement. For example, on personal information collection devices such as cameras, clear and prominent signs are set to inform that the personal information collection scope has been entered and personal information will be collected. If the individual voluntarily enters the collection scope, it is deemed that he or she agrees to the collection of his or her personal information; or on the device that processes personal information, the personal information processing rules are notified by obvious signs / information, and the individual's authorization is obtained through pop-up information or by asking the individual to upload his or her personal information; among them, the personal information processing rules may include information such as the personal information processor, the purpose of personal information processing, the processing method, and the type of personal information processed.
[0090] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for controlling a vehicle window, characterized in that: The control method comprises: Obtain vehicle body signal; Determining whether a target object in the vehicle has an intention to leave the vehicle or to move forward according to the vehicle body signal; When it is determined that the target object has an intention to leave the vehicle or to move, acquiring an image of the target object; recognizing a hand movement of the target object according to the image of the target object; When it is determined that the hand movement of the target object is a preset movement, the opening and closing state of the vehicle window is adjusted according to the intention to leave the vehicle or the intention to drive the vehicle.
2. The control method according to claim 1, characterized in that: The vehicle body signal includes at least one of a seat belt buckle signal of a seat where the target object is located, a driving state signal of the vehicle, and a door signal of the vehicle.
3. The control method according to claim 1, characterized in that: The vehicle body signal includes a seat belt use signal; The obtaining of the vehicle body signal comprises: Acquire the image inside the vehicle; The seat belt wearing status of the target object is detected according to the in-vehicle image, and a seat belt usage signal of the seat where the target object is located is obtained.
4. The control method according to any one of claims 1 to 3, characterized in that: When it is determined that the hand motion of the target object is a preset motion, adjusting the opening and closing state of the window of the vehicle according to the intention to leave the vehicle or the intention to drive the vehicle includes: In the case where it is determined that the hand motion of the target object is a preset motion, determining a pointing area of the hand motion; Determining a target vehicle window according to the pointing area of the hand movement; According to the intention to leave the vehicle or the intention to drive the vehicle, the opening and closing state of the target vehicle window is adjusted.
5. The method according to claim 4, characterized in that The acquiring the image of the target object comprises: Acquire images with target objects from multiple perspectives collected by multiple cameras arranged in the vehicle; The step of determining the target window according to the pointing area of the hand motion includes: Generate a confidence score corresponding to each vehicle window according to the pointing area of the hand action in the images with the target object from multiple perspectives; A target window among the windows of the vehicle is determined according to the confidence level.
6. The control method according to any one of claims 1 to 5, characterized in that: The acquiring the image of the target object comprises: Acquire multiple consecutive frames of images of the target object; The identifying the hand motion of the target object according to the image of the target object comprises: For the continuous multiple frames of images of the target object, respectively identify the gesture of the target object in each frame of the image; According to the recognition results of the gestures of the target object in the continuous multiple frames of images of the target object, the gesture change information of the target object is determined as the recognition result of the hand movement of the target object.
7. The control method according to any one of claims 1 to 6, characterized in that: The adjusting the opening and closing state of the vehicle window according to the leaving intention or the driving intention includes at least one of the following: If the target object intends to leave the vehicle, closing at least one window of the vehicle; When the target object has the intention to drive, at least one window of the vehicle is opened.
8. The control method according to claim 7, characterized in that: In a case where the target object is a driver of the vehicle, closing at least one window of the vehicle includes closing all windows of the vehicle, and opening at least one window of the vehicle includes opening all windows of the vehicle.
9. The method according to claim 8, characterized in that The method further comprises: Identify the target object based on the image of the target object and the registered driver information of the vehicle to determine whether the target object is the driver of the vehicle; or An image of the interior scene of the vehicle is acquired, and a seating position of the target object in the vehicle is identified based on the image of the interior scene of the vehicle to determine whether the target object is a driver of the vehicle.
10. The control method according to any one of claims 1 to 9, characterized in that: The adjusting the opening and closing state of the vehicle window comprises at least one of the following: Adjusting the degree of opening and closing of the vehicle windows according to environmental information of the environment in which the vehicle is located; When it is determined that there is an obstruction in the lifting area of at least one of the vehicle windows, an adjustment end request is generated; wherein the adjustment end request is used to stop adjusting the opening and closing of the at least one of the vehicle windows.
11. A vehicle window control device, characterized in that: The control device comprises: A body signal acquisition module, used to acquire body signals; An intention determination module, used to determine whether a target object in the vehicle has an intention to leave the vehicle or to drive according to the vehicle body signal; An image acquisition module, used for acquiring an image of the target object when it is determined that the target object has an intention to leave the vehicle or to move; A hand motion recognition module, used for recognizing the hand motion of the target object according to the image of the target object; The window adjustment module is used to adjust the opening and closing state of the vehicle window according to the intention of leaving the vehicle or the intention of driving when it is determined that the hand movement of the target object is a preset movement.
12. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the control method described in any one of claims 1 to 10.
13. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the control method according to any one of claims 1 to 10 is implemented.
