A gesture recognition method, gesture recognition device and intelligent device

By using sample gesture images carrying annotation information for training in the gesture recognition model, combined with category, positioning box and key point information, the problem of insufficient accuracy and robustness of gesture recognition in the existing technology is solved, and a more efficient Gesture recognition effect.

CN112949437BActive Publication Date: 2024-09-17UBTECH ROBOTICS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110194549.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-21
Publication Date
2024-09-17
Estimated Expiration
2041-02-21

AI Technical Summary

Technical Problem

Existing gesture recognition technology has deficiencies in recognition accuracy and robustness, making it difficult to effectively recognize complex and changeable gesture information.

Method used

By using sample gesture images carrying annotation information to train the gesture recognition model, and combining category information, positioning box information and key point information, multi-task learning is achieved, thereby improving the accuracy and robustness of gesture recognition.

Benefits of technology

The accuracy and robustness of gesture recognition are significantly improved, allowing the model to more effectively identify and locate gestures, making it suitable for applications in complex scenarios, such as interactive games between robots and users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112949437B
    Figure CN112949437B
Patent Text Reader

Abstract

The present application is applicable to the field of gesture recognition technology, and provides a gesture recognition method, a gesture recognition device, and an intelligent device. The method comprises: obtaining a target video containing gestures; inputting the target video into a trained gesture recognition model to obtain the category information, positioning frame information, and key point information of the gestures in the target video, wherein the gesture recognition model is trained by a sample gesture image carrying annotation information, and the annotation information includes the category information, positioning frame information, and key point information of the gestures in the sample gesture image. Through the scheme of the present application, the accuracy and robustness of gesture recognition can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of gesture recognition technology, and in particular, relates to a gesture recognition method, a gesture recognition apparatus, an intelligent device, and a computer-readable storage medium. Background Art

[0002] At present, gesture recognition plays an important role in the field of human-computer interaction. Gesture recognition technology can help people solve problems in corresponding scenarios, such as recognizing the sign language of deaf-mute people and playing rock-paper-scissors games with robots. However, the current gesture recognition technology has low recognition accuracy and lacks high robustness. Summary of the invention

[0003] In view of this, the present application provides a gesture recognition method, a gesture recognition apparatus, an intelligent device, and a computer-readable storage medium, which can improve the accuracy and robustness of gesture recognition.

[0004] In a first aspect, the present application provides a gesture recognition method, comprising:

[0005] Get the target video containing the gesture;

[0006] The target video is input into a trained gesture recognition model to obtain category information, positioning frame information and key point information of the gesture in the target video, wherein the gesture recognition model is trained by sample gesture images carrying annotation information, and the annotation information includes category information, positioning frame information and key point information of the gesture in the sample gesture image.

[0007] In a second aspect, the present application provides a gesture recognition device, comprising:

[0008] An acquisition unit, used for acquiring a target video containing a gesture;

[0009] The recognition unit is used to input the above-mentioned target video into the trained gesture recognition model to obtain the category information, positioning frame information and key point information of the gesture in the above-mentioned target video, wherein the above-mentioned gesture recognition model is trained by the sample gesture image carrying annotation information, and the above-mentioned annotation information includes the category information, positioning frame information and key point information of the gesture in the above-mentioned sample gesture image.

[0010] In a third aspect, the present application provides an intelligent device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method of the first aspect when executing the computer program.

[0011] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect are implemented.

[0012] In a fifth aspect, the present application provides a computer program product, which includes a computer program. When the computer program is executed by one or more processors, it implements the steps of the method of the first aspect.

