Hand pose recognition method and apparatus, and device, storage medium and program product
Through the detection and estimation of multi-view videos, hand joint points are identified and converted after filtering out redundant frames, which solves the problems of inaccurate estimation and data redundancy when the wrist is flipped, and improves the efficiency and accuracy of hand posture recognition. .
Patent Information
- Application Number
- PCT/CN2023/129598
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-24
- Filing Date
- 2023-11-03
- Publication Date
- 2024-08-29
AI Technical Summary
Existing hand gesture recognition technology is inaccurate in estimating when the wrist is flipped, and processing all hands results in data redundancy, which increases processing time.
By obtaining the current frame of the multi-view video, hand detection and estimation are performed, joint points are identified after filtering out redundant frames, and converted into a three-dimensional hand coordinate system. The hand posture is described using posture estimation parameters to reduce the amount of data and improve accuracy. sex.
It reduces the processing time and data redundancy of hand gesture recognition, improves recognition efficiency and accuracy, and avoids estimation deviation from the actual hand joints.
Smart Images

Figure CN2023129598_29082024_PF_FP_ABST
Abstract
Description
Hand gesture recognition method, device, equipment, storage medium and program product
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on February 24, 2023, with application number 202310215949.2, and application name “Hand gesture recognition method, device, equipment, storage medium and program product”, all contents of which are incorporated by reference into this application. Technical Field
[0002] 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
[0003] With the development of computer technology and artificial intelligence technology, there are more and more application scenarios based on gesture interaction, such as 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.
[0004] Hand gesture recognition requires the collection of multiple images and target detection on the multiple images to obtain a hand detection frame. In related technologies, 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, the hand detection frame is estimated. 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 technology processes all hands appearing in the picture, resulting in data redundancy and still high processing time.
[0005] Summary of the Invention
[0006] According to various embodiments provided in this application, a method for hand gesture recognition is provided. The method includes:
[0007] Obtaining a current frame of a multi-camera video, where the multi-camera video is a video obtained by synchronously capturing images of hands located in the same area by multiple cameras, and the current frame includes multiple images;
[0008] Performing hand detection on the first image of the current frame to obtain a first detection result, where the first detection result is used to locate a hand detection frame in the first image of the current frame;
[0009] Performing hand estimation on the second image of the current frame to obtain a second estimation result, where the second estimation result is used to locate a hand estimation frame in the second image of the current frame;
[0010] 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 on the remaining frames to obtain two-dimensional joint points corresponding to the current frame;
[0011] Converting the two-dimensional joint points into three-dimensional joint points in a three-dimensional hand coordinate system; and
[0012] 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.
[0013] The present application also provides a hand gesture recognition device. The device comprises:
[0014] An acquisition module is used to acquire a current frame of a multi-view video, where the current frame includes a multi-view image;
[0015] a hand detection module, configured to perform hand detection on the first image of the current frame to obtain a first detection result, wherein the first detection result is used to locate a hand detection frame in the first image of the current frame;
[0016] a hand estimation module, configured to perform hand estimation on the second image of the current frame to obtain a second estimation result, wherein the second estimation result is used to locate a hand estimation frame in the second image of the current frame;
[0017] a joint point recognition module, configured to filter 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, and then perform hand joint point recognition on the remaining frames to obtain two-dimensional joint points corresponding to the current frame;
[0018] 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, and according to the posture estimation parameters corresponding to the current frame, convert the three-dimensional joint points in the three-dimensional hand coordinate system into the three-dimensional joint points of the current frame in the world coordinate system. 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.
[0019] The present application also provides a computer device comprising a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the hand gesture recognition method provided in the embodiment of the present application when executing the computer-readable instructions.
[0020] The present application also provides a computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by a processor, implement the steps of the hand gesture recognition method provided in an embodiment of the present application.
[0021] The present application also provides a computer program product, which includes computer-readable instructions that, when executed by a processor, implement the steps of the hand gesture recognition method provided in the embodiments of the present application.
[0022] The details of one or more embodiments of the present application are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the present application will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or traditional technical descriptions. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the disclosed drawings without any creative work.
[0024] FIG1 is a diagram illustrating an application environment of a hand gesture recognition method according to an embodiment;
[0025] FIG2 is a schematic diagram of a flow chart of a hand gesture recognition method according to an embodiment;
[0026] FIG3 is a schematic diagram of performing hand detection on an image to obtain a hand detection frame in one embodiment;
[0027] FIG4 is a schematic diagram of 21 hand joints in one embodiment;
[0028] FIG5 is a schematic diagram of estimating a hand estimation frame of a current frame according to one embodiment;
[0029] FIG6 is a schematic diagram of a three-dimensional hand coordinate system in one embodiment;
[0030] FIG7 is a schematic diagram of a two-dimensional finger coordinate system according to one embodiment;
[0031] FIG8 is a schematic diagram of various hand joints in one embodiment;
[0032] FIG9 is a flowchart illustrating steps for adjusting hand classification information in one embodiment;
[0033] FIG10 is a process flow chart of a hand gesture recognition method according to one embodiment;
[0034] FIG11 is a block diagram of a hand gesture recognition device according to an embodiment;
[0035] FIG12 is a diagram showing the internal structure of a computer device according to one embodiment;
[0036] FIG13 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0038] Some concepts involved in this application are explained:
[0039] keypoint / keypoints: key points, mainly referring to the joints of the hand.
[0040] keypoint2D / keypoints2D: A two-dimensional joint point, belonging to the two-dimensional image plane coordinate system, representing the coordinates of each joint in the hand on the image plane.
[0041] keypoint3D / keypoints3D: A three-dimensional joint point, belonging to the three-dimensional world coordinate system, representing the coordinates of the hand in the three-dimensional world.
[0042] Handness: Classification information of the hand, whether it is left or right hand.
[0043] Mesh: A camera is called a mesh.
[0044] View: A single-view image. In a multi-camera system, the image captured by one of the cameras is called a single-view image. It is understandable that different cameras have different shooting fields of view or angles, so the images they capture are different.
[0045] Frame: Multiple images captured by multiple cameras at one time are called a frame, and a frame includes multiple images.
[0046] 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. Object detection is a task of image detection that can output the location of the target object in the input image.
[0047] The hand gesture recognition method provided in the embodiments of the present application can be applied in the application environment shown in FIG1 . Terminal 102 communicates with server 104 via a network. A data storage system can store data that server 104 needs to process, such as cached detection boxes and corresponding hand classification information. The data storage system can be integrated with server 104 or placed in the cloud or on another server.
[0048] In one embodiment, the multi-eye camera is connected to the terminal via a wired or wireless connection. The multi-eye camera can capture multi-eye videos. The terminal 102 obtains the real-time captured multi-eye videos 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 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. The hand is estimated 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. Subsequently, the server 104 performs hand estimation on the first 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. In the hand detection frame and the hand estimation frame in the second eye image, after filtering out the redundant frames corresponding to the redundant hands, the hand joint points of the remaining frames 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 multi-eye video collected in real time from the multi-eye camera, the terminal 102 performs the above steps locally to identify the three-dimensional hand posture.
[0049] Terminal 102 may be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices may include smart speakers, smart TVs, smart air conditioners, and smart car devices. Portable wearable devices may include smart watches, smart bracelets, and head-mounted devices. Terminal 102 may also be a VR (Virtual Reality) device. Server 104 may be implemented as a standalone server or a server cluster consisting of multiple servers.
[0050] In related technologies, 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 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.
[0051] The disadvantages are as follows: Because the target detection algorithm is computationally intensive and time-consuming, target detection is performed on all multi-view images captured by all cameras, resulting in long processing times and affecting gesture recognition. To this end, some methods try to avoid obtaining hand detection through target detection algorithms and instead estimate the hand detection frame. However, this estimation method is inaccurate when the wrist is flipped, and there are cases where the estimated position of the hand joint point is far away from the actual hand joint. In addition, even with the estimation method, all hands appearing in the picture are processed, resulting in data redundancy and still high processing time.
[0052] The hand gesture recognition method provided by the embodiment of the present application obtains the current frame of the multi-eye video, performs hand detection on the first eye image of the current frame, obtains the hand detection frame in the first eye image, and performs hand detection on only one eye image in the multi-eye image each time, which can reduce processing time. In addition, the hand is estimated on the second eye image of the current frame to obtain the hand estimation frame in the second eye image, which is 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 first eye image of the current frame, the hand is estimated. After filtering out the redundant frames corresponding to the redundant hands in the hand detection frame in the target image and the hand estimation frame in the second target image, the hand joint points are recognized on the remaining frames 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, avoiding the situation in which the estimated hand joint points in related technologies deviate from the actual ones, and improving the accuracy of recognizing hand postures.
[0053] In one embodiment, as shown in FIG2 , a hand gesture recognition method is provided. The method is described by taking the computer device (terminal or server) in FIG1 as an example, and includes the following steps:
[0054] Step 202: Acquire a current frame of a multi-camera video. The multi-camera video is a video obtained by synchronously capturing images of hands located in the same area by multiple cameras. The current frame includes multiple images.
[0055] The multi-camera video described in the embodiments of the present application is a video obtained by synchronously capturing images of hands appearing in the same area from multiple cameras at different shooting angles. For example, in a VR (Virtual Reality) gesture recognition scenario, a user places both hands or one hand in a preset area, and each camera in the multi-camera captures video of the preset area from a different angle to obtain a multi-camera video. The multi-camera can be, for example, a binocular camera, a quad-camera, or the like, and the embodiments of the present application do not limit this.
[0056] Each frame of a multi-view video is a collection of video images captured by each camera in the multi-view camera at the same time. The current frame can be understood as the collection of video images captured by each camera in the multi-view camera at the current moment. That is, the current frame includes multiple camera images, and the previous frame can be understood as the collection of video images captured by each camera in the multi-view camera at the previous moment.
[0057] For example, the current frame is the two video frames captured by the binocular camera at time t, and the previous frame is the two video frames captured by the binocular camera at time t-1. Alternatively, the current frame is the kth frame, which includes binocular images, and the previous frame is the k-1th frame, both including binocular images. It can be understood that the current and previous moments here are dynamically changing, and accordingly, the current and previous frames are also dynamically changing. The current frame can be understood as the frame currently being processed. After the current frame is processed, the next frame is obtained and becomes the new current frame.
[0058] Step 204: 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.
[0059] In this embodiment of the present application, hand detection need not be performed on all images in the current frame. Instead, hand detection is performed on only one image in each frame. In other words, hand detection is performed on only one image in the multi-image set at a time, which can reduce processing time. The first image in the current frame is the image in the multi-image set that requires hand detection, and the second image in the current frame is the image in the multi-image set that does not require hand detection.
[0060] If the multi-camera has two cameras, each frame contains two images. In this case, the number of images not requiring hand detection, i.e., the number of second images, is one. If the multi-camera has more than two cameras, each frame contains more than two images. In this case, the number of images not requiring hand detection, i.e., the number of second images, is more than one.
[0061] In one embodiment, a computer device can perform hand detection on the first image of the current frame using a pre-trained hand detection model to obtain a first detection result. This first detection result is used to locate a 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 this first detection result, the hand detection frame can be located in the first image. It can be understood that when there is no hand in the first image, the corresponding first detection result will indicate that there is no hand detection frame in the first image, that is, each value in (m, n, w, h) is null data. The hand detection process is the process of locating the area in the image where the hand is located. This area can be the smallest rectangular box enclosing the hand in the image. As shown in Figure 3, a schematic diagram of performing hand detection on an image to obtain a hand detection frame in one embodiment is shown. Optionally, the first eye detection result may further include hand classification information of the hand detection frame, where the hand classification information indicates whether the hand in the hand detection frame is a left hand or a right hand.
[0062] 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 obtained by training a large number of hand sample images. The trained hand detection model has the ability to identify the area where the hand is located from the image.
[0063] 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 in a one-eye polling manner. The one-eye polling manner means that hand detection is performed on only one eye image in each frame, and the detections in adjacent frames 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 captured by the first camera in the multi-eye camera, then the image for hand detection in the current frame is captured by the second camera in the multi-eye camera, and the image for hand detection in the next frame is captured 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, and each one-eye detection is a one-eye polling detection, and the information collected by each camera can be obtained at a macro level, thereby improving the accuracy of subsequent joint point recognition.
[0064] Step 206: 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.
[0065] In order to avoid the time-consuming and noticeable lag caused by performing hand detection on all images in a frame, while also obtaining 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 image and hand estimation is performed on the second image. In this way, the hand information provided by the second image and the disparity information formed by the hand detection frame in the first image help improve the accuracy of hand gesture recognition. The computer device can perform hand estimation on the second image in the current frame based on the information of the historical frame to obtain a second estimation result. The second estimation result is used to locate the hand estimation frame in the second image of the current frame. The hand estimation frame indicated by the second estimation result and the hand detection frame indicated by the first detection result are combined to form a binocular frame for subsequent hand joint point recognition.
[0066] After the computer device obtains the above-mentioned first-eye detection results 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. Based on the hand detection frame, hand estimation frame and corresponding hand classification information, subsequent hand joint point recognition is performed to identify the two-dimensional joint points, and then the three-dimensional joint points of the current frame in the world coordinate system are determined based on the two-dimensional joint points.
[0067] Two-dimensional joint points indicate the location of each hand joint within the two-dimensional image plane. Hand joint point recognition involves predicting the coordinates of each hand joint within a two-dimensional image. The two-dimensional image can be, for example, a hand detection frame cropped from the first image or a hand estimation frame cropped from the second image. For example, Figure 4 shows a schematic diagram of 21 hand joint points in one embodiment.
[0068] The three-dimensional joint points indicate the position of each hand joint point in the three-dimensional coordinate system. The computer device can model the hand and convert the two-dimensional joint points into three-dimensional joint points in the three-dimensional hand coordinate system. Then, based on 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 joint points in the three-dimensional hand coordinate system are converted into three-dimensional joint points in the world coordinate system. The three-dimensional joint points in the world coordinate system can be used to describe the three-dimensional hand posture of the hand in the current frame.
[0069] 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 two frames before 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 two frames before the current frame, 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.
[0070] Specifically, after completing the recognition of the hand posture in a frame of video, the computer device 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 estimation 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. Based on the three-dimensional joint points of the k-1th frame and the k-2th frame in the world coordinate system, the computer device estimates the three-dimensional joint points of the current frame in the world coordinate system, and then reprojects the three-dimensional joint points to obtain the estimated two-dimensional joint points of the current frame. Based on the estimated two-dimensional joint points of the current frame, the computer device determines the hand estimation frame in the second eye image of the current frame.
[0071] Figure 5 is a schematic diagram illustrating an embodiment of estimating a hand estimation frame for the current frame based on three-dimensional hand joint points from historical frames. Referring to Figure 5 , the left image is a first-look image of hand detection in frame 128, the middle image is a first-look image of hand detection in frame 129, and the right image is a first-look image of hand estimation in frame 130. The boxes in the left and middle images are hand detection boxes obtained through hand detection, while the box in the right image is a hand estimation box obtained through hand estimation.
[0072] Alternatively, the hand estimation box in the right figure can be estimated as follows.
[0073] The 3D joint points of the hand in the world coordinate system in the first image for hand detection in frame 128 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 frame 129 are recorded as keypoints3D_1; in frame 130, hand detection is performed on the first image and hand estimation is performed on the second image. The estimated 3D joint points of the hand in the world coordinate system in the second image of frame 130 are:
[0074] keypoints3D_3 = 2*keypoints3D_2 - keypoints3D_1; keypoints3D_3 is the estimated 3D joint point of the current frame in the world coordinate system;
[0075] Next, the estimated two-dimensional joint points of the 130th frame are obtained by reprojection:
[0076] keypoints2D_3=reproject(keypoints3D_3); reproject() is a reprojection processing function. 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.
[0077] Next, determine the hand estimation frame in the second eye image of frame 130:
[0078] box = bounding rectangle(keypoints2D_3);
[0079] 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 estimation method.
[0080] The computer device can perform hand estimation on the second eye image in the above manner to obtain a hand estimation 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.
[0081] 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 directly use the hand detection frame of the previous frame as the hand information provided by the second 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 when performing hand recognition in the next frame.
[0082] In other embodiments, in order to obtain 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 of the second eye image of the current frame determines that the hand estimation frame in the second eye image is invalid, the hand estimation frame is discarded, and the cached detection frame of the previous frame is used as the detection information of the second eye image of the current frame. For example, the cached detection frame can be the hand detection frame of the cached previous frame, or it can be a detection frame located from the second eye image of the current frame based on the coordinate information indicated by the hand detection frame. Optionally, if the hand detection frame is not detected in the cached image of the previous frame for hand detection, that is, if the cached hand detection frame does not exist in the previous frame, then the image information about the second eye image in the current frame cannot be obtained, and the current frame needs to be discarded and the next frame needs to be acquired for processing.
[0083] In one embodiment, the computer device can also perform hand joint point recognition on the hand estimation frame in the second eye image of the current frame to obtain a corresponding recognition result, which is a two-dimensional joint point; calculate the three-dimensional joint point of the current frame in the world coordinate system based on the recognition result and the posture estimation parameter; when the difference between the calculated three-dimensional joint point of the current frame in the world coordinate system and the estimated three-dimensional joint point of the current frame in the world coordinate system is greater than a preset threshold, the hand estimation frame of the second eye image is determined to be invalid.
[0084] The calculated 3D joint points of the current frame in the world coordinate system represent the 3D pose obtained by performing hand joint point recognition on the second image of the current frame. The calculated 3D joint points of the current frame in the world coordinate system are compared with the estimated 3D joint points of the current frame in the world coordinate system to determine the error between the two. Based on this error, the rationality of the hand estimation frame obtained by performing hand estimation on the second image of the current frame can be determined. If the rationality is not met, the hand estimation frame of the second image of the current frame is discarded.
[0085] In 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 on the remaining frames to obtain the two-dimensional joint points corresponding to the current frame.
[0086] If the hand estimation frame in the second image of the current frame is valid, the computer device continues to perform subsequent processing based on the hand detection frame in the first image of the current frame and the hand estimation frame in the second image. In an embodiment of the present application, considering that in specific scenarios, such as VR gesture interaction scenarios, only part of the user's hands, such as one or two hands of the user, need to be focused on, 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 redundant frames corresponding to redundant hands, and then perform hand joint point recognition on the remaining frames, without the need to process all hands appearing in the image.
[0087] Specifically, the computer device can retain the pair of hands or one hand closest to the center of the image. The number of hands to be retained can be set according to actual needs and is not limited in this embodiment of the present application. 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 these at least two frames are from different sources. This ensures that the three-dimensional information of the hand can be restored. The at least two frames can be two frames.
[0088] 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 based on the matching results and the hand classification information; if there are multiple different left hands, a pair of frames corresponding to 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 corresponding to the right hand corresponding to the frame closest to the center of the image is retained.
[0089] 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 point corresponding to the current frame.
[0090] For example, the first image includes three hand detection frames, namely 1A, 1B, and 1C. Among them, 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.
[0091] There are two hand estimation frames in the second image, namely 2A and 2B. 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. It is closest to the image center of the second image.
[0092] There are three hand estimation frames in the third image, namely 3A, 3B, and 3C. 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.
[0093] The fourth image contains three hand estimation frames, 4A, 4B, and 4C. 4A is closer to the image center of the third image than 4C. The hand classification information corresponding to 4A is left hand, the hand classification information corresponding to 4B is left hand, and the hand classification information corresponding to 4C is left hand.
[0094] 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 single left hand. Since at least two eyepiece image information is required, 4B is first filtered out. Next, for the left hand M, the two frames closest to the image center are retained, namely 1A and 2A. For the two left hands M and N, redundant hands are filtered out, retaining only the left hand closest to the image center. For the two right hands P and Q, redundant hands are filtered out, retaining only the right hand closest to the image center. In this way, after filtering, only two hands, one left and one right, are retained. For each hand, only two frames are retained from different eyes, greatly reducing the amount of data required for subsequent hand joint recognition. Of course, in some scenarios where only one right hand needs to be retained, both left and right frames can be filtered out.
[0095] Step 210: convert the two-dimensional joint points into three-dimensional joint points in the three-dimensional hand coordinate system.
[0096] 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 convert the three-dimensional coordinates in the three-dimensional hand coordinate system into the world coordinate system through the posture estimation parameters.
[0097] FIG6 is a schematic diagram of a three-dimensional hand coordinate system according to one embodiment. Referring to FIG6 , the hand coordinate system is defined as shown in FIG6 . When the five fingers of the right hand are open, the plane of the palm is defined as the XOY plane, the direction from the wrist node to the middle finger is defined as the Y-axis, the direction perpendicular to the pinky finger is defined as the X-axis, and the direction of the palm is defined as the Z-axis. Of course, other methods can also be used to model the palm, and this embodiment of the application does not limit this.
[0098] In one embodiment, the two-dimensional joint points represent the two-dimensional coordinates of the joint points in the image plane coordinate system, and the three-dimensional hand joints represent the three-dimensional coordinates of the joint points in the three-dimensional hand coordinate system; converting the two-dimensional joint points into three-dimensional joint points in the three-dimensional hand coordinate system includes:
[0099] 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, 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.
[0100] Among them, the target node can be any one of the hand joints, which 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. After the computer device identifies the two-dimensional coordinates (u, v) of each hand joint in the image plane coordinate system through hand joint recognition, it can use the wrist joint as the origin of the two-dimensional finger coordinate system to construct a two-dimensional finger coordinate system. As shown in Figure 7, it is a schematic diagram of a two-dimensional finger coordinate system in an embodiment. Referring to Figure 7, the definition of the two-dimensional finger coordinate system is to use the wrist joint (I0 in the figure) as the origin, the Z-axis direction in the three-dimensional hand coordinate system as the Xi-axis direction of the two-dimensional finger coordinate system, the straight direction of the index finger 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 β. This β can be determined based on the angle between the straight line where the four knuckles of the index finger are located and the YOZ plane. It can be seen that the two coordinate axes of the two-dimensional finger coordinate system are defined in the three-dimensional hand coordinate system as:
[0101] Xi=(0,0,1), Yi=(cosβ,sinβ,0).
[0102] In this way, the coordinates of any point (x, y) in the 2D finger coordinate system in the 3D hand coordinate system are xXi+yYi, that is, (y cosβ, y sinβ, x). This is the conversion relationship between the 2D finger coordinate system and the 3D hand coordinate system.
[0103] The computer device can determine the two-dimensional coordinates of the adjacent joint point in the two-dimensional finger coordinate system based on the angle between the adjacent joint point and the target joint point in the two-dimensional finger coordinate system, as well as 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.
[0104] FIG8 is a schematic diagram of various hand joints in one embodiment. For the line connecting hand joint I1 and wrist node I0 shown in FIG8 , the angle between the line and the Yi axis of the two-dimensional finger coordinate system is θ1, and the length of the line I0-I1 is Li1. Both the angle and the length of the line can be determined by the two-dimensional coordinates of hand joint I0 and hand joint I1 in the image plane coordinate system. The coordinates I1(x, y) of hand joint I1 in the two-dimensional finger coordinate system can be calculated using the following formula:
[0105] I1(x,y)=I0+Li1(sinθ1,cosθ1), where the coordinate of I0 in the two-dimensional finger coordinate system is (0,0).
[0106] Similarly, the line I1-I2 between the hand joint point I2 and the hand joint point I1 has an angle θ2 with the line I0-I1, and the length of the line I1-I2 is Li2. 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: I2(x,y)=I1+Li2(sin(θ1+θ2),cos(θ1+θ2)).
[0107] Similarly, the line I2-I3 between the hand joint point I3 and the hand joint point I2 has an angle θ3 with the line I1-I2, and the length of the line I2-I3 is Li3. 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: I3(x, y) = I2+Li3(sin(θ1+θ2+θ3), cos(θ1+θ2+θ3)).
[0108] Then, according to the above-mentioned conversion relationship between the two-dimensional finger coordinate system and the three-dimensional hand coordinate system, substitute xXi+yYi to obtain the three-dimensional coordinates of the hand joint point in the three-dimensional hand coordinate system.
[0109] Step 212, based on the posture estimation parameters corresponding to the current frame, convert the three-dimensional joint points in the three-dimensional hand coordinate system 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.
[0110] Among them, the posture estimation parameters include camera parameters and joint rotation parameters. The camera parameters indicate the three-dimensional space in which the hand is located, specifically the distance matrix t from the hand joint point corresponding to the wrist to the camera. The joint rotation parameters indicate the posture of the hand joint point, specifically the rotation angle matrix R of the hand joint point corresponding to the wrist and the rotation angle matrix angle of other joint points.
[0111] 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.
[0112] 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. Based on the three-dimensional joint points of the k-1th frame and the k-2th frame in the world coordinate system, it calculates the pose estimation parameters of the k-1th frame and the k-2th frame, 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 perform interpolation according to the following formula:
[0113] The rotation angle of the hand joint corresponding to the wrist in frame k:
[0114] R(k)=R(k-1)*(R(k-2).inv()*R(k-1)), R(k-2).inv() represents the inverse matrix of the matrix R(k-2);
[0115] The distance from the hand joint corresponding to the wrist to the camera in the kth frame: t(k) = 2*t(k-1) – t(k-2);
[0116] Other joint angles in frame k: angle(k) = 2*angle(k-1) – angle(k-2).
[0117] 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.
[0118] The above-mentioned hand gesture recognition method, device, computer equipment, storage medium and computer program product, after obtaining the current frame of the multi-eye video, performs hand detection on the first eye image of the current frame to obtain a hand detection frame in the first eye image, and only performs hand detection on a certain eye image in the multi-eye image at a 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 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 In the hand detection frame in the first image of the current frame and the hand estimation frame in the second image, after filtering out the redundant frames corresponding to the redundant hands, the remaining frames are subjected to hand joint point recognition 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 related technologies deviate from the actual ones, and improves the accuracy of recognizing hand postures.
[0119] As mentioned above, when the hand estimation frame is invalid, the hand estimation frame is abandoned and the cached detection frame is obtained instead. The cached detection frame can be the hand detection frame of the previous cached frame, or it can be the detection frame located from the second eye image of the current frame based on the coordinate information indicated by the hand detection frame.
[0120] Therefore, in one embodiment, the above method further includes:
[0121] When the first detection result indicates that a hand detection frame exists in the first image, the hand detection frame and corresponding hand classification information in the first image of the current frame are cached.
[0122] In one embodiment, when the second-eye estimation result indicates that the hand estimation frame of the second-eye image is invalid, the computer device can obtain a cached 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 cached detection frame, hand joint point recognition is performed on the remaining frames to obtain the two-dimensional joint points corresponding to the current frame.
[0123] In this embodiment, when the hand estimation frame in 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-object frame for subsequent hand joint recognition. Here, before performing hand joint recognition, redundant frames corresponding to redundant hands need to be filtered out. The method used is the same as mentioned above and is not repeated here.
[0124] 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 overly complex or dimly lit environments, 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.
[0125] That is, in one embodiment, the above method may further include:
[0126] 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, which is used to locate the hand estimation frame in the first-eye image of the current frame; from the hand estimation frame in the first image of the current 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 on the remaining frames to obtain the two-dimensional joint points corresponding to the current frame.
[0127] Among them, the method of estimating the hand for the first eye image is similar to the method of estimating the hand for the second eye image mentioned above, that is, 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, 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. Based on the estimated two-dimensional joint points of the current frame, the hand estimation box in the first eye image of the current frame is determined.
[0128] In this embodiment, when the first-view detection result indicates that a hand detection frame is not present in the first image, the computer device can combine the hand estimation frame in the first image and the hand estimation frame in the second image to form a binocular frame for subsequent hand joint recognition. In other words, if a hand detection frame is present in the first image, the first-view hand detection frame and the second-view hand estimation frame are combined into a binocular 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.
[0129] Similarly, before performing hand joint point recognition, it is also necessary to filter out redundant frames corresponding to redundant hands from the hand estimation frames in the first and second images of the current frame. Specifically, if the hand estimation frames in the second image of the current frame are valid, considering that in specific scenarios, such as VR gesture interaction scenarios, only part of the user's hands, such as one or two hands of the user, need to be focused on, then in order to reduce the amount of data for hand joint point recognition and improve 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 having to process all hands appearing in the image. The computer device can retain the pair of hands or one hand closest to the center of the image. The number of hands to be retained can be set according to actual needs, and the embodiments of the present application are not limited to this. 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, at least two frames are retained for each hand, and the at least two frames are from different frames, so that the three-dimensional information of the hand can be restored. The at least two frames can be two frames.
[0130] In one embodiment, when the hand estimation frame in the second image is invalid, the computer device may combine the hand estimation frame in the first image with the hand detection frame in the second image used for hand detection in the previous frame (i.e., the cached detection frame) to form a dual-frame for subsequent hand joint recognition. Similarly, before performing hand joint recognition, it is also necessary to filter out redundant frames corresponding to redundant hands from the hand estimation frame in the first image of the current frame and the cached detection frame.
[0131] Based on the previous description, it can be seen that in order to ensure the accuracy of joint point recognition, at least two destination frames are required. That is to say, the input of the hand joint point recognition model can be a two-destination frame composed of a hand detection frame and a hand estimation frame, a two-destination frame composed of a hand detection frame and a cache detection frame, a two-destination frame composed of a hand estimation frame and a hand estimation frame, or a two-destination frame composed of a hand estimation frame and a cache detection frame.
[0132] In one embodiment, as shown in FIG9 , the first eye 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 further includes the step of adjusting the hand classification information, specifically including:
[0133] Step 902 : Acquire multiple 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.
[0134] As mentioned above, hand detection is performed on the first image in each frame. When the detection result indicates that there is a hand detection frame in the first image, the hand detection frame and the corresponding hand classification information in the first image are used for subsequent hand joint recognition. However, in complex or poorly lit scenes, due to the natural symmetry of the left and right hands, the classification of the left and right hands is prone to misclassification, 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 first 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 can be the L-1 frame before the current frame, and the L-1 frame and the current frame together constitute the L frame.
[0135] In step 904, 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 that belongs 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 results.
[0136] There may be multiple hands in the image where hand detection is performed in each frame, which means there are multiple hand detection frames. For each hand detection frame in the current frame, it is matched with the cached detection frames in the historical frames, and each hand detection frame is matched to the same hand.
[0137] For example, in frame 1, the first image includes two hand detection frames 1A and 1B, with the hand classification information being left hand and right hand, respectively. In frame 2, the second image includes two hand detection frames 2A and 2B, with the hand classification information being left hand and right hand, respectively. In frame 3, the first image includes two hand detection frames 3A and 3B, with the hand classification information being left hand and right hand, respectively. In frame 4, the second image includes two hand detection frames 4A and 4B, with the hand classification information being left hand and left hand, respectively. In frame 5, the first image includes two hand detection frames 5A and 5B, with the hand classification information being right hand and right hand, respectively. Assuming L is 5 and the current frame is frame 5, after hand matching, 1A, 2A, 3A, 4A, and 5A are matched to the same hand H1, and 1B, 2B, 3B, 4B, and 5B are matched to the same hand H2.
[0138] 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 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.
[0139] Continuing with the above example, for H1, the hand classification information for each frame is left hand, left hand, left hand, left hand, right hand. The classification with the highest number of votes is used as the hand classification information for hand detection frame 5A in frame 5, indicating that it is the left hand, not the currently predicted right hand. For H2, the hand classification information for each frame is right hand, right hand, right hand, left hand, right hand. The classification with the highest number of votes is used as the hand classification information for hand detection frame 5B in frame 5, indicating that it is the right hand, indicating that the current prediction of the right hand is accurate.
[0140] 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.
[0141] In one embodiment, the method further comprises:
[0142] 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 corrected hand classification information.
[0143] 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 both hands are indicated as the left hand or both are indicated as the right hand, it means that one of the voting results is inaccurate. At this time, the hand classification information can be further corrected.
[0144] For example, the computer device can count the ratio of left to right hands in the voting results for each hand, that is, LR_rate = left_count / right_count, where left_count represents the number of votes for the hand classification information being the left hand, and right_count represents the number of votes for the hand classification information being 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 the 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 the 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 large), thereby correcting the hand classification information.
[0145] For example, in frame 1, the first image includes two hand detection frames 1A and 1B, with the hand classification information being left hand and right hand, respectively. In frame 2, the second image includes two hand detection frames 2A and 2B, with the hand classification information being right hand and right hand, respectively. In frame 3, the first image includes two hand detection frames 3A and 3B, with the hand classification information being right hand and right hand, respectively. In frame 4, the second image includes two hand detection frames 4A and 4B, with the hand classification information being left hand and left hand, respectively. In frame 5, the first image includes two hand detection frames 5A and 5B, with the hand classification information being right hand and right hand, respectively. Assuming L is 5 and the current frame is frame 5, after hand matching, 1A, 2A, 3A, 4A, and 5A are matched to the same hand H1, and 1B, 2B, 3B, 4B, and 5B are matched to the same hand H2.
[0146] For H1, the hand classification information for each frame is left hand, right hand, right hand, left hand, and right hand, in order. The classification information with the highest number of votes is used as the hand classification information for hand detection frame 5A in frame 5, which is the right hand. For H2, the hand classification information for each frame is right hand, right hand, right hand, left hand, and right hand, in order. The classification information with the highest number of votes is used as the hand classification information for hand detection frame 5B in frame 5, which is the right hand.
[0147] 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. Therefore, the hand classification information of the hand detection frame 5A is corrected to the left hand.
[0148] Figure 10 is a flowchart of a hand gesture recognition method according to one embodiment. Referring to Figure 10 , the input is the current frame, which includes multiple images. To obtain hand position information from the multiple images in the current frame, the computer device preferentially uses a one-eye polling detection method to perform hand detection on one of the multiple images to obtain a hand detection result. Simultaneously, an estimation method is used to perform hand estimation on the other images to obtain hand estimation results.
[0149] If the hand detection result indicates that there is a hand detection frame in the one image, and the hand estimation frames of other images are valid, the hand detection frame and the hand estimation frame are combined into a multi-target frame as a candidate frame.
[0150] 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 valid, then the hand is estimated for the image based on the three-dimensional joint points of the historical frame to obtain a hand estimation frame. The hand estimation frame in the image and the hand estimation frames of other images are combined into a multi-target frame as a candidate frame.
[0151] 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, the detection frame of the previous cached frame is obtained, that is, the cached detection frame, and the hand detection frame and the cached detection frame are combined into a multi-target frame as a candidate frame.
[0152] If the hand detection result indicates that there is no hand detection frame in the first-order image and the hand estimation frames of other first-order images are invalid, the hand is estimated in the first-order image using an estimation method to obtain a hand estimation frame, and the detection frame of the previous cached frame, i.e., the cached detection frame, is obtained. The hand estimation frame in the first-order image and the cached detection frame are combined to form a multi-target frame as a candidate frame.
[0153] 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 determined to be redundant hands, and the corresponding frames need to be filtered out and no longer processed.
[0154] 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.
[0155] Then, the final retained hand frame and the corresponding classification information are input into the hand joint point recognition model, and the two-dimensional coordinates of the hand joint points in the two-dimensional image plane are output. The two-dimensional joint points are converted into three-dimensional joint points in the three-dimensional hand coordinate system by hand modeling. Finally, 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. The hand gesture recognition method provided in the embodiment of the present application avoids or even corrects the problems of the gesture model (hand detection model, hand joint point recognition model) based on deep learning without significantly increasing the computing power, so that it can be applied to build a high-precision, smooth-running gesture interaction system. It should be understood that although the steps in the flowcharts involved in the above embodiments are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The order of execution of these steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the steps or stages in other steps. Based on the same inventive concept, the embodiments of the present application also provide a hand gesture recognition device for implementing the hand gesture recognition method involved above. The implementation solution provided by the device is similar to the implementation solution described in the above method. Therefore, the specific limitations of the one or more hand gesture recognition device embodiments provided below can be found in the limitations of the hand gesture recognition method above, and will not be repeated here.
[0156] In one embodiment, as shown in FIG11 , 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:
[0157] An acquisition module 1102 is configured to acquire a current frame of a multi-camera video, where the multi-camera video is a video obtained by synchronously capturing images of hands located in the same area by multiple cameras, and the current frame includes multiple camera images.
[0158] The hand detection module 1104 is configured to perform hand detection on the first image of the current frame to obtain a first detection result; the first detection result is used to locate a hand detection frame in the first image of the current frame;
[0159] A hand estimation module 1106 is configured to perform hand estimation on the second image of the current frame to obtain a second estimation result; the second estimation result is used to locate a hand estimation frame in the second image of the current frame;
[0160] The joint point recognition module 1108 is configured to filter out redundant frames corresponding to redundant hands from the hand detection frames in the first image and the hand estimation frames in the second image of the current frame, and then perform hand joint point recognition on the remaining frames to obtain the two-dimensional joint points corresponding to the current frame;
[0161] 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 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.
[0162] In one embodiment, the hand estimation module 1106 is further configured to, when the first eye detection result indicates that no hand detection frame exists in the first eye image, 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 the hand estimation frame in the first eye image of the current frame;
[0163] The joint point recognition module 1108 is also used to filter out the redundant frames corresponding to the redundant hands from the hand estimation frames in the first image of the current frame and the hand estimation frames in the second image, and then recognize the hand joint points of the remaining frames to obtain the two-dimensional joint points corresponding to the current frame.
[0164] In one embodiment, the hand gesture recognition device 1100 further includes:
[0165] The detection frame cache module is used to cache the hand detection frame and corresponding hand classification information in the first image of the current frame when the first detection result indicates that there is a hand detection frame in the first image.
[0166] In one embodiment, the hand gesture recognition device 1100 further includes:
[0167] a cached detection frame acquisition module, configured to acquire a cached detection frame when the second eye estimation result indicates that the hand estimation frame of the second eye image is invalid, where the cached detection frame is a hand detection frame in the second eye image in which hand detection was performed in a frame previous to the current frame, or a detection frame located from the second eye image in the current frame based on the hand detection frame;
[0168] 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 recognize the hand joint points of the remaining frames to obtain the two-dimensional joint points corresponding to the current frame.
[0169] In one embodiment, the hand estimation module 1106 is also used to obtain the three-dimensional joint points of each of the two frames before 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 two frames before the current frame, 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.
[0170] In one embodiment, the hand gesture recognition device 1100 further includes:
[0171] 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 hand estimation frame of the second eye image is determined to be invalid.
[0172] In one embodiment, the first eye detection result includes hand classification information; the joint point recognition module 1108 includes a redundant frame filtering unit:
[0173] 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. Based on the matching results and hand classification information, a pair of frames matching the same left hand and a pair of frames matching the same right hand are filtered out. If there are multiple different left hands, the pair of left hand frames corresponding to the frame closest to the image center are retained. If there are multiple different right hands, the pair of right hand frames corresponding to the frame closest to the image center are retained.
[0174] In one embodiment, the first eye 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 further includes:
[0175] The 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 the multiple cache detection frames based on the matching results; a vote is performed based on the hand classification information of the hand detection frames 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.
[0176] In one embodiment, the hand gesture recognition device 1100 further includes:
[0177] The hand classification information correction module is used to correct the adjusted hand classification information according to the voting results 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.
[0178] 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;
[0179] 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 based on 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 based on the conversion relationship between the two-dimensional finger coordinate system and the three-dimensional hand coordinate system.
[0180] In one embodiment, the posture recognition module 1110 is also used to 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 two frames before the current frame based on the three-dimensional joint points of each of the two frames before the current frame in the world coordinate system; and interpolate the posture estimation parameters of each of the two frames before the current frame to obtain the posture estimation parameters corresponding to the current frame.
[0181] The above-mentioned hand gesture recognition device 1100, after obtaining the current frame of the multi-eye video, 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 detected at a time, which can reduce processing time. In addition, the hand is estimated on the second eye image of the current frame to obtain a hand estimation frame in the second eye image, which is used as a basis for joint point recognition. In this way, both the first eye image information and the second eye 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 first eye image of the current frame, the hand is estimated. After filtering out the redundant frames corresponding to the redundant hands from the hand detection frame in the first image and the hand estimation frame in the second image, the hand joint points are recognized on the remaining frames 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 related technologies deviate from the actual ones and improves the accuracy of recognizing hand postures.
[0182] Each module in the hand gesture recognition device 1100 may be implemented in whole or in part through software, hardware, or a combination thereof. Each module may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0183] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in Figure 12. The computer device includes a processor, a memory, an input / output (I / O) interface, and a communication interface. The processor, memory, and I / O interface are connected via a system bus, and the communication interface is connected to the system bus via the I / O 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, computer-readable instructions, and a database. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium. The database of the computer device is used to store historical frame-related data. The I / O interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals via a network connection. When the processor executes the computer-readable instructions, a hand gesture recognition method is implemented.
[0184] In one embodiment, a computer device is provided, which may be a terminal. Its internal structure diagram may be as shown in Figure 13. The computer device includes a processor, memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are connected to the system bus via the input / output interface. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals via wired or wireless communication. The wireless communication may be achieved via Wi-Fi, a mobile cellular network, NFC (near field communication), or other technologies. When executed by the processor, the computer-readable instructions implement a method for hand gesture recognition. 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 covering the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.
[0185] Those skilled in the art will understand that the structure shown in Figure 12 or Figure 13 is merely a block diagram of a partial 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 shown in the figure, or combine certain components, or have a different component arrangement.
[0186] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the hand gesture recognition method provided in any embodiment of the present application are implemented.
[0187] In one embodiment, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the steps of the hand gesture recognition method provided in any embodiment of the present application are implemented.
[0188] In one embodiment, a computer program product is provided, comprising computer-readable instructions, which, when executed by a processor, implement the steps of the hand gesture recognition method provided in any embodiment of the present application.
[0189] 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 the relevant laws, regulations and standards of relevant countries and regions.
[0190] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through computer-readable instructions. The computer-readable instructions can be stored in a non-volatile computer-readable storage medium. When the computer-readable instructions are executed, they can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of 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 the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.
[0191] The technical features of the above embodiments can 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.
[0192] The above embodiments merely illustrate several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art may make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A hand gesture recognition method, executed by a computer device, comprising: Acquire a current frame of a multi-eye video, where the multi-eye video is a video obtained by synchronously capturing images of hands located in the same area by a multi-eye camera, and the current frame includes multi-eye images; Performing hand detection on the first eye image of the current frame to obtain a first eye detection result, where 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, wherein 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 on the remaining frames 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; 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, 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, further comprising: When the first eye detection result indicates that there is no hand detection frame in the first eye image, performing hand estimation on the first eye image of the current frame to obtain a first eye estimation result, wherein the first eye estimation result is used to locate the hand estimation frame in the first eye image of the current frame; and 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 on the remaining frames to obtain two-dimensional joint points corresponding to the current frame.
3. The method according to claim 2, further comprising: When the first eye detection result indicates that a hand detection frame exists 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.
4. The method according to any one of claims 1 to 3, further comprising: When the second estimation result indicates that the hand estimation frame of the second image is invalid, obtaining a cache detection frame, where the cache detection frame is a hand detection frame in the second 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 frames in the first image and the cache detection frames, hand joint points are identified on the remaining frames to obtain two-dimensional joint points corresponding to the current frame.
5. The method according to any one of claims 1 to 4, wherein the step of performing hand estimation on the second eye image of the current frame to obtain a second eye estimation result comprises: 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; and According to the estimated two-dimensional joint points of the current frame, a hand estimation frame of the second eye image of the current frame is determined.
6. The method according to claim 5, further comprising: Performing hand joint point recognition on the hand estimation frame of the second eye image of the current frame to obtain a corresponding recognition result, wherein the recognition result is a two-dimensional joint point; Calculating the three-dimensional joint points of the current frame in the world coordinate system according to the recognition result and the posture estimation parameter; and 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 hand estimation frame of the second image is invalid.
7. The method according to any one of claims 1 to 6, wherein the first detection result includes hand classification information; and 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, comprises: 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; and 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 any one of claims 1 to 7, wherein the first eye detection result comprises 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; 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 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; and 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, a vote is performed 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.
9. The method according to claim 8, further comprising: 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 any one of claims 1 to 9, wherein 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 adjacent joint points of the target joint point; Determine the two-dimensional coordinates of the adjacent joint point in the two-dimensional finger coordinate system according to the angle of the finger joint between the adjacent joint point and the target joint point in the two-dimensional finger coordinate system, and the length of the finger joint; and 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, further comprising: 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 each of the first two frames according to the three-dimensional joint points of each of the first two frames in the world coordinate system; and 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, comprising: An acquisition module, used to acquire a current frame of a multi-view video, 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, wherein 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, wherein 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 filter 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, and then recognize hand joint points on the remaining frames to obtain two-dimensional joint points corresponding to the current frame; and 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 three-dimensional joint points of the current frame in the world coordinate system. 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 computer-readable instructions, and the processor implements the steps of the method according to any one of claims 1 to 11 when executing the computer-readable instructions.
14. A computer-readable storage medium having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by a processor, implement the steps of the method according to any one of claims 1 to 11.
15. A computer program product comprising computer readable instructions, which when executed by a processor implement the steps of the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Target tracking method and device, electronic equipment and storage medium
CN112166435A
Hand posture recognition method and training method and device of hand posture recognition model
CN115223248A
Gesture recognition method and device, gesture control method and device and virtual reality apparatus
US20220382386A1
Binocular image matching method, device, and storage medium
US20230035648A1
Key point detection method and system, intelligent terminal, and storage medium
WO2022170896A1
