Gesture recognition method and apparatus, and device, medium and product

By sharing the hand frame logo using image frames of the same object in the video, the problem of low hand frame recognition accuracy in gesture control is solved and the stability and efficient tracking of the hand frame are achieved.

WO2024179384A1PCT designated stage expired Publication Date: 2024-09-06BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Application Number
PCT/CN2024/078365
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-27
Filing Date
2024-02-23
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing gesture control technology results in low hand frame recognition accuracy and poor tracking stability when the hand trajectory changes rapidly in the video.

Method used

By comparing whether the same object exists in different image frames, the hand frame corresponding to the image frame using the same object uses the same hand frame identifier for the hand frame of the same person, thereby achieving continuous and stable recognition and tracking of hand frames.

Benefits of technology

It improves the accuracy and efficiency of hand frame recognition, avoids the phenomenon that the hand frame of the same object is recognized as another object, and achieves continuous tracking of hand frames.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024078365_06092024_PF_FP
    Figure CN2024078365_06092024_PF_FP
Patent Text Reader

Abstract

Provided are a gesture recognition method and apparatus, and a device, a medium and a product. The method comprises: in response to a gesture control request, determining a first facial image of a target object in a first image frame of a target video (201); determining a first hand frame associated with the first facial image and a hand frame identifier of the first hand frame (202); determining, from among the target video, a second facial image corresponding to a second image frame (203); and if there is a second facial image that meets a face similarity condition with the first facial image, determining that the hand frame identifier of the first hand frame is a hand frame identifier of a second hand frame associated with the second facial image (204). Continuous tracking is performed on a hand frame by means of a constraint relationship between a facial image and the hand frame, thereby solving the problem of inaccurate tracking of the hand frame.
Need to check novelty before this filing date? Find Prior Art

Description

Gesture recognition method, device, equipment, medium and product

[0001] This application claims priority to Chinese Patent Application No. 202310208421.2 filed on February 27, 2023, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field

[0002] Embodiments of the present disclosure relate to a gesture recognition method, apparatus, device, medium, and product. Background Art

[0003] With the rapid development of intelligent control technology, various large-scale display screens are becoming increasingly popular. A display screen is a display device in an electronic device. To improve the control efficiency of electronic devices, gesture recognition and gesture control can be used to achieve interactive control. To improve the accuracy of gesture control, after the user activates gesture control, the captured video to be displayed can be output on the electronic device's display screen, and a hand frame corresponding to the hand area can be displayed in the video to effectively indicate the hand area.

[0004] However, in practical applications, the tracking stability during hand frame recognition is poor due to the continuous changes in hand trajectories in the video.

[0005] Summary of the Invention

[0006] The embodiments of the present disclosure provide a gesture recognition method, apparatus, device, medium, and product to overcome the problem of low hand frame recognition accuracy caused by hand frame tracking failure.

[0007] In a first aspect, an embodiment of the present disclosure provides a gesture recognition method, including:

[0008] In response to the gesture control request, determining a first facial image of a target object in a first image frame of a target video;

[0009] determining a first hand frame and a hand frame identifier of the first hand frame associated with the first facial image;

[0010] Determining a second facial image corresponding to a second image frame from the target video;

[0011] If there is a second facial image that meets the facial similarity condition with the first facial image, the hand frame identifier of the first hand frame is determined to be the hand frame identifier of the second hand frame associated with the second facial image.

[0012] In a second aspect, an embodiment of the present disclosure provides a gesture recognition device, comprising:

[0013] a response unit, configured to determine, in response to the gesture control request, a first facial image of a target object in a first image frame of a target video;

[0014] The identification unit is configured to determine a first hand frame associated with the first face image and a hand frame identification of the first hand frame.

[0015] a determining unit, configured to determine a second facial image corresponding to a second image frame from a target video;

[0016] The comparison unit is configured to determine the hand frame identifier of the first hand frame as the hand frame identifier of the second hand frame associated with the second face image if there is a second face image that satisfies a face similarity condition with the first face image.

[0017] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;

[0018] Memory stores computer-executable instructions;

[0019] The processor executes the computer-executable instructions stored in the memory, so that at least one processor executes the gesture recognition method of the first aspect and various possible designs of the first aspect.

[0020] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the gesture recognition method as described in the first aspect and various possible designs of the first aspect are implemented.

[0021] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the gesture recognition method of the first aspect and various possible designs of the first aspect.

[0022] The technical solution provided by this embodiment can obtain a gesture control request by interacting with the user. In response to the gesture control request, the first hand frame and the hand frame identifier of the first hand frame associated with the first facial image in the first image frame of the target video can be obtained. The hand frame can be accurately marked by displaying the hand frame and the hand frame identifier in association with each other, so as to facilitate the tracking of the hand frame. Therefore, during video playback, when the second image frame to be displayed is obtained, if there is a second facial image that meets the facial similarity condition with the first facial image, the hand frame identifier of the first hand frame can be determined to be the hand frame identifier of the second hand frame associated with the second facial image. That is, by tracking the same face in different image frames, the tracking of the hand frame is achieved. The hand frame identifier can be mapped from the first hand frame to the second hand frame, so as to achieve continuous tracking of the hand frame of the same object in different image frames, avoid the phenomenon of identifying the hand frame of the same object as another object, and improve the efficiency and accuracy of hand frame tracking. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, a brief introduction will be given below to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0024] FIG1 is a schematic diagram of an application of a gesture recognition method provided by an embodiment of the present disclosure;

[0025] FIG2 is a flowchart of an embodiment of a gesture recognition method provided by an embodiment of the present disclosure;

[0026] FIG3 is an example diagram of face recognition provided by an embodiment of the present disclosure;

[0027] FIG4 is a flowchart of another embodiment of a gesture recognition method provided by an embodiment of the present disclosure;

[0028] FIG5 is a schematic structural diagram of a gesture recognition device provided by an embodiment of the present disclosure; and

[0029] FIG6 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0030] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.

[0031] The technical solution disclosed herein can be applied to object tracking scenarios on display screens. By displaying the same identifier for the hand frame of the same object in different image frames, continuous and stable tracking of the hand frame can be achieved, thereby improving the accuracy and precision of hand frame recognition.

[0032] In related technologies, various large display screens are increasingly being used in applications such as transportation and home appliances. Due to cost constraints, large display screens generally lack touch functionality. To accurately control electronic devices, display screens can be controlled using gestures. Currently, gesture control typically involves capturing video and directly identifying hand movements within the video frames, using these movements to determine the corresponding control instructions. However, when a user performs hand movements, the speed of change is rapid, making it impossible to continuously track the hand frame, resulting in low hand frame recognition accuracy.

[0033] In order to solve the above technical problems, this solution compares whether the same object exists in different image frames. The hand frames corresponding to the image frames with the same object are the hand frames of the same person. The hand frames of the same person can be identified with the same hand frame, thereby achieving continuous and stable recognition of hand frames and improving the efficiency and accuracy of hand frame recognition.

[0034] In an embodiment of the present disclosure, a gesture control request can be obtained by interacting with the user. In response to the gesture control request, the first hand frame and the hand frame identifier of the first hand frame associated with the first face image in the first image frame in the target video can be obtained. The hand frame can be accurately marked by displaying the hand frame and the hand frame identifier in association with each other, so as to facilitate tracking of the hand frame. Therefore, after obtaining the second image frame, if it is determined that the second face image and the first face image in the second image frame meet the face similarity condition, the hand frame identifier of the first hand frame can be determined to be the hand frame identifier of the second hand frame associated with the second face image. That is, by tracking the same face in different image frames, the tracking of the hand frame is achieved, which can avoid identifying the hand frame of the same object as the hand frame of another object, and achieve continuous tracking of the hand frame of the same object in different image frames, thereby improving the efficiency and accuracy of hand frame tracking.