[0013] As can be seen from the above, in the present application, after obtaining a target video containing gestures, the target video is input into the trained gesture recognition model to obtain the category information, positioning frame information and key point information of the gestures in the target video, wherein the gesture recognition model is trained by sample gesture images carrying annotation information, and the annotation information includes the category information, positioning frame information and key point information of the gestures in the sample gesture images. The present application adopts sample gesture images carrying annotation information to train the gesture recognition model. Since the annotation information includes a variety of gesture information (i.e., category information, positioning frame information and key point information), in the process of training the gesture recognition model, the gesture recognition model can implicitly combine the multiple gesture information for learning, so that the trained gesture recognition model has higher accuracy and robustness. It can be understood that the beneficial effects of the second to fifth aspects can be found in the relevant description of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0015] Figure 1 is a flowchart of a gesture recognition method provided in an embodiment of the present application;

[0016] Figure 2 is a schematic diagram of an application environment of the gesture recognition method provided in an embodiment of the present application;

[0017] Figure 3 is a structural block diagram of a gesture recognition device provided in an embodiment of the present application;

[0018] Figure 4 It is a schematic diagram of the structure of the smart device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0019] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0020] In order to illustrate the technical solution proposed in this application, a specific embodiment is provided below for illustration.

[0021] The following describes a gesture recognition method provided in an embodiment of the present application. The gesture recognition method is applied to a smart device. Figure 1 , the gesture recognition method comprises:

[0022] Step 101, obtaining a target video containing a gesture.

[0023] In the embodiment of the present application, the target video includes a gesture, that is, the target video is a video obtained by shooting a person's hand through a shooting device. Specifically, the target video can be a video input in real time through a camera connected to a smart device, or it can be a pre-recorded video, which is not limited here. For example, a user can shoot a hand that is making a gesture in advance with his or her mobile phone, and then send the captured video to the smart device, and the smart device can use the captured video as the target video.

[0024] Among them, the target video includes several frame images, among which there is at least one frame image containing a gesture, that is, there are two situations. One situation is that every frame image of the target video contains a gesture, and the other situation is that some images of the target video contain gestures, and the other part of the images do not contain gestures.

[0025] Step 102: Input the target video into the trained gesture recognition model to obtain category information, positioning frame information, and key point information of the gesture in the target video.

[0026] In an embodiment of the present application, the gesture recognition model is obtained by training sample gesture images. In order to improve the recognition accuracy of the gesture recognition model, the number of sample gesture images used to train the gesture recognition model should be as large as possible, for example, the number of sample gesture images can be 10,000. Due to the flexibility and variability of human hands, there are many categories of gestures that can be made by human hands, so the gesture recognition model cannot recognize all the categories of gestures that can be made by human hands. Based on this, at least one gesture can be selected as a preset gesture based on the application scenario and user needs, and then sample gesture images containing preset gestures are collected, wherein each sample gesture image contains a preset gesture. Exemplarily, 9 gestures can be selected as preset gestures, and these 9 preset gestures are palm gesture, stone gesture, scissor gesture, OK gesture, awesome gesture, call gesture, swear gesture, rock gesture and one gesture.

[0027] Each sample gesture image can be annotated so that the sample gesture image carries annotation information. The annotation information may include category information, positioning frame information and key point information of the gesture in the sample gesture image, wherein the category information is used to indicate the category of the gesture, the positioning frame information is used to indicate the positioning frame of the gesture, the positioning frame is the circumscribed rectangle of the gesture, and the key point information is used to indicate the key points of the gesture (i.e., the 21 skeletal points of a single hand).

[0028] The gesture recognition model is trained by using sample gesture images to obtain a trained gesture recognition model. The target video is input into the trained gesture recognition model, and the trained gesture recognition model can output the category information, positioning frame information and key point information of the gesture in the target video. In other words, the gesture recognition model is a multi-task model that can complete multiple tasks, namely, outputting the category information of the gesture, outputting the positioning frame information of the gesture and outputting the key point information of the gesture. During the training process, the multi-task model can improve the learning efficiency and quality of each task by learning the connections and differences between different tasks. Therefore, the gesture recognition accuracy of the trained gesture recognition model in the embodiment of the present application is higher than that of the traditional gesture recognition model.

