Hand posture recognition method and device, equipment, storage medium and program product

By detecting and estimating multi-view videos of the hand, filtering out redundant frames and performing three-dimensional conversion, the problem of inaccuracy and data redundancy in hand posture recognition when the wrist is flipped is solved, and the recognition efficiency and accuracy are improved.

CN118550401APending Publication Date: 2024-08-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310215949.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing hand gesture recognition technology is inaccurate when the wrist is turned, and full processing of multi-view images results in data redundancy and high processing time.

Method used

By detecting and estimating the current frame of the multi-view hand video, filtering out redundant frames and then identifying joint points, converting it into a three-dimensional coordinate system, and using posture estimation parameters to describe the hand posture, reducing detection and processing time consumption.

Benefits of technology

It improves the accuracy and efficiency of hand gesture recognition, reduces the amount of data for joint point recognition, and avoids hand joint points from deviating from the actual situation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550401A
    Figure CN118550401A
Patent Text Reader

Abstract

The invention relates to a hand posture recognition method and device, computer equipment, a storage medium and a computer program product. The method relates to a computer vision technology of artificial intelligence, and comprises the following steps: carrying out hand detection on a first-eye image of a current frame to obtain a hand detection frame in the first-eye image; performing hand estimation on the second eye image of the current frame to obtain a hand estimation frame in the second eye image; after redundant frames corresponding to the redundant hands are filtered out from a hand detection frame in the first eye image of the current frame and a hand estimation frame in the second eye image of the current frame, hand joint point recognition is carried out, and a two-dimensional joint point corresponding to the current frame is obtained; converting the two-dimensional joint points into three-dimensional joint points in a three-dimensional hand coordinate system; and converting the three-dimensional joint points in the three-dimensional hand coordinate system into three-dimensional joint points of the current frame in the world coordinate system according to the attitude estimation parameters corresponding to the current frame. By adopting the method, the efficiency and accuracy of hand posture recognition can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a hand gesture recognition method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] With the development of computer technology and artificial intelligence technology, there are more and more application scenarios based on gesture interaction, such as hand tracking, somatosensory games, somatosensory entertainment, etc. In these application scenarios, through three-dimensional hand recognition, users can interact with the device naturally and intuitively. The device actively captures the user's hand gesture and recognizes and processes the hand gesture.

[0003] Hand gesture recognition requires the collection of multiple images, and target detection is performed on the multiple images to obtain a hand detection frame. In the related art, in order to avoid obtaining the hand detection frame through the target detection algorithm as much as possible and reduce the time consumption of image processing, a tracking method is used to estimate the hand detection frame. However, this estimation method is not accurate enough, especially when the wrist is flipped, there is a situation where the estimated position of the hand joint point is far away from the actual hand joint. In addition, the related art processes all hands that appear in the picture, and there is data redundancy, which leads to a high processing time. Summary of the invention

[0004] Based on this, it is necessary to provide a hand gesture recognition method, device, computer equipment, computer-readable storage medium and computer program product that can simultaneously improve recognition accuracy and reduce processing time in response to the above technical problems.

[0005] In a first aspect, the present application provides a method. The method comprises:

[0006] Acquire a current frame of a multi-view video of a hand, where the current frame includes a multi-view image;

[0007] Performing hand detection on the first eye image of the current frame to obtain a first eye detection result; the first eye detection result is used to locate a hand detection frame in the first eye image of the current frame;

[0008] Performing hand estimation on the second eye image of the current frame to obtain a second eye estimation result; the second eye estimation result is used to locate a hand estimation frame in the second eye image of the current frame;

[0009] After filtering out redundant frames corresponding to redundant hands from the hand detection frame in the first image of the current frame and the hand estimation frame in the second image, hand joint point recognition is performed to obtain two-dimensional joint points corresponding to the current frame;

[0010] Converting the two-dimensional joint points into three-dimensional joint points in a three-dimensional hand coordinate system;

[0011] According to the posture estimation parameters corresponding to the current frame, the three-dimensional joint points in the three-dimensional hand coordinate system are converted into the three-dimensional joint points of the current frame in the world coordinate system, and the three-dimensional joint points in the world coordinate system are used to describe the three-dimensional hand posture of the hand in the current frame.

[0012] In a second aspect, the present application also provides a hand gesture recognition device. The device comprises:

[0013] An acquisition module, used to acquire a current frame of a multi-eye video of a hand, wherein the current frame includes a multi-eye image;

[0014] A hand detection module, used to perform hand detection on the first eye image of the current frame to obtain a first eye detection result; the first eye detection result is used to locate a hand detection frame in the first eye image of the current frame;

[0015] A hand estimation module, used for performing hand estimation on the second eye image of the current frame to obtain a second eye estimation result; the second eye estimation result is used to locate a hand estimation frame in the second eye image of the current frame;

[0016] A joint point recognition module is used to identify hand joint points after filtering out redundant frames corresponding to redundant hands from the hand detection frame in the first image of the current frame and the hand estimation frame in the second image, so as to obtain two-dimensional joint points corresponding to the current frame;

[0017] A posture recognition module is used to convert the two-dimensional joint points into three-dimensional joint points in a three-dimensional hand coordinate system; according to the posture estimation parameters corresponding to the current frame, the three-dimensional joint points in the three-dimensional hand coordinate system are converted into the three-dimensional joint points of the current frame in the world coordinate system, and the three-dimensional joint points in the world coordinate system are used to describe the three-dimensional hand posture of the hand in the current frame.

[0018] In one embodiment, the hand estimation module is further configured to perform hand estimation on the first eye image of the current frame to obtain a first eye estimation result when the first eye detection result indicates that there is no hand detection frame in the first eye image; the first eye estimation result is used to locate the hand estimation frame in the first eye image of the current frame;

[0019] The joint point recognition module is also used to filter out redundant frames corresponding to redundant hands from the hand estimation frame in the first image of the current frame and the hand estimation frame in the second image, and then perform hand joint point recognition to obtain the two-dimensional joint points corresponding to the current frame.

[0020] In one embodiment, the apparatus further comprises:

[0021] A detection frame cache module is used to cache the hand detection frame and corresponding hand classification information in the first eye image of the current frame when the first eye detection result indicates that there is a hand detection frame in the first eye image.

[0022] In one embodiment, the apparatus further comprises:

[0023] a cache detection frame acquisition module, configured to acquire a cache detection frame when the second-eye estimation result indicates that the second-eye estimation frame is invalid, wherein the cache detection frame is a hand detection frame in the second-eye image in which hand detection is performed in a frame previous to the current frame;

[0024] The joint point recognition module is also used to identify the hand joint points after filtering out the redundant frames corresponding to the redundant hands from the hand detection frame in the first image and the cache detection frame, so as to obtain the two-dimensional joint points corresponding to the current frame.

[0025] In one embodiment, the hand estimation module is also used to obtain the three-dimensional joint points of each of the first two frames of the current frame in the world coordinate system; estimate the three-dimensional joint points of the current frame in the world coordinate system based on the three-dimensional joint points of each of the first two frames in the world coordinate system, and reproject the estimated three-dimensional joint points of the current frame in the world coordinate system to obtain estimated two-dimensional joint points of the current frame; determine the hand estimation box in the second eye image of the current frame based on the estimated two-dimensional joint points of the current frame.

[0026] In one embodiment, the apparatus further comprises:

[0027] The estimation frame evaluation module is used to identify the hand joint points of the hand estimation frame in the second eye image of the current frame; calculate the three-dimensional joint points of the current frame in the world coordinate system according to the detection results and the posture estimation parameters; when the difference between the calculated three-dimensional joint points of the current frame in the world coordinate system and the estimated three-dimensional joint points of the current frame in the world coordinate system is greater than a preset threshold, the second eye estimation frame is determined to be invalid.

[0028] In one embodiment, the first eye detection result includes hand classification information; the joint point recognition module includes a redundant frame filtering unit:

[0029] The redundant frame filtering unit is used to perform hand matching on the hand detection frame in the first image of the current frame and the hand estimation frame in the second image, and screen out a pair of frames that match the same left hand and a pair of frames that match the same right hand based on the matching results and hand classification information; if there are multiple different left hands, retain the pair of frames of the left hand corresponding to the frame closest to the center of the image; if there are multiple different right hands, retain the pair of frames of the right hand corresponding to the frame closest to the center of the image.

[0030] In one embodiment, the first eye detection result includes hand classification information of a hand detection frame, and the hand classification information is used to identify hand joint points of the hand detection frame; the device further includes:

[0031] A hand classification information adjustment module is used to obtain multiple cache detection frames before performing hand joint point recognition, wherein the cache detection frame is a hand detection frame in an image in which hand detection is performed in a historical frame corresponding to the current frame; for each hand detection frame in the current frame, the hand detection frame is hand-matched with the multiple cache detection frames, and a hand detection frame belonging to the same hand as the hand detection frame in the current frame is determined from the multiple cache detection frames according to the matching result; a vote is performed based on the hand classification information of the hand detection frame belonging to the same hand as the hand detection frame in the current frame and the hand classification information of the hand detection frame in the current frame to obtain a voting result on the hand classification information of the hand detection frame in the current frame; the voting result is used to adjust the hand classification information of the current frame.

[0032] In one embodiment, the apparatus further comprises:

[0033] A hand classification information correction module is used to correct the adjusted hand classification information according to the voting result to obtain corrected hand classification information if the adjusted hand classification information of each hand detection frame in the current frame indicates that there are two left hands or two right hands in the current frame.

[0034] In one embodiment, the two-dimensional joint points represent the two-dimensional coordinates of the joint points in the image plane coordinate system; the three-dimensional hand joints represent the three-dimensional coordinates of the joint points in the three-dimensional hand coordinate system;

[0035] The posture recognition module is also used to use the two-dimensional coordinates of the target joint point in the image plane coordinate system as the origin of the two-dimensional finger coordinate system; determine the two-dimensional coordinates of the adjacent joint point in the two-dimensional finger coordinate system according to the angle between the adjacent joint point of the target joint point and the finger joint between the target joint point in the two-dimensional finger coordinate system, and the length of the finger joint; and convert the two-dimensional coordinates of the adjacent joint point in the two-dimensional finger coordinate system into three-dimensional coordinates in the three-dimensional hand coordinate system according to the conversion relationship between the two-dimensional finger coordinate system and the three-dimensional hand coordinate system.