[0035] The following will describe in detail the technical solutions of the present disclosure and how they solve the above-mentioned technical problems using specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The following will describe in detail the embodiments of the present disclosure in conjunction with the accompanying drawings.

[0036] FIG1 is a schematic diagram of an application of a gesture recognition method according to the present disclosure. The application network architecture according to an embodiment of the present disclosure may include an electronic device 1, which may include an output device 2. The electronic device may be a server of the type of a personal computer, a mobile phone, a VR (virtual reality) device, an AR (augmented reality) device, etc. The present disclosure does not impose too many restrictions on the specific type of electronic device. The output device 2 can play videos or display image frames. A camera 21 may be configured at the top of the output device 2 for capturing video of the user 3. The electronic device 1 may determine a gesture control request through interaction with the user 3, and in response to the gesture control request, obtain a first face image 4 in the first image frame of the target video, and a hand frame 41 corresponding to the hand of the first face image. At the same time, the hand frame 41 may be associated with a display hand frame identifier 42. A second image frame is determined from the target video. A second facial image 5 can be identified in the second image frame. If the second facial image 5 and the first facial image 4 meet the facial similarity condition, the hand frame identifier 42 of the first hand frame 41 is determined to be the hand frame identifier of the second hand frame 51 associated with the second facial image 5. The second hand frame 51 and its hand frame identifier are then displayed synchronously. By correlating target object tracking and hand frame tracking across different image frames, stable hand frame identification and tracking can be achieved.

[0037] FIG2 is a flowchart of an embodiment of a gesture recognition method provided by an embodiment of the present disclosure. The method may include the following steps:

[0038] 201: In response to a gesture control request, determine a first facial image of a target object in a first image frame of a target video.

[0039] Optionally, the electronic device may include a gesture control switch, and detecting that the user triggers the gesture control switch may determine that a gesture control request initiated by the user has been received. The gesture control switch may include: a gesture switch button set on a remote control, or a gesture switch control displayed on a display screen, etc.

[0040] After responding to the gesture control request, the electronic device may receive the target video captured by the camera and output the target video on the display screen. The electronic device may capture the target video using a camera located near the display screen. For example, if the display screen is a television, the camera may be located at the top of the television display screen. The target video may be a video frame captured by the camera. Specifically, the camera may continuously capture video, with video segments captured within a preset time period used as candidate video frames for video tracking. In actual applications, the video frames, i.e., the target video, may be continuously updated.

[0041] The image frames in the target video can be detected frame by frame, and when a face is detected, the image frame in which the face is detected can be determined as the first image frame. In practical applications, a sampling method can also be used to determine the image frame from the target video, and the first determined image frame can be obtained as the first image frame. Of course, it is also possible to start from the first image frame in which a face is detected in the target video and use the image frames after a preset number of frames as the first image frame. That is, starting from the first image frame in which a face is detected, after N image frames, the (N+1)th image frame is used as the first image frame, and the first image frame is the first image frame of the N image frames.

[0042] The target object can be the user performing the gesture recognition in the first image frame. There are two ways to determine the first face image of the target object in the first image frame:

[0043] Implementation method one: First, a first facial image is determined, and then object recognition is performed on the first facial image to obtain a target object. Specifically, multiple facial images can be identified from the first image frame, and the distance of each facial image relative to the camera can be determined. The facial image closest to the camera is used as the first facial image. Facial recognition is performed on the first facial image to obtain the identity information of the target object. The target object can be obtained through facial recognition, that is, the target object can be the user corresponding to the first facial image. Facial recognition can refer to computer technology that uses facial visual features to analyze and compare to achieve identity verification.

[0044] For ease of understanding, as shown in the face recognition example diagram in Figure 3, assume that three facial images 301-303 are identified in the first image frame. Distance analysis determines that facial image 302 is the closest to the camera, and therefore facial image 302 can be used as the first facial image. There are various methods for comparing the distance between the object and the camera. For example, the center distance between the center point of the facial image and the center point of the first image frame can be calculated, and the area ratio of the facial image to the first image frame can be calculated simultaneously. Based on these two parameters, the center distance and area ratio can be used to determine whether the facial image is the first facial image closest to the camera. Of course, in addition to using the facial image closest to the camera as the first facial image, other methods can also be used, and are not specifically limited.

[0045] Implementation Method 2: First, a target object and a facial image of the target object are determined. The facial image of the target object is then used to extract a matching first facial image from the first image frame. Specifically, user-triggered login information can be detected, and the user's facial image can be retrieved from a facial database based on the login information. At least one facial image can be detected from the first image frame, and a facial comparison can be performed between the at least one detected facial image and the facial image of the target object to obtain a first facial image that matches the facial image of the target object. The facial matching method can be referred to the relevant description of the following embodiment and will not be repeated here.

[0046] 202: Determine a first hand frame associated with the first facial image and a hand frame identifier of the first hand frame.

[0047] Optionally, the first facial image may be a facial region image obtained by performing facial recognition on the first image frame. An image identifier may be established for the first facial image, with different images having different image identifiers, and the image identifiers may be used to label different facial images. The first facial image may be used to determine facial features, and the first facial image may be used to perform identity recognition based on the facial features to obtain the user's identity information. Of course, in actual applications, the user's identity information is public, and the present disclosure does not overly concern the user's privacy information.

[0048] The first hand frame can be a graphic frame enclosing the hand in the first image frame, and the first hand frame associated with the first facial image is the hand frame of the target object, that is, the associated first hand frame and the first facial image both belong to the target object. In practical applications, the hand frame can include a rectangular frame, that is, the rectangular frame is used to identify the area where the hand is located. The rectangular frame can be represented by its upper left corner coordinates and lower right corner coordinates. For example, (V1, V2, V3, V4) can represent a hand frame, where (V1, V2) are the upper left corner coordinates of the hand frame, and (V3, V4) are the lower right corner coordinates of the hand frame.

[0049] 203: Determine a second facial image corresponding to a second image frame from the target video.

[0050] Optionally, a second image frame is obtained by sampling from the target video. The sampling frequency may be predetermined. The second image frame may be an image frame captured after the first image frame. The second facial image in the second image frame may be determined by identifying a facial region in the second image frame. Specifically, facial region extraction may be performed on the second image frame to obtain the second facial image in the second image frame. The second facial image may include at least one.

[0051] 204: If there is a second facial image that satisfies the facial similarity condition with the first facial image, determine the hand frame identifier of the first hand frame as the hand frame identifier of the second hand frame associated with the second facial image.

[0052] The second facial image includes at least one. Step 204 may include: performing facial comparison on the at least one second facial image and the first facial image, respectively, to obtain comparison results for each second facial image. If the comparison result for any second facial image is successful, it is determined that the second facial image and the first facial image meet a facial similarity condition. Subsequently, the hand frame identifier of the first hand frame may be determined as the hand frame identifier of the second hand frame associated with the second facial image that meets the facial similarity condition with the first facial image.

[0053] Optionally, the second facial image and the first facial image satisfying the facial similarity condition may mean that the second facial image and the first facial image are the same object. The step of determining whether any second facial image and the first facial image satisfy the facial similarity condition may include:

[0054] In a first optional implementation, an object in the second facial image can be identified. If the object in the second facial image is the target object, it is determined that the second facial image and the first facial image meet a facial similarity condition. In a second optional implementation, a first facial feature of the first facial image and a second facial feature of the second facial image can be determined separately, and feature similarity calculations can be performed on the first facial feature and the second facial feature to obtain feature similarity. If the feature similarity is greater than or equal to a preset similarity threshold, it is determined that the first facial image and the second facial image meet the facial similarity condition; otherwise, it is determined that the first facial image and the second facial image do not meet the facial similarity condition.