[0029] It should be noted that after the target video is input into the trained gesture recognition model, the gesture recognition model actually performs gesture recognition on each frame of the target video. For each frame of the target video, the gesture recognition model can detect whether the image contains a gesture. If the image contains a gesture, the category information, positioning frame information and key point information of the gesture in the image are output. If the image does not contain a gesture, no information is output. Among them, the category information of the gesture in each frame of the target video is used to indicate which of at least one preset gesture the gesture in the frame belongs to; the positioning frame information of the gesture in each frame of the target video is used to indicate the position of the positioning frame of the gesture in the frame, such as the positioning frame information is the upper left corner coordinates and the lower right corner coordinates of the positioning frame; the key point information of the gesture in each frame of the target video is used to indicate the position of the key point of the gesture in the frame, such as the key point information is the coordinates of the key point.

[0030] Optionally, before inputting the target video into the trained gesture recognition model, the method further includes:

[0031] Normalize each frame of the target video to obtain a normalized video;

[0032] Accordingly, the above step 102 specifically includes:

[0033] The normalized video is input into the trained gesture recognition model to obtain the category information, positioning frame information and key point information of the gesture in the target video.

[0034] In an embodiment of the present application, the normalization process may be to perform mean and variance operations on the pixel values ​​of the three RGB channels of each frame of the target video, so that the pixel values ​​are converted from the range of 0 to 255 to the range of -1 to 1. Through the normalization process, each frame of the target video can meet the requirements of the gesture recognition model for the image format, which is convenient for the subsequent use of the gesture recognition model for gesture recognition. In an embodiment of the present application, the target video after normalization is recorded as a normalized video, and the normalized video is input into the trained gesture recognition model, so that the gesture recognition model outputs the category information, positioning frame information, and key determination information of the gesture in the target video based on this.

[0035] Optionally, considering that the gesture recognition model is a multi-task model that can complete multiple tasks, the gesture recognition model can include a gesture classification branch, a gesture positioning branch and a key point detection branch, wherein each branch correspondingly completes a task.

[0036] Specifically, the gesture classification branch is used to output the category information of the gesture in the target video. The implementation method of the gesture classification branch is to one-hot encode the gesture category and use the softmax layer to output the probability of the gesture category. Through the gesture classification branch, the target preset gesture with the highest probability of matching the gesture in the target video can be determined in at least one preset gesture, and the category information of the gesture in the target video can be determined based on the target preset gesture. For example, the target video contains an unknown gesture X. After the target video is input into the trained gesture recognition model, the matching probability of gesture X with preset gesture A is 14%, the matching probability of gesture X with preset gesture B is 85%, and the matching probability of gesture X with preset gesture C is 1%. Then, it can be determined that preset gesture B is the target preset gesture, and the category information indicates that the unknown gesture X is preset gesture B.

[0037] Specifically, the gesture positioning branch is used to output the positioning frame information of the gesture in the target video. Through the gesture positioning branch, the position of the gesture in the target video can be located, and then the positioning frame information of the gesture in the target video is determined based on the position.

[0038] Specifically, the key point detection branch is used to output the key point information of the gesture in the target video. The key point detection branch is implemented by network regression. Through the key point detection branch, the position of the key point of the gesture in the target video can be detected, and then the key point information of the gesture in the target video can be determined based on the position.

[0039] Optionally, the gesture recognition model also includes a feature extraction layer (i.e., BackBone network), which can be a deep residual network (ResNet), such as ResNet50, or a lightweight network such as shuffleNet and MobileNet. The specific network selected as the feature extraction layer can be determined according to the performance of the smart device. For example, if the smart device is a desktop computer with high performance, ResNet50 can be selected as the feature extraction layer. If the smart device is a mobile phone with low performance, MobileNet can be selected as the feature extraction layer. After the target video is input into the gesture recognition model, the feature extraction layer can be used to extract features of the target video, thereby obtaining feature information of the target video. Please refer to Figure 2 After obtaining the feature information of the target video through the feature extraction layer, the feature information will be input into the gesture classification branch, gesture positioning branch and key point detection branch respectively. Then the gesture classification branch can output the category information of the gesture in the target video based on the feature information, the gesture positioning branch can output the positioning frame information of the gesture in the target video based on the feature information, and the key point detection branch can output the key point information of the gesture in the target video based on the feature information.

