Sign language recognition method and device, storage medium and computer program product

By adopting the Transformer model in sign language recognition technology, combining images and key point data, the problem of low sign language recognition accuracy in the prior art is solved, and higher recognition accuracy and communication efficiency are achieved.

CN119007299APending Publication Date: 2024-11-22GEER TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411206169.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the existing sign language recognition technology, sign language recognition is performed based on single mode image information, resulting in low accuracy of recognition results and it is difficult to effectively communicate with deaf and mute people.

Method used

Using a method based on the Transformer model, combining the image embedding module and the key point embedding module, sign language recognition is performed through a feature processor, and image and key point data are fused to improve recognition accuracy.

Benefits of technology

By fusing images and key point data, the self-attention mechanism of the Transformer model is used to significantly improve the accuracy of sign language recognition, avoid the influence of key point noise, and enhance the model's expression ability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119007299A_ABST
    Figure CN119007299A_ABST
Patent Text Reader

Abstract

The invention discloses a sign language recognition method and device, a storage medium and a computer program product, and relates to the technical field of sign language recognition, the sign language recognition method performs sign language recognition based on a Transform model, and the Transform model comprises an image embedding module, a key point embedding module and a feature processor. The method comprises the following steps: acquiring at least one frame of target image to be subjected to sign language recognition; performing embedding processing on the target image through the image embedding module to obtain an image vector; extracting key points in the target image through the key point embedding module, and performing embedding processing on the key points to obtain key point vectors; and inputting the image vector and the key point vector into the feature processor to obtain a sign language recognition result. The accuracy of the sign language recognition result is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of sign language recognition, and in particular to a sign language recognition method, device, storage medium and computer program product. Background Art

[0002] Sign language is an important way for the deaf-mute to obtain and express information. The deaf-mute usually communicate with others through sign language, which requires both parties to understand sign language. However, it takes a lot of time and energy for normal people to learn sign language, so most normal people have low sign language skills and find it difficult to communicate with the deaf-mute. Therefore, intelligent sign language recognition is of great significance to the communication of the deaf-mute.

[0003] In traditional sign language recognition solutions, sign language recognition is performed based on single-modal image information. Specifically, after collecting the sign language video data of the signer, a deep learning model is used to recognize the sign language information in the sign language video data image to achieve sign language recognition. However, this sign language recognition method has the problem of low accuracy of sign language recognition results.

[0004] Therefore, how to improve the accuracy of sign language recognition results is a technical problem that needs to be solved urgently in this technical field. Summary of the invention

[0005] The main purpose of this application is to provide a sign language recognition method, device, storage medium and computer program product, aiming to solve the technical problem of how to improve the accuracy of sign language recognition results.

[0006] To achieve the above object, the present application provides a sign language recognition method, which performs sign language recognition based on a Transformer model. The Transformer model includes an image embedding module, a key point embedding module and a feature processor. The sign language recognition method includes the following steps:

[0007] Acquire at least one frame of target image for sign language recognition to be performed;

[0008] Performing embedding processing on the target image by the image embedding module to obtain an image vector;

[0009] Extracting key points in the target image through the key point embedding module, and embedding the key points to obtain key point vectors;

[0010] The image vector and the key point vector are input into the feature processor to obtain a sign language recognition result.

[0011] In one embodiment, the feature processor includes a position encoding module, an image encoder stack, a key point encoder stack and a generator, and the step of inputting the image vector and the key point vector into the feature processor to obtain a sign language recognition result includes:

[0012] Performing position encoding on the image vector and the key point vector by the position encoding module to obtain an input vector, wherein the input vector includes an image position encoding vector and a key point position encoding vector;

[0013] Inputting the image position encoding vector in the input vector into the image encoder stack to obtain an image encoding matrix;

[0014] Inputting the key point position encoding vector in the input vector into the key point encoder stack to obtain a key point encoding matrix;

[0015] The image coding matrix and the key point coding matrix are input into the generator to obtain the sign language recognition result.

[0016] In one embodiment, the generator includes a fusion module, a decoding module and a prediction head, and the step of inputting the image encoding matrix and the key point encoding matrix into the generator to obtain the sign language recognition result includes:

[0017] Performing weighted summation of the image coding matrix and the key point coding matrix through the fusion module to obtain a coding matrix;

[0018] Inputting the encoding matrix into the decoding module to obtain a decoding matrix, wherein the decoding module is used to perform decoding processing on the encoding matrix;

[0019] The decoding matrix is ​​input into the prediction head to obtain a sign language recognition result.

[0020] In one embodiment, the prediction head includes a pooling layer, a plurality of regularization layers and an output layer, and the step of inputting the decoding matrix into the prediction head to obtain the sign language recognition result includes:

[0021] Inputting the decoding matrix into the pooling layer to obtain a fusion vector;

[0022] Inputting the fused vector into each of the regularization layers respectively to obtain a regularization vector;

[0023] All the regularized vectors are input into the output layer to obtain the sign language recognition result.

[0024] In one embodiment, the output layer includes a plurality of fully connected layers and a prediction layer, the fully connected layers are connected to the regularization layers in a one-to-one correspondence, and the step of inputting all the regularization vectors into the output layer to obtain the sign language recognition result includes:

[0025] Input each of the regularized vectors into the corresponding fully connected layer to obtain a linear vector;

[0026] If the Transformer model is a pre-trained model, each of the linear vectors is converted into a probability distribution vector through the prediction layer, each of the probability distribution vectors is fused to obtain a target probability distribution vector, and a sign language recognition result is output based on the target probability distribution vector;