[0036] In one embodiment, the posture recognition module is also used to obtain the three-dimensional joint points of each of the first two frames before the current frame in the world coordinate system; calculate the posture estimation parameters of each of the first two frames based on the three-dimensional joint points of each of the first two frames in the world coordinate system; and interpolate the posture estimation parameters of each of the first two frames to obtain the posture estimation parameters corresponding to the current frame.

[0037] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0038] Acquire a current frame of a multi-view video of a hand, where the current frame includes a multi-view image;

[0039] Performing hand detection on the first eye image of the current frame to obtain a first eye detection result; the first eye detection result is used to locate a hand detection frame in the first eye image of the current frame;

[0040] Performing hand estimation on the second eye image of the current frame to obtain a second eye estimation result; the second eye estimation result is used to locate a hand estimation frame in the second eye image of the current frame;

[0041] After filtering out redundant frames corresponding to redundant hands from the hand detection frame in the first image of the current frame and the hand estimation frame in the second image, hand joint point recognition is performed to obtain two-dimensional joint points corresponding to the current frame;

[0042] Converting the two-dimensional joint points into three-dimensional joint points in a three-dimensional hand coordinate system;

[0043] According to the posture estimation parameters corresponding to the current frame, the three-dimensional joint points in the three-dimensional hand coordinate system are converted into the three-dimensional joint points of the current frame in the world coordinate system, and the three-dimensional joint points in the world coordinate system are used to describe the three-dimensional hand posture of the hand in the current frame.

[0044] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0045] Acquire a current frame of a multi-view video of a hand, where the current frame includes a multi-view image;

[0046] Performing hand detection on the first eye image of the current frame to obtain a first eye detection result; the first eye detection result is used to locate a hand detection frame in the first eye image of the current frame;

[0047] Performing hand estimation on the second eye image of the current frame to obtain a second eye estimation result; the second eye estimation result is used to locate a hand estimation frame in the second eye image of the current frame;

[0048] After filtering out redundant frames corresponding to redundant hands from the hand detection frame in the first image of the current frame and the hand estimation frame in the second image, hand joint point recognition is performed to obtain two-dimensional joint points corresponding to the current frame;

[0049] Converting the two-dimensional joint points into three-dimensional joint points in a three-dimensional hand coordinate system;

[0050] According to the posture estimation parameters corresponding to the current frame, the three-dimensional joint points in the three-dimensional hand coordinate system are converted into the three-dimensional joint points of the current frame in the world coordinate system, and the three-dimensional joint points in the world coordinate system are used to describe the three-dimensional hand posture of the hand in the current frame.

[0051] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0052] Acquire a current frame of a multi-view video of a hand, where the current frame includes a multi-view image;

[0053] Performing hand detection on the first eye image of the current frame to obtain a first eye detection result; the first eye detection result is used to locate a hand detection frame in the first eye image of the current frame;

[0054] Performing hand estimation on the second eye image of the current frame to obtain a second eye estimation result; the second eye estimation result is used to locate a hand estimation frame in the second eye image of the current frame;

[0055] After filtering out redundant frames corresponding to redundant hands from the hand detection frame in the first image of the current frame and the hand estimation frame in the second image, hand joint point recognition is performed to obtain two-dimensional joint points corresponding to the current frame;

[0056] Converting the two-dimensional joint points into three-dimensional joint points in a three-dimensional hand coordinate system;

[0057] According to the posture estimation parameters corresponding to the current frame, the three-dimensional joint points in the three-dimensional hand coordinate system are converted into the three-dimensional joint points of the current frame in the world coordinate system, and the three-dimensional joint points in the world coordinate system are used to describe the three-dimensional hand posture of the hand in the current frame.

[0058] The above-mentioned hand gesture recognition method, device, computer equipment, storage medium and computer program product, after obtaining the current frame of the multi-view video of the hand, performs hand detection on the first view image of the current frame to obtain a hand detection frame in the first view image. Only one view image in the multi-view image is subjected to hand detection each time, which can reduce processing time. In addition, hand estimation is also performed on the second view image of the current frame to obtain a hand estimation frame in the second view image, which is used together as a basis for joint point recognition. In this way, both the first view image information and the second view image information are obtained, which can provide parallax information while reducing detection time, thereby improving the efficiency and accuracy of hand gesture recognition. In addition, after filtering out the redundant frames corresponding to the redundant hands from the hand detection frame in the first image of the current frame and the hand estimation frame in the second image, hand joint point recognition is performed to obtain the two-dimensional joint points corresponding to the current frame, which can reduce the amount of data for joint point recognition and further reduce processing time. Through hand modeling, the two-dimensional joint points are converted into three-dimensional joint points in a three-dimensional hand coordinate system, and according to the posture estimation parameters corresponding to the current frame, the three-dimensional joint points in the three-dimensional hand coordinate system are converted into three-dimensional joint points in the world coordinate system of the current frame, which avoids the situation in which the estimated hand joint points in the related technology deviate from the actual ones and improves the accuracy of recognizing hand postures. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 is an application environment diagram of a hand gesture recognition method in one embodiment;

[0060] Figure 2 1 is a flow chart of a hand gesture recognition method according to an embodiment;

[0061] Figure 3 is a schematic diagram of performing hand detection on an image to obtain a hand detection frame in an embodiment;

[0062] Figure 4 is a schematic diagram of 21 hand joints in one embodiment;

[0063] Figure 5 A schematic diagram of estimating a hand estimation frame of a current frame in one embodiment;

[0064] Figure 6is a schematic diagram of a three-dimensional hand coordinate system in one embodiment;

[0065] Figure 7 is a schematic diagram of a two-dimensional finger coordinate system in one embodiment;

[0066] Figure 8 is a schematic diagram of various hand joints in one embodiment;

[0067] Fig. 9 A schematic diagram of a flow chart of steps for adjusting hand classification information in an embodiment;

[0068] Fig.10 is a processing flow chart of a hand gesture recognition method in one embodiment;

[0069] Fig.11 is a structural block diagram of a hand gesture recognition device in one embodiment;

[0070] Fig.12 is an internal structure diagram of a computer device in one embodiment;

[0071] Fig.13 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION

[0072] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0073] The hand gesture recognition method provided in the embodiment of the present application can be applied to the field of artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that the machines have the functions of perception, reasoning and decision-making.

[0074] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. Basic artificial intelligence technologies generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operating / interactive systems, mechatronics and other technologies. Artificial intelligence software technologies mainly include computer vision technology, speech processing technology, natural language processing technology, as well as machine learning / deep learning, autonomous driving, smart transportation and other major directions.

[0075] The hand gesture recognition method provided in the embodiment of the present application mainly relates to computer vision technology (Computer Vision, CV) in the field of artificial intelligence technology. Computer vision is a science that studies how to make machines "see". To put it more concretely, it refers to machine vision such as using cameras and computers to replace human eyes to identify and measure targets, and further perform graphic processing to make computer processing into images that are more suitable for human eye observation or transmission to instrument detection. As a scientific discipline, computer vision studies related theories and technologies, and attempts to establish an artificial intelligence system that can obtain information from images or multidimensional data. Computer vision technology generally includes image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous positioning and map construction, automatic driving, smart transportation and other technologies, as well as common biometric recognition technologies such as face recognition and fingerprint recognition.

[0076] With the research and progress of artificial intelligence technology, artificial intelligence technology has been studied and applied in many fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, unmanned driving, automatic driving, drones, robots, smart medical care, smart customer service, Internet of Vehicles, automatic driving, smart transportation, etc. I believe that with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role.

[0077] Some concepts involved in this application are explained:

[0078] keypoint / keypoints: key points, mainly referring to the hand joints.

[0079] keypoint2D / keypoints2D: two-dimensional joint point.

[0080] keypoint3D / keypoints3D: three-dimensional joint points.

[0081] Handness: Classification information of the hand, whether it is left or right hand.

[0082] Eye: A camera is called a eye.

[0083] View: a single-eye image. In a multi-eye camera, the image taken by one of the cameras at one time is called a single-eye image. It can be understood that different cameras have different shooting fields of view or angles, so the images taken will be different.

[0084] Frame: Multiple images taken by multiple cameras at one time are called a frame, and one frame includes multiple images.

[0085] Image detection model: Image detection is one of the tasks of computer vision, which is used to output the location and classification of objects in the image. Target detection is a task of image detection, which can output the location of the target object in the input image.

[0086] Tracking: In computer vision, the process of locating a target in consecutive video frames, for example, the hand in this application.

[0087] The hand gesture recognition method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 through a network. The data storage system can store data that the server 104 needs to process, such as cache detection boxes and corresponding hand classification information. The data storage system can be integrated on the server 104, or placed on the cloud or other servers.

[0088] In one embodiment, the multi-eye camera is connected to the terminal via a wired or wireless connection, and the multi-eye camera can capture multi-eye videos of hands. The terminal 102 obtains the multi-eye videos of hands captured in real time from the multi-eye camera and sends them to the server 104. The server 104 performs hand detection on the first eye image of the current frame of the multi-eye video of the hand to obtain a first eye detection result, and the first eye detection result is used to locate the hand detection frame in the first eye image of the current frame, and performs hand estimation on the second eye image of the current frame to obtain a second eye estimation result, and the second eye estimation result is used to locate the hand estimation frame in the second eye image of the current frame. Then, the server 104 performs hand estimation on the first eye image of the current frame to obtain a second eye estimation result, and the second eye estimation result is used to locate the hand estimation frame in the second eye image of the current frame. In the hand detection frame in the first image and the hand estimation frame in the second image, after filtering out the redundant frames corresponding to the redundant hands, the hand joint points are identified to obtain the two-dimensional joint points corresponding to the current frame, and then the two-dimensional joint points are converted into three-dimensional joint points in the three-dimensional hand coordinate system. According to the posture estimation parameters corresponding to the current frame, the three-dimensional joint points in the three-dimensional hand coordinate system are converted into three-dimensional joint points in the world coordinate system of the current frame. The three-dimensional joint points in the world coordinate system are used to describe the three-dimensional hand posture of the hand in the current frame. Optionally, 104 can feed back the identified three-dimensional hand posture to the terminal 102, and the terminal 102 responds according to the three-dimensional hand posture. Of course, it can also be that after the terminal 102 obtains the real-time multi-eye video of the hand from the multi-eye camera, the terminal 102 performs the above steps locally to identify the three-dimensional hand posture.