[0040] Optionally, the gesture classification branch, gesture localization branch, and key point detection branch can be trained by different loss functions. For example, during the training process, the cross entropy loss function can be used to guide the training of the gesture classification branch, the GloU loss function can be used to guide the training of the gesture localization branch, and the WingLoss loss function can be used to guide the training of the key point detection branch. Since different loss functions are used to train different branches in a targeted manner, the accuracy of the trained branches can be made higher.

[0041] Optionally, before training the gesture recognition model, the sample gesture images may be enhanced, and then the gesture recognition model may be trained using the enhanced sample gesture images, so that the sample gesture images are more generalized, which is beneficial to improving the recognition accuracy of the gesture recognition model. The enhancement processing may include flipping and rotation, etc.

[0042] Optionally, after the above step 102, the method further includes:

[0043] Based on the category information, positioning frame information and key point information of the gesture in the target video, marking the category, positioning frame and key points of the gesture in the target video;

[0044] Output the target video with gesture categories, positioning boxes and key points.

[0045] In an embodiment of the present application, after the gesture recognition model outputs the category information, positioning frame information, and key point information of the gesture in the target video, the category, positioning frame, and key point of the gesture can be marked in the target video based on the category information, positioning frame information, and key point information of the gesture in the target video, and then the target video marked with the category, positioning frame, and key point of the gesture is output to show the target video to the user. The user can see the marked category, positioning frame, and key point of the gesture in the target video, giving the user a more visually impactful experience.

[0046] Exemplarily, for each frame of gesture image in the target video, the category of the gesture can be marked in the gesture image based on the category information of the gesture in the gesture image, the positioning frame of the gesture can be marked in the gesture image based on the positioning frame information of the gesture in the gesture image, and the key points of the gesture can be marked in the gesture image based on the key point information of the gesture in the gesture image. The gesture image refers to an image containing gestures. It is understandable that no marking operation will be performed for non-gesture images in the target video, wherein non-gesture images refer to images that do not contain gestures.

[0047] In one application scenario, the gesture recognition method provided in the embodiment of the present application can be applied to a robot, and the robot can play a rock-paper-scissors game with the user by executing the gesture recognition method. Specifically, the robot can recognize in real time which of the rock, scissors, and paper gestures the user's gesture belongs to, and then determine which of the rock, scissors, and paper the robot should currently play.

[0048] As can be seen from the above, in the present application, after obtaining a target video containing gestures, the target video is input into the trained gesture recognition model to obtain the category information, positioning frame information and key point information of the gestures in the target video, wherein the gesture recognition model is trained by sample gesture images carrying annotation information, and the annotation information includes the category information, positioning frame information and key point information of the gestures in the sample gesture images. The present application adopts sample gesture images carrying annotation information to train the gesture recognition model. Since the annotation information includes multiple gesture information (i.e., category information, positioning frame information and key point information), in the process of training the gesture recognition model, the gesture recognition model can implicitly combine the multiple gesture information for learning, so that the trained gesture recognition model has higher accuracy and robustness.

[0049] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0050] Corresponding to the gesture recognition method proposed above, the present application embodiment provides a gesture recognition device. Figure 3 , the gesture recognition device 300 in the embodiment of the present application includes:

[0051] An acquisition unit 301 is used to acquire a target video containing a gesture;