[0027] If the Transformer model is a model that has not been pre-trained, each of the linear vectors is converted into a probability distribution vector through the prediction layer, and a corresponding sign language recognition result is output based on each of the probability distribution vectors.

[0028] In one embodiment, the step of acquiring at least one frame of target image for sign language recognition to be performed includes:

[0029] Acquire video data to be subjected to sign language recognition, wherein the video data includes multiple frames of images;

[0030] For each frame of the image, identifying the elbow joint position and the wrist position of the arm based on the image, and calculating the invalid gesture value corresponding to the image based on the elbow joint position and the wrist position, wherein the invalid gesture value is positively correlated with the longitudinal distance between the elbow joint position and the wrist position;

[0031] An image whose invalid gesture value is less than a preset threshold is selected from the images as the target image.

[0032] In one embodiment, the arm elbow joint position includes a first horizontal coordinate and a first vertical coordinate, the wrist position includes a second horizontal coordinate and a second vertical coordinate, and the step of calculating the invalid gesture value corresponding to the image based on the arm elbow joint position and the wrist position includes:

[0033] Calculate the difference between the second horizontal coordinate and the first horizontal coordinate, and calculate the difference between the second vertical coordinate and the first vertical coordinate;

[0034] The ratio between the ordinate difference and the abscissa difference is calculated, and an arc tangent value of the ratio is determined as an invalid gesture value corresponding to the image.

[0035] In addition, to achieve the above-mentioned purpose, the present application also provides a sign language recognition device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the sign language recognition method as described above.

[0036] In addition, to achieve the above-mentioned purpose, the present application also provides a readable storage medium, which is a computer-readable storage medium, and a program for implementing the sign language recognition method is stored on the computer-readable storage medium. The program for implementing the sign language recognition method is executed by a processor to implement the steps of the sign language recognition method as described above.

[0037] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned sign language recognition method when executed by a processor.

[0038] One or more technical solutions proposed in this application have at least the following technical effects:

[0039] Based on the Transformer model, sign language recognition is performed. The Transformer model includes an image embedding module, a key point embedding module and a feature processor, and at least one frame of target image to be performed for sign language recognition is obtained; the target image is embedded by the image embedding module to obtain an image vector; the key points in the target image are extracted by the key point embedding module, and the key points are embedded to obtain a key point vector; the image vector and the key point vector are input to the feature processor to obtain a sign language recognition result. In this way, the embodiment of the present application embeds the target image to obtain an image vector, extracts the key points in the target image, and embeds the key points to obtain an image vector. It can be understood that the key point is actually represented as a coordinate, so that the image vector represents the data of the image modality, and the key point represents the data of the text modality, thereby fusing the image and the key point (actually the text data in the form of coordinates) two modal data for sign language recognition, rather than just using the image as a single modal data for sign language recognition, using the complementary advantages of the two modal data, jointly learning features, and avoiding the noise influence of the key point, thereby improving the accuracy of the sign language recognition result. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

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

[0042] Figure 1 This is a flow chart of the first embodiment of the sign language recognition method of the present application;

[0043] Figure 2 This is a schematic diagram of the processing flow of the image embedding module of the sign language recognition method of this application;

[0044] Figure 3 A schematic diagram of key points of a hand involved in an embodiment of a sign language recognition method of the present application;

[0045] Figure 4 This is a schematic diagram of the overall structure of the model involved in an embodiment of the sign language recognition method of the present application;

[0046] Figure 5 Another schematic diagram of the overall structure of the model involved in an embodiment of the sign language recognition method of the present application;

[0047] Figure 6 This is a simulation diagram of the model loss change curve experiment involved in an embodiment of the sign language recognition method of the present application;

[0048] Figure 7 This is a simulation diagram of the F1 index change curve experiment of the model involved in the first embodiment of the sign language recognition method of the present application;

[0049] Figure 8 This is a schematic diagram of the image s value involved in an embodiment of the sign language recognition method of the present application;

[0050] Fig. 9 Schematic diagram of the device structure of the hardware operating environment involved in the sign language recognition device in the embodiment of the present application.

[0051] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0052] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0053] Sign language video can be seen as an ordered sequence with a lot of redundant information. At present, the sign language recognition of the deaf-mute mainly includes sign language recognition based on single image information. This method uses a deep learning model to recognize the sign language information of the deaf-mute in the image. Usually, this method is greatly affected by the quality of sign language expression, and it is difficult to recognize sign language that is not particularly standardized. In addition, there is also sensor-based sign language recognition, which will identify the trajectory curve of the hand and match it with a pre-defined template to achieve sign language recognition, but this method usually requires the construction of enough very standard sign language trajectory templates, and usually requires the use of peripherals such as data gloves, which is highly dependent on the hardware environment.

[0054] Based on this, the main solution of the present application is: to perform sign language recognition based on the Transformer model, the Transformer model includes an image embedding module, a key point embedding module and a feature processor, to obtain at least one frame of target image to be recognized by the sign language; to embed the target image through the image embedding module to obtain an image vector; to extract the key points in the target image through the key point embedding module, and to embed the key points to obtain a key point vector; to input the image vector and the key point vector into the feature processor to obtain the sign language recognition result.

[0055] The present application embeds the target image to obtain an image vector, extracts key points in the target image, and embeds the key points to obtain an image vector. It can be understood that the key points are actually represented as a coordinate, and thus the image vector represents the data of the image modality, while the key points represent the data of the text modality, thereby fusing the two modalities of image and key points (actually text data in coordinate form) for sign language recognition, rather than just using the image as a single modality for sign language recognition. The complementary advantages of the two modalities of data are utilized to jointly learn features and avoid the noise influence of key points, thereby improving the accuracy of the sign language recognition results.