[0089] The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The terminal 102 may also be a VR (Virtual Reality) device. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0090] In the related technology, the process of some hand posture recognition is as follows: first, the multi-eye images of the multi-eye camera are respectively subjected to target detection through the hand detection algorithm, and the hand detection frame and the corresponding hand classification information in each eye image are output. Then, after the hand detection frame is cropped out from each eye image, the joint points in the hand detection frame are identified through the joint point recognition algorithm, and the hand joint points in the hand detection frame are output, that is, the positions of the joint points are located. Finally, the three-dimensional posture of the hand is calculated based on the hand joint points in each eye image.

[0091] The disadvantages are at least as follows: Since the execution of the target detection algorithm is computationally intensive and time-consuming, target detection is performed on all multi-eye images collected by all cameras, resulting in a long processing time, which will affect the gesture tracking effect. For this reason, some methods try to avoid obtaining hand detection through the target detection algorithm as much as possible and instead estimate the hand detection frame through tracking. However, this estimation method will be inaccurate when the wrist is flipped, and there may be a situation where the estimated position of the hand joint point is far away from the actual hand joint. In addition, even if it is an estimation method, all hands that appear in the picture are processed, there is data redundancy, and the processing time is still high.

[0092] The hand gesture recognition method provided in the embodiment of the present application obtains the current frame of the multi-eye video of the hand, and then performs hand detection on the first eye image of the current frame to obtain a hand detection frame in the first eye image. Only one eye image in the multi-eye image is used for hand detection each time, which can reduce processing time. In addition, hand estimation is also performed on the second eye image of the current frame to obtain a hand estimation frame in the second eye image, and the two are used together as the basis for joint point recognition. In this way, both the first object image information and the second object image information are available, which can provide parallax information while reducing detection time, thereby improving the efficiency and accuracy of hand gesture recognition. In addition, from the current In the hand detection frame in the first image of the frame and the hand estimation frame in the second image, after filtering out the redundant frames corresponding to the redundant hands, hand joint point recognition is performed to obtain the two-dimensional joint points corresponding to the current frame, which can reduce the amount of data for joint point recognition and further reduce processing time; through hand modeling, the two-dimensional joint points are converted into three-dimensional joint points in the three-dimensional hand coordinate system, and according to the posture estimation parameters corresponding to the current frame, the three-dimensional joint points in the three-dimensional hand coordinate system are converted into the three-dimensional joint points of the current frame in the world coordinate system, which avoids the situation in which the estimated hand joint points in the related technology deviate from the actual situation and improves the accuracy of recognizing hand posture.

[0093] In one embodiment, Figure 2 As shown, a hand gesture recognition method is provided, and the method is applied to Figure 1 The computer device (terminal or server) in the example is used to illustrate, including the following steps:

[0094] Step 202: Acquire a current frame of the multi-eye video of the hand, where the current frame includes multi-eye images.

[0095] Among them, the multi-eye video of the hand is a video obtained by synchronously capturing images of the hands appearing in the same area at different shooting angles by the multi-eye camera. For example, in a VR gesture recognition scenario, the user places both hands in a preset area, and each camera in the multi-eye camera captures the video of the preset area at different angles to obtain a multi-eye video of the hand. The multi-eye camera can be, for example, a binocular camera, a quad-eye camera, etc., and the embodiments of the present application are not limited to this.

[0096] Each frame of the multi-eye video of the hand is a collection of video images captured by each camera in the multi-eye camera at the same time. The current frame can be understood as a collection of video images captured by each camera in the multi-eye camera at the current moment, that is, the current frame includes multi-eye images, and the previous frame can be understood as a collection of video images captured by each camera in the multi-eye camera at the previous moment.

[0097] For example, the current frame is two video images captured by the binocular camera at time t, and the previous frame is two video images captured by the binocular camera at time t-1. It can also be understood that the current frame is the kth frame, which includes binocular images, and the previous frame is the k-1th frame, both of which include binocular images. It can be understood that the current moment and the previous moment here are dynamically changing, and accordingly, the current frame and the previous frame are also dynamically changing. The current frame can be understood as the currently processed frame. After the current frame is processed, the next frame is obtained and becomes the new current frame.

[0098] Step 204, performing hand detection on the first eye image of the current frame to obtain a first eye detection result; the first eye detection result is used to locate a hand detection frame in the first eye image of the current frame.

[0099] In the embodiment of the present application, it is not necessary to perform hand detection on all images in the current frame, but, for each frame, only one of the images is used for hand detection. The first image in the current frame is the image that needs to be hand detected among the multiple images included in the current frame, and the second image in the current frame is the image that does not need to be hand detected among the multiple images included in the current frame.

[0100] When the number of cameras of the multi-eye camera is two, the number of images included in each frame is two. In this case, the number of images that do not need to be detected by hand, that is, the number of second-eye images, is one. When the number of cameras of the multi-eye camera is more than two, the number of images included in each frame is more than two. In this case, the number of images that do not need to be detected by hand, that is, the number of second-eye images, is more than one.

[0101] In one embodiment, the computer device can perform hand detection on the first image of the current frame through a pre-trained hand detection model to obtain a first detection result, and the first detection result is used to locate the hand detection frame in the first image of the current frame. For example, the first detection result may include (m, n, w, h), where (m, n) is the position of the upper left corner (or upper right corner or center point) of the hand detection frame in the first image, w is the width of the hand detection frame, and h is the height of the hand detection frame. Based on the first detection result, the hand detection frame can be located from the first image. The process of hand detection is the process of locating the area where the hand is located in the image. The area can be the smallest rectangular box surrounding the hand in the image. Figure 3 FIG. 1 is a schematic diagram of performing hand detection on an image to obtain a hand detection frame in one embodiment. Optionally, the first detection result may also include hand classification information of the hand detection frame, and the hand classification information indicates whether the hand in the hand detection frame is a left hand or a right hand.

[0102] Optionally, the hand detection model can be any neural network-based model, which is not limited in the embodiments of the present application. The hand detection model is trained with a large number of hand sample images, and the trained hand detection model has the ability to identify the hand area from the image.

[0103] In one embodiment, the computer device can implement a one-eye polling detection. That is, the first eye image is an image determined from the current frame by a one-eye polling method. The one-eye polling method means that only one eye image is used for hand detection in each frame, and the adjacent frame detections are from images of different cameras. For example, in a scenario where the multi-eye camera is a binocular camera, if the image for hand detection in the previous frame is collected by the first camera in the multi-eye camera, then the image for hand detection in the current frame is collected by the second camera in the multi-eye camera, and the image for hand detection in the next frame is collected by the first camera in the multi-eye camera. In this way, only one-eye detection is performed each time, which can reduce time consumption. Each one-eye detection is a one-eye polling detection, and the information collected by each camera can be obtained macroscopically, thereby improving the accuracy of subsequent joint point recognition.

[0104] Step 206, performing hand estimation on the second eye image of the current frame to obtain a second eye estimation result; the second eye estimation result is used to locate the hand estimation frame in the second eye image of the current frame.

[0105] In order to avoid the time-consuming and obvious lag caused by hand detection for all images in a frame, and to obtain multi-purpose image information to improve the accuracy of joint point recognition, in an embodiment of the present application, hand detection is performed on the first eye image, and hand estimation is performed on the second eye image. In this way, the hand information provided by the second eye image and the parallax information formed by the hand detection frame in the first eye image help to improve the accuracy of hand gesture recognition. The computer device performs hand estimation on the second eye image in the current frame based on the information of the historical frame, and obtains the second eye estimation result, which is used to locate the hand estimation frame in the second eye image of the current frame. The hand estimation frame indicated by the second eye estimation result and the hand detection frame indicated by the first eye detection result are assembled into a dual-purpose frame for subsequent hand joint point recognition.

[0106] After the computer device obtains the above-mentioned first and second eye detection results, it can crop a hand detection frame from the first eye image and a hand estimation frame from the second eye image, and perform subsequent hand joint point recognition based on the hand detection frame, hand estimation frame and corresponding hand classification information to identify the two-dimensional joint points, and then determine the three-dimensional joint points of the current frame in the world coordinate system based on the two-dimensional joint points. The two-dimensional joint points indicate the position of each hand joint point in the two-dimensional image plane. The process of hand joint point recognition is the process of predicting the coordinates of each hand joint in the two-dimensional image. The two-dimensional image is, for example, a hand detection frame cropped from the first eye image or a hand estimation frame cropped from the second eye image. For example, if Figure 4 As shown, it is a schematic diagram of 21 hand joints in one embodiment. The three-dimensional joints indicate the positions of the various hand joints in the three-dimensional coordinate system. The computer device can model the hand, convert the two-dimensional joints into three-dimensional joints in the three-dimensional hand coordinate system, and then convert the three-dimensional joints in the three-dimensional hand coordinate system into three-dimensional joints in the world coordinate system according to the posture estimation parameters corresponding to the current frame and the conversion relationship between the three-dimensional hand coordinate system and the world coordinate system. The three-dimensional joints in the world coordinate system can be used to describe the three-dimensional hand posture of the hand in the current frame.

[0107] In one embodiment, hand estimation is performed on the second eye image of the current frame to obtain a second eye estimation result, including: obtaining the three-dimensional joint points of each of the first two frames of the current frame in the world coordinate system; estimating the three-dimensional joint points of the current frame in the world coordinate system based on the three-dimensional joint points of each of the first two frames in the world coordinate system, and reprojecting the estimated three-dimensional joint points of the current frame in the world coordinate system to obtain estimated two-dimensional joint points of the current frame; and determining the hand estimation box in the second eye image of the current frame based on the estimated two-dimensional joint points of the current frame.

