Gesture recognition system and gesture recognition method
Through the skeleton key point extraction module, skeleton vector building module and temporal feature extraction module, combined with the fully connected layer, the problem of high cost of skeleton sensors is solved, and economical and efficient gesture recognition is achieved, which is suitable for mobile devices and real-time mobile scenes.
Patent Information
- Application Number
- CN202410823501.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-25
AI Technical Summary
In existing gesture recognition systems, the cost of skeletal key point sensors is high, resulting in high system costs and unsuitable for mobile devices, and the recognition speed and accuracy are difficult to meet the needs of real-time mobile scenarios.
It uses the skeleton key point extraction module, the skeleton vector construction module and the temporal feature extraction module to extract the human skeleton key points through the detector and tracker, construct the human skeleton vector map, extract the length and angle features, and use the fully connected layer for gesture classification. Reduce computing costs and work on mobile devices.
It achieves economical, efficient and accurate gesture recognition, reduces dependence on high-performance hardware, is suitable for real-time mobile scenes, reduces the impact of illumination and background noise, and improves robustness.
Smart Images

Figure CN118692149A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of image recognition, and in particular to a gesture recognition system and a gesture recognition method. Background Art
[0002] At intersections where traffic police are in control, driverless cars must be able to accurately recognize and obey the traffic police's gesture instructions to ensure driving order and safety. In daily driving, the interaction between vehicles and pedestrians is also inevitable. Therefore, the gesture recognition system that can intelligently recognize the gesture information of traffic police and pedestrians has become an indispensable part of intelligent driving technology.
[0003] In the related art, a gesture recognition system includes: a skeleton key point recognition sensor and a gesture recognition module. The skeleton key point sensor is used to recognize the skeleton key points of the human body, and the gesture recognition module is used to perform gesture recognition based on the recognized skeleton key points of the human body.
[0004] However, skeleton key point sensors are expensive, which leads to high cost of gesture recognition systems. Summary of the invention
[0005] The present disclosure provides a gesture recognition system and a gesture recognition system, which can realize gesture recognition at low cost, efficiently and accurately. The technical solution at least includes the following solutions:
[0006] In a first aspect, a gesture recognition system is provided, including a skeleton key point extraction module, a skeleton vector construction module, a temporal feature extraction module and a fully connected layer connected in sequence, wherein the skeleton key point extraction module is used to extract a first skeleton key point set of a human body in a first image based on a detector and a tracker, wherein the first skeleton key point set includes multiple first skeleton key points, the detector is used to determine a first ROI region of interest in the first image, the first ROI is a region where the first skeleton key points exist, the tracker is used to determine the first skeleton key point set based on the first ROI, and the first image is an image of a human body in the first frame of a video; the skeleton vector construction module is used to extract a first skeleton key point set based on the first skeleton key point set. The first skeleton key points in the video are determined by using a first skeleton vector set, wherein the first skeleton vector set includes multiple first skeleton vectors, and the multiple first skeleton vectors constitute a first human skeleton vector image; and based on the trunk length of the human body in the first image, the length characteristics of the multiple first skeleton vectors are determined; the temporal feature extraction module is used to extract the temporal characteristics of the skeleton vector of the human body in the video based on the length characteristics of the skeleton vector of the human body in each frame of continuous multi-frame images, wherein the continuous multi-frame images are continuous multi-frame images in the video, and the continuous multi-frame images include the first image; the fully connected layer is used to classify the gestures of the human body in the first image based on the temporal characteristics of the skeleton vector of the human body in the video.
[0007] Optionally, the tracker includes an encoder, a decoder and a regression encoder, and the skeletal key point extraction module is used to implement the extraction of skeletal key points of the human body in the first image based on the detector and the tracker in the following manner: based on the detector, taking the hip center of the human body in the first image as a reference, determining the size of the first human body circumscribed circle, and rotating the first human body circumscribed circle so that in the rotated first human body circumscribed circle, the line connecting the shoulder center and the hip center of the human body in the first image is perpendicular to the ground, thereby obtaining the first ROI; based on the encoder, determining all first joint features of the human body in the first ROI; based on the decoder, determining a heat map of each of the first joint features, and the heat map of each of the first joint features is used to make a first prediction of the first joint features; based on the regression encoder, making a second prediction based on the heat map of each of the first joint features to determine the first skeletal key point set.
[0008] Optionally, the skeletal key point extraction module is also used to: based on the tracker, determine a second ROI in the second image based on the first skeletal key point set, the second image being the next frame image of the first image, and the second ROI being the area where the second skeletal key points of the human body in the second image exist; based on the encoder, determine all second joint features of the human body in the second ROI; based on the decoder, determine a heat map of each second joint feature, and the heat map of each second joint feature is used to make a first prediction of the second joint feature; based on the regression encoder, make a second prediction based on the heat map of each second joint feature to determine the second skeletal key point set of the human body in the second image.
[0009] Optionally, the multiple first bone vectors include: a first left upper arm vector, a first right upper arm vector, a first left forearm vector, a first right forearm vector, a first left torso vector, a first right torso vector, a first left thigh vector, a first right thigh vector, a first left calf vector and a first right calf vector.
[0010] Optionally, the gesture recognition system is connected to a training module, and the training module is used to preprocess multiple videos in a training data set, each of the videos including multiple frames of images that are continuous in time; wherein the training module is used to implement the preprocessing of the multiple videos in the training data set in the following manner: for a third image in a first video, the third image is divided into a plurality of sub-blocks arranged in an array, each sub-block is different from each other, the first video is any one of the plurality of videos, and the third image is any frame image in the first video; grayscale histogram equalization is performed on the plurality of sub-blocks to obtain a grayscale mapping table for each of the sub-blocks; and based on the grayscale mapping table for each of the sub-blocks, the grayscale value of each pixel in the third image is determined.
[0011] Optionally, the training module is used to implement the grayscale mapping table based on each sub-block to determine the grayscale value of each pixel in the third image in the following manner: determine a first dependent sub-block of a first pixel, where the first pixel is any pixel in the first sub-block, and the first sub-block is any one of the multiple sub-blocks; based on the first dependent sub-block, determine a second dependent sub-block, a third dependent sub-block and a fourth dependent sub-block; based on the grayscale value of the first pixel before the grayscale histogram equalization processing and the grayscale mapping table of each sub-block, determine the grayscale mapping value of the first pixel in the first dependent sub-block, the second dependent sub-block, the third dependent sub-block and the fourth dependent sub-block respectively, to obtain four grayscale mapping values; based on the four grayscale mapping values, perform bilinear interpolation on the grayscale value of the first pixel before the grayscale histogram equalization processing to obtain the grayscale value of the first pixel.
[0012] Optionally, the training module is further used to implement the preprocessing of the multiple videos in the training data set in the following manner:
[0013] Based on a Gaussian filter in the spatial domain and a Gaussian filter in the value domain, a bilateral filtering denoising process is performed on the pixel value of each pixel in the third image to obtain a corrected pixel value of each pixel;
[0014] The Gaussian filter in the spatial domain is implemented using the following formula:
[0015]
[0016] The Gaussian filter of the range is implemented using the following formula:
[0017]
[0018] Among them, G s is a Gaussian filter in the spatial domain, G r is a Gaussian filter with a value range, e is a natural base, o is the coordinate of pixel point o, q is the coordinate of pixel point q, the pixel point o and the pixel point q are any two adjacent pixels in the third image in the spatial domain, I p is the pixel value of pixel p, I q is the pixel value of pixel q, is the smoothing parameter.
[0019] Optionally, each of the multiple videos in the training data set corresponds to a label in a label set, the label set is synchronized with the timing of the multiple videos, and the labels in the label set are used to mark multiple frames of images in the video where gestures exist; the training module is also used to: when training the gesture recognition system based on the multiple videos, adjust the timing of the label set and the multiple videos so that the timing of the label set lags behind the timing of the multiple videos by a first time length.
[0020] Optionally, the skeleton vector construction module is also used to determine the angle characteristics of each first skeleton vector based on the sine value and cosine value of each first skeleton vector and the gravity vector; the timing feature extraction module is also used to extract the timing characteristics of the skeleton vector of the human body in the video based on the length characteristics and angle characteristics of the skeleton vector of the human body in each frame in multiple consecutive frames of images.
[0021] In a second aspect, a gesture recognition method is provided, comprising: inputting a video to be recognized into the gesture recognition system described in the first aspect, and obtaining a gesture type of the video to be recognized.
[0022] The beneficial effects brought by the technical solution provided by the embodiments of the present disclosure include at least:
[0023] In the disclosed embodiment, the gesture recognition system 100 extracts the first skeleton key point set of the human body in the first image through the detector and tracker in the skeleton key point extraction module 11. Compared with the skeleton point sensor, this method is more economical and suitable for mobile devices, and the recognition speed of the skeleton points can also be guaranteed. The skeleton vector construction module 12 determines the length features of multiple first skeleton vectors through the torso length of the human body in the first image, thereby improving the accuracy of the determined length features. The fully connected layer 14 classifies the gestures through the time series features of the first skeleton vectors, which not only ensures the accuracy of recognition, but also effectively reduces the computing cost, avoids the dependence on high-performance hardware, and is more suitable for real-time mobile scenarios.
[0024] In addition, gesture recognition through skeleton point data can reduce the impact of lighting, background noise, etc. on the recognition results, express human body movements more simply and completely, and obtain higher robustness on small sample data sets. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0026] Figure 1 A schematic diagram of the structure of a gesture recognition system provided by an exemplary embodiment of the present disclosure is shown;
[0027] Figure 2 is a schematic diagram of gesture types;
[0028] Figure 3 A structural schematic diagram of a gesture recognition system provided by another exemplary embodiment of the present disclosure is shown;
[0029] Figure 4 It is a schematic diagram of the workflow of the skeleton key point extraction module;
[0030] Figure 5 It is a schematic diagram for determining the length characteristics and angle characteristics of multiple first bone vectors. DETAILED DESCRIPTION
[0031] Unless otherwise defined, the technical terms or scientific terms used herein shall have the usual meanings understood by persons with ordinary skills in the field to which the present disclosure belongs. The words "first", "second", "third" and similar words used in the patent application specification and claims of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one" or "one" do not indicate a quantity limitation, but indicate the existence of at least one. Words such as "include" or "comprise" and similar words mean that the elements or objects appearing before "include" or "comprise" include the elements or objects listed after "include" or "comprise" and their equivalents, and do not exclude other elements or objects. Words such as "connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0032] In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.
[0033] Figure 1 A schematic diagram of the structure of a gesture recognition system provided by an exemplary embodiment of the present disclosure is shown in FIG. Figure 1 The gesture recognition system 100 includes a skeleton key point extraction module 11, a skeleton vector construction module 12, a temporal feature extraction module 13 and a fully connected layer 14 which are connected in sequence.
[0034] The skeleton key point extraction module 11 is used to extract a first skeleton key point set of a human body in a first image based on a detector and a tracker.
[0035] The first skeleton key point set includes a plurality of first skeleton key points. The first skeleton key point set is a set of all skeleton key points of the human body in the first image.
[0036] Among them, the detector is used to determine a first ROI (Region Of Interest) in the first image, the first ROI is a region where a first skeleton key point exists, the tracker is used to determine a first skeleton key point set based on the first ROI, and the first image is an image of a human body in the first frame of the video.
[0037] For example, the detector and tracker can be implemented based on the BlazePose network under the MediaPipe framework. BlazePose is a lightweight convolutional network architecture suitable for single-person skeleton key point detection, with the advantage of fast recognition speed. There are many implementation methods of BlazePose in related technologies, so detailed description is omitted here.
[0038] The first image is the first frame of the video in which a human body is present. Generally, gesture recognition is performed on the basis of the video. After the gesture recognition system obtains a video, the video can be split into multiple frames of images that are continuous in time. It is necessary to first determine that the first frame in which a human body is present is the first image before subsequent gesture recognition actions can be performed. In the embodiment of the present disclosure, the detector is used to determine the first image in the multiple frames of images.
[0039] Optionally, the detector determines the first image in multiple frames of images in the following manner: identify whether there is a face in multiple frames of images in the video in chronological order; if there is no face in a frame, identify whether there is a face in the next image, until a frame of image with a face is identified, which is the first image.
[0040] The skeleton vector construction module 12 is used to determine a first skeleton vector set based on some first skeleton key points in the first skeleton key point set, wherein the first skeleton vector set includes multiple first skeleton vectors, and the multiple first skeleton vectors constitute a first human skeleton vector map, and determine the length characteristics of the multiple first skeleton vectors based on the torso length of the human body in the first image.
[0041] Here, a plurality of first skeleton vectors constitute a first human skeleton vector image, that is, the plurality of first skeleton vectors are connected into the first human skeleton vector image according to the joint hinge structure of the human body.
[0042] Optionally, when the first skeletal key point set includes a nasal bone key point, a left hip key point and a right hip key point, the torso length of the human body in the first image can be the length of the line between the midpoint of the line connecting the left hip key point and the right hip key point in the first skeletal key point set and the nasal bone key point.
[0043] The temporal feature extraction module 13 is used to extract the temporal features of the human body's bone vector in the video based on the length features of the human body's bone vector in each frame of the continuous multi-frame images.
[0044] The continuous multiple-frame images are continuous multiple-frame images in a video, and the continuous multiple-frame images include the first image.
[0045] Here, for the continuous multiple frames in a video, the human body therein is the same human body, that is, the human body in the first image. For any frame of the continuous multiple frames, the same processing method as the first image can be used to obtain the length feature of the bone vector of the human body in each frame.
[0046] The fully connected layer 14 is used to classify the gestures of the human body in the first image based on the temporal features of the skeleton vectors of the human body in the video.
[0047] Figure 2 is a schematic diagram of gesture types, such as Figure 2 As shown in the figure, there are 10 types of gestures, including 8 traffic police gestures and 2 pedestrian gestures. In order from (1) to (10), these 10 gestures are stop, go straight, turn left, wait for left turn, turn right, slow down, change lanes, pull over, wave to stop, and wave to stop.
[0048] In the disclosed embodiment, the gesture recognition system 100 extracts the first skeleton key point set of the human body in the first image through the detector and tracker in the skeleton key point extraction module 11. Compared with the skeleton point sensor, this method is more economical and suitable for mobile devices, and the recognition speed of the skeleton points can also be guaranteed. The skeleton vector construction module 12 determines the length characteristics of multiple first skeleton vectors through the torso length of the human body in the first image, thereby improving the accuracy of the determined length characteristics; the time series feature extraction module realizes accurate extraction of the time series characteristics of the human body in the video, and the fully connected layer 14 realizes the classification of gestures through the time series characteristics of the human body in the video, which not only ensures the accuracy of recognition, but also effectively reduces the computing cost, avoids the dependence on high-performance hardware, and is more suitable for real-time mobile scenes.
[0049] In addition, gesture recognition through skeleton point data can reduce the impact of lighting, background noise, etc. on the recognition results, express human body movements more simply and completely, and obtain higher robustness on small sample data sets.
[0050] Figure 3 FIG. 1 shows a schematic diagram of a gesture recognition system provided by another exemplary embodiment of the present disclosure. Figure 3 The gesture recognition system 100 includes a skeleton key point extraction module 11, a skeleton vector construction module 12, a temporal feature extraction module 13 and a fully connected layer 14 which are connected in sequence, and the gesture recognition system 100 is also connected to a training module 15.
[0051] The training module 15 is used to pre-process multiple videos in the training data set.
[0052] Each video includes a plurality of temporally consecutive image frames.
[0053] In the disclosed embodiment, the multiple videos in the training data set include videos of 8 types of traffic police gestures and 2 types of pedestrian gestures. That is, the gesture types in the videos in the training data set are the same as the gesture types that the gesture recognition system needs to classify.
[0054] Optionally, the training data set may also include gesture videos in complex environments, such as videos of different gestures under different lighting and backgrounds, such as videos of different gestures under complex intersections, facing away from the sun, and mottled shadows of trees, which may affect the clear presentation of the human body.
[0055] The sizes and frame numbers of the multiple videos may be different, resulting in different image sizes and image numbers in the two videos. The multiple videos need to be normalized so that the sizes and frame rates of the multiple videos are the same. For example, the size of each video may be adjusted to a first size, the frame rate of each video may be adjusted to a first frame rate, and for a video smaller than the first size, the video may be padded to the first size; and for a video larger than the first size, the video may be cropped to the first size.
[0056] Exemplarily, the first size may be 1080 by 1080, that is, any frame image in any video includes 1080 rows of pixels and 1080 columns of pixels. The first frame rate may be 15 frames per second. A frame rate that is too low may result in the inability to extract continuous motion trajectory information from the video, while a frame rate that is too high may affect the final judgment due to the redundancy of details. By uniformly adjusting the frame rate of each video to 15 frames per second, the integrity of the information can be ensured while avoiding excessive redundant details.
[0057] Optionally, the multiple videos in the training data set can be divided into a training set and a test set in a ratio of 7:3.
[0058] Optionally, the training module 15 is used to implement preprocessing of multiple videos in the training data set by adopting steps ac:
[0059] Step a: for a third image in the first video, divide the third image into a plurality of sub-blocks arranged in an array.
[0060] Each sub-block has the same size and the images in each sub-block are different. The first video is any one of the multiple videos, and the third image is any frame image in the first video. The third image can be the same as or different from the first image, which is not limited in the embodiment of the present disclosure.
[0061] Step b: performing grayscale histogram equalization processing on multiple sub-blocks to obtain a grayscale mapping table for each sub-block.
[0062] For any sub-block among the multiple sub-blocks, the grayscale histogram is used to represent the number of pixels with a certain grayscale level in the sub-block. First, the original grayscale value of each pixel in the sub-block can be determined, so that the cumulative distribution probability of each grayscale level in the sub-block can be determined, and the grayscale mapping function of the sub-block is constructed based on the cumulative distribution probability. Based on the grayscale mapping function, the original grayscale histogram of the sub-block can be determined, that is, the original grayscale mapping table.
[0063] If the grayscale distribution of the sub-block is uneven, for example, the grayscale distribution of the sub-block is concentrated in a narrow range, the contrast of the sub-block is low and the details are not clear enough. However, by applying grayscale histogram equalization to the sub-block, the grayscale of the sub-block can be evenly distributed, thereby increasing the contrast and making the details of the sub-block clear, so as to achieve the purpose of enhancing the sub-block.
[0064] Grayscale histogram equalization processing is to set a grayscale threshold in the process of determining the mapping function of the sub-block. If the grayscale value of a grayscale level in the sub-block is greater than the grayscale threshold, the part exceeding the grayscale threshold is evenly distributed to the other grayscale levels of the sub-block, and finally a grayscale mapping table after equalization processing can be obtained. Grayscale histogram equalization processing can avoid image distortion or increased noise caused by excessive modification of the contrast of certain local areas. The grayscale value of each pixel in the grayscale mapping table after equalization processing is uncertain. It is necessary to map the grayscale mapping table after equalization processing back to the sub-block through the mapping function of the sub-block to obtain the pixel value of each pixel in the sub-block, and then the grayscale value of each pixel can be determined based on the pixel value of each pixel in the sub-block.
[0065] Here, the grayscale mapping table of each sub-block obtained in step b is the grayscale mapping table of each sub-block after equalization processing.
[0066] Step c: determining the grayscale value of each pixel in the third image based on the grayscale mapping table of each sub-block.
[0067] Optionally, step c is implemented using the following four steps:
[0068] In the first step, a first dependent sub-block of a first pixel is determined, where the first pixel is any pixel in a first sub-block, and the first sub-block is any one of a plurality of sub-blocks.
[0069] Optionally, the first dependent sub-block of the first pixel is determined in the following manner:
[0070] Assume that the coordinates of the first pixel are (m, n), that is, the first pixel is the pixel in the mth row and nth column of the first sub-block. Subtract the row coordinates of the first pixel from Column coordinates minus Get the coordinates of the second pixel The sub-block where the second pixel is located is the first dependent sub-block. Wherein, A is the number of rows of all pixels in the first sub-block, and B is the number of columns of all pixels in the first sub-block.
[0071] In the second step, based on the first dependent sub-block, a second dependent sub-block, a third dependent sub-block and a fourth dependent sub-block are determined.
[0072] Assume that the first dependent subblock is P(x, y), where x represents the xth row of the first dependent subblock among multiple subblocks, and y represents the yth column of the first dependent subblock among multiple subblocks. Then the second dependent subblock is P(x+1, y), which means that the second dependent subblock is adjacent to the first dependent subblock and is to the right of the first dependent subblock; the third dependent subblock is P(x, y+1), which means that the third dependent subblock is adjacent to the first dependent subblock and is above the first dependent subblock; the fourth dependent subblock is P(x+1, y+1), which means that the fourth dependent subblock is adjacent to both the second dependent subblock and the third dependent subblock, and does not overlap with the first dependent subblock.
[0073] In the third step, based on the grayscale value of the first pixel before grayscale histogram equalization processing and the grayscale mapping table of each sub-block, the grayscale mapping values of the first pixel in the first dependent sub-block, the second dependent sub-block, the third dependent sub-block and the fourth dependent sub-block are determined respectively to obtain four grayscale mapping values.
[0074] When the mapping function of each sub-block is obtained in step b, the grayscale mapping values of the first pixel in the first dependent sub-block, the second dependent sub-block, the third dependent sub-block and the fourth dependent sub-block are determined respectively based on the grayscale value of the first pixel before the grayscale histogram equalization processing and the grayscale mapping table of each sub-block, including: substituting the pixel value of the first pixel into the mapping functions of the first dependent sub-block, the second dependent sub-block, the third dependent sub-block and the fourth dependent sub-block respectively to obtain four grayscale mapping values.
[0075] In the fourth step, based on the four grayscale mapping values, bilinear interpolation is performed on the grayscale value of the first pixel before the grayscale histogram equalization process to obtain the grayscale value of the first pixel.
[0076] The grayscale value of the first pixel before the grayscale histogram equalization process is also the original grayscale value of the first pixel.
[0077] When performing bilinear interpolation, linear interpolation can be performed once in the x direction and then in the y direction; or linear interpolation can be performed once in the y direction and then in the x direction, which is not limited in the embodiments of the present disclosure. There are many implementation methods of bilinear interpolation in the related art, and detailed description is omitted here.
[0078] In the disclosed embodiment, the sub-block located at the boundary of the third image cannot determine four dependent sub-blocks, but can only determine two dependent sub-blocks, and then determine two grayscale mapping values. At this time, the pixel value in the sub-block only needs to be linearly interpolated once based on the two grayscale mapping values.
[0079] After executing step c, the grayscale value of each pixel can be obtained. However, there is often noise in the image, which will affect the accuracy of the final calculated result. In order to remove the noise in the image, the training module 15 is also used to pre-process the multiple videos in the training data set in the following manner:
[0080] Based on the Gaussian filter in the space domain and the Gaussian filter in the value domain, bilateral filtering denoising is performed on the pixel value of each pixel in the third image to obtain a corrected pixel value of each pixel.
[0081] In the embodiment of the present disclosure, the bilateral filtering denoising process is implemented based on the filter BF in formula (1).
[0082]
[0083] In formula (1), BF is the filter, p∈S represents any pixel point p in the filter window S, and G s (p) represents the Gaussian filter in the spatial domain, G r (p) represents the Gaussian filter of the range, I p is the pixel value of pixel point p, W q is the weighted sum of each pixel value in the filter window S, used for weight normalization, W q =∑ p∈S G s (p)G r (p).
[0084] Here, the filtering window may be the third image, or any frame image of any video among multiple videos in the training data set, which is not limited in the embodiment of the present disclosure.
[0085] The Gaussian filter in the spatial domain is implemented using formula (2):
[0086]
[0087] The Gaussian filter of the value range is implemented using formula (3):
[0088]
[0089] In formula (2) and formula (3), e is a natural base, p is the coordinate of pixel point p, q is the coordinate of pixel point q, pixel point p and pixel point q are any two adjacent pixels in the third image in the spatial domain, Ip is the gray value of pixel p, I q is the gray value of pixel q, is the smoothing parameter.
[0090] In the flat area, the G of each pixel in the filter r The value is similar, then G s Dominant filtering effect; in the edge area, G on the same side of the edge r The value is similar and much larger than G on the other side of the edge. r value, then the G of the pixel on the other side r Value and G s The value has almost no effect on the filtering result, so that the edge information is protected. In this way, the filter BF shows a certain degree of adaptability.
[0091] When noise points appear in a flat area, the weights of the signals around the noise points are very small. After normalization, the weights of the signals around the noise points are increased, so the filter BF also has a filtering effect on the noise points. Through bilateral filtering denoising, the pixel value of each pixel can be corrected, achieving smoothing of the image while avoiding blurred edges.
[0092] Optionally, the training module 15 is further used to: establish a label set based on the training data set. Each of the multiple videos in the training data set corresponds to a label in the label set, the label set is synchronized with the time sequence of the multiple videos, and the labels in the label set are used to annotate multiple frames of images with gestures in the video.
[0093] For example, the frame rate of a video is 15 frames per second, and a certain video has a total of 15 seconds. The gesture begins to appear in the first frame image of the 3rd second of the video, and ends in the third frame image of the 12th second. The gesture in the video is a left turn gesture. Then, in the tag set, the tag corresponding to the video is the tag corresponding to the left turn gesture, and the tag corresponding to the left turn gesture also exists from the time corresponding to the first frame image of the 3rd second (that is, corresponding to the 3.0th second of the video), and disappears at the time corresponding to the third frame image of the 12th second (that is, corresponding to the 12.2th second of the video).
[0094] Optionally, the training module 15 is further configured to: train the gesture recognition system 100 based on a plurality of videos in the training data set.
[0095] In the case where there is a label set, the training module 15 is further used to: when training the gesture recognition system based on multiple videos, adjust the timing of the label set and the multiple videos so that the timing of the label set lags behind the timing of the multiple videos by a first time length.
[0096] The timing of the labels in the original label set is synchronized with the timing of the video, that is, each frame of the image with gestures in the video is annotated with a corresponding label. By adjusting the timing of the label set and the multiple videos so that the timing of the label set lags behind the timing of the multiple videos by a first time length, the first N frames of the image with gestures in any video can be made without labels. Where N is a positive integer.
[0097] Exemplarily, the value range of N can be 1 to 30, for example, 1, 3, 15, 20 or 30, etc., which is not limited in the embodiments of the present disclosure. The first time length is determined based on N and the frame rate of the video. For example, if the frame rate is 15 frames per second and N is 15, the first time length is 1 second.
[0098] When the gesture recognition system 100 recognizes gestures, errors may occur. For example, a person only raises his hand instead of making a complete gesture, but the gesture recognition system may recognize that the person has performed a certain gesture based on the hand-raising action. Therefore, in the embodiment of the present disclosure, by adjusting the timing between the tag set and the multiple videos, it is achieved to avoid the recognition error caused by similar gestures in the previous short period of time, thereby improving the accuracy and efficiency of gesture recognition.
[0099] The skeleton key point extraction module 11 is used to extract a first skeleton key point set of a human body in a first image based on a detector and a tracker.
[0100] Optionally, the tracker includes an encoder, a decoder and a regression encoder, and the skeleton key point extraction module 11 is used to extract the skeleton key points of the human body in the first image based on the detector and the tracker by adopting the following four steps:
[0101] In the first step, based on the detector, the size of the first human body circumscribed circle is determined with the hip center of the human body in the first image as a reference, and the first human body circumscribed circle is rotated so that in the rotated first human body circumscribed circle, the line connecting the shoulder center and the hip center of the human body in the first image is perpendicular to the ground, thereby obtaining a first ROI.
[0102] After the first image is input into the detector, the detector can first determine the hip center of the human body, and then determine a rough circumscribed circle of the human body based on the hip center. The circumscribed circle is the ROI of the human body in the first image.
[0103] Different human bodies may have different postures. For example, when some pedestrians make gestures, their upper bodies may be tilted instead of perpendicular to the ground. However, in the traffic police's action specifications, the upper body of the traffic police is perpendicular to the ground, which will lead to differences in the angles of the upper body of the identified human body. Therefore, after determining the circumscribed circle of the human body, it is also necessary to determine whether the line connecting the center of the shoulder and the center of the hip of the human body is perpendicular to the ground. If it is perpendicular to the ground, no processing is required. If it is not perpendicular to the ground, the first circumscribed circle of the human body needs to be rotated so that in the rotated first circumscribed circle of the human body, the line connecting the center of the shoulder and the center of the hip of the human body in the first image is perpendicular to the ground. In this way, the upper body of the identified human body is perpendicular to the ground, which is convenient for subsequent unified identification in the tracker. This action is also called human body alignment.
[0104] In the second step, based on the encoder, all first joint features of the human body in the first ROI are determined.
[0105] The first joint feature is also the coordinate range of possible bone points in the ROI.
[0106] In the third step, based on the decoder, a heatmap of each first joint feature is determined, and the heatmap of each first joint feature is used to make a first prediction of the first joint feature.
[0107] The decoder determines the heat map of each first joint feature, that is, converts the coordinate range of possible joints in the ROI into a heat map.
[0108] The heat map obtained based on this step can be converted into a rough coordinate range, which needs further processing to obtain a more accurate coordinate of the bone key point, that is, to make the first prediction of the first joint feature.
[0109] In the fourth step, based on the regression encoder, a second prediction is made based on the heat map of each first joint feature to determine the first skeleton key point set.
[0110] The regression encoder can determine the coordinates, offsets, and confidence of the skeletal key points in each first joint based on the heat map of each first joint feature. Here, when the regression encoder determines the coordinates of the skeletal key points, it actually outputs the position corresponding to the maximum probability of a certain skeletal key point as the coordinates of the skeletal key point, and the maximum probability is also the confidence of the coordinates of the skeletal key point.
[0111] Exemplarily, the first skeleton key point set includes 33 skeleton key points, and each skeleton key point is stored in the skeleton key point set in the form of (x, y, confidence), so that the first skeleton key point set includes 33 times 3 key data. Here, (x, y, confidence) represents that the row coordinate of a certain skeleton key point in the first image is x, the column coordinate is y, and the confidence is confidence.
[0112] For any video, the video includes multiple frames of images, each frame of the image corresponds to a set of skeleton key points, and the skeleton key point sets corresponding to the multiple frames of the image of the same video can be stored in the same file.
[0113] In the disclosed embodiment, both the detector and the tracker can determine whether there is a human body in an image. For example, when there is no human body in an image, the tracker will output a detection failure result, indicating that there is no human body in the image. On this basis, if the tracker detects that there is no human body in a frame image, the next frame image of the frame image is input to the detector, until the detector detects an image with a human body, the image with a human body is input to the tracker, and the next frame image of the image with a human body is directly input to the tracker without passing through the detector.
[0114] Optionally, the skeletal key point extraction module 11 is also used to: based on the tracker, determine the second ROI in the second image based on the first skeletal key point set, the second image is the next frame image of the first image, and the second ROI is the area where the second skeletal key points of the human body in the second image exist; based on the encoder, determine all second joint features of the human body in the second ROI; based on the decoder, determine the heat map of each second joint feature, and the heat map of each second joint feature is used to make a first prediction of the second joint feature; based on the regression encoder, make a second prediction based on the heat map of each second joint feature to determine the second skeletal key point set of the human body in the second image.
[0115] Determining the second ROI in the second image based on the first skeleton key point set includes: adding 10% of the human body motion range to the first skeleton key point set to obtain the second ROI.
[0116] The processing of the second image by the tracker is, that is, the processing of the next frame of the image with a human body by the tracker when the next frame of the image with a human body is directly input into the tracker without passing through the detector.
[0117] In common human pose estimation algorithms, in order to achieve higher prediction accuracy, most key point extraction methods have turned to heat map-based technology instead of early direct regression algorithms. This heat map-based pose estimation algorithm can maintain good results even in multi-person recognition scenarios, but its computational overhead is large, which poses a challenge in real-time inference applications on mobile terminals. The BlazePose used in this solution provides a lighter-weight pose estimation solution that combines heat map and regression methods, significantly reducing computational overhead while ensuring accuracy. It not only supports GPU computing, but can also achieve almost real-time operation in a CPU environment, successfully meeting the needs of real-time human skeleton point detection in complex backgrounds in intelligent driving.
[0118] Figure 4 This is a workflow diagram of the skeleton key point extraction module. Figure 4 Part (a) is a schematic diagram of the workflow of the skeleton key point extraction module for extracting skeleton key points from a single frame image. Figure 4 Part (b) is a schematic diagram of the workflow of the skeleton key point extraction module for extracting skeleton key points from a video.
[0119] like Figure 4 As shown in part (a) of the figure, when extracting bone key points from a single-frame image, the single-frame image is first sent to the detector to extract the ROI of the image, and then the ROI is sent to the tracker, the encoder and decoder in the tracker are used to extract the heat map, and the offset is determined by the regression encoder to finally determine the coordinates of each bone key point.
[0120] like Figure 4 As shown in part (b), when extracting skeletal key points from a video, the images in the video are first sent to the detector frame by frame for human presence detection. If the detector does not detect a human body, that is, the detection fails, the next frame of the image is sent to the detector; if the detector detects a human body, for example, a human body is detected from the first image, the size of the circumscribed circle of the human body in the first image is determined, and the human body is aligned to obtain the ROI area. Then, the detector sends the ROI area to the tracker for processing. The tracker performs skeletal key point detection based on the ROI, and estimates the ROI for the next frame of the first image, and performs human presence detection at the same time. If the result of the human presence detection of a frame is a detection failure, that is, the human body is not detected, the next frame of the frame is input to the detector.
[0121] Optionally, the skeleton vector construction module 12 is used to determine a first human skeleton set based on some first skeleton key points in the first skeleton key point set, where the first human skeleton set includes multiple first bones, and the multiple first bones constitute a first human skeleton map.
[0122] Based on the first human skeleton diagram, when the human body is in the shape of a "big" character, the direction of each first bone can be determined according to the rule that the bone endpoint close to the center of the hip is the starting point and the endpoint farthest from the center of the hip is the end point. Each first bone with a direction is a first bone vector, thereby obtaining multiple first bone vectors in the first bone vector set, and these multiple first bone vectors constitute the first skeleton vector diagram.
[0123] In the disclosed embodiment, the difference between each first bone and the corresponding first bone vector is that the first bone vector has one more direction than the first bone, and the rest are the same, for example, the length characteristics of the two are the same. Therefore, the length characteristic of each first bone can be determined first, and the length of the first bone can be used as the length of the first bone vector. Alternatively, multiple first bone vectors can be determined first, and then the length characteristic of each first bone vector can be determined, which is not limited in the disclosed embodiment.
[0124] Optionally, the length of each first bone is determined by formula (4).
[0125]
[0126] In formula (4), F1 is the length feature, s is any first bone, S is the first human bone set, s i is the i-th first bone in the first human skeleton set, i is a positive integer and i is less than 11; s body The torso length is represented by the length of the line between the midpoint of the line connecting the left hip key point and the right hip key point in the first bone key point set and the line connecting the nose bone key point.
[0127] Here, since the torso usually remains upright and its length is relatively fixed between different gestures, the torso length can be used as a reference for determining the length feature. In addition, since the torso should always remain upright in the traffic police gesture specification, when determining the traffic police gesture, using the torso length as a reference for determining the length feature can make the determined gesture type more accurate.
[0128] In the disclosed embodiment, by using the trunk length as the reference data to calculate the length feature, the gesture feature will not be affected by the change of viewing angle and the movement of the human body. In addition, the trunk length is substantially greater than the length of other bones. When calculating the length feature, the longer trunk length is used as the denominator. When slight errors occur between images of different frames, the error is almost negligible relative to the trunk, and has little impact on the calculation result, so the calculation result is more accurate. However, if other shorter bones are used as the denominator when calculating the length feature, the error is not negligible relative to other shorter bones, resulting in a large error in the calculation result.
[0129] Optionally, the skeleton vector construction module 12 is also used for determining the angle feature of each first skeleton vector based on the sine value and cosine value of each first skeleton vector and the gravity vector.
[0130] Optionally, formula (5) is used to determine the angle feature of each first bone vector:
[0131]
[0132] In formula (5), F2 is the angle feature, v is any first bone vector in the first bone vector set, V is the first bone vector set, and v i is the i-th first bone vector in the first bone vector set, and g is the unit gravity vector, that is, the unit vector in the gravity direction. The meanings of other parameters in formula (5) are the same as those in formula (4), and detailed description is omitted here.
[0133] in, Represents the cosine value of the first bone vector and the gravity vector, Represents the sine of the first bone vector and the gravity vector.
[0134] In practical applications, since the human body captured during vehicle driving is usually perpendicular to the ground, the image is also horizontal to the ground. Therefore, the unit gravity vector can be selected as the reference of the angle feature.
[0135] Figure 5 is a schematic diagram for determining the length features and angle features of multiple first bone vectors. Figure 5 As shown in part (a) of FIG. 1 , the key bone points used to construct the first bone vector set include: the right shoulder key point Y 11 , left shoulder key point Y 12 , right elbow key point Y 13 , left elbow key point Y 14 , right wrist key point Y 15 , left wrist key point Y 16 , right hip key point Y 23 , left hip key point Y 24 , right knee key point Y 25 , left knee key point Y 26 , right ankle key point Y 27 , left ankle key point Y 28 The torso length passes through the right hip key point Y 23 and the left hip key point Y 24 It is determined by the length of the line connecting the midpoint of and the nose key point Y0.
[0136] Based on these 12 first skeleton key points, 10 first skeletons can be determined, including: left upper arm skeleton S1, left lower arm skeleton S2, left trunk skeleton S3, left thigh skeleton S4, left calf skeleton S5, right upper arm skeleton S6, right lower arm skeleton S7, right trunk skeleton S8, right thigh skeleton S9, right calf skeleton S10, right lower arm skeleton S11, right lower arm skeleton S12, right lower arm skeleton S13, right lower arm skeleton S14, right lower arm skeleton S15, right lower arm skeleton S16, right lower arm skeleton S17, right lower arm skeleton S18, right lower arm skeleton S19, right lower arm skeleton S20, right lower arm skeleton S21, right lower arm skeleton S22, right lower arm skeleton S23, right lower arm skeleton S24, right lower arm skeleton S25, right upper arm skeleton S26, right lower arm skeleton S27, right lower arm skeleton S28, right upper arm skeleton S29, right lower arm skeleton S30, right upper arm skeleton S31, right lower arm skeleton S32 10 .
[0137] like Figure 5 As shown in part (b) of the first skeleton vector set, the plurality of first skeleton vectors in the first skeleton vector set include: a first left upper arm vector V1, a first right upper arm vector V6, a first left forearm vector V2, a first right forearm vector V7, a first left trunk vector V3, a first right trunk vector V8, a first left thigh vector V4, a first right thigh vector V9, a first left calf vector V5, and a first right calf vector V 10 It can be seen that the bone endpoint of each first bone vector close to the hip center O is the starting point, and the endpoint far from the hip center O is the end point.
[0138] The temporal feature extraction module 13 is used to extract the temporal features of the human body's bone vector in the video based on the length features and angle features of the human body's bone vector in each frame of the continuous multi-frame images.
[0139] In the disclosed embodiment, the time series feature extraction module 13 is a LSTM (Long Short Time Memory) network.
[0140] Optionally, the temporal feature extraction module 14 is used to extract the temporal features of the human body's bone vector in the video based on the length features and angle features of the human body's bone vector in each frame of the continuous multi-frame image in the following manner:
[0141] For the first and second steps of the following three steps, the temporal feature extraction module 14 performs the same processing actions on each frame of the image, so the first and second steps are explained using the first image as an example. For other images in the multiple frames of images, the processing method of the first image can be referred to.
[0142] In the first step, the length feature and the angle feature of the first bone vector are concatenated by matrix to obtain the first feature of the first bone vector.
[0143] Optionally, the first step is implemented based on formula (6).
[0144]
[0145] In formula (6), F is the first feature, Indicates the matrix concatenation of length features and angle features.
[0146] In the second step, the first feature is input into the LSTM network.
[0147] The LSTM network is composed of multiple LSTM units. The working principle of any LSTM unit can be expressed by formula (7).
[0148]
[0149] In formula (7), C t is the content saved by the LSTM unit, h t-1 is the output of the LSTM unit at the previous moment, C t-1 is the content saved by the LSTM unit at the previous moment, F t is the vector input to the LSTM unit, for example, it can be the first feature of a first bone vector, σ is the sigmoid activation function; W1, W2 and W3 are weight parameters, b1, b2 and b3 are bias parameters, W1, W2, W3, b1, b2 and b3 are all parameters that can be obtained by training the LSTM network.
[0150] After each frame of the image is processed in the above manner, the LSTM network can extract the temporal features of the human body's bone vector in the video based on the length features and angle features of the human body's bone vector in each frame of the image.
[0151] The third step is to determine the temporal features of the first skeleton vector based on the LSTM network.
[0152] The temporal features of the human skeleton vector in the video extracted by the LSTM network are the output h of the current layer of LSTM. t Optionally, h t It is calculated by formula (8).
[0153] h t =σ(W4·[h t-1 +F t ]+b4·tanh(C t ) (8)
[0154] In formula (8), W4 is similar to W1, W2 and W3 and is also a weight parameter, and b4 is similar to b1, b2 and b3 and is also a bias parameter. W4 and b4 are also parameters that can be obtained by training the LSTM network. The meanings of other parameters in formula (8) are the same as those in formula (7) and are not described in detail here.
[0155] In the disclosed embodiment, the temporal feature extraction module 14 is implemented through the LSTM network, which makes full use of the spatial feature information of the gesture (that is, the length feature and the angle feature). On the one hand, it ensures the accuracy of recognition, and on the other hand, it effectively reduces the computing cost and avoids the dependence on high-performance hardware, thereby making the gesture recognition system 100 more suitable for real-time mobile scenarios.
[0156] The temporal feature extraction module 13 determines the temporal features of the skeleton vectors of the human body in the video, and the temporal features can be input into the fully connected layer 14 to obtain the classification result of the gesture.
[0157] The fully connected layer 14 is used to classify the gestures of the human body in the first image based on the temporal features of the skeleton vectors of the human body in the video. Here, the temporal features of the skeleton vectors of the human body in the video are also h t .
[0158] The fully connected layer 14 can transform h t Mapped to the predefined 10 gesture categories and output h t For the probability distribution of different categories, the category with the highest probability is h t The type of human gesture in the corresponding video is also the gesture recognition result.
[0159] Optionally, the parameters in the gesture recognition system 100 can be adjusted by an Adam optimizer. The Adam optimizer helps the model to effectively navigate in the parameter space through the mechanism of adaptive learning rate, thereby accelerating the convergence process and improving training efficiency.
[0160] In order to ensure that the gesture recognition system 100 does not overfit the training data during the training process, the gesture recognition system 100 optionally further includes a Dropout layer (not shown). The Dropout layer randomly discards a certain proportion of neuron connections with a set probability in each iteration, thereby reducing the sensitivity of the model to noise in the training data, thereby enhancing the generalization ability of the model when facing unknown data.
[0161] Optionally, when the training module 15 trains the gesture recognition system 100, the difference between the probability distribution output by the gesture recognition system 100 and the true label can be measured by a cross-entropy loss function. The difference can be expressed as a loss. Generally speaking, the smaller the loss, the better the recognition effect of the gesture recognition system 100. In the process of training the gesture recognition system 100, the loss will continue to decrease.
[0162] There are many methods for implementing the cross entropy loss function in related technologies, so detailed description is omitted here.
[0163] In the embodiment of the present disclosure, during the process of training the gesture recognition system 100, a training may be first performed to obtain the first number of training rounds (for example, 100,000 rounds) when the loss no longer decreases. When the loss no longer decreases, it indicates that the gesture recognition system 100 has been trained.
[0164] When the gesture recognition system 100 is subsequently trained, the maximum number of training rounds may be set based on the first number of training rounds, for example, the maximum number of training rounds may be set to the first number of training rounds, or a value greater than the first number of training rounds.
[0165] It should be noted that when the gesture recognition device provided in the above embodiment performs gesture recognition, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0166] The division of modules in the embodiments of the present disclosure is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present disclosure may be integrated into a processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0167] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a terminal device (which can be a personal computer, a mobile phone, or a communication device, etc.) or a processor (processor) to perform all or part of the steps of the method of each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0168] The embodiment of the present disclosure further provides a gesture recognition method, comprising: inputting a video to be recognized into the gesture recognition system 100 to obtain a gesture type of the video to be recognized.
[0169] The above description is only an optional embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A gesture recognition system, characterized in that: The gesture recognition system comprises a skeleton key point extraction module, a skeleton vector construction module, a temporal feature extraction module and a fully connected layer connected in sequence. The skeleton key point extraction module is used to extract a first skeleton key point set of a human body in a first image based on a detector and a tracker, wherein the first skeleton key point set includes a plurality of first skeleton key points, the detector is used to determine a first ROI region of interest in the first image, the first ROI is a region where the first skeleton key points exist, the tracker is used to determine the first skeleton key point set based on the first ROI, and the first image is an image of a human body in the first frame of a video; The skeleton vector construction module is used to determine a first skeleton vector set based on some first skeleton key points in the first skeleton key point set, wherein the first skeleton vector set includes a plurality of first skeleton vectors, and the plurality of first skeleton vectors constitute a first human skeleton vector map, and determine length features of the plurality of first skeleton vectors based on a trunk length of a human body in the first image; The temporal feature extraction module is used to extract the temporal features of the human body bone vector in the video based on the length features of the human body bone vector in each frame of the continuous multi-frame images, wherein the continuous multi-frame images are continuous multi-frame images in the video, and the continuous multi-frame images include the first image; The fully connected layer is used to classify the gestures of the human body in the first image based on the temporal features of the skeleton vectors of the human body in the video.
2. The gesture recognition system according to claim 1, characterized in that: The tracker includes an encoder, a decoder and a regression encoder, and the skeleton key point extraction module is used to implement the extraction of skeleton key points of the human body in the first image based on the detector and the tracker in the following manner: Based on the detector, taking the hip center of the human body in the first image as a reference, determining the size of the first human body circumscribed circle, and rotating the first human body circumscribed circle so that in the rotated first human body circumscribed circle, a line connecting the shoulder center of the human body in the first image and the hip center is perpendicular to the ground, thereby obtaining the first ROI; Based on the encoder, determining all first joint features of the human body in the first ROI; Based on the decoder, determining a heat map of each of the first joint features, wherein the heat map of each of the first joint features is used to make a first prediction of the first joint feature; Based on the regression encoder, a second prediction is performed on the basis of the heat map of each of the first joint features to determine the first skeleton key point set.
3. The gesture recognition system according to claim 2, characterized in that: The skeleton key point extraction module is also used for: Based on the tracker, determining a second ROI in a second image based on the first set of skeleton key points, where the second image is a next frame image of the first image, and the second ROI is a region where second skeleton key points of a human body in the second image exist; Based on the encoder, determining all second joint features of the human body in the second ROI; Based on the decoder, determine a heat map of each second joint feature, wherein the heat map of each second joint feature is used to make a first prediction of the second joint feature; Based on the regression encoder, a second prediction is performed on the basis of the heat map of each of the second joint features to determine a second set of skeletal key points of the human body in the second image.
4. The gesture recognition system according to any one of claims 1 to 3, characterized in that: The multiple first bone vectors include: a first left upper arm vector, a first right upper arm vector, a first left forearm vector, a first right forearm vector, a first left torso vector, a first right torso vector, a first left thigh vector, a first right thigh vector, a first left calf vector and a first right calf vector.
5. The gesture recognition system according to any one of claims 1 to 3, characterized in that: The gesture recognition system is connected to a training module, and the training module is used to pre-process a plurality of videos in a training data set, each of the videos comprising a plurality of frames of images that are continuous in time; The training module is used to implement the preprocessing of the multiple videos in the training data set in the following manner: For a third image in a first video, the third image is divided into a plurality of sub-blocks arranged in an array, each sub-block is different from another, the first video is any one of the plurality of videos, and the third image is any frame image in the first video; Performing grayscale histogram equalization processing on the multiple sub-blocks to obtain a grayscale mapping table for each of the sub-blocks; Based on the grayscale mapping table of each sub-block, the grayscale value of each pixel in the third image is determined.
6. The gesture recognition system according to claim 5, characterized in that: The training module is used to implement the grayscale mapping table based on each of the sub-blocks to determine the grayscale value of each pixel in the third image in the following manner: Determine a first dependent sub-block of a first pixel, where the first pixel is any pixel in the first sub-block, and the first sub-block is any one of the multiple sub-blocks; Based on the first dependent sub-block, determining a second dependent sub-block, a third dependent sub-block, and a fourth dependent sub-block; Based on the grayscale value of the first pixel before the grayscale histogram equalization processing and the grayscale mapping table of each of the sub-blocks, respectively determine the grayscale mapping values of the first pixel in the first dependent sub-block, the second dependent sub-block, the third dependent sub-block, and the fourth dependent sub-block to obtain four grayscale mapping values; Based on the four grayscale mapping values, bilinear interpolation is performed on the grayscale value of the first pixel before the grayscale histogram equalization processing to obtain the grayscale value of the first pixel.
7. The gesture recognition system according to claim 5, characterized in that: The training module is also used to implement the preprocessing of the multiple videos in the training data set in the following manner: Based on a Gaussian filter in the spatial domain and a Gaussian filter in the value domain, a bilateral filtering denoising process is performed on the pixel value of each pixel in the third image to obtain a corrected pixel value of each pixel; The Gaussian filter in the spatial domain is implemented using the following formula: The Gaussian filter of the range is implemented using the following formula: Among them, G s is a Gaussian filter in the spatial domain, G r is a Gaussian filter with a value range, e is a natural base, p is the coordinate of pixel point p, q is the coordinate of pixel point q, the pixel point p and the pixel point q are any two adjacent pixels in the third image in the spatial domain, I p is the pixel value of pixel p, I q is the pixel value of pixel q, is the smoothing parameter.
8. The gesture recognition system according to claim 5, characterized in that: Each of the multiple videos in the training data set corresponds to a label in a label set, the label set is synchronized with the time sequence of the multiple videos, and the labels in the label set are used to annotate multiple frames of images in which gestures are present in the video; The training module is further configured to: when training the gesture recognition system based on the multiple videos, adjust the timing of the label set and the multiple videos so that the timing of the label set lags behind the timing of the multiple videos by a first time length.
9. The gesture recognition system according to any one of claims 1 to 3, characterized in that: The skeleton vector construction module is further used to determine the angle feature of each of the first skeleton vectors based on the sine value and cosine value of each of the first skeleton vectors and the gravity vector; The temporal feature extraction module is also used to extract the temporal features of the human body's bone vector in the video based on the length features and angle features of the human body's bone vector in each frame of multiple consecutive frames of images.
10. A gesture recognition method, characterized in that: The method comprises: The video to be recognized is input into the gesture recognition system according to any one of claims 1 to 9 to obtain the gesture type of the video to be recognized.
Citation Information
Patent Citations
Traffic police gesture recognition method based on convolutional posture machine and long-short-term memory network
CN110287844A
Gesture recognition method based on limb skeleton and head and hand part contour fusion
CN112183198A
Bone and sensor bimodal human behavior recognition method based on self-attention graph convolution
CN116363757A
Action identification device, action identification method, and action identification program
WO2022024294A1
Sign language recognition method and apparatus, electronic device, and readable storage medium
WO2024083138A1