[0056] It should be noted that the execution subject of each embodiment of the sign language recognition method of the present application may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a sign language recognition device capable of realizing the above functions, such as AR (Augmented Reality) glasses, VR (Virtual Reality) glasses, smart glasses, robots, etc. The embodiments of the sign language recognition method of the present application do not impose specific restrictions on this.

[0057] Based on this, the present application proposes a sign language recognition method of the first embodiment, which performs sign language recognition based on a Transformer model. The Transformer model includes an image embedding module, a key point embedding module and a feature processor. Please refer to Figure 1 , the sign language recognition method comprises steps S10 to S40:

[0058] Step S10, obtaining at least one frame of target image for sign language recognition to be performed;

[0059] Considering that the Transformer model (deep learning model based on self-attention mechanism) has achieved significant breakthroughs in processing long sequence tasks compared to traditional recurrent neural networks, it introduces a self-attention mechanism, which enables the model to capture global dependencies and disperse information into multiple subspaces through multi-head attention technology, thereby significantly enhancing the expression and understanding capabilities of the model. The architectural advantage of the Transformer model lies in its equal treatment of all elements in the sequence, which enables the model to recognize and understand the rich semantic relationships between the elements in the sequence, especially in understanding the relationship between distant sequence elements. Based on this, the Transformer model (deep learning model based on self-attention mechanism) is used for sign language recognition in this embodiment.

[0060] The target image may specifically be an image captured in a sign language video, or may be a key frame image retained after key frame extraction is performed on the image in the sign language video after the sign language video is captured. Specifically, the key frame image in the image data may be extracted based on a key frame extraction algorithm based on shot boundaries (Shot Boundary Detection, SBD), and the key frame image (that is, the target image) may be retained in the sign language video while the non-key frame image may be deleted to improve the image quality in the target image.

[0061] Step S20, embedding the target image through the image embedding module to obtain an image vector;

[0062] Embedding refers to the process of converting input data (such as words, characters, sentences, or any serializable entities) into a fixed-length vector representation. Embedding is the basis for the model to understand the input data. After acquiring the target image, each frame of the target image is embedded. Specifically, refer to Figure 2 As shown, the embedding process of the target image can be as follows:

[0063] (1) First, all target images are scaled to a uniform size, such as 224×224×3, and then the images are divided into small patches. Each patch size is also the same size, such as 16×16×3, and then the small patches are arranged;

[0064] (2) Perform an Embedding operation on the arranged patches to obtain an image vector.

[0065] Step S30, extracting key points in the target image through the key point embedding module, and embedding the key points to obtain key point vectors;

[0066] The key point embedding module is used to extract the key points in the target image (actually the coordinates of the extracted key points). Specifically, the key points of the face and hands in the target image can be extracted. The key points of the hands are referred to as hand key points, and the key points of the face are referred to as facial key points. Specifically, a preset number of hand key points and a preset number of facial key points can be extracted. The preset number of facial key points may include eye key points (key points of the glasses), nose key points (key points of the nose), mouth key points (key points of the mouth), contour key points (key points of the facial contour), etc. In a specific embodiment, refer to Figure 3 As shown, based on the key frame image, 21 hand key points are extracted for one hand, and a total of 42 hand key points are extracted for both hands. At the same time, 58 facial key points are extracted. The 58 facial key points specifically include 17 contour key points, 12 eye key points, 9 nose key points and 20 mouth key points.

[0067] It can be understood that a key point can be represented by coordinates, so that each key point is actually represented as a coordinate.

[0068] After extracting the key points in the target image, the extracted key points are embedded to obtain the key point vector.

[0069] Step S40: input the image vector and the key point vector into the feature processor to obtain a sign language recognition result.

[0070] The feature processor is used to extract useful information from the image vector and the key point vector, convert it into a meaningful model internal representation, and generate a final output or make a prediction based on these representations. Relevant personnel can design the feature processor according to actual needs. In a specific implementation, the feature processor includes an encoder stack, a decoder stack and a prediction head connected in sequence.

[0071] For example, to help understand the technical concept or technical principle of the sign language recognition method in this embodiment, please refer to Figure 4 As shown, the Transformer model specifically includes an input module and a feature processor connected in sequence, wherein the feature processor includes an encoder stack, a decoder stack and a prediction head connected in sequence, wherein the encoder stack includes n layers of encoders (Encoder) connected in sequence, the decoder stack includes m layers of decoders (Decoder) connected in sequence, and the input module includes an image embedding (Embedding) module and a key point embedding module, and the image embedding module and the key point embedding module are respectively connected to the position encoding module.

[0072] Based on this Transformer model, after obtaining the target image, that is, Figure 4 The key frame extraction (KeyFrame Extraction, KEF) shown in the figure inputs the target image into the input module of the Transformer model. The image embedding module and the key point embedding module in the input module embed the image and the key point respectively, and then splices the outputs of the two embeddings. After passing through the position encoding, the n-layer encoder connected in sequence, the m-layer decoder connected in sequence and the prediction head in sequence, the final output of the model is obtained, that is, the sign language recognition result. It should be noted that the final output of the n-layer encoder connected in sequence is respectively input into each decoder of the m-layer decoder connected in sequence.