[0108] Specifically, after the computer device completes the recognition of the hand posture in a frame of video, it will cache the recognition result of the frame, that is, cache the three-dimensional joint points of the hand in the world coordinate system in the frame of video, which can be used for subsequent tracking of the hand estimation frame. When processing the current frame, the computer device obtains the three-dimensional joint points of the two frames before the current frame in the world coordinate system. For example, the current frame is the kth frame, and the two frames before the current frame are the k-1th frame and the k-2th frame. When processing the kth frame, the computer device obtains the three-dimensional joint points of the k-1th frame and the k-2th frame in the world coordinate system, estimates the three-dimensional joint points of the current frame in the world coordinate system based on the three-dimensional joint points of the k-1th frame and the k-2th frame in the world coordinate system, and then reprojects it to obtain the estimated two-dimensional joint points of the current frame. According to the estimated two-dimensional joint points of the current frame, the hand estimation frame in the second eye image of the current frame is determined.

[0109] like Figure 5 FIG. 1 is a schematic diagram of estimating a hand estimation frame of a current frame based on three-dimensional hand joint points of a historical frame in one embodiment. Figure 5 The left picture is a first-look image for hand detection in the 128th frame, the middle picture is a first-look image for hand detection in the 129th frame, and the right picture is a first-look image for hand estimation in the 130th frame. The boxes in the left and middle pictures are hand detection boxes obtained by hand detection, and the box in the right picture is a hand estimation box obtained by hand estimation.

[0110] Alternatively, the hand estimation box in the right figure can be estimated as follows.

[0111] The 3D joint points of the hand in the world coordinate system in the first image for hand detection in the 128th frame are recorded as keypoints3D_2; the 3D joint points of the hand in the world coordinate system in the second image for hand detection in the 129th frame are keypoints3D_1; the first image for hand detection in the 130th frame and the hand estimation in the second image. The estimated 3D joint points of the hand in the world coordinate system in the second image in the 130th frame are:

[0112] keypoints3D_3=2*keypoints3D_2-keypoints3D_1;

[0113] Next, the estimated two-dimensional joint points of the 130th frame are obtained by reprojection:

[0114] keypoints2D_3=reproject(keypoints3D_3); the two-dimensional joint point can represent the position of the three-dimensional posture obtained by hand prediction of the second eye image in the 130th frame in the two-dimensional image.

[0115] Next, determine the hand estimation frame in the second eye image of frame 130:

[0116] box = bounding rectangle (keypoints2D_3);

[0117] In this way, the second eye image of the 130th frame does not need to undergo hand detection, and the hand position information can be obtained through the above tracking and estimation method.

[0118] The computer device can perform hand estimation on the second eye image in the above manner to obtain an estimated detection frame, which serves as the hand information provided by the second eye image of the current frame and is one of the bases for subsequent hand joint point recognition.

[0119] In other embodiments, since the image from which the hand detection frame of the previous frame is derived and the image for hand estimation in the current frame are captured by the same camera, the computer device can also use the hand detection frame of the previous frame as the hand information provided by the second eye image of the current frame. That is, the computer device caches the hand detection frame for hand detection in each frame so that the hand detection frame of the previous frame can be obtained in the next frame.

[0120] In other embodiments, in order to obtain the hand information of the second eye image of the current frame, the computer device may preferentially perform hand estimation on the second eye image of the current frame to obtain a hand estimation frame. When the hand estimation frame is invalid, the hand estimation frame is discarded, and the hand detection frame of the cached previous frame is obtained instead. According to the coordinate information indicated by the hand detection frame, the cache detection frame is located from the second eye image of the current frame. Optionally, if the hand detection frame is not detected in the image of the cached previous frame for hand detection, the current frame is discarded and the next frame is obtained for processing.

[0121] In one embodiment, the computer device can also perform hand joint point identification on the hand estimation frame in the second eye image of the current frame; calculate the three-dimensional joint points of the current frame in the world coordinate system based on the detection results and posture estimation parameters; when the difference between the calculated three-dimensional joint points of the current frame in the world coordinate system and the estimated three-dimensional joint points of the current frame in the world coordinate system is greater than a preset threshold, the second eye estimation frame is determined to be invalid.

[0122] The calculated three-dimensional joint points of the current frame in the world coordinate system represent the three-dimensional posture obtained by performing hand joint point recognition on the second eye image in the current frame. The calculated three-dimensional joint points of the current frame in the world coordinate system are compared with the three-dimensional joint points of the current frame in the world coordinate system estimated above to determine the error between the two. The error can be used to determine whether the hand estimation frame obtained by performing hand estimation on the second eye image of the current frame is reasonable.

[0123] Step 208, after filtering out the redundant frames corresponding to the redundant hands from the hand detection frame in the first image of the current frame and the hand estimation frame in the second image, the hand joint points are identified to obtain the two-dimensional joint points corresponding to the current frame.

[0124] If the hand estimation frame in the second eye image of the current frame is valid, the computer device continues to perform subsequent processing based on the hand detection frame in the first eye image of the current frame and the hand estimation frame in the second eye image. In an embodiment of the present application, considering that in a specific scenario, such as a VR gesture interaction scenario, only part of the user's hands, such as one or both hands of the user, need to be concerned, then in order to reduce the amount of data for hand joint point recognition and improve the efficiency of hand joint point recognition, the computer device can filter out the redundant frames corresponding to the redundant hands, and then perform hand joint point recognition on the remaining frames, without the need to process all hands appearing in the image.

[0125] Specifically, the computer device can retain a pair of hands or a hand closest to the center of the image. The number of hands to be retained can be set according to actual needs, and the embodiment of the present application does not limit this. Other hands in the image are considered redundant hands, and the corresponding frames need to be filtered out and no longer processed. In addition, at least two frames are retained for each hand, and the at least two frames are from different purposes, so that the three-dimensional information of the hand can be restored. Among them, the at least two frames can be two frames.

[0126] In one embodiment, the first eye detection result includes hand classification information; redundant frames corresponding to redundant hands are filtered out from the hand detection frame in the first eye image of the current frame and the hand estimation frame in the second eye image, including: hand matching is performed on the hand detection frame in the first eye image of the current frame and the hand estimation frame in the second eye image, and a pair of frames matching the same left hand and a pair of frames matching the same right hand are screened out according to the matching results and the hand classification information; if there are multiple different left hands, a pair of frames of the left hand corresponding to the frame closest to the center of the image is retained; if there are multiple different right hands, a pair of frames of the right hand corresponding to the frame closest to the center of the image is retained.

[0127] Specifically, the computer device first performs hand matching on the multi-eye images included in the current frame, matching multiple frames of the same hand, and only needs to retain a pair of frames with different purposes and close to the center of the image. Then, based on the retained pair of frames, the hand close to the center point of the image is selected from the hands corresponding to these frames. The frame corresponding to the selected hand will be used for subsequent hand joint point recognition to obtain the two-dimensional joint points corresponding to the current frame.

[0128] For example, the first image includes three hand detection frames, namely 1A, 1B, and 1C, where 1A is closest to the image center of the first image, the hand classification information corresponding to 1A is the left hand, the hand classification information corresponding to 1B is the right hand, and the hand classification information corresponding to 1C is the right hand. 1C is closer to the image center than 1B.

[0129] There are two hand estimation boxes in the second image, namely 2A and 2B, where 2A is closest to the image center of the second image, the hand classification information corresponding to 2A is the left hand, and the hand classification information corresponding to 2B is the right hand, which is closest to the image center of the second image.

[0130] There are three hand estimation frames in the third image, namely 3A, 3B, and 3C, where 3A is closer to the image center of the third image than 3C. The hand classification information corresponding to 3A is the left hand, the hand classification information corresponding to 3B is the right hand, and the hand classification information corresponding to 3C is the left hand.

[0131] The fourth image includes three hand estimation boxes, namely 4A, 4B, and 4C, where 4A is closer to the image center of the third image than 4C. The hand classification information corresponding to 4A is the left hand, the hand classification information corresponding to 4B is the left hand, and the hand classification information corresponding to 4C is the left hand.

[0132] After hand matching, 1A, 2A, and 4C are matched to the same left hand M, 3A and 4A are matched to the same left hand N, 1C and 2B are matched to the same right hand P, 1B and 3C are matched to the same right hand Q, 1B and 3B are matched to the same right hand, and 4B is a separate left hand. Since at least two-eye image information is required, 4B is first filtered out. Secondly, for the left hand M, the two frames closest to the center of the image are retained, namely 1A and 2A. For the two left hands M and N, the redundant hands are filtered out, and only the left hand closest to the center of the image is retained. For the two right hands P and Q, the redundant hands are filtered out, and only the right hand closest to the center of the image is retained. In this way, after filtering, only two hands, one left and one right, are retained, and each hand only retains two frames from different eyes, which greatly reduces the amount of data for subsequent hand joint point recognition. Of course, in some scenes where only one right hand needs to be retained, all left and right frames can be filtered out.

[0133] Step 210, converting the two-dimensional joint points into three-dimensional joint points in the three-dimensional hand coordinate system.

[0134] As mentioned above, the two-dimensional joint points indicate the coordinates of the hand joint points in the two-dimensional image plane, which can be recorded as (u, v). In order to obtain accurate three-dimensional hand posture, the computer equipment needs to convert the two-dimensional joint points into three-dimensional joint points in the three-dimensional hand coordinate system, so as to solve the three-dimensional coordinates of each hand joint point in the three-dimensional hand coordinate system, and then transform the three-dimensional coordinates in the three-dimensional hand coordinate system into the world coordinate system through the posture estimation parameters.

[0135] like Figure 6 FIG. 1 is a schematic diagram of a three-dimensional hand coordinate system in one embodiment. Figure 6 , the hand coordinate system is defined as Figure 6 As shown, when the five fingers of the right hand are open, the plane where the palm is located is defined as the XOY plane, the direction from the wrist node to the middle finger is the Y axis direction, the little finger side perpendicular to it is the X axis direction, and the palm direction is the Z axis direction. Of course, the palm can also be modeled in other ways, and the embodiment of the present application does not limit this.

