Sign language basic hand shape recognition method

By starting from the sign language structure, identifying the basic hand shape and palm direction of sign language, and using MediaPipe and SVM models, we solve the problem that existing sign language recognition methods are difficult to accurately identify sign language movements, and improve the accuracy of sign language recognition and the convenience of communication.

CN118762399AActive Publication Date: 2024-10-11OCEAN UNIV OF CHINA
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410953488.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-10-11
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

Existing sign language recognition methods use words as the smallest semantic unit and cannot effectively utilize the phonological structure of sign language, which increases the difficulty of recognition. Moreover, the vocabulary of sign language is large and complex, making it difficult to accurately identify sign language movements.

Method used

Starting from the phonological structure of sign language, the sign language elements are divided into hand shape, position, movement, palm orientation and non-manual control information. MediaPipe is used to extract hand joint point data, the finger joints and inter-finger angles are calculated, and the SVM model is used to conduct basic sign language analysis. Recognition of hand shape and palm orientation.

Benefits of technology

By recognizing the basic hand shape and palm direction of sign language, it improves the accuracy of recognition of sign language movements, adapts to the complex structure of sign language, and enhances the convenience of communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0004947900880000012
    Figure BDA0004947900880000012
  • Figure BDA0004947900880000032
    Figure BDA0004947900880000032
  • Figure FDA0004947900870000012
    Figure FDA0004947900870000012
Patent Text Reader

Abstract

The invention provides a sign language basic hand shape recognition method, which comprises the following steps of: acquiring multiple frames of sign language basic hand shape images, and extracting hand joint point data in the images through MediaPipe; calculating finger joint angle and inter-finger angle data according to the extracted joint point data set; establishing a classification model by adopting an SVM method; reading a sign language video to be recognized, and extracting hand articulation points in continuous multiple frames of sign language images through MediaPipe; finger joint angles, inter-finger angle data and palm direction data are calculated frame by frame; and inputting the angle data into a pre-trained SVM model to obtain a corresponding sign language basic hand shape and a hand shape direction. According to the embodiment of the invention, the basic hand shape can be identified more accurately, sign language actions can be understood, and the accuracy of basic hand shape identification is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent recognition technology, and in particular to a method for recognizing basic hand shapes of sign language. Background Art

[0002] Sign language is a special communication language and an important tool for the hearing-impaired to communicate with other groups in society. An efficient and accurate sign language recognition method is needed to help the hearing-impaired communicate more conveniently and improve their social skills and quality of life.

[0003] The inventors of the present application have found in their research that the existing sign language recognition methods mainly use words as the smallest semantic unit in sign language, and classify the input sign language words through a large number of collected hand movement images. The development of image processing technology and deep learning has brought more and more efficient and accurate methods to sign language recognition. However, this method of using words as the smallest semantic unit does not conform to the phonological structure of sign language. At the same time, the characteristics of sign language such as large vocabulary and high complexity have increased the difficulty of sign language recognition. Therefore, based on the phonological structure of sign language, the elements that constitute sign language can be divided into five categories: hand shape, position, movement, direction of the palm or fingers, and non-hand control information. Summary of the invention

[0004] In view of the above problems, the purpose of the present invention is to provide a method for recognizing basic hand shapes in sign language, which can recognize hand shape elements and palm orientation elements in sign language and help recognize sign language movements.

[0005] To achieve the above object, the present invention adopts the following technical solutions:

[0006] A method for recognizing basic hand shapes of sign language comprises the following steps:

[0007] Step 1: Collect multiple frames of basic sign language hand shape images and extract hand joint data in the image through MediaPipe

[0008] Step 2: Calculate the finger joint angle and inter-finger angle data based on the extracted joint point data set.

[0009] Where: (x i-1 ,y i-1 ) is the coordinate of the previous joint point, (x i ,y i ) is the coordinate of the current joint point, (x i+1 ,y i+1 ) are the coordinates of the next joint point.

[0010] Angle between fingers

[0011] Where: P 1 ,P 2 It is the metacarpophalangeal joint and distal interphalangeal joint of the front finger; Q 1 ,Q 2 It is the metacarpophalangeal joint and distal interphalangeal joint of the posterior finger.

[0012] Step 3: Use the SVM method to build a model by calling the sklearn package in Python. When building a model, select the training set and the test set. First, call the svm function to train the training set, save the built SVM model to svm_model, test the test set by calling the predict function, calculate the accuracy of the SVM model on the test set, and adjust the penalty parameter, kernel function coefficient, and maximum iteration coefficient in the SVM model according to the accuracy.

[0013] Step 4: Read the sign language video to be recognized and extract the hand joint points in multiple consecutive sign language image frames through MediaPipe.

[0014] Step 5: Calculate the finger joint angles, inter-finger angle data, and palm direction data frame by frame. Taking the left hand as an example, the palm direction classification rules are as follows:

[0015] n=u×v=(u y v z -u z v y ,u z v x -u x v z ,u x v y -u y v x ,)=(n x ,n y ,n z )

[0016] max_component = max(|n x |,|n y |,|n z |)

[0017] When max_component=|n x |, and n x >0, palms facing inward;

[0018] When max_component=|n x |, and n x When ≤0, the palm faces outward;

[0019] When max_component=|n y |, and n y >0, palm facing up;

[0020] When max_component=|n y |, and n y When ≤0, the palm is facing downward;

[0021] When max_component=|n z |, and n z >0, palm facing forward;

[0022] When max_component=|n z |, and n z When ≤0, the palm is facing backward;

[0023] Where: u = p 1 -p o , v = p 2 -p o , p o is the wrist joint, p 1 The metacarpophalangeal joint of the index finger of the hand, p 2 The metacarpophalangeal joint of the little finger of the hand;

[0024] Step 6: Input the palm joint angle data to be identified into the trained classification model svm_model, output the corresponding sign language basic hand shape and hand shape direction, and the recognition result is text.

[0025] The beneficial effects of the present invention are as follows: starting from the phonological structure of sign language, the hand shape elements and palm direction elements in sign language are identified, which helps to more accurately identify sign language movements. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 The basic hand shape diagram of sign language in the embodiment of the present invention is

[0027] Figure 2 The palm orientation diagram in the embodiment of the present invention is

[0028] Figure 3 This is a schematic diagram of the overall technical process of the basic hand shape recognition method of sign language according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 belong to the scope of protection of the present invention.

[0030] Step 1: A method for recognizing basic hand shapes in sign language according to an embodiment of the present invention includes collecting basic hand shape pictures, wherein the pictures are basic hand shape pictures taken by 9 people, and each person takes 10 pictures of each hand shape. 21 joint point coordinates of the hand in the picture are extracted through MediaPipe, including: wrist joint coordinates, thumb wrist joint coordinates, thumb metacarpophalangeal joint coordinates, thumb interphalangeal joint coordinates, thumb fingertip joint coordinates, index finger metacarpophalangeal joint coordinates, index finger proximal interphalangeal joint coordinates, index finger distal interphalangeal joint, index fingertip joint coordinates, middle finger metacarpophalangeal joint coordinates, middle finger proximal interphalangeal joint coordinates, middle finger distal interphalangeal joint, middle fingertip joint coordinates, ring finger metacarpophalangeal joint coordinates, ring finger proximal interphalangeal joint coordinates, ring finger distal interphalangeal joint, ring fingertip joint coordinates, little finger metacarpophalangeal joint coordinates, little finger proximal interphalangeal joint coordinates, little finger distal interphalangeal joint, little fingertip joint coordinates.

[0031] Step 2: Calculate the finger joint angle and inter-finger angle data based on the extracted joint point data set.

[0032] Where: (x i-1 ,y i-1 ) is the coordinate of the previous joint point, (x i ,y i ) is the coordinate of the current joint point, (x i+1 ,y i+1 ) are the coordinates of the next joint point.

[0033] Angle between fingers

[0034] Where: P 1 ,P 2 It is the metacarpophalangeal joint and distal interphalangeal joint of the front finger; Q 1 ,Q 2 The metacarpophalangeal joint and distal interphalangeal joint of the posterior finger;

[0035] According to the above calculation, the hand joint angle θ is obtained i ={θ i |i=12,3,…,14} and the angle β between fingers i ={β i |i=12,3,4}

[0036] Step 3: Establish a classification model. Use the SVM method to establish a classification model. In Python, call the sklearn package to complete the entire modeling process. In modeling, you first need to select a training set and a test set. Here, all the data are shuffled, and 80% of the data are selected as the training set, and the remaining 20% ​​of the data are selected as the test set. In the training set, you need to prepare a train_data variable to represent the explanatory variables, including the hand joint angles and the angles between fingers. You also need to have a train_labe variable to represent the explained variables, that is, the basic hand shape variables of sign language. It should be noted that the train_labe variable can only be one column of data, and the train_data variable can be multiple columns of data, each column of data represents an angle, and the number of rows of the train_data and train_lable variables should be the same. The SVC function needs to be called during training, and the training statement is: clf = svm.SVC (C = 39, gamma = 1e-04, max_iter = 12). C, gamma, and max_iter in the statement can be adjusted according to the actual situation. After the training is completed, the established SVM model is saved in svm_model. Next, use the established SVM model svm_model to test the test set. The predict function is called during the test, and the test statement is: train_result = clf.predict(train_data). After the test is completed, the test result is printed out, that is, the classification accuracy.

[0037] Step 4: Then read the sign language video to be recognized, and extract the hand joint points in multiple consecutive frames of sign language images through MediaPipe.

[0038] Step 5: Calculate the finger joint angles, inter-finger angles, and palm direction data based on the joint point data. Taking the left hand as an example, the palm direction classification rules are as follows:

[0039] n=u×v=(y y v z -u z v y ,y y v z -u x v z ,u x v y -u y v x ,)=(n x ,n y ,n z )

[0040] max_component = max(|n x |,|ny |,|n z |)

[0041] When max_component=|n x |, and n x >0, palms facing inward;

[0042] When max_component=|n x |, and n x When ≤0, the palm faces outward;

[0043] When max_component=|n y |, and n y >0, palm facing up;

[0044] When max_component=|n y |, and n y When ≤0, the palm is facing downward;

[0045] When max_component=|n z |, and n z >0, palm facing forward;

[0046] When max_component=|n z |, and n z When ≤0, the palm is facing backward;

[0047] Where: u = p 1 -p o , v = p 2 -p o , p o is the wrist joint, p 1 The metacarpophalangeal joint of the index finger of the hand, p 2 The metacarpophalangeal joint of the little finger of the hand;

[0048] Step 6: Input the obtained finger joint angle data and inter-finger angle data into the trained classification model svm_model, output the corresponding sign language basic hand shape and hand shape direction, and finally recognize the result as text.

Claims

1. A method for basic hand shape recognition in sign language, It is characterized in that The following steps are included: Step 1: Collect multiple frames of basic sign language hand shape images and extract the hand joint point data in the image through MediaPipe; Step 2: Calculate the finger joint angle and inter-finger angle data based on the extracted joint point data set. The calculation formula is as follows: Where: (x i-1 ,y i-1 ) is the coordinate of the previous joint point, (x i ,y i ) is the coordinate of the current joint point, (x i+1 ,y i+1 ) are the coordinates of the next joint point. Where: P 1 , P 2 It is the metacarpophalangeal joint and distal interphalangeal joint of the front finger; Q 1 , Q 2 The metacarpophalangeal joint and distal interphalangeal joint of the posterior finger; Step 3: Establish a classification model. Use the SVM method to establish a classification model. When building a model, select a training set and a test set. First, train the training set by calling the svm function, save the built SVM model to svm_model, test the test set by calling the predict function, and calculate the accuracy of the SVM model on the test set. Step 4: Read the sign language video to be recognized and extract the hand joint points in multiple consecutive sign language image frames through MediaPipe; Step 5: Calculate the finger joint angles, inter-finger angle data, and palm direction data frame by frame. Taking the left hand as an example, the palm direction classification rules are as follows: n=u×v=(u y v z -u z v y ,u z v x -u x v z ,u x v y -u y v x ,)=(n x ,n y ,n z ) max_component=max(|n x |,|n y |,|n z |) When max_component=|n x |, and n x >0, palms facing inward; When max_component=|n x |, and n x When ≤0, the palm faces outward; When max_component = |ny|, and n y >0, palm facing up; When max_component=|n y |, and n y When ≤0, the palm is facing downward; When max_component=|n z |, and n z >0, palm facing forward; When max_component=|n z |, and n z When ≤0, the palm faces backward; Where: u = p 1 -p o , v = p 2 -p o , p o is the wrist joint, p 1 The metacarpophalangeal joint of the index finger of the hand, p 2 The metacarpophalangeal joint of the little finger of the hand; Step 6: Input the palm joint angle data to be identified into the trained classification model svm_model, output the corresponding sign language basic hand shape and hand shape direction, and the recognition result is text.

2. The method for recognizing basic hand shapes of sign language according to claim 1, It is characterized in that There are 61 basic sign language hand shapes collected in step 1.

3. The method for recognizing basic hand shapes of sign language according to claim 1, It is characterized in that The hand joint point data collected in step 1 includes the hand joint point data of the collector w = {w left , w right },in: These data are collected through the multihand_landmarks function in Mediapipe, and the results are saved in featureCode.txt.

4. The method for recognizing basic hand shapes of sign language according to claim 1, It is characterized in that The joint angle data obtained in step 2 is used to remove outliers through the local outlier factor algorithm.

5. The method for recognizing basic hand shapes of sign language according to claim 1, It is characterized in that In step 4, the training set, the train_data variable represents the explanatory variable, including the angle variables of each joint point of the hand and the angle variables between fingers, and the train_label variable represents the explained variable, that is, the basic hand shape variable of sign language.

6. The method for recognizing basic hand shapes of sign language according to claim 1, It is characterized in that In step 5, the video is read through the VideoCapture function of cv2 to obtain the palm joint point data frame by frame.

7. The method for recognizing basic hand shapes of sign language according to claim 1, It is characterized in that Step S7 calls the pre-trained svm_model to obtain the corresponding basic sign language hand shapes, and converts the basic sign language hand shapes into text through dictionary.txt.

Citation Information

Patent Citations

  • Sign language recognition system based on sensing equipment and working method thereof

    CN110390281A

  • Sign language recognition method and device

    CN114821761A

  • Gesture recognition system based on deep learning

    CN115713808A

  • Finger motion tracking system and method

    CN117215411A