[0055] In an embodiment of the present disclosure, a gesture control request can be obtained by interacting with the user. In response to the gesture control request, the first hand frame associated with the first facial image in the first image frame in the target video and the hand frame identifier of the first hand frame can be obtained. The hand frame can be accurately marked by the hand frame identifier to facilitate tracking of the hand frame. A second image frame can be determined from the target video. If there is a second facial image that meets the facial similarity condition with the first facial image, the hand frame identifier of the first hand frame can be determined to be the hand frame identifier of the second hand frame associated with the second facial image. That is, by tracking the same face in different image frames, hand frame tracking is achieved. The hand frame identifier of the same object can be mapped from the first hand frame to the second hand frame, so that the hand frame of the same object can be continuously tracked in different image frames, thereby improving the efficiency and accuracy of hand frame tracking.

[0056] Before using the technical solutions disclosed in the embodiments of this disclosure, users should be informed of the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and their authorization should be obtained.

[0057] For example, in response to a user-initiated active request, a permission prompt message may be sent to the user to clearly inform the user that the user's personal information, such as face and account information, needs to be used, and that the operation requested is to obtain the user's personal information that needs to be used or involved. Furthermore, based on the prompt message, the user can independently choose whether to provide personal information to the software or hardware that implements the technical solution of the present disclosure. The software or hardware that implements the technical solution of the present disclosure may include, for example, electronic devices, applications, servers, storage media, or products.

[0058] As an optional, but non-limiting, implementation, in response to a gesture control request initiated by the user, a permission prompt can be sent to the user in the form of a pop-up window. The pop-up window can also include a text-based prompt. Furthermore, the pop-up window can also contain a "Agree" or "Disagree" control for the user to select, prompting the user whether to provide personal information. When the user triggers either control, the corresponding selection result can be obtained.

[0059] It is understandable that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0060] For ease of understanding, face recognition and hand frame recognition can be combined to achieve accurate hand frame recognition. Therefore, as shown in FIG4 , a flowchart of another embodiment of a gesture recognition method provided by an embodiment of the present disclosure is provided. This method differs from the aforementioned embodiment in that, in step 201, determining the first hand frame and the hand frame identifier of the first hand frame associated with the first face image in the first image frame of the target video may include:

[0061] 401: Determine a first face image and a first hand frame associated with the first face image from a first image frame of a target video based on a limb constraint relationship.

[0062] Optionally, during the execution of step 401, a face recognition algorithm may be used to determine the first face image of the target object from the first image frame. The face recognition algorithm may include a face key point detection algorithm to determine the first face image of the target object based on the face key points.

[0063] At the same time, a hand frame recognition algorithm is used to determine a first hand frame from the first image frame. However, the facial image and hand frame determined independently by the facial recognition algorithm and the hand frame recognition algorithm may not belong to the same person. Therefore, after the first facial image and the first hand frame are determined using the facial recognition algorithm and the hand frame recognition algorithm, a verification can be performed to determine whether the first facial image and the first hand frame belong to the same person based on the limb constraint relationship between the face and the hand. If the first facial image and the first hand frame are determined to belong to the same limb, then the first facial image and the first hand frame are determined to be associated. Verifying whether the first facial image and the first hand frame belong to the same person can include determining whether the first facial image and the first hand frame are connected to the same limb; if so, determining that they belong to the same limb.

[0064] Optionally, step 401 of determining the first hand frame may specifically include: identifying multiple hand frames from the first image frame, and determining the first hand frame associated with the first facial image from the multiple identified hand frames based on the limb constraint relationship. That is, the first hand frame belonging to the target object may be determined from the multiple hand frames based on the limb constraint relationship to establish an association relationship between the first facial image of the target object and the first hand frame.

[0065] Optionally, the first hand frame associated with the first facial image may refer to a first hand frame belonging to the same limb as the first facial image.

[0066] 402: Generate a hand frame identifier for the first hand frame.

[0067] Optionally, a hand frame identifier generation strategy may be employed to generate a hand frame identifier for the first hand frame. The hand frame identifier generation strategy may be a hand frame identifier naming strategy, for example, a randomly generated string may be employed as the hand frame identifier generation strategy. Of course, a specific naming rule may also be employed, for example, using the number of hand frame recognitions as the hand frame identifier or using the user name as the hand frame identifier.

[0068] In step 203, determining the second facial image corresponding to the second image frame from the target video may include:

[0069] 403: Determine, from the second image frame, a second facial image and a second hand frame associated with the second facial image based on the limb constraint relationship.

[0070] Similarly, step 403 may include: using a facial recognition algorithm to determine a second facial image from the second image frame. The facial recognition algorithm may include a facial key point detection algorithm, which determines facial key points in the second image frame and then determines the second facial image based on the facial key points. The second facial image in the second image frame may include at least one second facial image. Each second facial image may have a second hand frame associated therewith. The hand frame identifier of the second hand frame of the second facial image that meets a facial similarity condition with the first facial image may be set as the hand frame identifier of the first hand frame.

[0071] At the same time, a hand frame recognition algorithm is used to determine a second hand frame from the second image frame. However, the facial image and hand frame determined independently by the facial recognition algorithm and the hand frame recognition algorithm may not belong to the same person. Therefore, after determining at least one second facial image and second hand frame using the facial recognition algorithm and the hand frame recognition algorithm, the body constraint relationship between the face and hand can be used to determine the second hand frame associated with each second facial image. Specifically, the body constraint relationship can be used to determine the second hand frame that has a body connection relationship with each second facial image.

[0072] In the disclosed embodiments, a first image frame can be determined from a target video. The first image frame can be used to obtain a first facial image and a first hand frame associated with the first facial image through facial recognition and hand frame recognition, thereby generating a hand frame identifier for the first hand frame. A second facial image and a second hand frame associated with the second facial image can be identified in a second image frame. By recognizing facial images and hand frames, hand frame tracking can be achieved for the same object, improving the stability of hand frame recognition.

[0073] Furthermore, based on any of the above embodiments, before determining that the second facial image and the first facial image meet the facial similarity condition, the method may further include: performing a facial similarity comparison on the first facial image and the second facial image to obtain a facial comparison result. The facial comparison result can be used to characterize the possibility that the first facial image and the second facial image belong to the same object. In some examples, a similarity threshold can be preset. If the facial comparison result exceeds the similarity threshold, the two facial images involved in the comparison are considered to belong to the same object. Otherwise, the two facial images involved in the comparison are considered to belong to different objects. In some embodiments of the present disclosure, there may be only one second facial image in the second image frame. In this case, if the facial comparison result between the first facial image and the second facial image reaches the preset similarity threshold, it can be determined that the second facial image and the first facial image meet the facial similarity condition. It should be noted that the second facial image in the second image frame may also include multiple second facial images. In this case, each second facial image can be compared with the first facial image for facial similarity to obtain a comparison result for each second facial image. If one of the comparison results for the second facial images exceeds the similarity threshold, it can be determined that the second facial image corresponding to that comparison result and the first facial image meet the facial similarity condition. If two or more comparison results exceed the similarity threshold, it can be determined that the second facial image corresponding to the comparison result with the highest similarity meets the facial similarity condition with the first facial image.

[0074] In this embodiment, the first face image and the second face image are compared by a face similarity comparison method to obtain a face comparison result. The face comparison result can be used to accurately determine whether the first face image and the second face image belong to the same object.

[0075] In order to continuously track the hand frame of the same user, based on any of the above embodiments, the following further comprises:

[0076] storing the first face image and the hand frame identifier corresponding to the first hand frame associated with the first face image in a face database in the form of a set of associated information;

[0077] Determining a hand frame identifier of a first hand frame associated with the first facial image as a hand frame identifier of a second hand frame associated with the second facial image includes:

[0078] Querying a hand frame identifier associated with the first face image from a face database;

[0079] The hand frame identifier associated with the first facial image is used as the hand frame identifier of the second hand frame associated with the second facial image in the second image frame.

[0080] Optionally, the face database can store the face image and the hand frame identifier as a value pair. That is, the face image already existing in the face database can be associated with a hand frame identifier, and the hand frame of the user referred to by the face image can be distinguished by the hand frame identifier, thereby defining the hand frame identifiers of different users. The face database can establish an association relationship between a set of face images and hand frame identifiers based on the gesture control request. For example, the face database can be constructed in response to the gesture control request. Specifically, the first face image and the corresponding related information can be stored in the face database. The related information can include feature information of the first face image (such as facial key point information of the first face image, etc.), and the related information can also include the hand frame identifier of the first hand frame associated with the first face image.

[0081] Furthermore, optionally, in the face comparison involved in the above embodiments, a similarity comparison can be performed between the first facial image and the second facial image in the second image frame based on the feature information of the first facial image stored in the facial database. Directly using the feature information of the first facial image for face comparison can improve face comparison efficiency. After performing face comparison based on the feature information of the first facial image and determining that the first facial image and the second facial image meet the face similarity condition, the hand frame identifier in the relevant information of the first facial image can be assigned to the second hand frame associated with the second facial image.

[0082] In order to ensure the timeliness of the database and to improve the accuracy of face recognition, the face database can be dynamically updated. For example, if it is determined that the second face image and the first face image meet the face similarity condition, it can be determined that the first face image and the second face image both represent the target object, and the second face image can be used to update the face database. The update method can specifically be to replace the first face image with the second face image, and / or to replace the facial feature information of the first face image with the facial feature information of the second face image. Of course, in addition to the replacement method, the update method can also specifically include using the second face image as supplementary information of the target object, using the second face image and / or the facial feature information of the second face image as a supplement to the facial data of the target object, and when performing face comparison of subsequent frames, the face image recognized in the subsequent frame can be compared with all facial feature information stored under the name of the same object (such as the target object) in the database.

[0083] During the application of this solution, the user's facial image may change in the target video. For example, the angle of the face in the video may change, or the user may temporarily wear accessories that affect facial features during gesture control. By dynamically updating the face database, the stability of hand frame recognition can be ensured, avoiding the assignment of different identifiers to the hand frames corresponding to the same user, thereby improving the stability and accuracy of hand frame identification.

[0084] As an embodiment, determining a first facial image and a first hand frame associated with the first facial image from a first image frame of a target video may include:

[0085] Identifying a first limb key point in the first image frame using a limb recognition module;

[0086] The first hand keypoint and the first face keypoint belonging to the same limb are determined from the first limb keypoints.

[0087] Based on the first facial key points, a first facial image corresponding to the first image frame is determined.

[0088] A first hand frame associated with the first facial image in the first image frame is determined based on the hand frame recognition module and the first hand key point.

[0089] Optionally, a limb recognition module can be used to determine limb key points from the image frame. Specifically, a limb region image can be first identified from the first image frame, and then the first limb key point can be determined from the limb region image. The limb region image identification step can include: detecting an object region containing a target object in the first image frame using an object detection algorithm in the limb recognition module, and cropping the first image frame using the target object's object region to obtain the limb region image.

[0090] Specifically, the first limb key point may include key points of multiple limbs. Therefore, a limb constraint relationship can be used to determine the first hand key point and the first face key point belonging to the same limb from the first limb key points. The limb constraint relationship can refer to the connection relationship between limbs such as the face, hand, upper limb, and / or lower limb belonging to the same limb. The limb constraint relationship can be used to determine the key points of each limb part, such as the face, hand, upper limb, and lower limb, belonging to the same limb.

[0091] Optionally, the first facial key point can be used to locate the first facial image to obtain the first facial image in the first image frame. The first hand key point can also be used to locate the hand in the first image frame to obtain a first hand frame associated with the first facial image in the first image frame. The step of determining the first hand frame associated with the first facial image can specifically include: identifying the hand frame in the first image frame based on a hand frame recognition module, where the first hand key point and the first facial key point both belong to key points of the same limb; and determining the first hand frame corresponding to the first hand key point from the identified hand frame in the first image frame based on the correlation between the first hand key point and the first facial key point, thereby establishing an association between the first hand frame and the first facial image. Constraining the determination of the first hand frame by the first hand key point can improve the accuracy of obtaining the first hand frame.

[0092] Optionally, the hand frame recognition module can be an object detection algorithm that uses hands as detection targets, and can be obtained through training. Specifically, the hand frame determination algorithm can be trained using an image frame as input and the rectangular frame containing the hand in the image frame as the ground truth, thereby achieving automated hand frame determination.

[0093] Further, optionally, the step of determining the first hand frame corresponding to the first hand key point from the hand frame of the identified first image frame may include: calculating the overlap rate of the hand frames in the identified first image frame using the first hand key point to obtain the overlap rate of each hand frame, and selecting the first hand frame based on the overlap rate of each hand frame. Specifically, the overlap rate of each hand frame may be compared with a preset overlap rate threshold to obtain a comparison result for each hand frame. If it is determined that there is a hand frame that reaches the overlap rate threshold, then the hand frame that reaches the overlap rate threshold may be determined to be the first hand frame associated with the first facial image. If it is determined that there are multiple hand frames that reach the overlap rate threshold, then the hand frame that reaches the overlap rate threshold and has the largest overlap rate may be determined to be the first hand frame associated with the first facial image.

[0094] In the disclosed embodiment, a limb recognition module can determine a first limb keypoint in a first image frame. Using limb constraints, a first hand keypoint and a first facial keypoint belonging to the same limb can be determined from the first limb keypoints. The first facial image can then be determined using the first facial keypoints, thereby accurately positioning the first facial image. A first hand frame associated with the first facial image can be determined using the first hand keypoints. This allows the determination of the first hand frame to be constrained by the first hand keypoints. The limb recognition results are incorporated into the hand frame recognition process, increasing hand frame recognition accuracy and accurately assigning a corresponding hand frame identifier.

[0095] Further, based on any of the above embodiments, determining the first facial image corresponding to the first image frame based on the first facial key points may include:

[0096] A first face region of the first face image in the first image frame is determined according to the first face key point.

[0097] A partial image of a first facial region in a first image frame is determined to obtain a first facial image.

[0098] Optionally, determining a partial image of the first facial region in the first image frame to obtain the first facial image may include cropping the first facial region in the first image frame to obtain a partial image, and using the partial image as the first facial image.

[0099] In the embodiment of the present disclosure, facial key points are used to delineate the facial area of ​​the first facial image to obtain an accurate first facial area, and then the local image of the first facial image in the first image frame is determined through the first facial area to obtain the first facial image, thereby achieving accurate determination of the first facial image.

[0100] As yet another embodiment, determining a second facial image and a second hand frame associated with the second facial image from a second image frame includes:

[0101] Determining, by the limb recognition module, a second limb key point in the second image frame;

[0102] Determine a second hand key point and a second face key point belonging to the target object from the second limb key point;

[0103] Determining a second facial image corresponding to the second image frame based on the second facial key points;

[0104] A second hand frame associated with the second facial image in the second image frame is determined based on the hand frame recognition module and the second hand key point.

[0105] Optionally, the second limb key points may include limb key points of all objects in the second image frame. Specifically, the limb key points of all objects in the second image frame may be identified by a limb recognition module. Furthermore, limb region detection may be performed on the second image frame to obtain limb region images corresponding to at least one object. Key point detection may then be performed on the limb region images of each object to obtain limb key points corresponding to at least one object, thereby determining the second limb key points formed by the limb key points of the at least one object.