[0073] It should be noted that if the Transformer model is currently being trained, the training result labels (such as Figure 4 The "business license" shown in the figure, which is the expected output of the model, is embedded and positionally encoded in sequence and then input into the decoding module. At the same time, the target image corresponding to the result label is input into the input module. The sign language recognition model is trained based on the input of the result label and the input of the target image to obtain a trained Transformer model.

[0074] It should be noted that the above examples are only used to assist in understanding the present application and do not constitute a limitation on the sign language recognition method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0075] This embodiment performs sign language recognition based on the Transformer model, and the Transformer model includes an image embedding module, a key point embedding module and a feature processor, and obtains at least one frame of the target image to be recognized by the sign language; the target image is embedded by the image embedding module to obtain an image vector; the key points in the target image are extracted by the key point embedding module, and the key points are embedded to obtain the key point vector; the image vector and the key point vector are input to the feature processor to obtain the sign language recognition result. In this way, this embodiment embeds the target image to obtain the image vector, extracts the key points in the target image, and embeds the key points to obtain the image vector. It can be understood that the key point is actually represented as a coordinate, so that the image vector represents the data of the image modality, and the key point represents the data of the text modality, so as to fuse the data of the two modalities of image and key point (actually the text data in the form of coordinates) for sign language recognition, rather than just using the single modality data of the image for sign language recognition, and using the complementary advantages of the two modal data to learn features together, and can avoid the noise influence of the key point, thereby improving the accuracy of the sign language recognition result.

[0076] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated later. On this basis, the feature processor includes a position encoding module, an image encoder stack, a key point encoder stack and a generator, and the step of inputting the image vector and the key point vector into the feature processor to obtain the sign language recognition result includes:

[0077] Step A10, position encoding the image vector and the key point vector by the position encoding module to obtain an input vector, wherein the input vector includes an image position encoding vector and a key point position encoding vector;

[0078] Position coding refers to adding a piece of information about the position of each word in the sentence, also called "information fragment". Specifically, absolute position coding, relative position coding, etc. can be used, and this embodiment does not impose specific restrictions on this.

[0079] The position encoding module performs position encoding on the image vector and the key point vector respectively to obtain an input vector. The input vector includes an image position encoding vector and a key point position encoding vector. Specifically, the image position encoding vector is a vector obtained by position encoding the image vector, and the key point position encoding vector is a vector obtained by position encoding the key point vector.

[0080] Step A20, inputting the image position coding vector in the input vector into the image encoder stack to obtain an image coding matrix;

[0081] It should be noted that the image encoder stack is composed of one or more encoders connected in sequence. The image encoding matrix is ​​the output of the image encoder stack, that is, the output of the last layer of encoders in the image encoder stack.

[0082] Step A30, inputting the key point position encoding vector in the input vector into the key point encoder stack to obtain a key point encoding matrix;

[0083] It should be noted that the key point encoder stack is composed of one or more encoders connected in sequence, and the key point encoding matrix is ​​the output of the key point encoder stack, that is, the output of the last layer of encoder in the key point encoder stack.

[0084] The total number of layers of encoders in the key point encoder stack may be the same as or different from the total number of layers of encoders in the image encoder stack, and this embodiment does not impose any specific restrictions on this. In a preferred embodiment, the total number of layers of encoders in the image encoder is the same as the total number of layers of encoders in the key point encoder stack.

[0085] Step A40, inputting the image coding matrix and the key point coding matrix into the generator to obtain a sign language recognition result.

[0086] It should be noted that the function of the generator is to predict the output based on the processed input sequence, such as the image encoding matrix and the key point encoding matrix in this embodiment.

[0087] In the Transformer model, the prediction head (also called decoder head or output head) is a part of the model. After passing through the encoder and / or decoder stack, the prediction head maps these high-dimensional vectors to the dimensions of the target output space and is responsible for generating the final output. Therefore, in a specific embodiment, the generator includes a prediction head.

[0088] In this embodiment, an image encoder stack and a key point encoder stack are set to encode the image coding vector and the key point coding vector respectively, which is equivalent to using the encoder stack to encode the image data and the text data respectively. As a result, the characteristics of each data type can be better utilized to improve model performance and reduce computing costs. It is also easier to understand and explain the behavior of each encoder stack to enhance the interpretability and customizability of the model, and the image and text encoders can be tuned separately, which helps to stabilize the training process.

[0089] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first and second embodiments can be referred to the above description, and will not be described in detail later. On this basis, the generator includes a fusion module, a decoding module and a prediction head, and the step of inputting the image encoding matrix and the key point encoding matrix into the generator to obtain the sign language recognition result includes:

[0090] Step B10, performing weighted summation of the image coding matrix and the key point coding matrix through the fusion module to obtain a coding matrix;

[0091] The fusion module is connected to the image encoder stack and the key point encoder stack respectively to fuse the output of the image encoder stack with the output of the key point encoder stack.

[0092] Furthermore, the image coding matrix and the key point coding matrix can be weightedly fused based on the fusion weights corresponding to the image coding matrix and the key point coding matrix to obtain the coding matrix. For the setting of the fusion weights, the relevant personnel can set the fusion weights corresponding to the image coding matrix and the key point coding matrix respectively, or set the fusion weights corresponding to the image coding matrix and the key point coding matrix as model parameters, and optimize the fusion weights corresponding to the image coding matrix and the key point coding matrix during the Transformer model training process. This embodiment does not impose specific restrictions on this.

[0093] Let the fusion weight corresponding to the image coding matrix be p, the image coding matrix be IA, the fusion weight corresponding to the key point coding matrix be q, the key point coding matrix be KA, and the coding matrix be EA, then EA can be expressed by the formula EA=p*IA+q*KA. In a specific implementation, the sum of p and q is one.

[0094] Step B20, inputting the encoding matrix into the decoding module to obtain a decoding matrix, wherein the decoding module is used to perform decoding processing on the encoding matrix;

