A sign language recognition method based on machine vision

By identifying the skeletal key points in sign language videos and the fusion of convolutional neural networks, it solves the problems of background noise influence and insufficient data in existing sign language recognition technology, improves recognition accuracy, enhances the scope and accuracy of sign language recognition, and promotes communication between deaf-mute people and normal people.

CN114282593BActive Publication Date: 2024-09-27NANJING UNIV OF INFORMATION SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111386047.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-22
Publication Date
2024-09-27
Estimated Expiration
2041-11-22

AI Technical Summary

Technical Problem

Existing vision-based sign language recognition technology has shortcomings in recognition accuracy and range, especially due to the influence of background noise and insufficient human body data, which makes it difficult for deaf-mute people to communicate with normal people, especially when seeing a doctor, it is difficult to communicate effectively.

Method used

Using a sign language recognition method based on machine vision, the two-dimensional skeleton recognition model OpenPos is used to identify the key points of bones in the sign language video, crop the image to remove the background, and combine the convolutional neural network and Bi-LSTM network to fuse pixel features and bone features to improve Recognition accuracy.

Benefits of technology

By identifying the movement and positional characteristics of both arms, the scope of sign language recognition is expanded, the recognition accuracy is improved, the amount of calculation is reduced, the sign language recognition ability is enhanced, and communication between deaf-mute people and normal people is promoted.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114282593B
    Figure CN114282593B
Patent Text Reader

Abstract

The invention discloses a sign language recognition method based on machine vision in the field of sign language recognition, comprising: constructing upper limb bone data according to a sign language video to be recognized; obtaining a detection image containing upper limbs and without background; calculating pixel features of the detection image and bone features of upper limb bone data; extracting pixel features and bone features respectively through a convolutional neural network to obtain pixel recognition features and bone recognition features; obtaining a recognition vector according to the pixel recognition features and the bone recognition features; and inputting the recognition vector into a softmax layer to obtain a result vector, wherein the sign language vocabulary corresponding to the element with the largest value in the result vector is the recognition result. The invention increases the scope of sign language recognition and improves the accuracy of sign language recognition by recognizing the movement and position features of both arms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of sign language recognition, and in particular relates to a sign language recognition method based on machine vision. Background Art

[0002] With the development and improvement of sign language, deaf-mute people can communicate easily through sign language, but the communication between deaf-mute people and normal people is still very difficult, which leads to the lack of normal interaction with society, which has become a major obstacle to the normal life of deaf-mute people. The problem of difficulty in seeing a doctor for deaf-mute people has always existed. Now deaf-mute people basically need the help of sign language interpreters to see a doctor normally. Generally, deaf-mute people will not go to the hospital when they are sick. They will only choose to go to the hospital when they are really unbearable. The reason is that it is very difficult to communicate with the doctor. According to statistics from the World Federation of the Deaf, there are 70 million deaf people in the world. Therefore, it is an imperative research topic to remove the obstacles to communication between deaf-mute people and normal people, promote their integration into society, and solve their problem of difficulty in seeing a doctor.

[0003] For vision-based sign language recognition, researchers need to select appropriate data for research. For example, SalehAly et al. chose to use only hand images as data in their 2020 study. Therefore, the disadvantage of their research is that too little human body data was used, and the background noise contained in the video data had a certain impact on the recognition accuracy, resulting in inaccurate recognition of sign language and incomplete sign language recognition. Summary of the invention

[0004] The purpose of the present invention is to provide a sign language recognition method based on machine vision, which increases the range of sign language recognition, removes background noise, and improves the accuracy of sign language recognition by identifying the movement and position characteristics of both arms.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is:

[0006] The present invention provides a sign language recognition method based on machine vision, comprising:

[0007] Get the sign language video to be recognized, use the two-dimensional skeleton recognition model OpenPos to recognize the skeleton key points of each frame of the portrait in the sign language video, and construct the upper limb skeleton data;

[0008] Crop each frame of the original image in the sign language video according to the upper limb skeleton data, and remove the background from the cropped image to obtain a detection image containing the upper limb and without the background;

[0009] Calculate and obtain pixel features of the detection image and bone features of upper limb bone data;

[0010] The pixel features and the bone features are extracted respectively through the convolutional neural network to obtain the pixel recognition features and the bone recognition features;

[0011] The pixel recognition features and the skeleton recognition features are fused and input into the Bi-LSTM network to obtain the recognition vector;

[0012] Then the recognition vector is input into the softmax layer to obtain the result vector. The sign language vocabulary corresponding to the element with the largest value in the result vector is the recognition result.