[0052] The recognition unit 302 is used to input the above-mentioned target video into the trained gesture recognition model to obtain the category information, positioning frame information and key point information of the gesture in the above-mentioned target video, wherein the above-mentioned gesture recognition model is trained by the sample gesture image carrying annotation information, and the above-mentioned annotation information includes the category information, positioning frame information and key point information of the gesture in the above-mentioned sample gesture image.

[0053] Optionally, the gesture recognition device 300 further includes:

[0054] A marking unit, used to mark the category, positioning frame and key points of the gesture in the target video based on the category information, positioning frame information and key point information of the gesture in the target video;

[0055] The output unit is used to output the target video marked with the category, positioning frame and key points of the gesture.

[0056] Optionally, the marking unit, specifically for each frame of gesture image of the target video, marks the category of the gesture in the gesture image based on the category information of the gesture in the gesture image, marks the positioning frame of the gesture in the gesture image based on the positioning frame information of the gesture in the gesture image, and marks the key points of the gesture in the gesture image based on the key point information of the gesture in the gesture image, wherein the gesture image is an image containing a gesture.

[0057] Optionally, the gesture recognition model includes a gesture classification branch, a gesture positioning branch and a key point detection branch;

[0058] The gesture classification branch is used to output category information of the gesture in the target video;

[0059] The gesture positioning branch is used to output positioning frame information of the gesture in the target video;

[0060] The key point detection branch is used to output the key point information of the gesture in the target video.

[0061] Optionally, the gesture recognition model further includes a feature extraction layer, which is used to extract features from the target video to obtain feature information;

[0062] The gesture classification branch is specifically used to output category information of the gesture in the target video based on the feature information;

[0063] The gesture positioning branch is specifically used to output positioning frame information of the gesture in the target video based on the feature information;

[0064] The key point detection branch is specifically used to output key point information of the gesture in the target video based on the feature information.

[0065] Optionally, the gesture classification branch, the gesture localization branch and the key point detection branch are respectively trained by different loss functions.

[0066] Optionally, the gesture recognition device 300 further includes:

[0067] A normalization unit, used for normalizing each frame of the target video to obtain a normalized video;

[0068] Correspondingly, the recognition unit 302 is specifically configured to input the normalized video into a trained gesture recognition model to obtain category information, positioning frame information, and key point information of the gesture in the target video.

[0069] As can be seen from the above, in the present application, after obtaining a target video containing gestures, the target video is input into the trained gesture recognition model to obtain the category information, positioning frame information and key point information of the gestures in the target video, wherein the gesture recognition model is trained by sample gesture images carrying annotation information, and the annotation information includes the category information, positioning frame information and key point information of the gestures in the sample gesture images. The present application adopts sample gesture images carrying annotation information to train the gesture recognition model. Since the annotation information includes multiple gesture information (i.e., category information, positioning frame information and key point information), in the process of training the gesture recognition model, the gesture recognition model can implicitly combine the multiple gesture information for learning, so that the trained gesture recognition model has higher accuracy and robustness.

[0070] The present application also provides a smart device, which can be a robot, a mobile phone, a desktop computer or a tablet computer, which is not limited here. Figure 4 The smart device 4 in the embodiment of the present application includes: a memory 401, one or more processors 402 ( Figure 4 Only one is shown), binocular camera 403 and a computer program stored in memory 401 and executable on the processor. The binocular camera 403 includes a first camera and a second camera; the memory 401 is used to store software programs and units, and the processor 402 executes various functional applications and data processing by running the software programs and units stored in the memory 401 to obtain the resources corresponding to the above-mentioned preset events. Specifically, the processor 402 implements the following steps when running the above-mentioned computer program stored in the memory 401:

[0071] Get the target video containing the gesture;

[0072] The target video is input into a trained gesture recognition model to obtain category information, positioning frame information and key point information of the gesture in the target video, wherein the gesture recognition model is trained by sample gesture images carrying annotation information, and the annotation information includes category information, positioning frame information and key point information of the gesture in the sample gesture image.