[0095] The decoding module receives the input coding matrix, and decodes the coding matrix to obtain an output sequence, namely a decoding matrix, and inputs the decoding matrix into the prediction head.

[0096] Relevant personnel can design a decoding module according to actual needs, and the decoding matrix is ​​the output of the decoding module. In a specific implementation, the decoding module can be a decoder stack composed of one or more decoders connected in sequence, and the decoding matrix is ​​the output of the decoder stack, that is, the output of the last layer of decoders in the decoder stack.

[0097] Step B30, inputting the decoding matrix into the prediction head to obtain a sign language recognition result.

[0098] It should be noted that the sign language recognition result is the output of the prediction head.

[0099] The prediction head in the Transformer model is used to convert the internal representation of the model into the final prediction output. In this embodiment, the prediction head is used to convert the decoding matrix into the final prediction output, that is, the sign language recognition result.

[0100] Relevant personnel can design a prediction head according to actual needs. In a specific implementation, the prediction head includes a pooling layer, a regularization layer (dropout), a fully connected layer and a softmax function connected in sequence, and finally predicts the output through the softmax function.

[0101] In a possible implementation, the prediction head includes a pooling layer, a plurality of regularization layers and an output layer, and the step of inputting the decoding matrix into the prediction head to obtain a sign language recognition result includes:

[0102] Step C10, inputting the decoding matrix into the pooling layer to obtain a fusion vector;

[0103] It should be noted that the fused vector is the output of the pooling layer.

[0104] The vector sequences in the feature matrix are fused through the pooling layer to aggregate the vectors into a fused vector of fixed dimension and fixed length.

[0105] The pooling layer aggregates the output sequence. After the sequence in the Transformer model is processed by the multi-layer self-attention mechanism and feedforward neural network in the encoder and decoder, a series of hidden states, that is, the representation vector of each position, are obtained. These representation vectors contain the semantic information of the input sequence. In order to aggregate these vectors into a vector representation of fixed dimension and fixed length, pooling operation is required.

[0106] The pooling layer may be an average pooling layer, a maximum pooling layer, a global pooling layer, etc., and this embodiment does not impose any specific restrictions on this. Considering that compared with other pooling operations, the average pooling operation performs an average operation on the sequence, so the overall characteristics of the sequence can be retained, not only the maximum and minimum characteristics in the sequence are considered, but also the overall trend and distribution are considered. Average pooling can also enhance robustness and reduce overfitting. Based on this, in a preferred embodiment, the pooling layer is specifically an average pooling layer.

[0107] Step C20, inputting the fused vector into each of the regularization layers to obtain a regularized vector;

[0108] It should be noted that the regularization vector is the output of the regularization layer.

[0109] Regularization (Dropout) is a technique that randomly "inactivates" (temporarily ignores) some neurons in a neural network during training. The inactivated neurons do not participate in the calculation during the current forward propagation and backpropagation processes. By randomly "inactivating" some neurons in the network during training, the network's dependence on specific training samples is reduced, thereby improving the model's generalization ability on unseen data.

[0110] The fusion vector is randomly inactivated through multiple regularization layers (Dropout) to obtain a regularized vector, that is, the fusion vector is input into each regularization layer respectively.

[0111] It should be noted that the discard ratio of each regularization layer may be the same or different, and this embodiment does not impose specific restrictions on this. Considering that different discard ratios can provide different regularization strengths, thereby improving the generalization ability of the model, and applying different discard ratios can increase the diversity of the model, so that the model can be trained under different configurations. This diversity helps the model to have better adaptability to unknown data when used, and different discard ratios can be customized to more flexibly control the training process of the model, which helps to find the best training strategy to balance the accuracy and generalization ability of the model. Based on this, in a preferred embodiment, the discard ratio of each regularization layer is different.

[0112] Among them, the discard ratio of the regularization layer refers to the proportion of neurons discarded by the regularization layer.

[0113] Step C30, inputting all the regularized vectors into the output layer to obtain the sign language recognition result.

[0114] It should be noted that the sign language recognition result is the output of the output layer.

[0115] Relevant personnel can design the output layer according to actual needs. In a specific implementation, the output layer includes a fully connected layer and a softmax function connected in sequence.

[0116] In a possible implementation, the output layer includes a plurality of fully connected layers and prediction layers, the fully connected layers are connected to the regularization layers in a one-to-one correspondence, and the step of inputting all the regularization vectors into the output layer to obtain the sign language recognition result includes:

[0117] Step D10, inputting each of the regularized vectors into the corresponding fully connected layer to obtain a linear vector;

[0118] It should be noted that the linear vector is the output of the full connection.

[0119] The number of fully connected layers is the same as that of regularized layers, and they are connected one-to-one. The fully connected layer performs feature integration processing on the regularized vector input therein to obtain a linear vector, and outputs the linear vector. Exemplarily, assuming that the i-th fully connected layer is connected to the i-th regularized layer, and the regularized vector output by the i-th regularized layer is Di, then Di is input to the i-th fully connected layer, and the i-th fully connected layer performs relevant processing on the input Di and outputs a linear vector Li. Among them, the value of i ranges from i to N, and N is the total number of regularized layers or fully connected layers.

[0120] Step D20, if the Transformer model is a pre-trained model, each of the linear vectors is converted into a probability distribution vector through the prediction layer, each of the probability distribution vectors is fused to obtain a target probability distribution vector, and a sign language recognition result is output based on the target probability distribution vector;