[0106] Further, optionally, determining second hand key points and second facial key points that match the first facial image from the second limb key points may include: determining facial key points of each object based on the limb key points of all objects in the second limb key points; fitting a facial region image based on the facial key points of each object to obtain a facial region image of each object; and performing facial comparison between the facial region image of each object and the first facial image to obtain a facial comparison result for each object. Based on the facial comparison result, it is determined that the object corresponding to the facial region image that meets the facial similarity condition is the same object as the target object, and the limb key points of the object can be determined as the limb key points of the target object in the second image frame, and the limb key points of the target object in the second image frame can be divided into second hand key points and second facial key points.

[0107] Optionally, limb constraints can be used to divide the target object's limb key points into hand key points and face key points. Limb constraints can refer to the connection between the face, hand, upper limb, and / or lower limb, etc. belonging to the same limb. Limb constraints can be used to determine the key points of each limb part, such as the face, hand, upper limb, and lower limb, belonging to the same limb.

[0108] In the disclosed embodiment, a limb recognition module is used to determine the second limb key points in the second image frame, and the hand key points and facial key points belonging to each object are determined from the second limb key points. Face positioning is then performed using the facial key points of each object to determine a second facial image that meets facial similarity conditions with the first facial image, thereby locating the target object in the second image frame using the facial key points. A second hand frame associated with the second facial image in the second image frame can also be determined based on the hand frame recognition module and the second hand key points of the target object. The hand frame in the second image frame can be accurately identified using the hand frame recognition module. At the same time, the identified hand frame can be constrained using the second hand key points to obtain a second hand frame associated with the second facial image, thereby achieving precise tracking of the hand frame.

[0109] Furthermore, based on the above embodiment, the first hand frame can be used to more accurately determine the second hand frame associated with the second facial image. Determining the second hand frame associated with the second facial image in the second image frame based on the hand frame recognition module and the second hand key point may include:

[0110] Calculating the overlap rate of the first hand frame using the first hand key point to obtain a first overlap rate of the first hand frame;

[0111] Performing hand region fitting on the second image frame according to the second hand key point to obtain a fitted hand frame corresponding to the second hand key point;

[0112] Using the first overlap ratio, the fitted hand frame of the second hand key point is adjusted to obtain a predicted hand frame.

[0113] Based on the hand frame recognition module, a hand frame in the second image frame is determined, and a hand frame having the smallest difference from the predicted hand frame is selected from the hand frames in the second image frame as the second hand frame.

[0114] Optionally, when fitting a hand region to the second image frame based on the second hand keypoints to obtain a fitted hand frame, the hand region of the second image frame can be predicted using a preset hand frame prediction strategy and the second hand keypoints to obtain a predicted hand frame. The hand frame prediction strategy may refer to an algorithm that generates a hand frame based on the hand keypoints and the hand's aspect ratio. The hand frame prediction strategy can be used to predict a hand frame based on the hand keypoints, thereby obtaining a predicted hand frame.

[0115] Optionally, the overlap ratio, also known as the intersection-over-union (IoU), may refer to the ratio of the intersection and union of the candidate frame and the original labeled frame. In the present disclosure, the overlap ratio between the hand frame fitted by the hand key points and the hand frame identified by the hand frame recognition module may be calculated, and the overlap ratio may be used to calculate the difference between the hand frames obtained by the hand key point fitting and the hand frame recognition module. Therefore, when the overlap ratio is known, the hand frame fitted by the hand key points may be optimized and adjusted from the opposite perspective using the overlap ratio, so that the difference between the predicted hand frame and the actual hand frame is smaller, thereby obtaining a more accurate predicted hand frame. The predicted hand frame is then used to screen the hand frame identified by the hand frame recognition module, that is, the difference between the predicted hand frame and each hand frame of the second image frame is calculated, and the hand frame with the smallest difference is obtained as the second hand frame.

[0116] Furthermore, optionally, the step of obtaining the predicted hand frame may specifically include: if the first overlap ratio is greater than a first threshold, indicating that the difference between the fitted hand frame of the first hand key point and the first hand frame associated with the first facial image is small, and the overlap ratio is high; when the first overlap ratio is used as the overlap ratio between the fitted hand frame and the hand frame in the second image frame, to further improve the overlap ratio between the fitted hand frame and the recognized hand frame, the size or position of the fitted hand frame may be adjusted to obtain the predicted hand frame, for example, by reducing the length or width of the fitted hand frame or adjusting the position of the fitted hand frame. If the first overlap ratio is less than or equal to the first threshold, indicating that the difference between the fitted hand frame of the first hand key point and the first hand frame associated with the first facial image is large, and the overlap ratio is low, in this case, to improve the overlap ratio between the two hand frames, the size or position of the fitted hand frame may be adjusted, for example, by increasing the length or width of the fitted hand frame or adjusting the position of the fitted hand frame.

[0117] Furthermore, optionally, the distance between the hand frame in the second image frame and the predicted hand frame can be specifically the distance between the center point of the hand frame in the second image frame and the center point of the predicted hand frame. Furthermore, the intersection-over-union ratio of the hand frame in the second image frame and the predicted hand frame can also be calculated. Of course, the hand frame distance can also be calculated using other data, such as the hand frame ratio of the hand frame in the second image frame and the predicted hand frame, the distance between the upper left corner coordinate points of the hand frame in the second image frame and the predicted hand frame, etc. This embodiment does not impose any additional restrictions on the method for calculating the hand frame distance.

[0118] In the disclosed embodiment, the overlap rate of the first hand frame can be calculated using the first hand key point to obtain a first overlap rate of the first hand frame. The first overlap rate can measure the accuracy of the first hand frame. The hand frame is predicted using the second hand key point to obtain a first predicted hand frame related to the second hand key point. The first predicted hand frame can be related to the hand key point in the second image frame to achieve framing of the hand. The first predicted hand frame is adjusted using the first overlap rate to obtain a second predicted hand frame. The second predicted hand frame can be obtained by optimizing the hand frame using the first overlap rate, so that the second predicted hand frame has a higher similarity to the first hand frame. The second predicted hand frame participates in the screening of at least one candidate hand frame, so that the difference between the obtained second hand frame and the second predicted hand frame is minimized and the accuracy is higher, thereby realizing the screening process of constraining the second hand frame using the first hand frame and improving the acquisition accuracy of the second hand frame.

[0119] Furthermore, based on the above embodiment, the overlap rate of the first hand frame is calculated using the first hand key point to obtain a first overlap rate of the first hand frame, including:

[0120] Performing hand region fitting on the first image frame according to the first hand key point to obtain a fitted hand frame of the first hand key point;

[0121] An overlap ratio is calculated between the first hand frame and the fitted hand frame of the first hand key point to obtain a first overlap ratio.

[0122] Regarding the hand frame prediction strategy and the overlap rate calculation process, reference may be made to the relevant description of the above embodiment, which will not be repeated here.

[0123] In the disclosed embodiment, the hand region can be fitted on the first image frame according to the first hand key point and the hand frame prediction strategy to obtain a fitted hand frame corresponding to the first hand key point. The fitting is obtained by fitting the first hand key point. The overlap rate of the first hand frame and the fitted hand frame corresponding to the first hand key point is calculated. The obtained first overlap rate can be used to perform a difference analysis on the hand frame recognition result and the fitting result, so that the hand frame represented by the first hand key point can accurately evaluate the identified first hand frame and obtain an accurate first overlap rate.

[0124] Furthermore, based on any of the above embodiments, after determining the second image frame from the target video, the method may further include:

[0125] If there is no second facial image that satisfies the facial similarity condition with the first facial image, generating a new identifier for the second hand frame in the second image frame;