[0073] Assuming that the above is the first possible implementation mode, in a second possible implementation mode provided on the basis of the first possible implementation mode, after inputting the target video into the trained gesture recognition model to obtain the category information, positioning frame information and key point information of the gesture in the target video, the processor 402 further implements the following steps when running the computer program stored in the memory 401:

[0074] Based on the category information, positioning frame information and key point information of the gesture in the target video, marking the category, positioning frame and key points of the gesture in the target video;

[0075] Output the above target video with the category, positioning box and key points of the gesture.

[0076] In a third possible implementation manner provided on the basis of the second possible implementation manner, marking the category, positioning frame and key points of the gesture in the target video based on the category information, positioning frame information and key point information of the gesture in the target video includes:

[0077] For each frame of gesture image of the target video, the category of the gesture is marked in the gesture image based on the category information of the gesture in the gesture image, the positioning frame of the gesture is marked in the gesture image based on the positioning frame information of the gesture in the gesture image, and the key points of the gesture are marked in the gesture image based on the key point information of the gesture in the gesture image, wherein the gesture image is an image containing a gesture.

[0078] In a fourth possible implementation provided on the basis of the first possible implementation, the gesture recognition model includes a gesture classification branch, a gesture positioning branch and a key point detection branch;

[0079] The gesture classification branch is used to output category information of the gesture in the target video;

[0080] The gesture positioning branch is used to output positioning frame information of the gesture in the target video;

[0081] The key point detection branch is used to output the key point information of the gesture in the target video.

[0082] In a fifth possible implementation provided on the basis of the fourth possible implementation, the gesture recognition model further includes a feature extraction layer for extracting features from the target video to obtain feature information;

[0083] The gesture classification branch is specifically used to output category information of the gesture in the target video based on the feature information;

[0084] The gesture positioning branch is specifically used to output positioning frame information of the gesture in the target video based on the feature information;

[0085] The key point detection branch is specifically used to output key point information of the gesture in the target video based on the feature information.

[0086] In a sixth possible implementation provided on the basis of the fourth possible implementation, the gesture classification branch, the gesture localization branch and the key point detection branch are respectively trained by different loss functions.

[0087] In a seventh possible implementation provided on the basis of the first possible implementation, or the second possible implementation, or the third possible implementation, or the fourth possible implementation, or the fifth possible implementation, or the sixth possible implementation, before inputting the target video into the trained gesture recognition model, the processor 402 further implements the following steps by running the computer program stored in the memory 401:

[0088] Normalizing each frame of the target video to obtain a normalized video;

[0089] Accordingly, the above-mentioned target video is input into the trained gesture recognition model to obtain the category information, positioning frame information and key point information of the gesture in the above-mentioned target video, including:

[0090] The normalized video is input into the trained gesture recognition model to obtain category information, positioning frame information and key point information of the gesture in the target video.

[0091] It should be understood that in the embodiment of the present application, the processor 402 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0092] The memory 401 may include a read-only memory and a random access memory, and provide instructions and data to the processor 402. A part or all of the memory 401 may also include a non-volatile random access memory. For example, the memory 401 may also store information of a device category.

[0093] As can be seen from the above, in the present application, after obtaining a target video containing gestures, the target video is input into the trained gesture recognition model to obtain the category information, positioning frame information and key point information of the gestures in the target video, wherein the gesture recognition model is trained by sample gesture images carrying annotation information, and the annotation information includes the category information, positioning frame information and key point information of the gestures in the sample gesture images. The present application adopts sample gesture images carrying annotation information to train the gesture recognition model. Since the annotation information includes multiple gesture information (i.e., category information, positioning frame information and key point information), in the process of training the gesture recognition model, the gesture recognition model can implicitly combine the multiple gesture information for learning, so that the trained gesture recognition model has higher accuracy and robustness.

[0094] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0095] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0096] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of external device software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0097] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. For example, the division of the above modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0098] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0099] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the associated hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The above-mentioned computer-readable storage medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer-readable memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the above-mentioned computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media does not include electrical carrier signals and telecommunication signals.