[0121] If the Transformer model for sign language recognition is currently used, that is, the Transformer model is a pre-trained model, the sign language recognition result is predicted based on the prediction layer. Specifically, each linear vector is input into the prediction layer to output the sign language recognition result.

[0122] It should be noted that the prediction layer includes a softmax function. After the linear vector is input to the softmax function, the softmax function will convert it into a probability distribution vector. After obtaining the probability distribution vectors corresponding to all linear vectors, all probability distribution vectors can be weighted and fused to obtain the target probability distribution vector. For example, the average value vector of all probability distribution vectors can be calculated (the average value of the element values ​​at the same element position in all probability distribution vectors is taken to obtain the vector), and the average value vector is determined to be the target probability distribution vector. After obtaining the target probability distribution vector, the final result can be output based on the target probability distribution vector, that is, the sign language recognition result.

[0123] Step D30, if the Transformer model is a model that has not been pre-trained, each of the linear vectors is converted into a probability distribution vector through the prediction layer, and a corresponding sign language recognition result is output based on each of the probability distribution vectors.

[0124] If the Transformer model for sign language recognition is currently being trained, that is, this Transformer model is a model that has not been pre-trained, then after the linear vector is input into the softmax function, the softmax function will convert it into a probability distribution vector, and obtain the probability distribution vectors corresponding to all linear vectors, and the sign language recognition results corresponding to all probability distribution vectors can be predicted respectively. It should be noted that at this time, each sign language recognition result can specifically be each probability distribution vector, that is, outputting the corresponding sign language recognition result based on each probability distribution vector can specifically be determining each probability distribution vector as a sign language recognition result and outputting the sign language recognition result.

[0125] Furthermore, in a possible implementation, the weight parameters of all fully connected layers are consistent, that is, the parameters of all fully connected layers are shared. In this way, the fully connected layer after the Dropout layer uses parameter sharing to reduce the number of model parameters, thereby reducing the amount of model computation, while also reducing the risk of overfitting.

[0126] To verify the performance of the Transformer model proposed in the embodiment of the present application, the cosine annealing learning rate is used in the training process of the Transformer model, and the maximum value of the learning rate is set to 1e-9 and the minimum value is set to 1e-10. The batch size of training is 8, the batch size of verification is 16, and a total of 200 epochs are trained. The loss change curve of the Transformer model on the training set is shown in Figure 2. Figure 6 As shown in Figure 2, the loss reaches a minimum of about 0.07 at around 32k steps. The F1 index of the Transformer model changes as shown in Figure 2. Figure 7 As shown in the figure, the F1 Score is the harmonic mean of the precision and recall of the classification model in machine learning. It is an indicator that comprehensively considers the precision and recall. The F1 score of the Transformer model proposed in the embodiment of the present application reaches 0.93, which shows that the Transformer model proposed in the embodiment of the present application has good sign language recognition accuracy. It should be noted that Figure 6 to Figure 7 Group 1, group 2, group 3, group 4 and group 5 shown in the figure represent 5 groups, which means that 5 training subsets are obtained by grouping the training set.

[0127] For example, to help understand the technical concept or technical principle of the Transformer model after combining this embodiment with the first embodiment and the second embodiment, please refer to Figure 5As shown, the Transformer model specifically includes an input module, an encoding module, a decoding module and a prediction head connected in sequence, wherein the encoding module includes an image encoder stack, a key point encoder stack and a fusion module, the image encoder stack includes n layers of encoders (EncoderVD) connected in sequence, the key point encoder stack includes n layers of encoders (Encoder KP) connected in sequence, the decoding module includes m layers of decoders (Decoder) connected in sequence, the input module includes an image embedding (Embedding) module and a key point embedding module, and the image embedding module and the key point embedding module are respectively connected to the position encoding module.

[0128] The fusion module performs weighted fusion on the outputs of the image encoder stack and the key point encoder stack, and inputs the fusion results into each decoder of the decoder module. Specifically, the fusion weight corresponding to the image encoding matrix output by the image encoder stack is α, and the fusion weight corresponding to the key point encoding matrix output by the key point encoder stack is 1-α. The image encoding matrix and the key point encoding matrix are weightedly fused based on their respective fusion weights.

[0129] It should be noted that the above examples are only used to assist in understanding the present application and do not constitute a limitation on the Transformer model structure of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0130] Based on the first embodiment, the second embodiment and / or the third embodiment of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the first embodiment, the second embodiment and the third embodiment can be referred to the above introduction, and will not be repeated in the following. On this basis, the step of obtaining at least one frame of target image to be recognized by sign language includes:

[0131] Step E10, obtaining video data to be subjected to sign language recognition, wherein the video data includes multiple frames of images;

[0132] The video data is specifically a sign language video collected for a certain length of time. It can be understood that the video is composed of multiple frames of images. For example, when a camera collects video, it collects images at a preset frame rate to obtain video data.

[0133] Furthermore, after acquiring the video data, all images included in the video data may be preprocessed, and subsequent steps may be performed based on the preprocessed video data to further improve the quality of the images in the video data. The image preprocessing includes, but is not limited to, deleting images whose clarity is less than a certain preset threshold, deleting images whose illumination intensity is less than a certain preset threshold, deleting the preset frame image at the start position (deleting the starting preset frame image in the video data), deleting the preset frame image at the end position (deleting the last preset frame image in the video data), etc., and this embodiment does not impose specific restrictions on this.

