A gesture recognition method, gesture control method and system in a vehicle
By performing gesture recognition processing on vehicle video images, the characteristics and motion characteristics of the control hand are obtained, which solves the problem of insufficient interaction between users and vehicles in smart cars, achieves high-accuracy and efficient gesture control, and adapts to the recognition of complex scenes.
Patent Information
- Application Number
- CN202411018795.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-29
AI Technical Summary
Existing smart cars have deficiencies in user-vehicle interaction and cannot meet diversified needs, and gesture recognition technology has insufficient recognition accuracy and efficiency in complex scenarios.
By performing gesture recognition processing on the vehicle video image, the hand characteristics of the control hand, including the position information and chirality information of the preset skeletal points, are obtained to determine the motion characteristics of the gesture, meet the gesture control conditions, and realize control of the vehicle.
It achieves high-accuracy and efficient gesture recognition, meets the diversified interaction needs of users and vehicles, and adapts to the recognition of complex scenes.
Smart Images

Figure CN118553022B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a gesture recognition method, a gesture control method and a system in a vehicle. Background Art
[0002] With the development of intelligent technology, cars are becoming more and more intelligent, allowing people to experience the fun and convenience of technology when traveling.
[0003] At present, there are two main ways to control smart cars: controlling the car through an electronic touch screen or physical buttons, and controlling the smart car through an automatic driving algorithm. These are all manifestations of the intelligence of smart cars. The intelligence of vehicles has not only changed the way people drive and ride cars, but also greatly improved the safety, comfort and convenience of travel. Although the manifestation of automobile intelligence is multi-dimensional and increasingly rich, there are still some deficiencies in the interaction between users and vehicles, which cannot meet the diversified needs of users' interaction with vehicles. Summary of the invention
[0004] The embodiments of the present application provide a method for gesture recognition, a method for gesture control, and a system for gesture control in a vehicle. By performing gesture recognition processing on a vehicle video image, the vehicle is controlled according to the obtained control posture of the controlling hand, thereby meeting the diversified needs of the user for interaction with the vehicle, and having high recognition accuracy and efficiency, and being able to adapt to the recognition of complex scenes.
[0005] In a first aspect, an embodiment of the present application provides a method for gesture recognition in a vehicle, the method comprising:
[0006] Acquire a vehicle video image inside a target vehicle;
[0007] By performing gesture recognition processing on the vehicle video image, hand features of the controlling hand are obtained; the hand features include position information of preset skeleton points and chirality information;
[0008] Selecting a target vehicle video image within a recent preset time period from the vehicle video images, and determining a gesture control condition satisfied by the gesture motion characteristics of the control hand according to hand features of the target vehicle video images;
[0009] According to the gesture control condition satisfied by the controlling hand, a control posture of the controlling hand is determined to control a matching object in the target vehicle through the control posture.
[0010] In a possible implementation, the method further includes:
[0011] Determining a gesture category signal triggered by the controlling hand according to the control posture of the controlling hand;
[0012] According to the gesture category signal triggered by the control hand, the matching execution device in the target vehicle is controlled to execute the matching instruction.
[0013] In a possible implementation, the method further includes:
[0014] The vehicle video image inside the target vehicle is collected by an image collection device; the image collection device is installed at the interior rearview mirror inside the target vehicle, and the direction of the image collection device forms an acute angle with the horizontal direction of the target vehicle.
[0015] In a possible implementation, the acute angle ranges from 30 degrees to 50 degrees.
[0016] In a possible implementation, the obtaining of hand features of the controlling hand by performing gesture recognition processing on the vehicle video image includes:
[0017] By performing gesture recognition processing on the vehicle video image, the hand position of the controlling hand is extracted from the vehicle video image, and the hand features of the controlling hand are determined according to the hand position.
[0018] In a possible implementation, extracting the hand position of the control hand from the vehicle video image includes:
[0019] Performing a first downsampling on the vehicle video image to obtain a first sampled image;
[0020] The first sampling image is processed based on a pre-trained hand detection model to obtain position information of the control hand; the position information is represented as the horizontal and vertical coordinates of the upper left corner and the lower right corner of the position detection frame of the control hand.
[0021] In a possible implementation, determining the hand features of the controlling hand according to the hand position includes:
[0022] According to the position information of the control hand, intercepting a hand image from the vehicle video image;
[0023] The hand image is processed based on a hand skeleton point detection model to output the preset skeleton point positions of the control hand, the confidence level of each point position, and chirality information.
[0024] In a possible implementation manner, the control hand is in different in-vehicle areas, and the preset skeleton points used for determining the corresponding gesture control conditions are different; the in-vehicle area to which the control hand belongs is determined by the following method, including:
[0025] Determine a region detection frame in the vehicle video image according to the vehicle model information and the installation position information of the image acquisition device; the region detection frame represents the rear visible area;
[0026] Based on the hand position of the target vehicle video image, determining the positional relationship between the control hand and the regional detection frame and the hand area of the control hand;
[0027] The in-vehicle area to which the controlling hand belongs is determined according to the positional relationship between the controlling hand and the area detection frame and / or the hand area of the controlling hand.
[0028] In a possible implementation manner, the area detection frame includes a first detection area and a second detection area that are connected to each other;
[0029] The first detection area includes the area between the headrest of the front driver's seat and the headrest of the front passenger seat in the target vehicle; the second detection area includes the area between the shoulders of the front driver's seat and the front passenger seat in the target vehicle.
[0030] In a possible implementation manner, selecting the target vehicle video image within a recent preset time period includes:
[0031] Selecting a plurality of frames of vehicle video images within a recent preset time period from the vehicle video images;
[0032] According to the preset skeleton point positions of the control hand in the multiple frames of vehicle video images and the confidence of each point position, a target vehicle video image whose confidence meets a preset confidence threshold is selected from the multiple frames of vehicle video images.
[0033] In a possible implementation, determining the gesture control condition satisfied by the gesture motion feature of the controlling hand according to the hand feature of the target vehicle video image includes:
[0034] According to the hand features of the target vehicle video image, judging whether the posture features of the control hand from the starting point to the end point meet the preset posture conditions, and judging whether the motion features of the control hand meet the specified motion conditions;
[0035] The gesture control condition satisfied by the controlling hand is determined according to the preset posture condition and the specified motion condition satisfied by the controlling hand from the starting point to the end point.
[0036] In a possible implementation, determining a preset posture condition satisfied by the control hand from the starting point to the end point includes:
[0037] Determine whether the control hand is in a palm shape, the direction of the palm of the control hand, and the moving distance of the control hand according to the hand features of the target vehicle video image;
[0038] If the controlling hand satisfies at least one standard palm orientation condition at the starting point and the end point, and the moving distance satisfies a preset distance threshold matching the current standard palm orientation condition, it is determined that the controlling hand satisfies the preset posture condition.
[0039] In a possible implementation, a method for determining whether the controlling hand is in the shape of a palm includes:
[0040] According to the finger features of the control hand being a palm shape and the influence of each finger on the palm shape, the target finger of the control hand and the target bone point of the target finger are determined; the target bone point includes: fingertip bone point, finger bending joint bone point and palm root bone point;
[0041] If the distance from the fingertip bone point to the palm base bone point of each target finger is greater than the distance from the finger bending joint bone point to the palm base bone point and the curvature of each target finger is less than a preset curvature threshold, the controlled hand is determined to be palm-shaped.
[0042] In a possible implementation, determining the palm orientation of the controlling hand includes:
[0043] A first vehicle video image having a corresponding confidence greater than a first threshold is selected from the target vehicle video image, and the chirality information of the control hand and at least two designated skeleton points of the control hand in the first vehicle video image are determined; wherein the at least two designated skeleton points include skeleton points at fingertip positions of at least two different fingers;
[0044] The palm orientation of the controlling hand is determined according to the chirality information of the controlling hand, the finger information respectively corresponding to the at least two designated skeleton points and their positional relationship on the horizontal axis of the current image.
[0045] In a possible implementation, determining the chirality information of the control hand includes:
[0046] When the imaging quality of the target vehicle video image does not meet the set conditions, the target vehicle image is subjected to a second downsampling process, and the obtained second sampled image is input into a human skeleton point model, and the target position and target chirality of the wrist point are output through the human skeleton point model;
[0047] Based on the distance between the wrist point and the skeleton wrist point in the target vehicle video image, it is determined that the wrist point and the skeleton wrist point whose distance is less than a set threshold are the same wrist, and the chirality information of the control hand is determined based on the chirality of the wrist.
[0048] In a possible implementation, determining the gesture control condition satisfied by the controlling hand according to the preset posture condition and the specified motion condition satisfied by the controlling hand includes:
[0049] After determining that the control hand satisfies the preset posture condition and the specified motion condition, if judging based on the subsequent target vehicle video image whether the control hand continues to satisfy the preset posture condition, the specified motion condition and the control hand retraction motion condition during the confirmation retraction process;
[0050] If so, a target gesture control condition for matching the in-vehicle area satisfied by the control hand is determined according to the preset posture condition and the specified motion condition satisfied by the control hand.
[0051] In a possible implementation, determining the moving distance of the control hand includes:
[0052] When it is determined that the vehicle interior area to which the control hand belongs is the rear area, the moving distance is determined based on the fingertip bone point of the preset finger;
[0053] When it is determined that the area inside the vehicle to which the controlling hand belongs is the front row area, if the fingertip skeleton point of the preset finger exists in the current video image, the moving distance is determined based on the fingertip skeleton point; if the fingertip skeleton point of the preset finger does not exist in the current video image, the moving distance is determined based on the finger root skeleton point of the preset finger.
[0054] In a second aspect, an embodiment of the present application further provides a gesture control method in a vehicle, the method comprising:
[0055] Acquire a vehicle video image in a target vehicle, and perform gesture recognition processing on the vehicle video image to obtain a target control posture of a control hand; the gesture recognition processing adopts the in-vehicle gesture recognition method according to any one of the first aspects;
[0056] Determining a gesture category signal triggered by the controlling hand according to the target control posture of the controlling hand;
[0057] According to the gesture category signal triggered by the control hand, the matching execution device in the target vehicle is controlled to execute the matching instruction.
[0058] In a third aspect, an embodiment of the present application further provides a gesture control system in a vehicle, the system comprising:
[0059] An image acquisition device, used to acquire a vehicle video image inside a target vehicle;
[0060] The terminal device is used to obtain hand features of a controlling hand by performing gesture recognition processing on the vehicle video image; the hand features include position information of preset skeleton points and chirality information; select a target vehicle video image within a recent preset time period from the vehicle video image, and determine, based on the hand features of the target vehicle video image, a gesture control condition satisfied by the gesture motion features of the controlling hand; determine a control posture of the controlling hand based on the gesture control condition satisfied by the controlling hand; and determine a gesture category signal triggered by the controlling hand based on the target control posture of the controlling hand;
[0061] An execution device is used to control a matching execution device in the target vehicle to execute a matching instruction according to the gesture category signal triggered by the control hand.
[0062] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the in-vehicle gesture recognition method as described in any one of the first aspect and the in-vehicle gesture control method as described in the second aspect.
[0063] In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the in-vehicle gesture recognition method as described in any one of the first aspect and the in-vehicle gesture control method as described in the second aspect are executed.
[0064] The embodiments of the present application provide a method for gesture recognition, a method for gesture control, and a system for gesture recognition in a vehicle. The method performs gesture recognition processing on a vehicle video image to control the vehicle according to the obtained control posture of the controlling hand, thereby meeting the diversified needs of the user for interaction with the vehicle, and has high recognition accuracy and efficiency, and can adapt to the recognition of complex scenes. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0066] Figure 1 A schematic diagram of the architecture of a control system in a vehicle provided by an embodiment of the present application is shown;
[0067] Figure 2aA flow chart of a method for gesture recognition in a vehicle provided by an embodiment of the present application is shown;
[0068] Figure 2b A schematic diagram showing the hand bone points on the palm and back of the hand;
[0069] Figure 3a A flowchart of another in-vehicle gesture recognition method provided by an embodiment of the present application is shown;
[0070] Figure 3b A schematic diagram of a region detection frame provided in an embodiment of the present application is shown;
[0071] Figure 4 A flowchart of another in-vehicle gesture recognition method provided by an embodiment of the present application is shown;
[0072] Figure 5 A flow chart of a gesture control method in a vehicle provided by an embodiment of the present application is shown;
[0073] Figure 6 A structural diagram of a gesture control system in a vehicle provided by an embodiment of the present application is shown;
[0074] Figure 7 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0075] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0076] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0077] In order to enable those skilled in the art to use the content of this application, the following implementation is provided in conjunction with a specific application scenario "gesture recognition in a vehicle". For those skilled in the art, the general principles defined herein can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application. Although this application is mainly described around "gesture recognition in a vehicle", it should be understood that this is only an exemplary embodiment.
[0078] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0079] like Figure 1 As shown, an embodiment of the present application provides a control system in a vehicle, including an image acquisition device 100, a terminal device 101 (ie, an electronic device) and a plurality of execution devices 103 ( Figure 1 The multiple execution devices in are 103a, 103b, 103c, etc.); here, the image acquisition device 100 can be a camera; the terminal device 101 can be a vehicle-mounted central control or a computer located in the vehicle; the execution device 103 can be some control structures on the vehicle, such as a sunroof control mechanism, a music control mechanism, and a window control mechanism.
[0080] In combination with the above control system, a gesture recognition method and a gesture control method in a vehicle provided by an embodiment of the present application are described in detail below.
[0081] Reference Figure 2a FIG. 1 is a schematic diagram of a method for gesture recognition in a vehicle provided by a first embodiment of the present application, which is executed by a terminal device in the above control system. The method includes:
[0082] S201, acquiring a vehicle video image inside a target vehicle.
[0083] S202. Obtain hand features of a controlling hand by performing gesture recognition processing on the vehicle video image; the hand features include position information of preset skeleton points and chirality information.
[0084] S203: Select a target vehicle video image within a recent preset time period from the vehicle video images, and determine a gesture control condition satisfied by the gesture motion characteristics of the controlling hand based on hand features of the target vehicle video images.
[0085] S204: Determine a control posture of the controlling hand according to a gesture control condition satisfied by the controlling hand, so as to control a matching object in the target vehicle through the control posture.
[0086] The above-mentioned embodiment provides a method for gesture recognition in a vehicle, which analyzes the gesture control conditions satisfied by the gesture motion characteristics of the controlling hand through identifying the hand features of the controlling hand in the vehicle video image and the hand features of the target vehicle video image in the most recent preset time period, and determines the control posture of the controlling hand based on this; in this way, by performing gesture recognition processing on the vehicle video image, the vehicle is controlled according to the obtained control posture of the controlling hand, thereby meeting the diversified needs of users in the interaction with the vehicle, and has high recognition accuracy and efficiency, and can adapt to the recognition of complex scenes.
[0087] The following takes the above-mentioned in-vehicle gesture recognition method applied to a vehicle-mounted terminal device as an example to respectively illustrate the above-mentioned exemplary steps:
[0088] S201, acquiring a vehicle video image inside a target vehicle.
[0089] The above-mentioned target vehicle refers to a vehicle that is determined and capable of gesture recognition processing; in an embodiment of the present application, a vehicle video image in the target vehicle (that is, an in-vehicle video image) is captured by an image acquisition device so that gesture recognition processing can be performed on the in-vehicle video image later.
[0090] In one embodiment, the image acquisition device is installed at the rearview mirror inside the target vehicle, and the lens of the image acquisition device is oriented at an acute angle to the horizontal direction of the target vehicle. The acute angle may range from 30 to 50 degrees, or from 25 to 45 degrees. Setting this angle range can ensure that the image acquisition device can better capture the hand images of people in the vehicle; in actual use, the acute angle is selected to be in the range of about 35 degrees. When the model of the target vehicle and the installation position of the image acquisition device in the target vehicle are determined, the acquisition area of the image acquisition device is also determined, that is, the acquisition area of the collected vehicle video image is determined. In this way, the collected license plate video image is unified, which is convenient for more accurate gesture recognition processing later.
[0091] In an optional embodiment, the image acquisition device is a camera, which can be a monocular camera or a binocular camera. In the embodiment of the present application, a monocular camera is chosen to be used in consideration of recognition efficiency and recognition accuracy. It can also be understood that the use of a monocular camera to capture a two-dimensional image and combined with the algorithm in the embodiment of the present application can achieve gesture recognition more quickly while ensuring recognition accuracy.
[0092] S202. Obtain hand features of a controlling hand by performing gesture recognition processing on the vehicle video image; the hand features include position information of preset skeleton points and chirality information.
[0093] In a specific implementation, after acquiring the vehicle video image, the hand position of the controlling hand is extracted from the vehicle video image by performing gesture recognition processing on the vehicle video image, and the hand features of the controlling hand are determined based on the hand position.
[0094] In an embodiment of the present application, the method for extracting the position of the control hand from the vehicle video image specifically includes:
[0095] Step a1, performing a first downsampling on the vehicle video image to obtain a first sampled image;
[0096] Step a2: Process the first sampled image based on a pre-trained hand detection model to obtain position information of the control hand; the position information is represented by the horizontal and vertical coordinates of the upper left corner and the lower right corner of the position detection frame of the control hand.
[0097] In combination with the above steps a1 and a2, in an embodiment of the present application, the hand position of the controlling hand is extracted through a hand detection module; specifically, the module is used for hand positioning, firstly performing a first down-sampling on the input image (i.e., the collected vehicle video image or the so-called in-vehicle video image) to reduce the image size, and then using the first sampled image after the first down-sampling as the input of the hand detection model, and the hand detection model outputs the position information of the hand in the image, and the position information can be expressed as the horizontal and vertical coordinates of the upper left corner and the lower right corner of the hand circumscribed rectangle (i.e., the position detection box of the controlling hand).
[0098] Specifically, the sampling parameters of the first downsampling are determined according to the hand detection model. In image processing, the purpose of the first downsampling is to reduce the size of the image; this can be achieved by downsampling each dimension (width and height) of the image. For example, a 256x256 image can be downsampled to 128x128, so that the size of the image is reduced by half, while reducing the required storage space and computing resources.
[0099] In an embodiment of the present application, a hand detection model is pre-trained, and the specific training method is as follows: construct training sample images, including: a first down-sampled positive sample image and other images marked with actual position information of the controlling hand; input the above-mentioned training sample images into a deep learning model, and output the position information of the controlling hand through the deep learning model. The position information is expressed as the horizontal and vertical coordinates of the upper left corner and the lower right corner of the position detection box of the controlling hand, and then the position information output by the model is compared with the perspective position information of the hand of the positive sample image, and the model parameters are adjusted according to the comparison results until the model parameters meet the conditions, thereby obtaining a trained hand detection model.
[0100] Here, the "control hand position detection frame" output by the hand detection module is a rectangular frame used to identify the position and size of the control hand in the image. Optionally, the size of the detection frame includes the control hand and fits the outer edge of the control hand. The horizontal and vertical coordinates of the upper left and lower right corners of the position detection frame indicate the specific position information of the position detection frame. Through this position information, multiple parameters of the hand position detection frame can be calculated, such as the position coordinates of the four vertices, the area, and the position in the associated image.
[0101] After the hand position is extracted, the hand features of the hand are further determined based on the hand position. Specifically, the above-mentioned determination of the hand features of the control hand based on the hand position specifically includes:
[0102] Step b1, capturing a hand image from the vehicle video image according to the position information of the control hand;
[0103] Step b2: Process the hand image based on the hand skeleton point detection model, and output the preset skeleton point position of the control hand, the confidence of each point and the chirality information.
[0104] In combination with the above steps b1 and b2, the method is implemented by a hand skeleton point detection module, which includes a hand skeleton point detection model. The hand skeleton point detection model uses two loss functions for training, one loss function RLEloss is used for the task of locating the hand skeleton points, and the other loss function CrossEntropyLoss is used to determine the left-right nature of the hand. The hand skeleton point detection module first receives the hand position information provided by the hand detection model, and then uses the hand position information to capture a hand image from the vehicle video image. The hand image is then input into the hand skeleton point detection model, which outputs the position information of the preset hand skeleton points. The position information includes the position of each preset hand skeleton point (such as Figure 2b Here, if the confidence is higher than the first confidence threshold (for example, 0.2), the point is considered to be detected accurately; if it is lower than the preset confidence threshold (for example, 0.2), the point is considered to be inaccurate. At the same time, the hand skeleton point detection module (hand skeleton point detection model) will also determine and output the handedness of the hand, that is, whether it is the left hand or the right hand.
[0105] Here, the hand skeleton point detection model is also pre-trained, and training samples are also constructed, and the deep learning model is trained based on the training samples.
[0106] In the embodiment of the present application, the image acquisition device acquires vehicle video images inside the target vehicle in real time. It can also be understood that the acquired in-vehicle video images are a continuous image sequence. For example, the above-mentioned gesture recognition processing a1, a2 and b1, b2 is performed on each frame of vehicle video image in the continuous image sequence to obtain the hand features of the controlling hand in each frame of the image. It should be noted here that hand, hand and controlling hand are all hands representing images and represent the same information.
[0107] S203: Select a target vehicle video image within a recent preset time period from the vehicle video images, and determine a gesture control condition satisfied by the gesture motion characteristics of the controlling hand based on hand features of the target vehicle video images.
[0108] This step is performed by a gesture recognition module, which selects the target vehicle video image within the most recent preset time period, and based on the hand features of the target vehicle video image selected within the above period of time, determines whether the gesture movement characteristics of the controlling hand meet the gesture control conditions, and if so, determines the satisfied gesture control conditions.
[0109] In one embodiment, the above-mentioned recent preset time period selects a time period within the last 2 seconds, and takes the hand control action of raising the hand and pressing the action as an example. The above-mentioned gesture control condition is explained using the hand raising and pressing action condition as an example: the hand preset bone points and left and right hand attributes in the vehicle video image within the last 2 seconds are used to determine whether the hand raising and pressing action conditions are met, so as to determine whether the person in the vehicle is performing the hand raising and pressing action.
[0110] Here, different hand control actions correspond to different gesture control conditions; for example, the hand control action is a hand-raising and pressing action, and the hand-raising and pressing action corresponds to the hand-raising and pressing action condition; the hand control action is a hand rotation action, and the hand rotation action corresponds to the rotation action condition; the hand control action is a hand clenching and opening fist action, and the hand clenching and opening fist action corresponds to the fist clenching action condition.
[0111] Still taking the hand control action of raising the hand and pressing the action as an example, in the embodiment of the present application, it is judged whether the gesture motion characteristics of the controlling hand meet the gesture control conditions based on the hand characteristics within the last 2 seconds. The gesture control conditions here are mainly two conditions: 1. It is judged whether the posture characteristics of the controlling hand at the starting point and the end point meet the preset posture conditions based on the hand characteristics; 2. It is judged whether the motion characteristics of the controlling hand meet the specified motion conditions. Among them, different gesture control conditions are different in at least one of the above-mentioned preset posture and specified motion conditions; and for each gesture control condition that determines the control action (such as the hand raising and pressing action), the controlling hand is in different areas inside the vehicle (for example, the front row and the back row of the vehicle), and the preset skeleton points used to determine the gesture control conditions are different. Generally speaking, different areas inside the vehicle may use different preset skeleton points when determining the "movement distance of the hand in the preset posture condition or the specified motion condition" involved in the gesture control conditions; for example, for the back row, the preset fingertip skeleton points are used (for example, Figure 2b The middle fingertip bone point 12 in the video is used to determine the "hand movement distance", and for the front row, if the preset fingertip bone point is truncated in the video image (it can also be understood that the preset fingertip bone point is not captured in the video image), the preset finger root bone point (for example, Figure 2b The middle finger root bone point in 9) determines the "hand movement distance".
[0112] In the embodiment of the present application, taking the hand-raising and pressing action as an example, the gesture action characteristics of the control action are: when doing the hand-raising action, the palm is required to face up, the fingers are facing forward, and the hand is slowly raised upward; when doing the pressing action, the palm is required to face down, the fingers are facing forward, and the hand is slowly pressed downward; and the hand-raising and pressing are required to be palm-shaped hand movements. Therefore, the control conditions corresponding to the above-mentioned hand-raising and pressing gesture actions are: the preset posture conditions corresponding to the gesture action conditions and the specified movement conditions corresponding to the hand-raising and pressing control action. Here, hand-raising and pressing correspond to different gesture action conditions respectively.
[0113] In this step, the gesture recognition module determines whether the gesture motion characteristics of the controlling hand meet any gesture control condition based on the hand features of the target vehicle video image, and if so, determines the satisfied gesture control condition.
[0114] S204: Determine a control posture of the controlling hand according to a gesture control condition satisfied by the controlling hand, so as to control a matching object in the target vehicle through the control posture.
[0115] Here, the gesture control condition is determined based on the characteristics of the control posture and the motion state, so the gesture control condition corresponds to the control posture, that is, it has a mapping table with the control posture. Still taking the example of raising the hand and pressing down, raising the hand corresponds to one gesture control condition, and pressing down corresponds to another gesture control condition. When it is determined by analyzing the image that the control hand satisfies any gesture control condition, the control posture of the control hand is determined according to the satisfied gesture control condition and the above mapping table, with the purpose of controlling the matching object in the target vehicle with the gesture determined by the control.
[0116] In the embodiment of the present application, the gesture recognition module can control the matching object in the target vehicle through the above control gesture, and the specific implementation method includes the following steps:
[0117] c1. Determine a gesture category signal triggered by the controlling hand according to the control posture of the controlling hand.
[0118] c2. According to the gesture category signal triggered by the control hand, control the matching execution device in the target vehicle to execute the matching instruction.
[0119] Combining c1 and c2 above, the gesture recognition module pre-stores the correspondence between the control gesture, the gesture category signal and the device control module; after determining the control gesture of the control hand, the gesture recognition module determines the gesture category signal triggered by the control hand, and then determines the matching device control module based on the above correspondence, and sends the gesture category signal to the matching device control module. The device control module controls the matching execution device in the target vehicle to execute the matching instruction according to the received gesture category signal.
[0120] Taking the hand-raising and pressing recognition module as an example, the hand-raising and pressing recognition module recognizes a hand-raising or pressing gesture. If the corresponding gesture category signal includes a sunroof opening signal or a sunroof closing signal, the corresponding execution device includes a sunroof control mechanism; the sunroof control mechanism opens or closes the sunroof after receiving the sunroof opening signal or the sunroof closing signal; if the gesture category signal includes a music opening signal or a music closing signal, the corresponding execution device includes a music control mechanism, and the music control mechanism controls the music to turn on or off after receiving the music opening signal or the music closing signal.
[0121] In the embodiment of the present application, the control hand is in different in-vehicle areas (for example, the front row or the rear row of the vehicle), and the preset skeleton points used to determine the corresponding gesture control conditions are different. Therefore, it is necessary to first determine the in-vehicle area to which the control hand belongs, and then determine the gesture control conditions based on the in-vehicle area to which it belongs; specifically, Figure 3a As shown, the in-vehicle area to which the control hand belongs is determined in the following manner, including:
[0122] S301. Determine a region detection frame in the vehicle video image according to the vehicle model information and the installation position information of the image acquisition device; the region detection frame represents the rear visible area.
[0123] In an embodiment of the present application, the above-mentioned area detection frame represents the visible area in the rear row, and its position in the image is determined according to the model of the target vehicle, the position of the camera in the vehicle, and the state of the front seats (including the position and backrest posture). To put it another way, different models, the installation position of the camera in the current model of the vehicle, and the position and backrest posture of the front seats are different, and the corresponding area detection frames are also different. In practice, when determining the above-mentioned area detection frame, the position and backrest posture of the front seats must be appropriate, that is, the position of the seat and the angle of the backrest with the corresponding seat cushion must be within a preset angle range, for example, 80 degrees to 120 degrees. Correspondingly, when the model of the target vehicle is determined, the position of the camera in the vehicle is determined, and the state of the front seats meets the conditions, the position of the corresponding area detection frame in the image is determined.
[0124] like Figure 3b As shown, the above-mentioned area detection frame 303 represents the visible area in the rear row, including a first detection area 3031 and a second detection area 3032 that are interconnected; the first detection area 3031 includes the area between the headrest of the front driver's seat and the headrest of the front passenger seat in the target vehicle, and its upper limit is the upper frame of the vehicle video image; the second detection area 3032 includes the area between the shoulders of the front driver's seat and the front passenger seat in the target vehicle, and its lower limit is the upper edge of the armrest box; the upper edge here refers to the edge of the armrest box close to the rear row; Figure 3b Taking the x-axis and y-axis in as an example, the lower limit of the second detection area 3032 is the upper edge of the armrest box, that is, Figure 3b The maximum value of the y-axis is the upper edge of the armrest box; in practice, the lower limit may also be a position lower than the upper edge of the armrest box (that is, the maximum value of the y-axis may be increased within a certain range).
[0125] Specifically, it can also be understood that the entire area detection frame is an overall frame, which represents the visible area of the back row. The hand that appears in this area may be in the front row or the back row. The overall frame includes two parts, the first detection area and the second detection area. These two parts make the entire area detection frame polygonal. When it is a regular polygon, it is in a "T shape" (such as Figure 3b The entire area detection frame 303 in the whole), that is, the first detection area and the second detection area are connected, and the length of the first detection area is greater than the length of the second detection area.
[0126] S302: Determine the positional relationship between the controlling hand and the area detection frame and the hand area of the controlling hand based on the hand position of the target vehicle video image.
[0127] The ultimate goal of this application is to determine the in-vehicle area to which the controlling hand belongs based on at least one of the following at least two conditions: the positional relationship between the controlling hand and the area detection frame; the hand area of the controlling hand. Therefore, in this step, firstly, the positional relationship between the controlling hand and the area detection frame and the hand area of the controlling hand are determined based on the hand position in the image (i.e., the target vehicle video image).
[0128] The method for determining the above-mentioned positional relationship and hand area can be: the hand position in the above-mentioned image, that is, the horizontal and vertical coordinates of the upper left corner and the lower right corner of the position detection frame. With the coordinates, it is possible to determine whether the coordinates are inside or outside the area detection frame, and then the positional relationship with the area detection frame is determined; in addition, with the coordinates, the area of the position detection frame (the position detection frame is a rectangle) can also be calculated, and the area of the controlling hand can be determined based on the area. In the embodiment of the present application, the area of the position detection frame is the hand area of the controlling hand.
[0129] S303: Determine the in-vehicle area to which the controlling hand belongs according to the positional relationship between the controlling hand and the area detection frame and / or the hand area of the controlling hand.
[0130] like Figure 3b As shown, first determine the position relationship between the hand position (that is, the coordinates of the position detection frame of the controlling hand) and the area detection frame. When it is determined that the hand is outside the area detection frame, the controlling hand can only be in the front row area (that is, determine that the controlling hand belongs to the front row area in the car). Since the size of the front and rear rows in the area detection frame is significantly different, when it is determined that the hand is within the area detection frame, the hand area of the controlling hand and the hand area threshold can be used to determine whether it is in the front row or the rear row. Specifically, if the hand area is larger than the threshold, it is in the front row, and if the hand area is smaller than the threshold, it is in the rear row.
[0131] In addition, as described above, the hand-raising and pressing module selects the target vehicle video image within the latest preset time period (for example, within 2 seconds) for processing to determine the gesture control condition satisfied by the controlling hand, but in practice, not all vehicle video images within this period can participate in the analysis, therefore, it is necessary to select the target vehicle video that can participate in the analysis for use; correspondingly, in the embodiment of the present application, the target vehicle video image within the latest preset time period is selected, specifically including:
[0132] d1. Selecting multiple frames of vehicle video images within a recent preset time period from the vehicle video images;
[0133] d2. According to the preset skeleton point positions of the control hand in the multiple frames of vehicle video images and the confidence of each point position, a target vehicle video image whose confidence meets a preset confidence threshold is selected from the multiple frames of vehicle video images.
[0134] In combination with the above d1 and d2, first obtain multiple frames of vehicle video images within the most recent preset time period (for example, within 2s). As mentioned above, after each frame of vehicle video image passes through the hand detection module and the hand skeleton point detection module, the preset skeleton point position of the control hand output by the hand detection model in the hand skeleton point detection module and the confidence of each point are obtained. For each frame of vehicle video image within 2s, determine whether the confidence of each point in the frame of vehicle video image meets the preset confidence threshold. If so, determine that the frame of vehicle video image is the target vehicle video image; if not, directly discard the frame of vehicle video image.
[0135] When judging whether the confidence of each point satisfies the preset confidence threshold, the confidence of all points may satisfy the preset confidence threshold, and the frame of vehicle video image is determined to be the target vehicle video image; or the number of points that do not satisfy the preset confidence threshold is less than the first threshold and the points that do not satisfy the preset confidence threshold are all designated points, while the other points satisfy the first confidence threshold, and the frame of vehicle video image is determined to be the target vehicle video image; the specific method of judging whether the confidence of each point satisfies the first confidence threshold is not limited in the embodiment of the present application.
[0136] The following specifically describes the detailed process of determining the gesture control condition satisfied by the gesture motion feature of the control hand according to the hand feature of the target vehicle video image:
[0137] Further, such as Figure 4 As shown, the in-vehicle gesture recognition method provided by the embodiment of the present application, the determining of the gesture control condition satisfied by the gesture motion feature of the control hand according to the hand feature of the target vehicle video image, includes:
[0138] S401. Determine, based on the hand features of the target vehicle video image, whether the posture features of the control hand from the starting point to the end point meet preset posture conditions, and determine whether the motion features of the control hand meet specified motion conditions.
[0139] In the embodiment of the present application, taking the hand-raising and pressing control action as an example, the gesture action characteristics of the control action are: when doing the hand-raising action, the palm is required to face up, the fingers are facing forward, and the hand is slowly raised upward; when doing the pressing action, the palm is required to face down, the fingers are facing forward, and the hand is slowly pressed downward; and the hand-raising and pressing are required to be palm-shaped hand movements. Therefore, the control conditions corresponding to the above-mentioned hand-raising and pressing gesture actions are: the preset posture conditions corresponding to the above-mentioned gesture action conditions and the specified movement conditions corresponding to the hand-raising and pressing control action. Here, hand-raising and pressing correspond to different gesture action conditions respectively.
[0140] Based on the above conditions, the preset posture conditions satisfied by the controlling hand from the starting point to the end point are determined in an embodiment of the present application, including: e1, determining whether the controlling hand is palm-shaped, the direction of the palm of the controlling hand, and the moving distance of the controlling hand according to the hand features of the target vehicle video image; e2, if the controlling hand satisfies at least one standard palm orientation condition at the starting point and the end point, and the moving distance satisfies the preset distance threshold that matches the current standard palm orientation condition, determining the preset posture conditions satisfied by the controlling hand.
[0141] In an embodiment of the present application, a method for determining whether a controlled hand is in a palm shape includes: determining a target finger of the controlled hand and a target bone point of the target finger according to finger features of the controlled hand being in a palm shape and the degree of influence of each finger on the palm shape; the target bone point includes: a fingertip bone point, a finger bending joint bone point and a palm root bone point; if the distance from the fingertip bone point to the palm root bone point of each target finger is greater than the distance from the finger bending joint bone point to the palm root bone point and the curvature of each target finger is less than a preset curvature threshold, the controlled hand is determined to be in a palm shape.
[0142] First, the target vehicle video image includes a first vehicle video image with a confidence greater than a first confidence threshold, and also includes a second vehicle video image with a confidence greater than a second confidence threshold. The first confidence threshold and the first confidence threshold are both greater than a preset confidence threshold and the first confidence threshold is greater than the first confidence threshold; that is, for the first vehicle video image and the second vehicle video image that meet the preset confidence threshold, the confidence of the first vehicle video image is higher than that of the second vehicle video, which means that the recognition of the first vehicle video image is more accurate and the recognition of the second vehicle video image is generally accurate. Therefore, in the embodiment of the present application, the first vehicle video image is used to determine whether the hand is palm-shaped and the direction of the palm of the hand, and the second vehicle video image with general judgment accuracy is used to judge the movement state of the hand. In this way, the control gesture recognition of the hand can be performed more accurately when the image quality is general due to various reasons. Therefore, it can adapt to the gesture control gesture recognition of more complex scenes (such as scenes using low-end cameras or poor lighting conditions).
[0143] Specific, palm shape reference Figure 2b ,The characteristic of the palm shape of the hand is that the fingers are straightened, and the target fingers of the controlled hand are determined to be the index finger, the middle finger and the ring finger; Figure 2b As shown, the finger bending joint bone point of the index finger is bone point 6, and the fingertip bone point is bone point 8; the finger bending joint bone point of the middle finger is bone point 10, and the fingertip bone point is bone point 12; the finger bending joint bone point of the ring finger is bone point 14, and the fingertip bone point is bone point 16; the above distance refers to the distance from the fingertip bone point of the target finger to the palm root bone point and the distance from the finger bending joint bone point to the palm root bone point.
[0144] Some rules are designed to determine whether the hand is a palm shape:
[0145] 1. Distance (p0, p6) < distance (p0, p8), distance (p0, p6) < distance (p10, p12), distance (p0, p14) < distance (p0, p16) (the output of the model of the three middle fingers is stable); 2. Define the curvature (x, y, z) to represent the angle formed by the line segment from point x to point y and the line segment from point y to point z, then the curvature (p5, p6, p8), curvature (p9, p10, p12), curvature (p13, p14, p16) are all less than a certain angle. Among them, when determining the target finger, any or all of the thumb and the little finger can be determined as the target finger, or the thumb and the little finger can be ignored as the target finger; in the embodiment of the present application, considering that the thumb and the little finger are easily blocked, the thumb and the little finger are not used as the target fingers.
[0146] Second, determining the palm orientation of the control hand includes:
[0147] f1. Select a first vehicle video image whose corresponding confidence is greater than a first threshold from the target vehicle video image, and determine the chirality information of the controlling hand in the first vehicle video image and at least two specified skeleton points of the controlling hand; wherein the at least two specified skeleton points include skeleton points at the fingertip positions of at least two different fingers.
[0148] In combination with f1 and f2, the embodiment of the present application determines two designated bone points as the thumb fingertip bone point and the little finger fingertip bone point based on the palm orientation feature. Specifically, the palm orientation is determined using key points, such as Figure 2b For the left hand, if the position of the bone point 4 of the thumb fingertip on the x-axis is greater than the position of the bone point 20 of the little fingertip on the x-axis, the palm faces downward, otherwise it faces upward; for the right hand, if the position of the bone point 4 of the thumb fingertip on the x-axis is less than the position of the bone point 20 of the little fingertip on the x-axis, the palm faces upward, otherwise it faces downward.
[0149] It should be noted that the above-mentioned conditions for determining the direction of the palm of the controlling hand cannot guarantee the inclination angle of the hand relative to the horizontal plane of the real world. The above-mentioned inclination angle in the hand-raising and pressing down in the embodiment of the present application is within the preset range. Therefore, under the above-mentioned conditions for determining the direction of the palm of the controlling hand, a limiting condition can be added, that is, the hand area or hand width threshold must meet the threshold condition, for example, when the hand area or hand width threshold is less than the corresponding threshold; in this way, it can be more accurately judged whether the palm is facing up or down.
[0150] In the embodiment of the present application, the hand skeleton point detection module outputs the left and right hand chirality of the control hand, but when the imaging quality is very poor, the left and right hand determination of the model is not accurate enough; based on this, the embodiment of the present application also provides another chirality determination method, specifically, the preset posture also includes chirality information; determining the chirality information of the control hand includes the following steps:
[0151] g1. When the imaging quality of the target vehicle video image does not meet the set conditions, the target vehicle image is subjected to a second downsampling process, and the obtained second sampled image is input into a human skeleton point model, and the target position and target chirality of the wrist point are output through the human skeleton point model;
[0152] g2. Based on the distance between the wrist point and the skeleton wrist point in the target vehicle video image, determine that the wrist point and the skeleton wrist point whose distance is less than a set threshold are the same wrist, and determine the chirality information of the control hand based on the chirality of the wrist.
[0153] Combined with the above g1 and g2, the left and right hands are determined using the left and right hands output by the hand skeleton point detection module, but when the image quality is very poor, the left and right hand determination of this model is not accurate enough. Therefore, the human skeleton point model can be used. This model outputs the left and right wrist points. We match the skeleton wrist points and the palm wrist points by distance. When the distance is lower than a certain value, it is considered to be the same wrist, and the chirality of the controlled hand is determined according to the chirality corresponding to the skeleton wrist point, that is, if the skeleton wrist point is the left hand, the set hand is the left hand; if the skeleton wrist point is the right hand, the set hand is the right hand.
[0154] S402: Determine the palm orientation of the controlling hand according to the chirality information of the controlling hand, the finger information corresponding to the at least two designated skeleton points, and their positional relationship on the horizontal axis of the current image.
[0155] In the embodiment of the present application, hand raising is divided into two types according to whether the wrist is raised. In the first type, the elbow (or wrist) does not move, and the palm of the arm rotates around the elbow and raises, and the direction of the palm changes upward. During the hand raising process, the height of the fingers relative to the elbow rises. The characteristics of this type of hand raising are that the direction of the fingers changes greatly from the beginning to the end, and the finger movement distance is long, which is significantly greater than the movement distance of the elbow; the second type is that the whole arm including the elbow moves upward, and the palm direction changes very little. The characteristics of this type of hand raising are that the direction of the fingers changes little from the beginning to the end, the finger movement distance is small, and it is close to the elbow movement distance. Different minimum hand raising movement distances can be set according to the characteristics of these two types of hand raising.
[0156] Pressing down is similar to raising the hand. It is also divided into two types according to whether the wrist is raised. The palm of the arm rotates around the elbow and presses down. The palm direction changes downward. During the hand raising process, the height of the fingers relative to the elbow decreases. The characteristics of this type of pressing down are that the finger direction changes greatly from the beginning to the end, and the finger movement distance is long, which is significantly greater than the movement distance of the elbow. The second type is that the whole arm including the elbow moves downward, and the palm direction changes very little. The characteristics of this type of pressing down are that the finger direction changes little from the beginning to the end, the finger movement distance is small, and it is close to the elbow movement distance. Different minimum pressing down movement distances can be set according to the characteristics of these two types of hand raising.
[0157] As shown above, by detecting and / or controlling the area of the hand through the area detection frame, it can be determined whether the hand is in the front or back row of the vehicle; for the front row, the fingers of the hand are easily cut off when the hand is raised or pressed down, so we use the base bone point 9 of the middle finger on the palm to judge the distance of the hand. Due to the limitation of the armrest box, when the hand in the front row is at the bottom, it meets the requirement that the wrist is above the whole hand, and the angle between the direction from the wrist to the middle finger and the Y-axis of the image is a small angle. This feature is called a standard downward palm. When the wrist moves upward to the top, it still meets the standard downward palm. When the wrist is raised and does not move, according to the amplitude of the hand raising, if the amplitude is large, it meets the requirement that the wrist is below the whole hand, and the angle between the direction from the middle finger to the wrist and the Y-axis of the image is a small angle. This feature is called a standard upward palm.
[0158] For the back row, when the palm is at the bottom of the hand when the hand is raised or pressed down, if the palm is facing downward at a greater angle than a certain angle, it meets the standard palm facing downward. When the wrist and arm are raised, the palm will face downward at a greater angle than a certain angle when the hand is at the bottom in a more comfortable posture, that is, it meets the standard palm facing downward. When the wrist is not moving, if the hand is raised with a small amplitude, when the lower part meets the standard palm facing downward, the upper part does not meet the standard palm facing upward, or the lower part does not meet the standard palm facing upward, and the upper part meets the standard palm facing upward; if the hand is raised with a large amplitude, it may meet the standard palm facing downward at the lower part and the standard palm facing upward at the upper part. There are similar characteristics when pressing down in the back row.
[0159] According to the above characteristics, the hand meets at least one standard of palm facing downward or upward at the starting and ending points of raising the hand and pressing down. When the starting and ending points both meet the standard of palm facing downward, the palm movement distance requirement can be reduced.
[0160] During the movement of raising the hand and pressing down, p9 and p0 should always keep moving upward or downward, and the ratio of movement in the X direction to movement in the Y direction cannot exceed a value (that is, the hand cannot deviate too much during the movement).
[0161] The constraints for hand-raising and hand-pressing determination described above are not sufficient in the actual process, and it is easy to have misidentification. For example, only one end meets the standard palm orientation, and the hand shape changes during the process, which does not meet the definition of hand-raising, but it may be recognized as hand-raising (because only the direction is recognized during the movement). Therefore, retraction is added as a confirmation action for hand-raising and hand-pressing. That is, after reaching the highest point, the hand-raising must keep the hand direction unchanged and return to the starting point along the original path to be considered a complete action. Similarly, after reaching the lowest point, the hand-pressing must keep the hand direction unchanged and return to the starting point along the original path to be considered a complete action.
[0162] Specifically, after determining that the control hand satisfies the preset posture conditions and the specified motion conditions, if it is judged based on the subsequent target vehicle video image whether the control hand continues to satisfy the preset posture conditions, the specified motion conditions and the control hand's retraction motion conditions during the confirmation of the retraction process; if so, determine the target gesture control conditions for matching the in-vehicle area satisfied by the control hand based on the preset posture conditions and the specified motion conditions satisfied by the control hand.
[0163] Take hand raising as an example. During the retraction process, the ratio of the movement in the X direction to the movement in the Y direction cannot exceed a value. When the key point score is greater than a certain value, it is determined that the hand direction remains unchanged and the hand shape is a palm. The retraction end point should meet the following conditions: 1. The hand direction remains unchanged and the hand shape is a palm; 2. The intersection area of the hand detection frame and the starting hand detection frame is greater than a certain value or the hand's Y direction movement distance is greater than a value and the X direction movement is less than a value.
[0164] In addition, in the embodiment of the present application, the method further includes the following steps:
[0165] h1. When it is determined that the area in the vehicle to which the control hand belongs is the rear area, the moving distance is determined based on the fingertip bone points of the preset fingers.
[0166] h2. When it is determined that the area inside the vehicle to which the controlling hand belongs is the front row area, if the fingertip skeleton point of the preset finger exists in the current video image, the moving distance is determined based on the fingertip skeleton point; if the fingertip skeleton point of the preset finger does not exist in the current video image, the moving distance is determined based on the finger root skeleton point of the preset finger.
[0167] Combined with the above h1 and h2, when the controlling hand is in the back row area, for example, in the selected target video image, the moving distance of the controlling hand is determined based on the fingertip bone point 12 of the middle finger; when the controlling hand is in the front row area, if there is no fingertip bone point 12 of the middle finger in the current video image (that is, the fingertip bone point 12 of the middle finger is truncated in the image), the moving distance of the controlling hand is determined based on the finger root bone point 9 of the middle finger.
[0168] The above-mentioned in-vehicle gesture recognition method provided in the embodiment of the present application performs gesture recognition processing on the vehicle video image to control the vehicle according to the control posture of the controlling hand, thereby meeting the diversified needs of users in the interaction with the vehicle, and has high recognition accuracy and efficiency, and can adapt to the recognition of complex scenes.
[0169] Based on the same inventive concept, the second embodiment of the present application also provides a vehicle gesture control method corresponding to the vehicle gesture recognition method, and the relevant features in the vehicle gesture control method are the same as the processing flow of the gesture control method. Since the principle of the gesture control method in the embodiment of the present application is similar to the above-mentioned gesture recognition method in the embodiment of the present application, the implementation of the gesture control method can refer to the implementation of the gesture recognition method, and the repeated parts will not be repeated.
[0170] like Figure 5 As shown, the embodiment of the present application also provides a gesture control method in a vehicle, the method comprising:
[0171] S501, acquiring a vehicle video image in a target vehicle, and performing gesture recognition processing on the vehicle video image to obtain a target control posture of a controlling hand; the gesture recognition processing adopts the in-vehicle gesture recognition method described in the first embodiment.
[0172] S502: Determine a gesture category signal triggered by the controlling hand according to the target control posture of the controlling hand.
[0173] S503: According to the gesture category signal triggered by the control hand, control the matching execution device in the target vehicle to execute the matching instruction.
[0174] The above-mentioned in-vehicle gesture control method provided in the embodiment of the present application performs gesture recognition processing on the vehicle video image to control the vehicle according to the control posture of the controlling hand, thereby meeting the diversified needs of users in the interaction with the vehicle, and has high recognition accuracy and efficiency, and can adapt to the recognition of complex scenes.
[0175] Based on the same inventive concept, the third embodiment of the present application also provides a vehicle gesture control system corresponding to the gesture control method, and the relevant features in the vehicle gesture control system are the same as those in the gesture control method. Since the principle of the gesture control method in the embodiment of the present application is similar to the gesture recognition method in the embodiment of the present application, the implementation of the gesture control system can refer to the implementation of the gesture recognition method, and the repeated parts will not be repeated.
[0176] like Figure 6 As shown, the embodiment of the present application also provides a gesture control system in a vehicle, the system comprising:
[0177] An image acquisition device 601 is used to acquire a vehicle video image inside the target vehicle;
[0178] Terminal device 602 is used to obtain a vehicle video image in a target vehicle; obtain hand features of a controlling hand by performing gesture recognition processing on the vehicle video image; the hand features include point information of preset skeleton points and chirality information; select a target vehicle video image within a recent preset time period from the vehicle video image, and determine, based on the hand features of the target vehicle video image, a gesture control condition satisfied by the gesture motion features of the controlling hand; determine, based on the gesture control condition satisfied by the controlling hand, a control posture of the controlling hand to control a matching object in the target vehicle through the control posture; determine, based on the target control posture of the controlling hand, a gesture category signal triggered by the controlling hand; and determine, based on the control posture of the controlling hand, a gesture category signal triggered by the controlling hand;
[0179] The execution device 603 is used to execute a matching instruction according to the gesture category signal triggered by the control hand.
[0180] In a possible implementation, the image acquisition device is installed at an interior rearview mirror inside the target vehicle, and the direction of the image acquisition device forms an acute angle with the horizontal direction of the target vehicle.
[0181] In a possible implementation manner, the acute angle is 30 degrees to 50 degrees.
[0182] In a possible implementation, the obtaining of hand features of the controlling hand by performing gesture recognition processing on the vehicle video image includes:
[0183] By performing gesture recognition processing on the vehicle video image, the hand position of the controlling hand is extracted from the vehicle video image, and the hand features of the controlling hand are determined according to the hand position.
[0184] In a possible implementation, extracting the hand position of the control hand from the vehicle video image includes:
[0185] Performing a first downsampling on the vehicle video image to obtain a first sampled image;
[0186] The first sampling image is processed based on a pre-trained hand detection model to obtain position information of the control hand; the position information is represented as the horizontal and vertical coordinates of the upper left corner and the lower right corner of the position detection frame of the control hand.
[0187] In a possible implementation, determining the hand features of the controlling hand according to the hand position includes:
[0188] According to the position information of the control hand, intercepting a hand image from the vehicle video image;
[0189] The hand image is processed based on a hand skeleton point detection model to output the preset skeleton point positions of the control hand, the confidence level of each point position, and chirality information.
[0190] In a possible implementation manner, the control hand is in different in-vehicle areas, and the preset skeleton points used for determining the corresponding gesture control conditions are different; the in-vehicle area to which the control hand belongs is determined by the following method, including:
[0191] Determine a region detection frame in the vehicle video image according to the vehicle model information and the installation position information of the image acquisition device; the region detection frame represents the rear visible area;
[0192] Based on the hand position of the target vehicle video image, determining the positional relationship between the control hand and the regional detection frame and the hand area of the control hand;
[0193] The in-vehicle area to which the controlling hand belongs is determined according to the positional relationship between the controlling hand and the area detection frame and / or the hand area of the controlling hand.
[0194] In a possible implementation manner, the area detection frame includes a first detection area and a second detection area that are connected to each other;
[0195] The first detection area includes the area between the headrest of the front driver's seat and the headrest of the front passenger seat in the target vehicle; the second detection area includes the area between the shoulders of the front driver's seat and the front passenger seat in the target vehicle.
[0196] In a possible implementation manner, selecting the target vehicle video image within a recent preset time period includes:
[0197] Selecting a plurality of frames of vehicle video images within a recent preset time period from the vehicle video images;
[0198] According to the preset skeleton point positions of the control hand in the multiple frames of vehicle video images and the confidence of each point position, a target vehicle video image whose confidence meets a preset confidence threshold is selected from the multiple frames of vehicle video images.
[0199] In a possible implementation, determining the gesture control condition satisfied by the gesture motion feature of the controlling hand according to the hand feature of the target vehicle video image includes:
[0200] According to the hand features of the target vehicle video image, judging whether the posture features of the control hand from the starting point to the end point meet the preset posture conditions, and judging whether the motion features of the control hand meet the specified motion conditions;
[0201] The gesture control condition satisfied by the controlling hand is determined according to the preset posture condition and the specified motion condition satisfied by the controlling hand from the starting point to the end point.
[0202] In a possible implementation, determining a preset posture condition satisfied by the control hand from the starting point to the end point includes:
[0203] Determine whether the control hand is in a palm shape, the direction of the palm of the control hand, and the moving distance of the control hand according to the hand features of the target vehicle video image;
[0204] If the controlling hand satisfies at least one standard palm orientation condition at the starting point and the end point, and the moving distance satisfies a preset distance threshold matching the current standard palm orientation condition, it is determined that the controlling hand satisfies the preset posture condition.
[0205] In a possible implementation, a method for determining whether the controlling hand is in the shape of a palm includes:
[0206] According to the finger features of the control hand being a palm shape and the influence of each finger on the palm shape, the target finger of the control hand and the target bone point of the target finger are determined; the target bone point includes: fingertip bone point, finger bending joint bone point and palm root bone point;
[0207] If the distance from the fingertip bone point to the palm base bone point of each target finger is greater than the distance from the finger bending joint bone point to the palm base bone point and the curvature of each target finger is less than a preset curvature threshold, the controlled hand is determined to be palm-shaped.
[0208] In a possible implementation, determining the palm orientation of the controlling hand includes:
[0209] A first vehicle video image having a corresponding confidence greater than a first threshold is selected from the target vehicle video image, and the chirality information of the control hand and at least two designated skeleton points of the control hand in the first vehicle video image are determined; wherein the at least two designated skeleton points include skeleton points at fingertip positions of at least two different fingers;
[0210] The palm orientation of the controlling hand is determined according to the chirality information of the controlling hand, the finger information respectively corresponding to the at least two designated skeleton points and their positional relationship on the horizontal axis of the current image.
[0211] In a possible implementation, determining the chirality information of the control hand includes:
[0212] When the imaging quality of the target vehicle video image does not meet the set conditions, the target vehicle image is subjected to a second downsampling process, and the obtained second sampled image is input into a human skeleton point model, and the target position and target chirality of the wrist point are output through the human skeleton point model;
[0213] Based on the distance between the wrist point and the skeleton wrist point in the target vehicle video image, it is determined that the wrist point and the skeleton wrist point whose distance is less than a set threshold are the same wrist, and the chirality information of the control hand is determined based on the chirality of the wrist.
[0214] In a possible implementation, determining the gesture control condition satisfied by the controlling hand according to the preset posture condition and the specified motion condition satisfied by the controlling hand includes:
[0215] After determining that the control hand satisfies the preset posture condition and the specified motion condition, if judging based on the subsequent target vehicle video image whether the control hand continues to satisfy the preset posture condition, the specified motion condition and the control hand retraction motion condition during the confirmation retraction process;
[0216] If so, a target gesture control condition for matching the in-vehicle area satisfied by the control hand is determined according to the preset posture condition and the specified motion condition satisfied by the control hand.
[0217] In a possible implementation, the method further includes:
[0218] Determining the moving distance of the control hand includes:
[0219] When it is determined that the vehicle interior area to which the control hand belongs is the rear area, the moving distance is determined based on the fingertip bone point of the preset finger;
[0220] When it is determined that the area inside the vehicle to which the controlling hand belongs is the front row area, if the fingertip skeleton point of the preset finger exists in the current video image, the moving distance is determined based on the fingertip skeleton point; if the fingertip skeleton point of the preset finger does not exist in the current video image, the moving distance is determined based on the finger root skeleton point of the preset finger.
[0221] An embodiment of the present application provides a gesture control system in a vehicle. By performing gesture recognition processing on vehicle video images, the vehicle is controlled according to the control posture of the obtained controlling hand, thereby meeting the diversified needs of users in the interaction with the vehicle, and has high recognition accuracy and efficiency, and can adapt to the recognition of complex scenes.
[0222] like Figure 7 As shown, an electronic device 700 provided in an embodiment of the present application includes: a processor 701, a memory 702 and a bus, wherein the memory 702 stores machine-readable instructions executable by the processor 701. When the electronic device is running, the processor 701 communicates with the memory 702 through the bus, and the processor 701 executes the machine-readable instructions to perform the steps of the above-mentioned in-vehicle gesture recognition method or the in-vehicle gesture control method.
[0223] Specifically, the above-mentioned memory 702 and processor 701 can be general-purpose memory and processor, which are not specifically limited here. When the processor 701 runs the computer program stored in the memory 702, it can execute the above-mentioned in-vehicle gesture recognition method or in-vehicle gesture control method.
[0224] Corresponding to the above-mentioned in-vehicle gesture recognition method or in-vehicle gesture control method, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned in-vehicle gesture recognition method or in-vehicle gesture control method are executed.
[0225] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0226] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0227] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0228] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0229] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for gesture recognition in a vehicle, characterized in that: The method comprises: Acquire a vehicle video image inside a target vehicle; By performing gesture recognition processing on the vehicle video image, hand features of the controlling hand are obtained; the hand features include position information of preset skeleton points and chirality information; Selecting a target vehicle video image within a recent preset time period from the vehicle video images, and determining a gesture control condition satisfied by the gesture motion characteristics of the control hand according to hand features of the target vehicle video images; Determining a control posture of the control hand according to a gesture control condition satisfied by the control hand, so as to control a matching object in the target vehicle through the control posture; The control hand is in different areas inside the vehicle, and the preset skeleton points used for the corresponding gesture control conditions are determined to be different; the area inside the vehicle to which the control hand belongs is determined in the following manner, including: determining the area detection frame in the vehicle video image according to the vehicle model information of the target vehicle and the installation position information of the image acquisition device; the area detection frame represents the rear visible area; based on the hand position of the target vehicle video image, determining the positional relationship between the control hand and the area detection frame and the hand area of the control hand; determining the area inside the vehicle to which the control hand belongs according to the positional relationship between the control hand and the area detection frame and / or the hand area of the control hand; The area detection frame includes a first detection area and a second detection area that are interconnected; the first detection area includes the area between the headrest of the front driver's seat and the headrest of the front passenger seat in the target vehicle; the second detection area includes the area between the shoulders of the front driver's seat and the front passenger seat in the target vehicle.
2. The in-vehicle gesture recognition method according to claim 1, characterized in that: The method further comprises: Determining a gesture category signal triggered by the controlling hand according to the control posture of the controlling hand; According to the gesture category signal triggered by the control hand, the matching execution device in the target vehicle is controlled to execute the matching instruction.
3. The in-vehicle gesture recognition method according to claim 1, characterized in that: The method further comprises: The vehicle video image inside the target vehicle is collected by an image collection device; the image collection device is installed at the interior rearview mirror inside the target vehicle, and the direction of the image collection device forms an acute angle with the horizontal direction of the target vehicle.
4. The method for in-vehicle gesture recognition according to claim 3, characterized in that: The acute angle ranges from 30 degrees to 50 degrees.
5. The method for in-vehicle gesture recognition according to claim 1, characterized in that: The obtaining of hand features of the controlling hand by performing gesture recognition processing on the vehicle video image includes: By performing gesture recognition processing on the vehicle video image, the hand position of the controlling hand is extracted from the vehicle video image, and the hand features of the controlling hand are determined according to the hand position.
6. The method for in-vehicle gesture recognition according to claim 5, characterized in that: The step of extracting the hand position of the control hand from the vehicle video image comprises: Performing a first downsampling on the vehicle video image to obtain a first sampled image; The first sampling image is processed based on a pre-trained hand detection model to obtain position information of the control hand; the position information is represented as the horizontal and vertical coordinates of the upper left corner and the lower right corner of the position detection frame of the control hand.
7. The method for in-vehicle gesture recognition according to claim 5, characterized in that: The determining the hand feature of the control hand according to the hand position includes: According to the position information of the control hand, intercepting a hand image from the vehicle video image; The hand image is processed based on a hand skeleton point detection model to output the preset skeleton point positions of the control hand, the confidence level of each point position, and chirality information.
8. The method for in-vehicle gesture recognition according to claim 7, characterized in that: The step of selecting a target vehicle video image within a recent preset time period includes: Selecting a plurality of frames of vehicle video images within a recent preset time period from the vehicle video images; According to the preset skeleton point positions of the control hand in the multiple frames of vehicle video images and the confidence of each point position, a target vehicle video image whose confidence meets a preset confidence threshold is selected from the multiple frames of vehicle video images.
9. The method for in-vehicle gesture recognition according to claim 1, characterized in that: The step of determining the gesture control condition satisfied by the gesture motion feature of the control hand according to the hand feature of the target vehicle video image includes: According to the hand features of the target vehicle video image, judging whether the posture features of the control hand from the starting point to the end point meet the preset posture conditions, and judging whether the motion features of the control hand meet the specified motion conditions; The gesture control condition satisfied by the controlling hand is determined according to the preset posture condition and the specified motion condition satisfied by the controlling hand from the starting point to the end point.
10. The method for in-vehicle gesture recognition according to claim 9, characterized in that: Determining the preset posture conditions satisfied by the control hand from the starting point to the end point includes: Determine whether the control hand is in a palm shape, the direction of the palm of the control hand, and the moving distance of the control hand according to the hand features of the target vehicle video image; If the controlling hand satisfies at least one standard palm orientation condition at the starting point and the end point, and the moving distance satisfies a preset distance threshold matching the current standard palm orientation condition, it is determined that the controlling hand satisfies the preset posture condition.
11. The in-vehicle gesture recognition method according to claim 10, characterized in that: The method for determining whether the control hand is in the shape of a palm includes: According to the finger features of the control hand being a palm shape and the influence of each finger on the palm shape, the target finger of the control hand and the target bone point of the target finger are determined; the target bone point includes: fingertip bone point, finger bending joint bone point and palm root bone point; If the distance from the fingertip bone point to the palm base bone point of each target finger is greater than the distance from the finger bending joint bone point to the palm base bone point and the curvature of each target finger is less than a preset curvature threshold, the controlled hand is determined to be palm-shaped.
12. The method for in-vehicle gesture recognition according to claim 10, characterized in that: Determining the palm orientation of the control hand includes: A first vehicle video image having a corresponding confidence greater than a first threshold is selected from the target vehicle video image, and the chirality information of the control hand and at least two designated skeleton points of the control hand in the first vehicle video image are determined; wherein the at least two designated skeleton points include skeleton points at fingertip positions of at least two different fingers; The palm orientation of the controlling hand is determined according to the chirality information of the controlling hand, the finger information respectively corresponding to the at least two designated skeleton points and their positional relationship on the horizontal axis of the current image.
13. The in-vehicle gesture recognition method according to claim 1 or 10, characterized in that: Determining the chirality information of the control hand includes: When the imaging quality of the target vehicle video image does not meet the set conditions, the target vehicle image is subjected to a second downsampling process, and the obtained second sampled image is input into a human skeleton point model, and the target position and target chirality of the wrist point are output through the human skeleton point model; Based on the distance between the wrist point and the skeleton wrist point in the target vehicle video image, it is determined that the wrist point and the skeleton wrist point whose distance is less than a set threshold are the same wrist, and the chirality information of the control hand is determined based on the chirality of the wrist.
14. The method for in-vehicle gesture recognition according to claim 9, characterized in that: The step of determining the gesture control condition satisfied by the control hand according to the preset posture condition and the specified motion condition satisfied by the control hand comprises: After determining that the control hand satisfies the preset posture condition and the specified motion condition, if judging based on the subsequent target vehicle video image whether the control hand continues to satisfy the preset posture condition, the specified motion condition and the control hand retraction motion condition during the confirmation retraction process; If so, a target gesture control condition for matching the in-vehicle area satisfied by the control hand is determined according to the preset posture condition and the specified motion condition satisfied by the control hand.
15. The method for in-vehicle gesture recognition according to claim 10, characterized in that: Determining the moving distance of the control hand includes: When it is determined that the vehicle interior area to which the control hand belongs is the rear area, the moving distance is determined based on the fingertip bone point of the preset finger; When it is determined that the area inside the vehicle to which the controlling hand belongs is the front row area, if the fingertip skeleton point of the preset finger exists in the current video image, the moving distance is determined based on the fingertip skeleton point; if the fingertip skeleton point of the preset finger does not exist in the current video image, the moving distance is determined based on the finger root skeleton point of the preset finger.
16. A gesture control method in a vehicle, characterized in that: The method comprises: Acquire a vehicle video image in a target vehicle, and perform gesture recognition processing on the vehicle video image to obtain a target control posture of a control hand; the gesture recognition processing adopts the vehicle gesture recognition method according to any one of claims 1 to 15; Determining a gesture category signal triggered by the controlling hand according to the target control posture of the controlling hand; According to the gesture category signal triggered by the control hand, the matching execution device in the target vehicle is controlled to execute the matching instruction.
17. A gesture control system in a vehicle, characterized in that: The system comprises: An image acquisition device, used to acquire a vehicle video image inside a target vehicle; A terminal device, used for obtaining hand features of a controlling hand by performing gesture recognition processing on the vehicle video image; the hand features include position information and chirality information of preset skeleton points; selecting a target vehicle video image within a recent preset time period from the vehicle video image, and determining, based on the hand features of the target vehicle video image, gesture control conditions satisfied by the gesture motion features of the controlling hand; determining a control posture of the controlling hand based on the gesture control conditions satisfied by the controlling hand; determining a gesture category signal triggered by the controlling hand based on the target control posture of the controlling hand; the controlling hand is in different in-vehicle areas, and determining that the preset skeleton points used for the corresponding gesture control conditions are different; determining the in-vehicle area to which the controlling hand belongs in the following manner, including: The target vehicle model information and the installation position information of the image acquisition device are used to determine the area detection frame in the vehicle video image; the area detection frame represents the rear visible area; based on the hand position of the target vehicle video image, the positional relationship between the control hand and the area detection frame and the hand area of the control hand are determined; according to the positional relationship between the control hand and the area detection frame and / or the hand area of the control hand, the vehicle interior area to which the control hand belongs is determined; the area detection frame includes a first detection area and a second detection area that are interconnected; the first detection area includes the area between the front driver seat headrest and the front passenger seat headrest in the target vehicle; the second detection area includes the area between the front driver seat and the front passenger seat shoulders in the target vehicle; An execution device is used to control a matching execution device in the target vehicle to execute a matching instruction according to the gesture category signal triggered by the control hand.
18. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the steps of the in-vehicle gesture recognition method as described in any one of claims 1 to 15 and the in-vehicle gesture control method as described in claim 16.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the in-vehicle gesture recognition method according to any one of claims 1 to 15 and the in-vehicle gesture control method according to claim 16 are executed.