[0100] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A gesture recognition method, characterized in that: The gesture recognition method is applied to an intelligent device, wherein the intelligent device is a robot, and the gesture recognition method comprises: Get the target video containing the gesture; The target video is input into the trained gesture recognition model to obtain the category information, positioning frame information and key point information of the gesture in the target video, wherein the gesture recognition model is obtained by training the sample gesture image that carries the annotation information and undergoes enhancement processing, and the annotation information includes the category information, positioning frame information and key point information of the gesture in the sample gesture image, wherein the gesture recognition model includes a feature extraction layer, a gesture classification branch, a gesture positioning branch and a key point detection branch, and the network selected by the feature extraction layer is determined according to the performance of the smart device; the feature extraction layer is used to extract features from the target video to obtain feature information; the gesture classification branch is used to output the category information of the gesture in the target video based on the feature information; the gesture positioning branch is used to output the positioning frame information of the gesture in the target video based on the feature information; the key point detection branch is used to output the key point information of the gesture in the target video based on the feature information; Play a game with the user based on the gesture recognition result of the target video.

2. The gesture recognition method according to claim 1, characterized in that: After inputting the target video into the trained gesture recognition model to obtain the category information, positioning frame information and key point information of the gesture in the target video, the method further includes: Based on the category information, positioning frame information and key point information of the gesture in the target video, marking the category, positioning frame and key points of the gesture in the target video; Output the target video marked with the category, positioning box and key points of the gesture.

3. The gesture recognition method according to claim 2, characterized in that: The step of marking the category, positioning frame and key points of the gesture in the target video based on the category information, positioning frame information and key point information of the gesture in the target video includes: For each frame of gesture image of the target video, the category of the gesture is marked in the gesture image based on the category information of the gesture in the gesture image, the positioning frame of the gesture is marked in the gesture image based on the positioning frame information of the gesture in the gesture image, and the key points of the gesture are marked in the gesture image based on the key point information of the gesture in the gesture image, wherein the gesture image is an image containing a gesture.

4. The gesture recognition method according to claim 1, characterized in that: The gesture classification branch, the gesture localization branch and the key point detection branch are respectively trained by different loss functions.

5. The gesture recognition method according to any one of claims 1 to 4, characterized in that: Before inputting the target video into the trained gesture recognition model, the method further includes: Normalizing each frame of the target video to obtain a normalized video; Accordingly, the step of inputting the target video into the trained gesture recognition model to obtain the category information, positioning frame information, and key point information of the gesture in the target video includes: The normalized video is input into the trained gesture recognition model to obtain category information, positioning frame information and key point information of the gesture in the target video.

6. A gesture recognition device, characterized in that: The gesture recognition device is applied to an intelligent device, the intelligent device is a robot, and the gesture recognition device comprises: An acquisition unit, used for acquiring a target video containing a gesture; A recognition unit, used for inputting the target video into a trained gesture recognition model to obtain category information, positioning frame information and key point information of the gesture in the target video, wherein the gesture recognition model is obtained by training a sample gesture image that carries annotation information and undergoes enhancement processing, and the annotation information includes the category information, positioning frame information and key point information of the gesture in the sample gesture image, wherein the gesture recognition model includes a feature extraction layer, a gesture classification branch, a gesture positioning branch and a key point detection branch, and the network selected by the feature extraction layer is determined according to the performance of the smart device; the feature extraction layer is used to extract features from the target video to obtain feature information; the gesture classification branch is used to output the category information of the gesture in the target video based on the feature information; the gesture positioning branch is used to output the positioning frame information of the gesture in the target video based on the feature information; the key point detection branch is used to output the key point information of the gesture in the target video based on the feature information; The gesture recognition device is also used to play a game with the user based on the gesture recognition result of the target video.

7. An intelligent device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.