[0134] In addition, considering that during the process of signing, the arms and body of each signer will form a certain angle, this feature can be used to indicate the end of the sign language switch. 1 ,y 1 ) is the position of the elbow joint, (x 2 ,y 2 ) is the wrist position. The angle formed by these two points and the angle s in the direction of gravity acceleration can represent the on / off status of the sign language action. When signing, s is usually less than a certain value (such as 150, 160, etc.), while when not signing, s is usually greater than or equal to the certain value. Figure 8 As shown in the figure, by counting the s values ​​of a large number of sign language videos of the same length, it is found that the horizontal axis is the video frame, the vertical axis is the s value, the left image is the s value of the left-hand video frame, and the right image is the s value of the right-hand video frame. Generally, for sign language videos, the s value starts to be less than 150 after the 50th frame. At the same time, in the corresponding video clip, the subject starts to make movements at this moment, and the movements end after about 300 frames. Therefore, the first 50 frames of images and the images after 300 frames in the video data can be deleted, thereby reducing the blank frames at the beginning and end of the video data.

[0135] Step E20, for each frame of the image, identifying the elbow joint position and the wrist position of the arm based on the image, and calculating the invalid gesture value corresponding to the image based on the elbow joint position and the wrist position, wherein the invalid gesture value is positively correlated with the longitudinal distance between the elbow joint position and the wrist position;

[0136] It should be noted that the arm elbow joint position may specifically be the position of the arm elbow joint in a preset coordinate system. Similarly, the wrist position may specifically be the position of the wrist in this preset coordinate system.

[0137] The preset coordinate system may be any coordinate system constructed. For example, the preset coordinate system may be a coordinate system established with any point as the coordinate origin, the vertical direction as the y-axis, and the horizontal direction as the x-axis.

[0138] Step E30: Select an image whose invalid gesture value is less than a preset threshold from the images as a target image.

[0139] The target image may be an image in which all invalid gesture values ​​are less than a preset threshold value.

[0140] In the process of signing, the arm and body of the signer will form a certain angle. When signing, the longitudinal distance between the two points is usually smaller, while when not signing, the longitudinal distance between the two points is usually larger, where the longitudinal distance refers to the distance in the direction of gravity acceleration. Therefore, based on the calculation of the invalid gesture value corresponding to the image based on the elbow joint position and the wrist position of the arm, specifically, the invalid gesture value is positively correlated with the longitudinal distance between the two. The invalid gesture value evaluated in this way can effectively characterize the probability that each image contains invalid sign language content.

[0141] It should be noted that an image containing invalid sign language content means that the hand gestures in the image are sign language gestures that do not have actual sign language meanings.

[0142] In a possible implementation, the arm elbow joint position includes a first horizontal coordinate and a first vertical coordinate, the wrist position includes a second horizontal coordinate and a second vertical coordinate, and the step of calculating the invalid gesture value corresponding to the image based on the arm elbow joint position and the wrist position includes:

[0143] Step F10, calculating the abscissa difference between the second abscissa and the first abscissa, and calculating the ordinate difference between the second ordinate and the first ordinate;

[0144] Let the position of the elbow joint be (x1, y1), x1 represents the first horizontal coordinate, x2 represents the first vertical coordinate, and the wrist position be (x2, y2), x2 represents the second horizontal coordinate, y2 represents the second vertical coordinate. Then the horizontal axis coordinate difference can be expressed as (x2-x1), and the vertical axis coordinate difference can be expressed as (y2-y1).

[0145] Step F20, calculating the ratio between the ordinate difference and the abscissa difference, and determining the arc tangent of the ratio as the invalid gesture value corresponding to the image.

[0146] The ratio between the ordinate difference and the abscissa difference may be specifically the ordinate difference divided by the abscissa difference. Let the invalid gesture value be s. Then the invalid gesture value corresponding to the image may be expressed by the formula:

[0147] In this embodiment, target images whose invalid gesture values ​​are less than a preset threshold are screened out from all images, so that sign language recognition results can be obtained by subsequent sign language recognition based on the target images. That is, high-quality target images with a high probability of containing valid sign language content are screened out from the video data, and low-value meaningless images are deleted, thereby reducing the interference of meaningless images on the recognition results and further improving the accuracy of the sign language recognition results.

[0148] In addition, an embodiment of the present application also proposes a sign language recognition device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the sign language recognition method as described above.

[0149] As shown in reference 9, a schematic diagram of the structure of a sign language recognition device suitable for implementing an embodiment of the present application is shown. The sign language recognition device in the embodiment of the present application may also include, but is not limited to, mobile terminals such as AR glasses, robots, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The sign language recognition device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0150] like Fig. 9As shown, the sign language recognition device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the sign language recognition device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the sign language recognition device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a sign language recognition device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0151] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0152] The sign language recognition device provided in the embodiment of the present application adopts the sign language recognition method in the above embodiment, which can solve the technical problem of how to improve the accuracy of the sign language recognition result. Compared with the prior art, the beneficial effects of the sign language recognition device provided in the present application are the same as the beneficial effects of the sign language recognition method provided in the above embodiment, and the other technical features in the sign language recognition device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0153] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0154] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0155] In addition, to achieve the above-mentioned purpose, an embodiment of the present application also provides a readable storage medium having computer-readable program instructions (ie, computer program) stored thereon, and the computer-readable program instructions are used to execute the sign language recognition method in the above-mentioned embodiment.

[0156] The computer-readable storage medium provided in the embodiment of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, 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: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0157] The computer-readable storage medium may be included in the sign language recognition device; or may exist independently without being assembled into the sign language recognition device.

[0158] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the sign language recognition device, the sign language recognition device performs sign language recognition based on the Transformer model: obtains at least one frame of target image to be performed on the sign language recognition; embeds the target image through the image embedding module in the Transformer model to obtain an image vector; extracts key points in the target image through the key point embedding module in the Transformer model, and embeds the key points to obtain a key point vector; inputs the image vector and the key point vector into the feature processor in the Transformer model to obtain the sign language recognition result.