[0013] Preferably, the method for removing the background of the cropped original image includes:

[0014] The preset semantic segmentation model DeepLabV3+ is used to remove the background of the cropped image; among them, the backbone network Xception of the preset semantic segmentation model DeepLabV3+ is replaced by MobileNet V3.

[0015] Preferably, cropping each frame of the original image in the sign language video according to the upper limb skeleton data includes:

[0016] The cropping boundary is calculated based on the upper limb bone data, and each frame of the original image in the sign language video is cropped based on the cropping boundary; the cropping boundary calculation formula is:

[0017] x1=Max(D x )

[0018] x2=Min(D x )

[0019] y1=Max(D y )

[0020] y2=Min(D y )

[0021] Among them, x1, x2, y1, and y2 represent the right boundary, left boundary, upper boundary, and lower boundary cropping positions respectively, and Max() and Min() represent the maximum and minimum values ​​of the parameters respectively. x , D y They respectively represent the horizontal coordinate set and vertical coordinate set of the key points of each upper limb bone.

[0022] Preferably, the pixel features include three-value frame difference features and grayscale pixel features; the bone features of the upper limb bone data include bone geometry features, bone trajectory features and hand bone features; the three-value frame difference features, grayscale pixel features, bone geometry features, bone trajectory features and hand bone features are extracted respectively by a convolutional neural network to obtain three-value frame difference recognition features, grayscale pixel recognition features, bone geometry recognition features, bone trajectory recognition features and hand bone recognition features.

[0023] Preferably, the three-value frame difference feature calculation process includes:

[0024] The grayscale value of the upper limb part in the detection image is set to 255, and the grayscale value of the rest of the detection image is set to 0, so as to obtain a binary detection image;

[0025] Calculate the binary frame difference feature D of each pixel in the binary detection image n (x, y), and then according to the binary frame difference feature D n (x,y) calculate the three-value frame difference feature D' n (x,y), the calculation formula is:

[0026] D n (x,y)=f n (x,y)-f n-1 (x,y)

[0027]

[0028] Where n represents the nth frame in the sign language video, x represents the horizontal coordinate of the pixel, y represents the vertical coordinate of the pixel, and f n (x,y),f n-1 (x, y) represents the grayscale value of the pixel (x, y) in the nth frame and the n-1th frame of the binary processed detection image, respectively. If n=1, then n-1=1.

[0029] Preferably, the bone geometry features include the angle of the forearms of both hands, the slope K between the wrists, and the w , left wrist vector feature WN l and the right wrist vector feature WN r ;

[0030] The calculation formula of the angle Angle of the forearms of both hands is:

[0031] V1=P lw -P le

[0032] V2=P rw -P re

[0033]

[0034] Among them, V1 represents the vector from the left elbow to the left wrist bone key point, V2 represents the vector from the right elbow to the right wrist bone key point, P lw , P le , P rw , P reThey represent the coordinates of the left wrist, left elbow, right wrist, and right elbow bone key points respectively. Arccos() means finding the arccosine value of the parameter. Dot(V1,V2) means finding the dot product of vector V1 and vector V2.

[0035] The wrist slope K w The formula for calculation is:

[0036]

[0037] Among them, y left ,y right Respectively represent the ordinates of the left wrist and right wrist bone key points, x left 、x right Respectively represent the horizontal coordinates of the left wrist and right wrist bone key points;

[0038] Left wrist vector feature WN l and the right wrist vector feature WN r The calculation formula is:

[0039] WN l =P lw -P n

[0040] WN r =P rw -P n

[0041] Among them, P n Represents the coordinates of the key points of the neck bone.

[0042] Preferably, the calculation process of the bone trajectory feature is:

[0043] The number of frames of the sign language video is N, and the matrix M is the wrist bone trajectory feature of the mth frame in the sign language video; the calculation formula of the matrix M is:

[0044] V trail =P curr -P last

[0045]

[0046] Among them, V trail Indicates the position difference between the wrist bone key points of the current frame and the previous frame, P curr , P last Respectively represent the coordinates of the wrist bone key points in the current frame and the previous frame, V trail (x) represents V trail The component in the x-axis direction, V trail (y) represents V trail The component in the y-axis direction;

[0047] V trail (x), V trail (y) In the mth column of matrix M, if the current frame is the first frame, then let P last =P curr .

[0048] Preferably, the calculation of grayscale pixel features includes:

[0049] The calculation formula for the gray value of each pixel in the detection image is:

[0050] Gray(x,y)=R(x,y)×0.299+G(x,y)×0.587+B(x,y)×0.114

[0051] Among them, Gray(x,y) represents the gray value at the pixel coordinate (x,y), R(x,y), G(x,y), and B(x,y) represent the pixel values ​​of the pixel coordinate (x,y) in the R, G, and B channels respectively;

[0052] The grayscale values ​​of each pixel are arranged into a column vector according to a set order, and the column vector is a grayscale pixel feature.

[0053] Preferably, the upper limb skeleton data is provided with 21 skeleton key points on the fingers and the palm, and the skeleton key points of the fingers and the palm constitute the skeleton features of the hand.

[0054] Compared with the prior art, the present invention has the following beneficial effects:

[0055] (1) The present invention obtains a sign language video to be recognized, uses a two-dimensional skeleton recognition model OpenPos to recognize the skeleton key points of each frame of the portrait in the sign language video, and constructs upper limb skeleton data; by recognizing the movement and position characteristics of both arms, the scope of sign language recognition is increased and the accuracy of sign language recognition is improved; each frame of the original image in the sign language video is cropped according to the upper limb skeleton data, and the background of the cropped image is removed to obtain a detection image containing the upper limb and no background; by cropping the original image and removing the background, the calculation amount of the entire model is reduced while maintaining a certain accuracy.

[0056] (2) In the present invention, pixel features and bone features are extracted respectively by a convolutional neural network to obtain pixel recognition features and bone recognition features; the pixel recognition features and bone recognition features are fused and input into a Bi-LSTM network to obtain a recognition vector; the recognition vector is then input into a softmax layer to obtain a result vector, and the sign language vocabulary corresponding to the element with the largest value in the result vector is the recognition result; the overall movement direction of the upper limb is determined according to the three-value frame difference feature in the pixel feature, and the scope of sign language recognition is expanded and the accuracy of sign language recognition is improved by fusing multiple sets of features. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 A flowchart of a sign language recognition method based on machine vision provided by the present invention;

[0058] Figure 2 A flowchart for obtaining a detection image in the present invention;

[0059] Figure 3 A flow chart of extracting recognition features using a convolutional neural network provided by the present invention. DETAILED DESCRIPTION

[0060] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

[0061] like Figure 1-3 As shown, a sign language recognition method based on machine vision includes:

[0062] Get the sign language video to be recognized, use the two-dimensional skeleton recognition model OpenPos to recognize the skeleton key points of each frame of the portrait in the sign language video, and construct the upper limb skeleton data;

[0063] The cropping boundary is calculated based on the upper limb bone data, and each frame of the original image in the sign language video is cropped based on the cropping boundary; the cropping boundary calculation formula is:

[0064] x1=Max(D x )

[0065] x2=Min(D x )

[0066] y1=Max(D y )

[0067] y2=Min(D y )

[0068] Among them, x1, x2, y1, and y2 represent the right boundary, left boundary, upper boundary, and lower boundary cropping positions respectively, and Max() and Min() represent the maximum and minimum values ​​of the parameters respectively. x , D y They respectively represent the horizontal coordinate set and vertical coordinate set of the key points of each upper limb bone.

[0069] Build a semantic segmentation model DeepLabV3+, replace the backbone network Xception in the semantic segmentation model DeepLabV3+ with MobileNet V3, and use the replaced semantic segmentation model DeepLabV3+ to remove the background of the cropped image, thereby reducing the computational complexity of the entire model while maintaining a certain accuracy; obtain a detection image containing the upper limbs and no background;

[0070] Calculate and obtain pixel features of the detection image and bone features of upper limb bone data; the pixel features include three-value frame difference features and grayscale pixel features; the bone features of upper limb bone data include bone geometry features, bone trajectory features and hand bone features; extract the three-value frame difference features, grayscale pixel features, bone geometry features, bone trajectory features and hand bone features respectively through a convolutional neural network to obtain three-value frame difference recognition features, grayscale pixel recognition features, bone geometry recognition features, bone trajectory recognition features and hand bone recognition features; the upper limb bone data is provided with 21 bone key points on the fingers and palms, and the bone key points of the fingers and palms constitute the hand bone features.

[0071] The three-value frame difference feature calculation process includes:

[0072] First, the grayscale value of the upper limb part of the detection image is set to 255, and the grayscale value of the rest of the detection image is set to 0, so as to obtain a binary detection image;

[0073] Calculate the binary frame difference feature D of each pixel in the binary detection image n (x, y), and then according to the binary frame difference feature D n (x,y) calculate the three-value frame difference feature D' n (x,y), the calculation formula is:

[0074] D n (x,y)=f n (x,y)-f n-1 (x,y)

[0075]

[0076] Where n represents the nth frame in the sign language video, x represents the horizontal coordinate of the pixel, y represents the vertical coordinate of the pixel, and f n (x,y),f n-1 (x, y) represents the grayscale value of the pixel (x, y) in the nth frame and the n-1th frame of the binary detection image, respectively. If n = 1, then n-1 = 1;

[0077] The three-value frame difference feature can detect the changed area; at the same time, the three-value frame difference feature sets the gray value of the part of the upper limb that disappears in the current frame compared with the previous frame in the sign language video to 100, and the three-value frame difference feature sets the gray value of the part of the upper limb that is newly added in the current frame compared with the previous frame in the sign language video to 255; the overall movement direction of the upper limb can be obtained by comparing the gray value.

[0078] The bone geometry features include the angle of the forearms of both hands, the slope between the wrists, and the w , left wrist vector feature WN l and the right wrist vector feature WN r ,By identifying the movement and position features of both arms, the range of sign language recognition is increased and the accuracy of sign language recognition is improved.

[0079] The calculation formula of the angle Angle of the forearms of both hands is:

[0080] V1=P lw -P le

[0081] V2=P rw -P re

[0082]

[0083] Among them, V1 represents the vector from the left elbow to the left wrist bone key point, V2 represents the vector from the right elbow to the right wrist bone key point, P lw , P le , P rw , P re They represent the coordinates of the left wrist, left elbow, right wrist, and right elbow bone key points respectively. Arccos() means finding the arccosine value of the parameter. Dot(V1,V2) means finding the dot product of vector V1 and vector V2.

[0084] The wrist slope K w The formula for calculation is:

[0085]

[0086] Among them, y left ,y right Respectively represent the ordinates of the left wrist and right wrist bone key points, x left 、x right Respectively represent the horizontal coordinates of the left wrist and right wrist bone key points;

[0087] Left wrist vector feature WN l and the right wrist vector feature WN r The calculation formula is:

[0088] WNl =P lw -P n

[0089] WN r =P rw -P n

[0090] Among them, P n Represents the coordinates of the key points of the neck bone.

[0091] The calculation process of bone trajectory features is:

[0092] The number of frames of the sign language video is N, and the matrix M is the wrist bone trajectory feature of the mth frame in the sign language video; the calculation formula of the matrix M is:

[0093] V trail =P curr -P last

[0094]

[0095] Among them, V trail Indicates the position difference between the wrist bone key points of the current frame and the previous frame, P curr , P last Respectively represent the coordinates of the wrist bone key points in the current frame and the previous frame, V trail (x) represents V trail The component in the x-axis direction, V trail (y) represents V trail The component in the y-axis direction;

[0096] V trail (x), V trail (y) In the mth column of matrix M, if the current frame is the first frame, then let P last =P curr .

[0097] The calculation of the grayscale pixel feature includes:

[0098] The calculation formula for the gray value of each pixel in the detection image is:

[0099] Gray(x,y)=R(x,y)×0.299+G(x,y)×0.587+B(x,y)×0.114

[0100] Among them, Gray(x,y) represents the gray value at the pixel coordinate (x,y), R(x,y), G(x,y), and B(x,y) represent the pixel values ​​of the pixel coordinate (x,y) in the R, G, and B channels respectively;

[0101] The grayscale values ​​of each pixel are arranged into a column vector according to a set order, and the column vector is a grayscale pixel feature.

[0102] The pixel recognition features and the bone recognition features are fused and input into the Bi-LSTM network to obtain the recognition vector. The recognition vector is then input into the softmax layer to obtain the result vector. The sign language vocabulary corresponding to the element with the largest value in the result vector is the recognition result.