[0136] In one embodiment, the two-dimensional joint point represents the two-dimensional coordinate of the joint point in the image plane coordinate system; the three-dimensional hand joint represents the three-dimensional coordinate of the joint point in the three-dimensional hand coordinate system; converting the two-dimensional joint point into a three-dimensional joint point in the three-dimensional hand coordinate system includes:

[0137] The two-dimensional coordinates of the target joint point in the image plane coordinate system are used as the origin of the two-dimensional finger coordinate system; the two-dimensional coordinates of the adjacent joint point in the two-dimensional finger coordinate system are determined according to the angle between the adjacent joint point of the target joint point and the finger joint between the target joint point in the two-dimensional finger coordinate system, as well as the length of the finger joint; according to the conversion relationship between the two-dimensional finger coordinate system and the three-dimensional hand coordinate system, the two-dimensional coordinates of the adjacent joint point in the two-dimensional finger coordinate system are converted into three-dimensional coordinates in the three-dimensional hand coordinate system.

[0138] The target node can be any one of the hand joints and can be specified according to actual needs. In the embodiment of the present application, the target node can be the hand joint corresponding to the wrist, referred to as the wrist joint. The computer device identifies the hand joints and identifies the two-dimensional coordinates (u, v) of each hand joint in the image plane coordinate system. Then, the wrist joint is used as the origin of the two-dimensional finger coordinate system to construct a two-dimensional finger coordinate system. Figure 7 FIG. 1 is a schematic diagram of a two-dimensional finger coordinate system in one embodiment. Figure 7, the definition of the two-dimensional finger coordinate system is that the wrist node (I0 in the figure) is the origin, the Z axis direction in the three-dimensional hand coordinate system is the Xi axis direction of the two-dimensional finger coordinate system, the index finger is extended when the five fingers are open as the Y_i axis direction of the two-dimensional finger coordinate system, and the angle between the Yi axis direction of the two-dimensional finger coordinate system and the YOZ plane of the three-dimensional hand coordinate system is β, which can be determined according to the angle between the straight line where the four knuckles of the index finger are located and the YOZ plane. Therefore, the two coordinate axes of the two-dimensional finger coordinate system in the three-dimensional hand coordinate system are defined as:

[0139] Xi=(0,0,1), Yi=(cosβ,sinβ,0).

[0140] In this way, the coordinates of any point (x, y) in the two-dimensional finger coordinate system in the three-dimensional hand coordinate system are xXi+yYi, that is, (y cosβ, y sinβ, x). This is the conversion relationship between the two-dimensional finger coordinate system and the three-dimensional hand coordinate system.

[0141] The computer device can determine the two-dimensional coordinates of the adjacent joint point in the two-dimensional finger coordinate system according to the angle between the adjacent joint point of the target joint point and the finger joint between the target joint point in the two-dimensional finger coordinate system, and the length of the finger joint. The angle and the length of the finger joint can be determined by the two-dimensional coordinates (u, v) of the hand joint point in the image plane coordinate system.

[0142] like Figure 8 FIG. 1 is a schematic diagram of each hand joint point in an embodiment. Figure 8 The angle between the line between the hand joint point I1 and the wrist node I0 shown in the figure and the Yi axis of the two-dimensional finger coordinate system is θ1, and the length of the line I0-I1 is Li1. The angle and the length of the line can be determined by the two-dimensional coordinates of the hand joint point I0 and the hand joint point I1 in the image plane coordinate system. Then, the coordinates I1(x, y) of the hand joint point I1 in the two-dimensional finger coordinate system can be calculated by the following formula:

[0143] I1(x,y)=I0+Li1(sinθ1,cosθ1), where the coordinate of I0 in the two-dimensional finger coordinate system is (0,0).

[0144] Similarly, the angle between the line I1-I2 between the hand joint point I2 and the hand joint point I1 and the line I0-I1 is θ2, the length of the line I1-I2 is Li2, and the coordinates I2(x, y) of the hand joint point I2 in the two-dimensional finger coordinate system can be calculated by the following formula:

[0145] I2(x,y)=I1+Li2(sin(θ1+θ2), cos(θ1+θ2)).

[0146] Similarly, the angle between the line I2-I3 between the hand joint point I3 and the hand joint point I2 and the line I1-I2 is θ3, the length of the line I2-I3 is Li3, and the coordinates I3 (x, y) of the hand joint point I3 in the two-dimensional finger coordinate system can be calculated by the following formula:

[0147] I3(x,y)=I2+Li3(sin(θ1+θ2+θ3), cos(θ1+θ2+θ3)).

[0148] Next, according to the above-mentioned conversion relationship between the two-dimensional finger coordinate system and the three-dimensional hand coordinate system, by substituting xXi+yYi, the three-dimensional coordinates of the hand joint points in the three-dimensional hand coordinate system can be obtained.

[0149] Step 212, according to the posture estimation parameters corresponding to the current frame, the three-dimensional joint points in the three-dimensional hand coordinate system are converted into three-dimensional joint points in the world coordinate system of the current frame, and the three-dimensional joint points in the world coordinate system are used to describe the three-dimensional hand posture of the hand in the current frame.

[0150] Among them, the posture estimation parameters include camera parameters and joint rotation parameters. The camera parameters indicate the three-dimensional space where the hand is located, specifically, the distance matrix t from the hand joint points corresponding to the wrist to the camera; the joint rotation parameters indicate the posture of the hand joint points, specifically, the rotation angle matrix R of the hand joint points corresponding to the wrist and the rotation angle matrix angle of other joint points.

[0151] In one embodiment, a computer device can obtain the posture estimation parameters corresponding to the current frame in the following manner: obtain the three-dimensional joint points of each of the two frames before the current frame in the world coordinate system; calculate the posture estimation parameters of each of the first two frames based on the three-dimensional joint points of each of the first two frames in the world coordinate system; interpolate the posture estimation parameters of each of the first two frames to obtain the posture estimation parameters corresponding to the current frame.

[0152] For example, when processing the kth frame, the computer device obtains the three-dimensional joint points of the k-1th frame and the k-2th frame in the world coordinate system, and calculates the posture estimation parameters of the k-1th frame and the k-2th frame according to the three-dimensional joint points of the k-1th frame and the k-2th frame in the world coordinate system, including the rotation angle matrix R of the hand joint point corresponding to the wrist, the distance matrix t from the hand joint point corresponding to the wrist to the camera, and the rotation angle matrix angle of other joint points. The computer device can interpolate according to the following formula:

[0153] The rotation angle of the hand joint corresponding to the wrist in the kth frame:

[0154] R(k)=R(k-1)*(R(k-2).inv()*R(k-1)), R(k-2).inv() represents the inverse matrix of matrix R(k-2);

[0155] The distance from the hand joint point corresponding to the wrist to the camera in the kth frame:

[0156] t(k)=2*t(k-1)–t(k-2);

[0157] Other joint angles in the kth frame: angle(k)=2*angle(k-1)–angle(k-2).

[0158] Based on the above information obtained by interpolation, the three-dimensional joint points in the three-dimensional hand coordinate system can be converted into three-dimensional joint points in the world coordinate system of the current frame, which can indicate the three-dimensional hand posture.

[0159] The above-mentioned hand gesture recognition method, device, computer equipment, storage medium and computer program product, after obtaining the current frame of the multi-view video of the hand, performs hand detection on the first view image of the current frame to obtain a hand detection frame in the first view image. Only one view image in the multi-view image is subjected to hand detection each time, which can reduce processing time. In addition, hand estimation is also performed on the second view image of the current frame to obtain a hand estimation frame in the second view image, which is used together as a basis for joint point recognition. In this way, both the first view image information and the second view image information are obtained, which can provide parallax information while reducing detection time, thereby improving the efficiency and accuracy of hand gesture recognition. In addition, after filtering out the redundant frames corresponding to the redundant hands from the hand detection frame in the first image of the current frame and the hand estimation frame in the second image, hand joint point recognition is performed to obtain the two-dimensional joint points corresponding to the current frame, which can reduce the amount of data for joint point recognition and further reduce processing time. Through hand modeling, the two-dimensional joint points are converted into three-dimensional joint points in a three-dimensional hand coordinate system, and according to the posture estimation parameters corresponding to the current frame, the three-dimensional joint points in the three-dimensional hand coordinate system are converted into three-dimensional joint points in the world coordinate system of the current frame, which avoids the situation in which the estimated hand joint points in the related technology deviate from the actual ones and improves the accuracy of recognizing hand postures.

[0160] As mentioned above, when the hand estimation frame is invalid, the hand estimation frame is abandoned and the hand detection frame of the cached previous frame is obtained instead. According to the coordinate information indicated by the hand detection frame, the cached detection frame is located from the second eye image of the current frame.

[0161] Therefore, in one embodiment, the above method further includes:

[0162] When the first eye detection result indicates that there is a hand detection frame in the first eye image, the hand detection frame and corresponding hand classification information in the first eye image of the current frame are cached.

[0163] In one embodiment, when the second-eye estimation result indicates that the second-eye estimation frame is invalid, the computer device can obtain a cache detection frame, which is a hand detection frame in the second-eye image in which hand detection is performed in the previous frame of the current frame; after filtering out redundant frames corresponding to redundant hands from the hand detection frame in the first eye image and the cache detection frame, hand joint point recognition is performed to obtain the two-dimensional joint points corresponding to the current frame.

[0164] In this embodiment, when the hand estimation frame of the second image is invalid, the computer device can combine the hand detection frame in the first image and the cached detection frame to form a dual-purpose frame for subsequent hand joint point recognition. Here, before performing hand joint point recognition, it is necessary to filter out the redundant frames corresponding to the redundant hands, and the method is the same as the method mentioned above, which will not be repeated here.