[0126] Alternatively, if there is no second facial image that meets the facial similarity condition with the first facial image, continue to obtain the third image frame and determine the third facial image corresponding to the third image frame; if there is a third facial image that meets the facial similarity condition with the first facial image, determine the hand frame identifier of the first hand frame as the hand frame identifier of the third hand frame associated with the third facial image until gesture recognition is completed.

[0127] Optionally, for a first facial image of the identified target object, if there is no second facial image that meets the facial similarity condition with the first facial image, a third image frame may be acquired to determine the third facial image corresponding to the third image frame. If there is a third facial image that meets the facial similarity condition with the first facial image, the hand frame identifier of the first hand frame is determined to be the hand frame identifier of the third hand frame associated with the third facial image. Optionally, the third image frame is sampled from the target video. The sampling frequency can be predetermined, and the third image frame can be an image frame acquired after the second image frame. The steps for associating the third image frame with the third hand frame can refer to the steps for associating the second image frame with the second hand frame in the above embodiment and will not be repeated here. The specific execution process is the same as for the second image frame. If there is no second facial image that meets the facial similarity condition with the first facial image, new third image frames may be acquired continuously until gesture recognition is terminated in the target video. This ensures uninterrupted tracking of the target object's hand frame, achieving continuous tracking of the target object's hand frame.

[0128] Optionally, if a second facial image that meets the facial similarity criteria with the first facial image does not exist, a new identifier can be generated for the second hand frame in the second image frame. Subsequently, relevant information about the second facial image, such as facial features of the second facial image, and the new identifier of the second hand frame can be associated and stored in a facial database. By continuously generating new identifiers for hand frames in newly acquired image frames, hand frames of different objects can be identified and tracked, enriching object information in the database, expanding database query content, and achieving a wider range of object tracking.

[0129] Of course, after there is a second facial image that meets the facial similarity condition with the first facial image, and the hand frame identifier of the first hand frame is determined to be the hand frame identifier of the second hand frame associated with the second facial image, you can continue to obtain the third image frame and determine the third facial image corresponding to the third image frame; if there is a third facial image that meets the facial similarity condition with the first facial image, then the hand frame identifier of the first hand frame is determined to be the hand frame identifier of the third hand frame associated with the third facial image until gesture recognition is completed.

[0130] In the disclosed embodiment, if there is no second facial image that meets the facial similarity condition with the first facial image, it means that the second image frame and the first image frame contain different objects, and there is no object association between the first image frame and the second image frame. Therefore, the relevant solutions can be continued from two perspectives. One is to generate a new identifier for the second hand frame in the second image frame to improve the accuracy of the hand frame identifier. Through object comparison, the hand frames can be accurately distinguished to achieve the purpose of accurately tracking the hand frames of different objects. The other is to obtain a new third image frame and continue to perform face matching and hand frame assignment through the new third image frame to achieve continuous tracking of the target object's hand frame.

[0131] Further, based on any of the above embodiments, after determining the first hand frame and the hand frame identifier of the first hand frame associated with the first face image in the first image frame in the target video, the method further includes:

[0132] When outputting the first image frame in the target video, the first hand frame and the hand frame identifier corresponding to the first hand frame are synchronously displayed.

[0133] After determining the hand frame identifier of the first hand frame as the hand frame identifier of the second hand frame associated with the second facial image, the method further includes:

[0134] The second image frame in the target video is output, and the second hand frame and the hand frame identifier of the second hand frame are synchronously displayed.

[0135] Optionally, the target video may be continuously output, that is, the image frames are continuously switched and output. During the image frame output process, the hand frame and the hand frame identifier may be synchronously displayed in the image frame.

[0136] In the disclosed embodiment, after identifying the first hand frame and establishing a hand frame identifier for the first hand frame, the first hand frame and the hand frame identifier of the first hand frame can be displayed. By displaying the first hand frame and the hand frame identifier, the position and identifier of the hand frame can be accurately prompted. In combination with the second hand frame and the hand frame identifier of the second hand frame, after the video frame switches, the first hand frame and the second hand frame are displayed successively, and the first hand frame and the second hand frame are prompted by the same hand frame identifier. For the user, the hand frame tracking with the same hand frame identifier can be viewed, and the stability output prompt of the hand frame can be realized.

[0137] Further, based on any of the above embodiments, after outputting the second image frame in the target video and synchronously displaying the second hand frame and the hand frame identifier of the second hand frame, the method further includes:

[0138] determining target image frames associated with a plurality of hand frames having the same hand frame identifier;

[0139] determining a target gesture performed by the user based on partial images corresponding to respective hand frames of the plurality of target image frames;

[0140] Determine the control instruction corresponding to the target gesture and perform the control operation corresponding to the control instruction.

[0141] Optionally, the gesture of each hand frame may refer to a gesture type obtained by performing gesture classification on a partial image of the hand frame. The gesture of each hand frame may be obtained through gesture classification. Specifically, a gesture classification model may be trained to classify the gestures in the partial image corresponding to the hand frame. The gesture type may be a predefined hand posture type, for example, a clenched fist, an open hand, or a scissors gesture.

[0142] In the disclosed embodiment, after identifying the hand frame identifier of the second hand frame, target gestures can be identified in the partial images corresponding to the hand frames in each of the multiple target image frames. Based on the target gestures in each of the multiple target image frames, corresponding control instructions are determined to execute the control operations corresponding to the control instructions. Accurate gesture control is achieved through stable gesture recognition.

[0143] FIG5 is a schematic diagram of the structure of a gesture recognition device provided by an embodiment of the present disclosure. The gesture recognition device 500 may include the following units:

[0144] Responding unit 501: configured to determine a first face image of a target object in a first image frame of a target video in response to a gesture control request;

[0145] Identification unit 502: configured to determine a first hand frame associated with a first face image and a hand frame identifier of the first hand frame;

[0146] Determining unit 503: used to determine a second face image corresponding to a second image frame from the target video;

[0147] Comparing unit 504 is configured to determine, if there is a second facial image that satisfies a facial similarity condition with the first facial image, the hand frame identifier of the first hand frame as the hand frame identifier of the second hand frame associated with the second facial image.

[0148] Furthermore, based on any of the above embodiments, the response unit may include:

[0149] A first determining module is configured to determine, from a first image frame of a target video, a first face image and a first hand frame associated with the first face image based on a limb constraint relationship;

[0150] An identifier generating module, configured to generate a hand frame identifier for the first hand frame;

[0151] The identified units include:

[0152] The association module is used to determine a second face image and a second hand frame associated with the second face image from a second image frame of the target video based on the limb constraint relationship.

[0153] Furthermore, based on any of the above embodiments, the method further includes:

[0154] a storage unit, configured to store the first face image and a hand frame identifier corresponding to a first hand frame associated with the first face image in a face database in the form of a set of associated information;

[0155] Comparison unit, including:

[0156] an identification query module, configured to query a face database for a hand frame identification associated with the first face image;

[0157] The identifier assignment module is used to use the hand frame identifier associated with the first face image as the hand frame identifier of the second hand frame in the second image frame.

[0158] Furthermore, based on any of the above embodiments, the first determining module includes:

[0159] a limb determination submodule, configured to identify a first limb key point in the first image frame through the limb recognition module;

[0160] A key segmentation submodule, configured to determine, from the first limb key points, a first hand key point and a first face key point belonging to the same limb;

[0161] A face image submodule, configured to determine a first face image corresponding to the first image frame based on the first face key points;

[0162] The hand frame determination submodule is used to determine a first hand frame associated with the first face image in the first image frame based on the hand frame recognition module and the first hand key point.

[0163] Furthermore, based on any of the above embodiments, the association module includes:

[0164] a limb determination submodule, configured to determine a second limb key point in the second image frame through the limb recognition module;

[0165] A key segmentation submodule, configured to determine a second hand key point and a second face key point belonging to the target object from the second limb key points;