[0103] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0104] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0105] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0107] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A sign language recognition method based on machine vision, characterized in that: include: Get the sign language video to be recognized, use the two-dimensional skeleton recognition model OpenPos to recognize the skeleton key points of each frame of the portrait in the sign language video, and construct the upper limb skeleton data; Crop each frame of the original image in the sign language video according to the upper limb skeleton data, and remove the background from the cropped original image to obtain a detection image containing the upper limb and without the background; Calculate and obtain pixel features of the detection image and bone features of the upper limb bone data; the pixel features include three-value frame difference features and grayscale pixel features; the bone features of the upper limb bone data include bone geometric relationship features, bone trajectory features and hand bone features; The three-value frame difference feature calculation process includes: Binarize the detected image, set the gray value of the upper limb part in the detected image to 255, and set the gray value of the limbs in the rest of the detected image to 0; Calculate the binary frame difference feature of each pixel in the binary detection image , the calculation formula is: ; If n=1, then ; Based on the binary frame difference feature Calculate the three-value frame difference feature , the calculation formula is: ; In the formula, x represents the horizontal coordinate of the pixel; y represents the vertical coordinate of the pixel; n represents the number of pixels in the sign language video. The original image of the frame; f() represents the gray value of the pixel; The bone geometric relationship features include the angle between the forearms of both hands , wrist slope , left wrist and neck vector features and right wrist vector features ; The angle of the forearms of both hands The calculation formula is: ; ; ; in, The vector representing the key point of the left elbow to left wrist bone. The vector representing the key point of the right elbow to right wrist bone, Indicates the coordinates of the key points of the left wrist bone; Represents the coordinates of the key points of the left elbow bone, Represents the coordinates of the key points of the right wrist bone, Indicates the coordinates of the key points of the right elbow bone, Arccos() indicates finding the arccosine value of the parameter, and Dot() indicates finding the dot product of two vectors; The wrist slope The formula for calculation is: ; in, Indicates the horizontal coordinates of the key points of the left wrist bone; Indicates the horizontal coordinates of the key points of the right wrist bone. Indicates the vertical coordinate of the left wrist bone key point, Indicates the vertical coordinates of the key points of the right wrist bone; Left wrist vector feature and right wrist vector features The formula for calculation is: ; ; in, Represents the coordinates of the key points of the neck bone; The formula calculation process of the bone trajectory feature includes: The number of frames of the sign language video is N, and the matrix M is the wrist bone trajectory feature of the mth frame in the sign language video; the calculation formula of the matrix M is: ; ; Among them, the current frame is the first frame, then set ; In the mth column of the matrix M; in, Indicates the position difference of wrist bone key points between the current frame and the previous frame. Indicates the coordinates of the wrist bone key points in the current frame. Indicates the coordinates of the wrist bone key points in the previous frame. express The component in the x-axis direction; express The component in the x-axis direction; The calculation of the grayscale pixel feature includes: The calculation formula for the gray value of each pixel in the detection image is: ; in, Indicates the pixel coordinates The gray value at Indicates the pixel coordinates Pixel value under R channel; Indicates the pixel coordinates Pixel value in G channel; Indicates the pixel coordinates Pixel value under B channel; Arrange the grayscale values ​​of each pixel into a column vector according to a set order, wherein the column vector is a grayscale pixel feature; The three-value frame difference feature, grayscale pixel feature, bone geometry relationship feature, bone trajectory feature and hand bone feature are extracted respectively by convolutional neural network to obtain the three-value frame difference recognition feature, grayscale pixel recognition feature, bone geometry relationship recognition feature, bone trajectory recognition feature and hand bone recognition feature; The pixel recognition features and the skeleton recognition features are fused and input into the Bi-LSTM network to extract the time features. The recognition vector is obtained based on the pixel recognition features, the skeleton recognition features and the time features. The recognition vector is calculated and analyzed through the softmax layer to obtain the probability that the sign language video is various sign language recognition results, and the sign language recognition result with the highest probability is output.

2. The method for sign language recognition based on machine vision according to claim 1, characterized in that: The method for removing the background of the cropped original image includes: The preset semantic segmentation model DeepLabV3+ is used to remove the background of the cropped original image; among them, the backbone network Xception of the preset semantic segmentation model DeepLabV3+ is replaced by MobileNet V3.

3. The method for sign language recognition based on machine vision according to claim 1, characterized in that: Crop each frame of the original image in the sign language video according to the upper limb skeleton data, including: The cropping boundary is calculated based on the upper limb bone data, and each frame of the original image in the sign language video is cropped based on the cropping boundary; the cropping boundary calculation formula is: ; ; ; ; in, Indicates the right border clipping position; Indicates the left border clipping position; Indicates the upper boundary clipping position; Indicates the lower boundary clipping position, Max() means taking the maximum value of the parameter, and Min() means taking the minimum value of the parameter. Represents the horizontal coordinate of the key point of the skeleton, Indicates the vertical coordinate of the bone key point.

4. The method for sign language recognition based on machine vision according to claim 1, characterized in that: The upper limb skeleton data is provided with 21 skeleton key points on the fingers and the palm, and the skeleton key points of the fingers and the palm constitute the skeleton features of the hand.