[0165] It is understandable that in some cases, the hand detection frame where the hand is located may not be detected in the image where hand detection is performed. In order to avoid missed hand detection or incorrect hand classification information in an overly complex or dimly lit environment, for the image where hand detection is performed in the current frame, not only hand detection but also hand estimation is performed, that is, detection and estimation coexist.

[0166] That is, in one embodiment, the above method may further include:

[0167] When the first eye detection result indicates that there is no hand detection frame in the first eye image, hand estimation is performed on the first eye image of the current frame to obtain the first eye estimation result; the first eye estimation result is used to locate the hand estimation frame in the first eye image of the current frame; after filtering out the redundant frames corresponding to the redundant hands from the hand estimation frames in the first eye image of the current frame and the hand estimation frames in the second eye image, hand joint point recognition is performed to obtain the two-dimensional joint points corresponding to the current frame.

[0168] Among them, the method of performing hand estimation on the first eye image is similar to the method of performing hand estimation on the second eye image mentioned above, that is, when processing the current frame, the computer device obtains the three-dimensional joint points of the first two frames of the current frame in the world coordinate system. For example, the current frame is the kth frame, and the first two frames of the current frame are the k-1th frame and the k-2th frame. When processing the kth frame, the computer device obtains the three-dimensional joint points of the k-1th frame and the k-2th frame in the world coordinate system, and estimates the three-dimensional joint points of the current frame in the world coordinate system based on the three-dimensional joint points of the k-1th frame and the k-2th frame in the world coordinate system, and then reprojects it to obtain the estimated two-dimensional joint points of the current frame, and determines the hand estimation frame in the first eye image of the current frame based on the estimated two-dimensional joint points of the current frame. In this embodiment, when the first eye detection result indicates that there is no hand detection frame in the first eye image, the computer device can combine the hand estimation frame in the first eye image and the hand estimation frame in the second eye image into a binocular frame for subsequent hand joint point recognition. That is, if the first image has a hand detection frame, the first image hand detection frame and the second image hand estimation frame are combined into a dual-image frame for subsequent processing; if the first image does not have a hand detection frame, the first image is also processed using the hand estimation frame.

[0169] Similarly, before performing hand joint point recognition, it is also necessary to filter out the redundant frames corresponding to the redundant hands from the hand estimation frames in the first eye image of the current frame and the hand estimation frames in the second eye image. Specifically, if the hand estimation frame in the second eye image of the current frame is valid, considering that in a specific scenario, such as a VR gesture interaction scenario, only part of the user's hands, such as one or two hands of the user, need to be concerned, then in order to reduce the amount of data for hand joint point recognition and improve the overall hand recognition efficiency, the computer device can filter out the redundant frames corresponding to the redundant hands, and then perform hand joint point recognition on the remaining frames, without processing all the hands appearing in the image. The computer device can retain a pair of hands or a hand closest to the center of the image, and the number of hands to be retained can be set according to actual needs. The embodiment of the present application does not limit this. The other hands in the image are identified as redundant hands, and the corresponding frames need to be filtered out and no longer processed. In addition, each hand retains at least two frames, and the at least two frames are from different eyes, so that the three-dimensional information of the hand can be restored. Among them, the at least two frames can be two frames.

[0170] In one embodiment, when the hand estimation frame in the second image is invalid, the computer device can also combine the hand estimation frame in the first image with the hand detection frame in the second image in the previous frame of the current frame, i.e., the cached detection frame, to form a dual-purpose frame for subsequent hand joint point recognition. Similarly, before performing hand joint point recognition, it is also necessary to filter out the redundant frames corresponding to the redundant hands from the hand estimation frame in the first image of the current frame and the cached detection frame.

[0171] Based on the previous description, in order to ensure the accuracy of joint point recognition, at least two-purpose frames are required. The input of the hand joint point recognition model can be a two-purpose frame composed of a hand detection frame and a hand estimation frame, a two-purpose frame composed of a hand detection frame and a cache detection frame, a two-purpose frame composed of a hand estimation frame and a hand estimation frame, or a two-purpose frame composed of a hand estimation frame and a cache detection frame.

[0172] In one embodiment, Fig. 9 As shown, the first detection result includes hand classification information of the hand detection frame, and the hand classification information is used to identify hand joints of the hand detection frame; before identifying the hand joints, the method also includes the step of adjusting the hand classification information, specifically including:

[0173] Step 902, obtaining a plurality of cached detection frames, where the cached detection frames are hand detection frames in images in which hand detection is performed in historical frames corresponding to the current frame.

[0174] As mentioned above, hand detection is performed on one of the images in each frame. When the detection result indicates that there is a hand detection frame in the image, the hand detection frame and the corresponding hand classification information in the first image are used for subsequent hand joint point recognition. However, in complex or poorly lit scenes, due to the natural symmetry of the left and right hands, classification errors are prone to occur in the classification of the left and right hands, and hand classification is also a considerable challenge for the hand detection model itself. For this reason, when the detection result indicates that there is a hand detection frame in the image, the computer device can cache the hand detection frame and the corresponding hand classification information in the first image. The historical frame corresponding to the current frame may be the L-1 frame before the current frame, and the L-1 frame and the current frame together constitute the L frame.

[0175] Step 904, for each hand detection frame in the current frame, hand matching is performed on the hand detection frame with multiple cache detection frames, and a hand detection frame belonging to the same hand as the hand detection frame in the current frame is determined from the multiple cache detection frames based on the matching result.

[0176] There may be multiple hands in the image where hand detection is performed in each frame, that is, there are multiple hand detection frames. For each hand detection frame in the current frame, it is matched with each cached detection frame in the historical frame, and each hand detection frame is matched to the same hand.

[0177] For example, in the first frame, the first image includes two hand detection frames 1A and 1B, and the hand classification information is left hand and right hand, respectively. In the second frame, the second image includes two hand detection frames 2A and 2B, and the hand classification information is left hand and right hand, respectively. In the third frame, the first image includes two hand detection frames 3A and 3B, and the hand classification information is left hand and right hand, respectively. In the fourth frame, the second image includes two hand detection frames 4A and 4B, and the hand classification information is left hand and left hand, respectively. In the fifth frame, the first image includes two hand detection frames 5A and 5B, and the hand classification information is right hand and right hand, respectively. Assuming that L is 5 and the current frame is the fifth frame, after hand matching, 1A, 2A, 3A, 4A, and 5A are matched as the same hand H1, and 1B, 2B, 3B, 4B, and 5B are matched as the same hand H2.

[0178] Step 906, voting is performed based on the hand classification information of the hand detection frame that belongs to the same hand as the hand detection frame in the current frame and the hand classification information of the hand detection frame in the current frame to obtain the voting result about the hand classification information of the hand detection frame in the current frame; the voting result is used to adjust the hand classification information of the current frame.

[0179] Continuing with the above example, for H1, the hand classification information of each frame is left hand, left hand, left hand, left hand, right hand, and the classification information with a high number of votes is taken as the hand classification information of the hand detection frame 5A in the 5th frame, that is, the left hand, not the predicted right hand. For H2, the hand classification information of each frame is right hand, right hand, right hand, left hand, right hand, and the classification information with a high number of votes is taken as the hand classification information of the hand detection frame 5B in the 5th frame, that is, the right hand, indicating that the current prediction of the right hand is accurate.

[0180] In this way, when the hand classification information is wrong, the hand classification information of the hand detection frame in the current frame can be adjusted as soon as possible by referring to the historical classification information through the sliding window method to ensure high-precision hand classification results.

[0181] In one embodiment, the method further comprises:

[0182] If the adjusted hand classification information of each hand detection frame in the current frame indicates that there are two left hands or two right hands in the current frame, the adjusted hand classification information is corrected according to the voting result to obtain the corrected hand classification information.

[0183] Specifically, in an embodiment in which redundant hands are filtered out to limit the image to only two hands, one left and one right, if the hand classification information of two hands in the image is the same, that is, the voting results of the two hands both indicate the left hand or both indicate the right hand, it means that one of the voting results is inaccurate, and the hand classification information needs to be corrected.

[0184] For example, the computer device can count the ratio of left and right hands in the voting results of each hand, that is, LR_rate = left_count / right_count, left_count represents the number of votes for the hand classification information of the left hand, and right_count represents the number of votes for the hand classification information of the right hand. If the voting result indicates that there are two left hands in the image (LR_rate is greater than 1), the hand classification information of the hand detection frame with a relatively small LR_rate value is updated to the right hand. If the voting result indicates that there are two right hands in the image (LR_rate is less than 1), the hand classification information of the hand detection frame with a relatively large LR_rate value is updated to the left hand (indicating that the number of votes for the left hand within the time window length L is relatively greater), so as to achieve correction of the hand classification information.

[0185] For example, the first image in the first frame includes two hand detection frames 1A and 1B, and the hand classification information is left hand and right hand, respectively; the second image in the second frame includes two hand detection frames 2A and 2B, and the hand classification information is right hand and right hand, respectively; the first image in the third frame includes two hand detection frames 3A and 3B, and the hand classification information is right hand and right hand, respectively; the second image in the fourth frame includes two hand detection frames 4A and 4B, and the hand classification information is left hand and left hand, respectively; the first image in the fifth frame includes two hand detection frames 5A and 5B, and the hand classification information is right hand and right hand, respectively. Assuming that the value of L is 5 and the current frame is the fifth frame, after hand matching, 1A, 2A, 3A, 4A, and 5A are matched as the same hand H1, and 1B, 2B, 3B, 4B, and 5B are matched as the same hand H2.

[0186] For H1, the hand classification information of each frame is left hand, right hand, right hand, left hand, right hand, and the classification information with the highest number of votes is taken as the hand classification information of the hand detection frame 5A in the fifth frame, which is the right hand. For H2, the hand classification information of each frame is right hand, right hand, right hand, left hand, right hand, and the classification information with the highest number of votes is taken as the hand classification information of the hand detection frame 5B in the fifth frame, which is the right hand.

[0187] At this time, if both hands are right hands, the LR_rate corresponding to the hand detection frame 5A is 2 / 3, and the LR_rate corresponding to the hand detection frame 5B is 1 / 5, indicating that the hand in the hand detection frame 5A is more likely to be the left hand, so the hand classification information of the hand detection frame 5A is corrected to the left hand.