[0166] A face determination submodule, configured to determine a second face image corresponding to the second image frame based on the second face key points;

[0167] The hand frame determination submodule is used to determine a second hand frame associated with the second face image in the second image frame by using the hand frame recognition module and the second hand key point.

[0168] Furthermore, based on any of the above embodiments, the hand frame determination submodule is specifically configured to:

[0169] The overlap rate of the first hand frame is calculated by the first hand key point to obtain the first overlap rate of the first hand frame; the hand region is fitted on the second image frame according to the second hand key point to obtain the fitted hand frame of the second hand key point; the hand frame is adjusted on the fitted hand frame of the second hand key point using the first overlap rate to obtain the predicted hand frame; based on the hand frame recognition module, the hand frame in the second image frame is determined, and the hand frame with the smallest difference from the predicted hand frame is selected from the hand frame of the second image frame as the second hand frame.

[0170] Furthermore, based on any of the above embodiments, the hand frame determination submodule is specifically configured to:

[0171] According to the first hand key point, a hand region is fitted on the first image frame to obtain a fitted hand frame of the first hand key point; and an overlap rate is calculated between the first hand frame and the fitted hand frame of the first hand key point to obtain a first overlap rate.

[0172] Furthermore, based on the above embodiment, the present invention further includes:

[0173] an identifier generating unit, configured to generate a new hand frame identifier for the second hand frame in the second image frame if there is no second face image that satisfies a face similarity condition with the first face image;

[0174] Alternatively, the image update unit is used to continue acquiring a third image frame and determining a third facial image corresponding to the third image frame if there is no second facial image that meets the facial similarity condition with the first facial image; if there is a third facial image that meets the facial similarity condition with the first facial image, determine the hand frame identifier of the first hand frame as the hand frame identifier of the third hand frame associated with the third facial image until gesture recognition is completed.

[0175] Furthermore, based on the above embodiment, the present invention further includes:

[0176] The first output unit is configured to synchronously display a first hand frame and a hand frame identifier corresponding to the first hand frame when outputting a first image frame in a target video.

[0177] The second output unit is used to output the second image frame in the target video and synchronously display the second hand frame and the hand frame identifier of the second hand frame.

[0178] Furthermore, based on the above embodiment, the present invention further includes:

[0179] The target determination unit is used to determine target image frames associated with multiple hand frames having the same hand frame identifier.

[0180] a gesture recognition unit, configured to determine a target gesture performed by the user based on partial images corresponding to respective hand frames in the plurality of target image frames;

[0181] The gesture control unit is used to determine the control instruction corresponding to the target gesture and execute the control operation corresponding to the control instruction.

[0182] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.

[0183] In order to implement the above embodiment, the embodiment of the present disclosure further provides an electronic device.

[0184] Referring to FIG6 , a schematic diagram of the structure of an electronic device 600 suitable for implementing an embodiment of the present disclosure is shown. The electronic device 600 may be a terminal device or a server. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG6 is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.

[0185] As shown in Figure 6, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0186] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 6 shows an electronic device 600 having various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0187] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0188] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0189] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0190] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0191] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).

[0192] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0193] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

[0194] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0195] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0196] In a first aspect, according to one or more embodiments of the present disclosure, a gesture recognition method is provided, including:

[0197] In response to the gesture control request, determining a first facial image of a target object in a first image frame of a target video;

[0198] determining a first hand frame and a hand frame identifier of the first hand frame associated with the first facial image;

[0199] Determining a second facial image corresponding to a second image frame from the target video;

[0200] If there is a second facial image that meets the facial similarity condition with the first facial image, the hand frame identifier of the first hand frame is determined to be the hand frame identifier of the second hand frame associated with the second facial image.

[0201] According to one or more embodiments of the present disclosure, determining a first hand frame and a hand frame identifier of the first hand frame associated with a first face image in a first image frame in a target video includes:

[0202] Based on the limb constraint relationship, determining a first face image and a first hand frame associated with the first face image from a first image frame of the target video;

[0203] Generate a hand frame identifier for the first hand frame;

[0204] Determining a second face image corresponding to a second image frame from a target video includes:

[0205] Based on the limb constraint relationship, a second face image and a second hand frame associated with the second face image are determined from a second image frame of the target video.

[0206] According to one or more embodiments of the present disclosure, the present invention further includes:

[0207] storing the first face image and the hand frame identifier corresponding to the first hand frame associated with the first face image in a face database in the form of a set of associated information;

[0208] Determining the hand frame identifier of the first hand frame as the hand frame identifier of the second hand frame associated with the second facial image includes:

[0209] Querying a hand frame identifier associated with the first face image from a face database;

[0210] The hand frame identifier associated with the first facial image is used as the hand frame identifier of the second hand frame in the second image frame.

[0211] According to one or more embodiments of the present disclosure, determining a first facial image and a first hand frame associated with the first facial image from a first image frame of a target video includes:

[0212] Identifying a first limb key point in the first image frame using a limb recognition module;

[0213] Determine the first hand key point and the first face key point belonging to the same limb from the first limb key point;

[0214] Determining a first facial image corresponding to the first image frame based on the first facial key point;

[0215] A first hand frame associated with the first facial image in the first image frame is determined based on the hand frame recognition module and the first hand key point.

[0216] According to one or more embodiments of the present disclosure, determining a second facial image and a second hand frame associated with the second facial image from a second image frame of a target video includes:

[0217] Determining, by the limb recognition module, a second limb key point in the second image frame;

[0218] Determine a second hand key point and a second face key point belonging to the target object from the second limb key point;

[0219] Determining a second facial image corresponding to the second image frame based on the second facial key points;

[0220] A second hand frame associated with the second facial image in the second image frame is determined using the hand frame recognition module and the second hand key point.

[0221] According to one or more embodiments of the present disclosure, determining a second hand frame associated with a second facial image in a second image frame using a hand frame recognition module and a second hand key point includes:

[0222] Calculating the overlap rate of the first hand frame using the first hand key point to obtain a first overlap rate of the first hand frame;

[0223] Performing hand region fitting on the second image frame according to the second hand key point to obtain a fitted hand frame of the second hand key point;

[0224] Using the first overlap ratio, the fitted hand frame of the second hand key point is adjusted to obtain a predicted hand frame.

[0225] Based on the hand frame recognition module, a hand frame in the second image frame is determined, and a hand frame having the smallest difference from the predicted hand frame is selected from the hand frames in the second image frame as the second hand frame.

[0226] According to one or more embodiments of the present disclosure, calculating the overlap rate of the first hand frame using the first hand key point to obtain a first overlap rate of the first hand frame includes:

[0227] Performing hand region fitting on the first image frame according to the first hand key point to obtain a fitted hand frame of the first hand key point;

[0228] An overlap ratio is calculated between the first hand frame and the fitted hand frame of the first hand key point to obtain a first overlap ratio.

[0229] According to one or more embodiments of the present disclosure, the present invention further includes:

[0230] If there is no second face image that satisfies the face similarity condition with the first face image, generating a new hand frame identifier for the second hand frame in the second image frame;

[0231] Alternatively, if there is no second facial image that meets the facial similarity condition with the first facial image, continue to obtain the third image frame and determine the third facial image corresponding to the third image frame; if there is a third facial image that meets the facial similarity condition with the first facial image, determine the hand frame identifier of the first hand frame as the hand frame identifier of the third hand frame associated with the third facial image until gesture recognition is completed.

[0232] According to one or more embodiments of the present disclosure, after determining the first hand frame and the hand frame identifier of the first hand frame associated with the first face image in the first image frame in the target video, the method further includes:

[0233] When outputting the first image frame in the target video, synchronously displaying the first hand frame and the hand frame identifier corresponding to the first hand frame;