[0159] Computer program code for performing the operations of the present application 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 separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of 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).

[0160] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the 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 square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0161] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0162] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned sign language recognition method, and can solve the technical problem of how to improve the accuracy of the sign language recognition result. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the sign language recognition method provided in the above-mentioned embodiment, and will not be repeated here.

[0163] In addition, an embodiment of the present application also proposes a computer program product, including a sign language recognition program, which implements the steps of the sign language recognition method described above when executed by a processor.

[0164] The specific implementation methods of the computer program product of the present application are basically the same as the above-mentioned embodiments of the sign language recognition method, and will not be repeated here.

[0165] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0166] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0167] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software sensor, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, including a number of instructions for a terminal device (which can be a mobile phone, computer, server or network device, etc.) to execute the methods described in each embodiment of the present application.

[0168] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A sign language recognition method, characterized in that: The sign language recognition method performs sign language recognition based on a Transformer model, wherein the Transformer model includes an image embedding module, a key point embedding module, and a feature processor. The sign language recognition method includes the following steps: Acquire at least one frame of target image for sign language recognition to be performed; Performing embedding processing on the target image by the image embedding module to obtain an image vector; Extracting key points in the target image through the key point embedding module, and embedding the key points to obtain key point vectors; The image vector and the key point vector are input into the feature processor to obtain a sign language recognition result.

2. The sign language recognition method according to claim 1, characterized in that: The feature processor includes a position encoding module, an image encoder stack, a key point encoder stack and a generator, and the step of inputting the image vector and the key point vector into the feature processor to obtain a sign language recognition result includes: Performing position encoding on the image vector and the key point vector by the position encoding module to obtain an input vector, wherein the input vector includes an image position encoding vector and a key point position encoding vector; Inputting the image position encoding vector in the input vector into the image encoder stack to obtain an image encoding matrix; Inputting the key point position encoding vector in the input vector into the key point encoder stack to obtain a key point encoding matrix; The image coding matrix and the key point coding matrix are input into the generator to obtain the sign language recognition result.

3. The sign language recognition method according to claim 2, characterized in that: The generator includes a fusion module, a decoding module and a prediction head. The step of inputting the image encoding matrix and the key point encoding matrix into the generator to obtain a sign language recognition result includes: Performing weighted summation of the image coding matrix and the key point coding matrix through the fusion module to obtain a coding matrix; Inputting the encoding matrix into the decoding module to obtain a decoding matrix, wherein the decoding module is used to perform decoding processing on the encoding matrix; The decoding matrix is ​​input into the prediction head to obtain a sign language recognition result.

4. The sign language recognition method according to claim 3, characterized in that: The prediction head includes a pooling layer, a plurality of regularization layers and an output layer. The step of inputting the decoding matrix into the prediction head to obtain a sign language recognition result includes: Inputting the decoding matrix into the pooling layer to obtain a fusion vector; Inputting the fused vector into each of the regularization layers respectively to obtain a regularization vector; All the regularized vectors are input into the output layer to obtain the sign language recognition result.

5. The sign language recognition method according to claim 4, characterized in that: The output layer includes a plurality of fully connected layers and a prediction layer, the fully connected layers are connected to the regularization layers in a one-to-one correspondence, and the step of inputting all the regularization vectors into the output layer to obtain the sign language recognition result includes: Input each of the regularized vectors into the corresponding fully connected layer to obtain a linear vector; If the Transformer model is a pre-trained model, each of the linear vectors is converted into a probability distribution vector through the prediction layer, each of the probability distribution vectors is fused to obtain a target probability distribution vector, and a sign language recognition result is output based on the target probability distribution vector; If the Transformer model is a model that has not been pre-trained, each of the linear vectors is converted into a probability distribution vector through the prediction layer, and a corresponding sign language recognition result is output based on each of the probability distribution vectors.

6. The sign language recognition method according to any one of claims 1 to 5, characterized in that: The step of acquiring at least one frame of target image for sign language recognition to be performed includes: Acquire video data to be subjected to sign language recognition, wherein the video data includes multiple frames of images; For each frame of the image, identifying the elbow joint position and the wrist position of the arm based on the image, and calculating the invalid gesture value corresponding to the image based on the elbow joint position and the wrist position, wherein the invalid gesture value is positively correlated with the longitudinal distance between the elbow joint position and the wrist position; An image whose invalid gesture value is less than a preset threshold is selected from the images as the target image.

7. The sign language recognition method according to claim 6, characterized in that: The arm elbow joint position includes a first horizontal coordinate and a first vertical coordinate, the wrist position includes a second horizontal coordinate and a second vertical coordinate, and the step of calculating the invalid gesture value corresponding to the image based on the arm elbow joint position and the wrist position includes: Calculate the difference between the second horizontal coordinate and the first horizontal coordinate, and calculate the difference between the second vertical coordinate and the first vertical coordinate; The ratio between the ordinate difference and the abscissa difference is calculated, and an arc tangent value of the ratio is determined as an invalid gesture value corresponding to the image.

8. A sign language recognition device, characterized in that: The sign language recognition device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the sign language recognition method according to any one of claims 1 to 7.

9. A readable storage medium, characterized in that: The readable storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the sign language recognition method according to any one of claims 1 to 7 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the sign language recognition method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Dynamic gesture recognition method and device, equipment and storage medium

    CN117671792A

  • Gesture recognition method, electronic equipment and storage medium

    CN118366214A