[0188] like Fig.10 FIG. 1 is a flowchart of a hand gesture recognition method in one embodiment. Fig.10 , the input is the current frame, including multiple eye images. In order to obtain the hand position information of multiple eye images in the current frame, the computer device preferentially adopts a one-eye polling detection method to perform hand detection on one eye image in the multiple eye images to obtain a hand detection result. At the same time, the tracking method is used to perform hand estimation on other eye images to obtain a hand estimation result. If the hand detection result indicates that there is a hand detection frame in the one eye image, and the hand estimation frame of other eye images is valid, the hand detection frame and the hand estimation frame are combined into a multi-object frame as a candidate frame. If the hand detection result indicates that there is no hand detection frame in the one eye image, and the hand estimation frame of other eye images is valid, the tracking method is used to perform hand estimation on the one eye image based on the three-dimensional joint points of the historical frame to obtain a hand estimation frame, and the hand estimation frame in the one eye image and the hand estimation frame of other eye images are combined into a multi-object frame as a candidate frame. If the hand detection result indicates that there is a hand detection frame in the image, and the hand estimation frames of other images are invalid, then the detection frame of the previous cached frame, i.e., the cached detection frame, is obtained, and the hand detection frame and the cached detection frame are combined into a multi-target frame as a candidate frame. If the hand detection result indicates that there is no hand detection frame in the image, and the hand estimation frames of other images are invalid, the hand estimation is performed on the image in a tracking manner to obtain a hand estimation frame, and the detection frame of the previous cached frame, i.e., the cached detection frame, is obtained, and the hand estimation frame in the image and the cached detection frame are combined into a multi-target frame as a candidate frame.

[0189] Furthermore, in order to reduce the amount of data for hand joint point recognition and improve the efficiency of hand joint point recognition, it can be ensured that there are at most two hands or one hand in the picture. For the above-mentioned candidate frames, the computer device can perform hand matching on the multi-eye images included in the current frame. For multiple frames matched as the same hand, only a pair of frames with different purposes and close to the center of the image need to be retained. Then, based on the retained pair of frames, the hand close to the center point of the image is retained from the hands corresponding to these frames. The other hands in the image are identified as redundant hands, and the corresponding frames need to be filtered out and no longer processed.

[0190] Furthermore, in order to improve the accuracy of hand classification information and improve the accuracy of subsequent hand joint point recognition, the computer device can further adjust the hand classification information of the filtered candidate frame by caching the hand classification information of the historical detection frame, based on the hand matching results, and referring to the hand classification information of the historical detection frame, voting on the hand classification information of the hand detection frame of the current frame, confirming or adjusting the hand classification information of the hand detection frame of the current frame according to the voting results, and then further correcting it.

[0191] Then, the final retained hand frame and the corresponding classification information are input into the hand joint recognition model, and the two-dimensional coordinates of the hand joints in the two-dimensional image plane are output. The two-dimensional joints are converted into three-dimensional joints in the three-dimensional hand coordinate system through hand modeling. Finally, according to the posture estimation parameters corresponding to the current frame, the three-dimensional joints in the three-dimensional hand coordinate system are converted into three-dimensional joints in the world coordinate system of the current frame. The three-dimensional joints in the world coordinate system are used to describe the three-dimensional hand posture of the hand in the current frame.

[0192] The hand gesture recognition method provided in the embodiment of the present application avoids or even corrects the problems of the gesture model based on deep learning (hand detection model, hand joint point recognition model) without significantly increasing computing power, and can thus be applied to building a high-precision, smooth-running gesture interaction system.

[0193] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0194] Based on the same inventive concept, the embodiment of the present application also provides a hand gesture recognition device for implementing the hand gesture recognition method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations of one or more hand gesture recognition device embodiments provided below can refer to the limitations of the hand gesture recognition method above, and will not be repeated here.

[0195] In one embodiment, Fig.11As shown, a hand gesture recognition device 1100 is provided, comprising: an acquisition module 1102, a hand detection module 1104, a hand estimation module 1106, a joint point recognition module 1108 and a gesture recognition module 1110, wherein:

[0196] An acquisition module 1102 is used to acquire a current frame of a multi-eye video of a hand, where the current frame includes a multi-eye image;

[0197] The hand detection module 1104 is used to perform hand detection on the first eye image of the current frame to obtain a first eye detection result; the first eye detection result is used to locate the hand detection frame in the first eye image of the current frame;

[0198] The hand estimation module 1106 is used to perform hand estimation on the second eye image of the current frame to obtain a second eye estimation result; the second eye estimation result is used to locate the hand estimation frame in the second eye image of the current frame;

[0199] The joint point recognition module 1108 is used to filter out the redundant frames corresponding to the redundant hands from the hand detection frame in the first image of the current frame and the hand estimation frame in the second image, and then recognize the hand joint points to obtain the two-dimensional joint points corresponding to the current frame;

[0200] The posture recognition module 1110 is used to convert the two-dimensional joint points into three-dimensional joint points in the three-dimensional hand coordinate system; according to the posture estimation parameters corresponding to the current frame, the three-dimensional joint points in the three-dimensional hand coordinate system are converted into the three-dimensional joint points in the world coordinate system of the current frame, and the three-dimensional joint points in the world coordinate system are used to describe the three-dimensional hand posture of the hand in the current frame.

[0201] In one embodiment, the hand estimation module 1106 is further configured to perform hand estimation on the first eye image of the current frame to obtain a first eye estimation result when the first eye detection result indicates that there is no hand detection frame in the first eye image; the first eye estimation result is used to locate the hand estimation frame in the first eye image of the current frame;

[0202] The joint point recognition module 1108 is also used to filter out the redundant frames corresponding to the redundant hands from the hand estimation frame in the first image of the current frame and the hand estimation frame in the second image, and then perform hand joint point recognition to obtain the two-dimensional joint points corresponding to the current frame.

[0203] In one embodiment, the hand gesture recognition device 1100 further includes:

[0204] The detection frame cache module is used to cache the hand detection frame and corresponding hand classification information in the first eye image of the current frame when the first eye detection result indicates that there is a hand detection frame in the first eye image.

[0205] In one embodiment, the hand gesture recognition device 1100 further includes:

[0206] A cache detection frame acquisition module, used for acquiring a cache detection frame when the second eye estimation result indicates that the second eye estimation frame is invalid, the cache detection frame being a hand detection frame in a second eye image in which hand detection is performed in a frame previous to the current frame;

[0207] The joint point recognition module 1108 is also used to filter out the redundant frames corresponding to the redundant hands from the hand detection frame and the cache detection frame in the first image, and then perform hand joint point recognition to obtain the two-dimensional joint points corresponding to the current frame.

[0208] In one embodiment, the hand estimation module 1106 is also used to obtain the three-dimensional joint points of each of the first two frames of the current frame in the world coordinate system; estimate the three-dimensional joint points of the current frame in the world coordinate system based on the three-dimensional joint points of each of the first two frames in the world coordinate system, and reproject the estimated three-dimensional joint points of the current frame in the world coordinate system to obtain the estimated two-dimensional joint points of the current frame; determine the hand estimation box in the second eye image of the current frame based on the estimated two-dimensional joint points of the current frame.

[0209] In one embodiment, the hand gesture recognition device 1100 further includes:

[0210] The estimation frame evaluation module is used to identify the hand joint points of the hand estimation frame in the second eye image of the current frame; calculate the three-dimensional joint points of the current frame in the world coordinate system based on the detection results and posture estimation parameters; when the difference between the calculated three-dimensional joint points of the current frame in the world coordinate system and the estimated three-dimensional joint points of the current frame in the world coordinate system is greater than a preset threshold, the second eye estimation frame is determined to be invalid.

[0211] In one embodiment, the first eye detection result includes hand classification information; the joint point recognition module 1108 includes a redundant frame filtering unit:

[0212] The redundant frame filtering unit is used to perform hand matching on the hand detection frame in the first image of the current frame and the hand estimation frame in the second image, and screen out a pair of frames matching the same left hand and a pair of frames matching the same right hand according to the matching results and hand classification information; if there are multiple different left hands, the pair of frames of the left hand corresponding to the frame closest to the image center is retained; if there are multiple different right hands, the pair of frames of the right hand corresponding to the frame closest to the image center is retained.

[0213] In one embodiment, the first detection result includes hand classification information of the hand detection frame, and the hand classification information is used to identify hand joints of the hand detection frame; the hand gesture recognition device 1100 also includes:

[0214] A hand classification information adjustment module is used to obtain multiple cache detection frames before hand joint point recognition, where the cache detection frame is a hand detection frame in an image in which hand detection is performed in a historical frame corresponding to the current frame; for each hand detection frame in the current frame, the hand detection frame is hand-matched with multiple cache detection frames, and a hand detection frame belonging to the same hand as the hand detection frame in the current frame is determined from multiple cache detection frames based on the matching result; a vote is performed based on the hand classification information of the hand detection frame belonging to the same hand as the hand detection frame in the current frame and the hand classification information of the hand detection frame in the current frame to obtain a voting result on the hand classification information of the hand detection frame in the current frame; the voting result is used to adjust the hand classification information of the current frame.

[0215] In one embodiment, the hand gesture recognition device 1100 further includes:

[0216] The hand classification information correction module is used to correct the adjusted hand classification information according to the voting result to obtain the corrected hand classification information if the adjusted hand classification information of each hand detection frame in the current frame indicates that there are two left hands or two right hands in the current frame.

[0217] In one embodiment, the two-dimensional joint point represents the two-dimensional coordinate of the joint point in the image plane coordinate system; the three-dimensional hand joint represents the three-dimensional coordinate of the joint point in the three-dimensional hand coordinate system;

[0218] The posture recognition module 1110 is also used to use the two-dimensional coordinates of the target joint point in the image plane coordinate system as the origin of the two-dimensional finger coordinate system; determine the two-dimensional coordinates of the adjacent joint point in the two-dimensional finger coordinate system according to the angle between the adjacent joint point of the target joint point and the finger joint between the target joint point in the two-dimensional finger coordinate system, and the length of the finger joint; and convert the two-dimensional coordinates of the adjacent joint point in the two-dimensional finger coordinate system into three-dimensional coordinates in the three-dimensional hand coordinate system according to the conversion relationship between the two-dimensional finger coordinate system and the three-dimensional hand coordinate system.