[0234] After determining the hand frame identifier of the first hand frame as the hand frame identifier of the second hand frame associated with the second facial image, the method further includes:

[0235] The second image frame in the target video is output, and the second hand frame and the hand frame identifier of the second hand frame are synchronously displayed.

[0236] According to one or more embodiments of the present disclosure, after determining that the hand frame identifier of the first hand frame is the hand frame identifier of the second hand frame associated with the second facial image, the method further includes:

[0237] determining target image frames associated with a plurality of hand frames having the same hand frame identifier;

[0238] determining a target gesture performed by the user based on partial images corresponding to respective hand frames of the plurality of target image frames;

[0239] Determine the control instruction corresponding to the target gesture and perform the control operation corresponding to the control instruction.

[0240] In a second aspect, according to one or more embodiments of the present disclosure, a gesture recognition device is provided, comprising:

[0241] a response unit, configured to determine, in response to the gesture control request, a first facial image of a target object in a first image frame of a target video;

[0242] The identification unit is configured to determine a first hand frame associated with the first face image and a hand frame identification of the first hand frame.

[0243] a determining unit, configured to determine a second facial image corresponding to a second image frame from a target video;

[0244] The comparing unit is configured to determine the hand frame identifier of the first hand frame as the hand frame identifier of the second hand frame associated with the second face image if there is a second image frame that satisfies the face similarity condition with the first face image.

[0245] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;

[0246] Memory stores computer-executable instructions;

[0247] At least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the gesture recognition method of the first aspect and various possible designs of the first aspect.

[0248] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the gesture recognition method as described in the first aspect and various possible designs of the first aspect are implemented.

[0249] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the gesture recognition method of the first aspect and various possible designs of the first aspect.

[0250] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0251] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0252] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A gesture recognition method, comprising: In response to the gesture control request, determining a first face image of a target object in a first image frame of a target video; Determine a first hand frame associated with the first face image and a hand frame identifier of the first hand frame; Determine a second face image corresponding to a second image frame from the target video; If there is a second face image that satisfies the face similarity condition with the first face image, the hand frame identifier of the first hand frame is determined to be the hand frame identifier of the second hand frame associated with the second face image.

2. The method according to claim 1, wherein: The determining a first hand frame associated with the first face image and a hand frame identifier of the first hand frame includes: Based on the limb constraint relationship, determining the first face image and the first hand frame associated with the first face image from the first image frame of the target video; generating a hand frame identifier for the first hand frame; The step of determining the second face image corresponding to the second image frame from the target video includes: Based on the limb constraint relationship, the second face image and a second hand frame associated with the second face image are determined from a second image frame of the target video.

3. The method according to claim 1 or 2, further comprising: storing the first face image and the hand frame identifier corresponding to the first hand frame associated with the first face image in a face database in the form of a set of associated information; The determining the hand frame identifier of the first hand frame as the hand frame identifier of the second hand frame associated with the second facial image includes: Querying the face database for a hand frame identifier associated with the first face image; The hand frame identifier associated with the first facial image is used as the hand frame identifier of the second hand frame in the second image frame.

4. The method according to claim 2, wherein: The determining, from the first image frame of the target video, the first face image and the first hand frame associated with the first face image comprises: Using a limb recognition module, identifying a first limb key point in the first image frame; Determine the first hand keypoint and the first hand keypoint belonging to the same limb from the first limb keypoint Key points of the face; Determining the first facial image corresponding to the first image frame based on the first facial key points; Based on the hand frame recognition module and the first hand key point, the first hand frame associated with the first face image in the first image frame is determined.

5. The method according to claim 4, wherein: The step of determining the second face image and a second hand frame associated with the second face image from the second image frame of the target video includes: Determining a second limb key point in the second image frame by the limb recognition module; Determine a second hand key point and a second face key point belonging to the target object from the second limb key points; Determining the second facial image corresponding to the second image frame based on the second facial key points; The second hand frame associated with the second facial image in the second image frame is determined by using the hand frame recognition module and the second hand key points.

6. The method according to claim 5, wherein: The determining, using the hand frame recognition module and the second hand key point, the second hand frame associated with the second face image in the second image frame includes: Calculating the overlap rate of the first hand frame using the first hand key point to obtain a first overlap rate of the first hand frame; According to the second hand key point, performing hand region fitting on the second image frame to obtain a fitting hand frame of the second hand key point; Using the first overlap rate, adjusting the fitted hand frame of the second hand key point to obtain a predicted hand frame; Based on the hand frame recognition module, a hand frame in the second image frame is determined, so as to select a hand frame with the smallest difference from the predicted hand frame from the hand frames of the second image frame as the second hand frame.

7. The method according to claim 6, wherein: The calculating the overlap rate of the first hand frame by using the first hand key point to obtain a first overlap rate of the first hand frame includes: According to the first hand key point, performing hand region fitting on the first image frame to obtain a fitting hand frame of the first hand key point; The overlap rate of the first hand frame and the fitted hand frame of the first hand key point is calculated to obtain The first overlap ratio is obtained.

8. The method according to any one of claims 1 to 7, further comprising: If there is no second face image that satisfies the face similarity condition with the first face image, generating a new hand frame identifier for the second hand frame in the second image frame; Alternatively, if there is no second facial image that meets the facial similarity condition with the first facial image, continue to acquire the third image frame and determine the third facial image corresponding to the third image frame; if there is a third facial image that meets the facial similarity condition with the first facial image, determine the hand frame identifier of the first hand frame as the hand frame identifier of the third hand frame associated with the third facial image until gesture recognition is completed.

9. The method according to any one of claims 1 to 8, wherein: After determining the first hand frame associated with the first face image and the hand frame identifier of the first hand frame, the method further includes: When outputting the first image frame in the target video, synchronously displaying the first hand frame and a hand frame identifier corresponding to the first hand frame; After determining that the hand frame identifier of the first hand frame is the hand frame identifier of the second hand frame associated with the second facial image, the method further includes: The second image frame in the target video is output, and the second hand frame and the hand frame identifier of the second hand frame are synchronously displayed.

10. The method according to any one of claims 1 to 9, wherein: After determining that the hand frame identifier of the first hand frame is the hand frame identifier of the second hand frame associated with the second facial image, the method further includes: Determine target image frames to which multiple hand frames having the same hand frame identifier are respectively associated; Determining a target gesture performed by the user according to the partial images corresponding to the respective hand frames of the plurality of target image frames; A control instruction corresponding to the target gesture is determined, and a control operation corresponding to the control instruction is performed.

11. A gesture recognition device, comprising: a response unit configured to determine, in response to a gesture control request, a first face image of a target object in a first image frame of a target video; an identification unit, configured to determine a first hand frame associated with the first face image and a hand frame identification of the first hand frame; a determining unit, configured to determine a second face image corresponding to a second image frame from the target video; The comparison unit is configured to determine the hand frame identifier of the first hand frame as the hand frame identifier of the second hand frame associated with the second face image if there is a second image frame that satisfies the face similarity condition with the first face image.

12. An electronic device comprising: A processor, a memory, and an output device, wherein: The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor implements the gesture recognition method according to any one of claims 1 to 10, and the output device is used to output an image frame, a hand frame in the image frame, and a hand frame identifier of the hand frame.

13. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the gesture recognition method according to any one of claims 1 to 10 is implemented.

14. A computer program product comprising a computer program, wherein: When the computer program is executed by a processor, the gesture recognition method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Smart control module and kitchen appliances employing same

    CN106383452A

  • Gesture recognition method and device, gesture control method and device, medium and terminal equipment

    CN111062312A

  • Target tracking method and target tracking device

    CN114429488A

  • Gesture recognition object determination method and device

    CN115565241A

  • Target object identification

    US20210312187A1

Cited By

  • Virtual scene interaction method of theme theater and related device

    CN119248114A