[0219] In one embodiment, the posture recognition module 1110 is also used to obtain the three-dimensional joint points of each of the first two frames before the current frame in the world coordinate system; calculate the posture estimation parameters of each of the first two frames based on the three-dimensional joint points of each of the first two frames in the world coordinate system; interpolate the posture estimation parameters of each of the first two frames to obtain the posture estimation parameters corresponding to the current frame.

[0220] The above-mentioned hand gesture recognition device 1100, after obtaining the current frame of the multi-eye video of the hand, performs hand detection on the first eye image of the current frame to obtain a hand detection frame in the first eye image. Only one eye image in the multi-eye image is subjected to hand detection each time, which can reduce processing time. In addition, hand estimation is also performed on the second eye image of the current frame to obtain a hand estimation frame in the second eye image, which is used together as a basis for joint point recognition. In this way, both the first object image information and the second object image information are obtained, which can provide parallax information while reducing detection time, thereby improving the efficiency and accuracy of hand gesture recognition. In addition, from the current frame In the hand detection frame in the first image and the hand estimation frame in the second image, after filtering out the redundant frames corresponding to the redundant hands, the hand joint points are identified to obtain the two-dimensional joint points corresponding to the current frame, which can reduce the amount of data for joint point identification and further reduce the processing time; through hand modeling, the two-dimensional joint points are converted into three-dimensional joint points in the three-dimensional hand coordinate system, and according to the posture estimation parameters corresponding to the current frame, the three-dimensional joint points in the three-dimensional hand coordinate system are converted into the three-dimensional joint points of the current frame in the world coordinate system, which avoids the situation in which the estimated hand joint points in the related technology deviate from the actual situation and improves the accuracy of recognizing hand posture.

[0221] Each module in the above-mentioned hand gesture recognition device 1100 can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module above.

[0222] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.12 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store historical frame related data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a hand gesture recognition method is implemented.

[0223] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.13 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a hand gesture recognition method is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.

[0224] Those skilled in the art will understand that Fig.12 or Fig.13 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0225] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the hand gesture recognition method provided in any embodiment of the present application are implemented.

[0226] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the hand gesture recognition method provided in any embodiment of the present application are implemented.

[0227] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the hand gesture recognition method provided in any embodiment of the present application.

[0228] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0229] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0230] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0231] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A hand gesture recognition method, characterized in that: The method comprises: Acquire a current frame of a multi-view video of a hand, where the current frame includes a multi-view image; Performing hand detection on the first eye image of the current frame to obtain a first eye detection result; the first eye detection result is used to locate a hand detection frame in the first eye image of the current frame; Performing hand estimation on the second eye image of the current frame to obtain a second eye estimation result; the second eye estimation result is used to locate a hand estimation frame in the second eye image of the current frame; After filtering out redundant frames corresponding to redundant hands from the hand detection frame in the first image of the current frame and the hand estimation frame in the second image, hand joint point recognition is performed to obtain two-dimensional joint points corresponding to the current frame; Converting the two-dimensional joint points into three-dimensional joint points in a three-dimensional hand coordinate system; According to the posture estimation parameters corresponding to the current frame, the three-dimensional joint points in the three-dimensional hand coordinate system are converted into the three-dimensional joint points of the current frame in the world coordinate system, and the three-dimensional joint points in the world coordinate system are used to describe the three-dimensional hand posture of the hand in the current frame.

2. The method according to claim 1, characterized in that The method further comprises: When the first eye detection result indicates that there is no hand detection frame in the first eye image, then Perform hand estimation on the first eye image of the current frame to obtain a first eye estimation result; the first eye estimation result is used to locate a hand estimation frame in the first eye image of the current frame; After filtering out redundant frames corresponding to redundant hands from the hand estimation frames in the first image of the current frame and the hand estimation frames in the second image, hand joint points are identified to obtain two-dimensional joint points corresponding to the current frame.

3. The method according to claim 2, characterized in that The method further comprises: When the first eye detection result indicates that there is a hand detection frame in the first eye image, The hand detection frame and the corresponding hand classification information in the first image of the current frame are cached.

4. The method according to claim 1, characterized in that The method further comprises: When the second estimation result indicates that the second estimation frame is invalid, Acquire a cached detection frame, where the cached detection frame is a hand detection frame in a second eye image in which hand detection is performed in a frame previous to the current frame; After filtering out redundant frames corresponding to redundant hands from the hand detection frame in the first image and the cache detection frame, hand joint point recognition is performed to obtain two-dimensional joint points corresponding to the current frame.

5. The method according to claim 1, characterized in that The performing hand estimation on the second eye image of the current frame to obtain a second eye estimation result includes: Obtaining the three-dimensional joint points of the two frames before the current frame in the world coordinate system; According to the three-dimensional joint points of each of the first two frames in the world coordinate system, the three-dimensional joint points of the current frame in the world coordinate system are estimated, and the estimated three-dimensional joint points of the current frame in the world coordinate system are reprojected to obtain the estimated two-dimensional joint points of the current frame; According to the estimated two-dimensional joint points of the current frame, a hand estimation frame in the second eye image of the current frame is determined.

6. The method according to claim 5, characterized in that The method further comprises: Performing hand joint point recognition on the hand estimation frame in the second eye image of the current frame; Calculating the three-dimensional joint points of the current frame in the world coordinate system according to the detection result and the posture estimation parameters; When the difference between the calculated three-dimensional joint points of the current frame in the world coordinate system and the estimated three-dimensional joint points of the current frame in the world coordinate system is greater than a preset threshold, it is determined that the second estimation frame is invalid.

7. The method according to claim 1, characterized in that The first detection result includes hand classification information; filtering out redundant frames corresponding to redundant hands from the hand detection frame in the first image of the current frame and the hand estimation frame in the second image, includes: Performing hand matching on the hand detection frame in the first image of the current frame and the hand estimation frame in the second image, and screening out a pair of frames that match the same left hand and a pair of frames that match the same right hand according to the matching result and the hand classification information; If there are multiple different left hands, keep the pair of frames of the left hand corresponding to the frame closest to the center of the image; If there are multiple different right hands, keep the pair of boxes corresponding to the right hand that is closest to the center of the image.

8. The method according to claim 1, characterized in that: The first detection result includes hand classification information of the hand detection frame, and the hand classification information is used to identify hand joint points of the hand detection frame; Before performing hand joint point recognition, the method further includes: Acquire multiple cache detection frames, where the cache detection frames are hand detection frames in images in which hand detection is performed in historical frames corresponding to the current frame; For each hand detection frame in the current frame, hand matching is performed on the hand detection frame and the multiple cache detection frames, and a hand detection frame that belongs to the same hand as the hand detection frame in the current frame is determined from the multiple cache detection frames according to the matching result; Based on the hand classification information of the hand detection frame belonging to the same hand as the hand detection frame in the current frame and the hand classification information of the hand detection frame in the current frame, voting is performed to obtain a voting result about the hand classification information of the hand detection frame in the current frame; the voting result is used to adjust the hand classification information of the current frame.

9. The method according to claim 8, characterized in that The method further comprises: If the adjusted hand classification information of each hand detection frame in the current frame indicates that there are two left hands or two right hands in the current frame, the adjusted hand classification information is corrected according to the voting result to obtain the corrected hand classification information.

10. The method according to claim 1, characterized in that The two-dimensional joint points represent the two-dimensional coordinates of the joint points in the image plane coordinate system; the three-dimensional hand joints represent the three-dimensional coordinates of the joint points in the three-dimensional hand coordinate system; The step of converting the two-dimensional joint points into three-dimensional joint points in a three-dimensional hand coordinate system comprises: The two-dimensional coordinates of the target joint point in the image plane coordinate system are taken as the origin of the two-dimensional finger coordinate system; Determine the two-dimensional coordinates of the adjacent joint point in the two-dimensional finger coordinate system according to the angle between the adjacent joint point of the target joint point and the finger joint between the target joint point in the two-dimensional finger coordinate system, and the length of the finger joint; According to the conversion relationship between the two-dimensional finger coordinate system and the three-dimensional hand coordinate system, the two-dimensional coordinates of the adjacent joint points in the two-dimensional finger coordinate system are converted into three-dimensional coordinates in the three-dimensional hand coordinate system.

11. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: Obtaining the three-dimensional joint points of the two frames before the current frame in the world coordinate system; Calculating the posture estimation parameters of the first two frames according to the three-dimensional joint points of the first two frames in the world coordinate system; Interpolation processing is performed on the posture estimation parameters of each of the first two frames to obtain the posture estimation parameters corresponding to the current frame.

12. A hand gesture recognition device, characterized in that: The device comprises: An acquisition module, used to acquire a current frame of a multi-view video of a hand, wherein the current frame includes a multi-view image; A hand detection module, used to perform hand detection on the first eye image of the current frame to obtain a first eye detection result; the first eye detection result is used to locate a hand detection frame in the first eye image of the current frame; A hand estimation module, used for performing hand estimation on the second eye image of the current frame to obtain a second eye estimation result; the second eye estimation result is used to locate a hand estimation frame in the second eye image of the current frame; A joint point recognition module is used to identify hand joint points after filtering out redundant frames corresponding to redundant hands from the hand detection frame in the first image of the current frame and the hand estimation frame in the second image, so as to obtain two-dimensional joint points corresponding to the current frame; A posture recognition module is used to convert the two-dimensional joint points into three-dimensional joint points in a three-dimensional hand coordinate system; according to the posture estimation parameters corresponding to the current frame, the three-dimensional joint points in the three-dimensional hand coordinate system are converted into the three-dimensional joint points of the current frame in the world coordinate system, and the three-dimensional joint points in the world coordinate system are used to describe the three-dimensional hand posture of the hand in the current frame.

13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 11 are implemented.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.