A human posture recognition and interaction method and system applied to virtual reality

The depth map and contour map of the human body are obtained through the binocular camera, the human body posture is recognized and interacted, which solves the problem of difficult interaction between virtual objects and real objects in virtual reality technology, and achieves precise interaction and operation effects of virtual objects.

CN117690184BActive Publication Date: 2024-09-24SHENZHEN CHUANGXIANG DIGITAL TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311702898.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-12
Publication Date
2024-09-24
Estimated Expiration
2043-12-12

AI Technical Summary

Technical Problem

In existing virtual reality technology, it is difficult to interact between virtual objects and real objects, especially the interaction between objects of different sizes and models. This is because the virtual scene construction needs to be close to the shape of real objects, making interaction difficult.

Method used

Binocular cameras are used to obtain the depth map and contour map of the human body. Through the human posture recognition and interaction system, it is judged whether the human body is in contact with the virtual object, and the interaction is carried out according to the posture type. The human body key point network and gesture discrimination network are used for accurate recognition and interaction.

Benefits of technology

It realizes the interaction between virtual objects and virtual reality scenes, simulates the effect of operating virtual objects, makes operating virtual objects similar to operating real objects, and solves the problem of size and model differences in the interaction between virtual objects and real objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117690184B
    Figure CN117690184B
Patent Text Reader

Abstract

The present invention discloses a human posture recognition method and system for virtual reality. The present invention solves the problem of using a binocular camera to recognize human posture and complete the interaction between people and virtual scenes in virtual shooting in a live studio. First, determine whether the human body is in contact with a virtual object, and then determine whether the contacted parts can interact. According to the posture of the roughly classified gesture, determine whether the gesture is cyclic. Inputting the gesture contour image into a temporal convolutional network not only reduces the burden of the network, but also can accurately determine the transformation of the network. And by inputting the cyclic gesture image into a gesture similarity network, the similarity of gestures can also be better judged. It is possible to interact with virtual objects without interacting with temporal objects, but to obtain operation signals for actual objects through the overall posture of the virtual object interaction and the gesture posture, thereby interacting with the actual object, so that operating the virtual object is equivalent to operating the real object, without considering the interactive components.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a human body posture recognition and interaction method and system applied to virtual reality. Background Art

[0002] At present, it is very common to set up virtual scenes in live broadcast rooms, and the interaction of virtual reality usually adopts the virtual shape of real objects for interaction, but such interaction usually requires the interaction of objects that are the same or similar to the virtual objects, and it is not easy to interact with dissimilar objects. For example, to debug the radio by selecting the rotary button, it is generally necessary to interact with the toilet where the real object has a rotary button. However, in the construction of the virtual scene, in order to make the construction of the virtual image close to different sizes and models, the virtual buttons and the real buttons will produce different situations, so it is necessary to interact with the virtual reality in this case. Summary of the invention

[0003] The purpose of the present invention is to provide a human body posture recognition and interaction method and system applied to virtual reality, so as to solve the above-mentioned problems existing in the prior art.

[0004] In a first aspect, an embodiment of the present invention provides a human body posture recognition and interaction method applied to virtual reality, comprising:

[0005] Acquire multiple groups of images captured by a binocular camera; each group of images includes two images; and the images include human bodies;

[0006] The two captured images are corrected respectively, and after correction, pixel matching is performed to obtain a human body depth map; the human body depth map represents the distance from the binocular camera to each point in the scene;

[0007] Constructing a virtual scene according to the human body depth map; the virtual scene is a scene in which virtual objects replace real objects;

[0008] Based on the human body depth map, human body contour recognition is performed to obtain a human body contour map; multiple groups of captured images are used to obtain multiple human body depth maps and multiple human body contour maps;

[0009] Based on the human body outline and virtual scene, determine whether the human body is in contact with the interactive object;

[0010] If the continuous time length of the human body contacting the interactive object is greater than the contact threshold, the human body posture changes at multiple time points are judged according to multiple human body depth maps and human body contour maps to obtain the posture type;

[0011] If the human body contacts the interactive object, the interaction is performed according to the gesture type.

[0012] Optionally, if the continuous time length of the human body contacting the interactive object is greater than the contact threshold, judging the human body posture changes at multiple time points according to multiple human body depth maps and human body contour maps to obtain the posture type includes:

[0013] According to the human body contour map, human body key point information is obtained through a human body key point network; the human body key point information includes positions and labels of multiple human body key points;

[0014] Connecting the key points of the human body according to the labels to obtain the overall human body posture;

[0015] According to the center of gravity of two human body contour images at adjacent time points, the two human body contour images are overlapped;

[0016] The overall human body posture is used to replace the human body in the corresponding human body contour image, and the Hausdorff distance is calculated as the overall similarity value;

[0017] If the overall similarity value is greater than the overall similarity threshold and the corresponding overall gesture types are the same, obtaining the gesture type according to the human body key point information and the human body depth map;

[0018] If the gesture posture types are the same, the overall human body posture and the gesture posture type are used as the posture type.

[0019] Optionally, if the overall similarity value is greater than an overall similarity threshold and the corresponding overall gesture types are the same, obtaining the gesture type according to the human body key point information and the human body depth map includes:

[0020] According to the labels in the human body key point information, a position frame is set, and an image of the position frame in the human body depth map is extracted to obtain a gesture image;

[0021] According to the gesture image, a gesture contour is obtained by using an edge detection algorithm;

[0022] According to the gesture image, a gesture rough classification network is used to perform rough classification to obtain human gesture categories; the human gesture categories include clenching a fist, opening the fist, and extending the knuckles;

[0023] Multiple time points correspond to multiple gesture images, multiple gesture contours, and multiple human gesture categories;

[0024] Based on the human body gesture category, gesture contour image and gesture image, the gesture posture type is obtained through a gesture discrimination network.

[0025] Optionally, obtaining the gesture posture type through a gesture discrimination network based on the human gesture category, the gesture contour image and the gesture image includes:

[0026] The gesture discrimination network includes a temporal convolutional network and a gesture similarity network;

[0027] Classify the human gestures at multiple time points and determine whether they are cyclically changing gestures or non-changing gestures;

[0028] If it is a cyclically changing gesture or a non-changing gesture, the gesture contour images and gesture images at the multiple time points are respectively put into a gesture contour set and multiple gesture sets according to the same order in the cycle;

[0029] Input gesture contour images at multiple time points into the temporal convolutional network to obtain the change of gesture contour and the type of changed gesture posture;

[0030] The images in the multiple gesture sets are input into the gesture similarity network to make similarity judgments and obtain gesture similarity values;

[0031] If the gesture similarity value is greater than the gesture similarity threshold, the changed gesture posture type is set as the gesture posture type.

[0032] Optionally, the step of inputting the images in the plurality of gesture sets into a gesture similarity network to perform similarity judgment and obtain gesture similarity values ​​includes:

[0033] The gesture similarity network includes a first gesture extraction network, a second gesture extraction network and a discriminant network;

[0034] Acquire a first gesture image and a second gesture image; the second gesture image is a gesture image at a time point adjacent to the first gesture image; the time point at which the second gesture image is acquired is earlier than the time point of the first gesture image;

[0035] Inputting the first gesture image into a first gesture extraction network, extracting first gesture image features, and obtaining first gesture features;

[0036] Inputting the second gesture image into a second gesture extraction network, extracting second gesture image features, and obtaining second gesture features;

[0037] Inputting the first gesture feature and the second gesture feature into a discriminant network to obtain a discriminant value;

[0038] The absolute value of the discriminant value minus 0.5 is set as the gesture similarity value.

[0039] Optionally, the human body key point network includes:

[0040] Obtaining a training set; the training set includes a plurality of training images and a plurality of annotated data; the training images include training human body images and training human body contour images; the annotated data include marking positions and numbers of hands, arms, head, torso, and legs;

[0041] Inputting the training human body image into a first human body key point network, extracting human body features, and obtaining first training features;

[0042] Inputting the training human body contour image into a second human body key point network, extracting human body posture features, and obtaining second training features;

[0043] The first training feature and the second training feature are combined to obtain a human body key point output value;

[0044] The output value of the human body key points and the labeled data are used to calculate the loss, and the human body key point network is trained.

[0045] Optionally, judging whether the human body contacts the interactive object according to the human body outline image and the virtual scene includes:

[0046] According to the distance between the human body and the real fixed object in the image, find the distance from the human body to the binocular camera, the first human body distance;

[0047] Subtract the distance from the virtual object to the binocular camera from the first human body distance, and calculate the absolute value to obtain the first horizontal distance;

[0048] According to the interactive virtual objects in the virtual scene, find the plane distance between the interactive objects to obtain a first vertical distance;

[0049] Calculating the first object distance based on the first horizontal distance and the first vertical distance by using the Pythagorean theorem;

[0050] According to the first human body distance, a contact threshold is obtained; the contact threshold is less than the first human body distance;

[0051] If the first object distance is less than the contact threshold, it is assumed that the human body can contact the interactive object;

[0052] If the first object distance is greater than or equal to the contact threshold, it is assumed that the human body is not in contact with the interactive object.

[0053] Optionally, constructing a virtual scene according to the human body depth map includes:

[0054] Acquire virtual object information; the virtual object information includes the appearance and position of the set object;

[0055] Acquire a real scene image; the real scene image is a depth map of an object in real life captured by a binocular camera;

[0056] According to the appearance and position of the object in the real scene image, the real object information is obtained;

[0057] The real object information in the real scene image is replaced by the virtual object information to obtain a virtual fixed object image.

[0058] Optionally, judging whether the human body is interacting according to the posture type and the operation position includes:

[0059] Acquire the corresponding real operation according to the posture type;

[0060] Send real operation signals to control real objects to react.

[0061] In a second aspect, an embodiment of the present invention provides a human posture recognition and interaction system applied to virtual reality, including:

[0062] Acquisition module: acquires multiple groups of images captured by a binocular camera; each group of images includes two images; the images include human bodies;

[0063] Correction module: correct the two captured images respectively, match the pixels after correction, and obtain a human depth map; the human depth map represents the distance from the binocular camera to each point in the scene;

[0064] A virtual scene construction module: constructs a virtual scene according to the human body depth map; the virtual scene is a scene in which virtual objects replace real objects;

[0065] Human body contour recognition module: based on the human body depth map, human body contour recognition is performed to obtain a human body contour map; multiple groups of captured images are used to obtain multiple human body depth maps and multiple human body contour maps;

[0066] Discrimination module: Determines whether the human body is in contact with an interactive object based on the human body outline and virtual scene;

[0067] Posture module: If the continuous time length of the human body contacting the interactive object is greater than the contact threshold, the human body posture changes at multiple time points are judged according to multiple human body depth maps and human body contour maps to obtain the posture type;

[0068] Interaction module: If the human body contacts an interactive object, the interaction is performed according to the posture type.

[0069] Compared with the prior art, the embodiments of the present invention achieve the following beneficial effects:

[0070] The embodiment of the present invention also provides a method and system for human posture recognition and interaction applied to virtual reality, the method comprising: obtaining multiple groups of images taken by a binocular camera; each group of images includes two images; the images include human bodies; correcting the two images respectively, matching pixels after correction, and obtaining a human body depth map; the human body depth map represents the distance from the binocular camera to each point in the scene; constructing a virtual scene according to the human body depth map; the virtual scene is a scene in which virtual objects replace real objects; based on the human body depth map, recognizing human body contours and obtaining a human body contour map; obtaining multiple human body depth maps and multiple human body contour maps corresponding to the multiple groups of images; judging whether the human body contacts an interactive object according to the human body contour map and the virtual scene; if the continuous time length of the human body contacting the interactive object is greater than the contact threshold, judging the human body posture changes at multiple time points according to the multiple human body depth maps and the human body contour map, and obtaining the posture type; if the human body contacts the interactive object, interacting according to the posture type.

[0071] The present invention solves the problem of using a binocular camera to recognize human postures and complete the interaction between people and virtual scenes in virtual shooting in a live studio. First, determine whether the human body is in contact with the virtual object, and then determine whether the contacted parts can interact. Because if you want to interact, such as rotating a button, touching, etc., the human body and the virtual contour will interact. In the case of button, rotation and other operations, it is related to the human body posture, such as a cycle or a short-term stay posture, so according to the posture of the roughly classified gesture, it is determined whether the gesture is cyclic. Because the gesture contour image only includes the contour of the gesture, and the gesture image includes not only the gesture posture change but also the color and shape of the hand, so the gesture contour image is input into the temporal convolutional network, which not only reduces the network burden, but also can accurately judge the transformation of the network. And by inputting the cyclic gesture image into the gesture similarity network, the similarity of the gesture can also be better judged.

[0072] In summary, the present invention can achieve interaction with virtual objects without interacting with time objects, but obtains operation signals of actual objects through the overall posture and gesture posture of virtual object interaction, thereby interacting with actual objects, making operating virtual objects equivalent to operating real objects without considering the interactive components. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] Figure 1 This is a flow chart of a human posture recognition and interaction method applied to virtual reality provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0074] The present invention will be described in detail below with reference to the drawings.

[0075] Example 1

[0076] like Figure 1 As shown, an embodiment of the present invention provides a human posture recognition and interaction method applied to virtual reality, the method comprising:

[0077] S101: Acquire multiple groups of images captured by a binocular camera; each group of images includes two images; and the images include human bodies.

[0078] In this embodiment, the plurality of groups of captured images are set to capture one image per second.

[0079] S102: Correcting the two captured images respectively, and performing pixel matching after correction to obtain a human body depth map; the human body depth map indicates the distance from the binocular camera to each point in the scene;

[0080] Among them, correction is performed through the distortion correction function undistort() and the stereo calibration function stereoCalibrate() in opencv.

[0081] S103 constructs a virtual scene according to the human body depth map; the virtual scene is a scene in which virtual objects replace real objects.

[0082] S104: Based on the human body depth map, perform human body contour recognition to obtain a human body contour map. Multiple groups of captured images correspond to obtaining multiple human body depth maps and multiple human body contour maps.

[0083] The human body contour image is an image obtained by extracting the human body contour, wherein the human body contour portion is black and the other portions are white as a binary image.

[0084] S105: judging whether the human body contacts the interactive object according to the human body outline image and the virtual scene.

[0085] S106: if the continuous time length of the human body contacting the interactive object is greater than the contact threshold, judging the human body posture changes at multiple time points according to multiple human body depth maps and human body contour maps, and obtaining the posture type;

[0086] In this embodiment, the contact threshold is set to 5, indicating that the continuous time length is 5 seconds.

[0087] Among them, multiple images are used to determine the dwell time, so as to determine whether to interact.

[0088] S107: If the human body contacts the interactive object, interaction is performed according to the gesture type.

[0089] Optionally, if the continuous time length of the human body contacting the interactive object is greater than the contact threshold, judging the human body posture changes at multiple time points according to multiple human body depth maps and human body contour maps to obtain the posture type includes:

[0090] According to the human body contour map, a plurality of human body key point information is obtained through a human body key point network; the human body key point information includes positions and labels.

[0091] The key points of the human body are connected according to the labels to obtain the overall human body posture.

[0092] According to the center of gravity of two human body contour images at adjacent time points, the two human body contour images are overlapped.

[0093] Among them, the center of gravity of two human body contour images at adjacent time points is moved to the same position, and the Hausdorff distance is calculated.

[0094] The overall human posture is used to replace the human body in the corresponding human silhouette image, and the Hausdorff distance is calculated as the overall similarity value.

[0095] If the overall similarity value is greater than the overall similarity threshold and the corresponding overall gesture types are the same, the gesture posture type is obtained according to the human body key point information and the human body depth map.

[0096] The value of the overall similarity threshold is 5. If the calculated distance is less than 5, the overall similarity value is set to 1, and if the calculated distance is greater than or equal to 5, the overall similarity value is set to 0.

[0097] If the gesture posture types are the same, the overall human body posture and the gesture posture type are used as the posture type.

[0098] Optionally, if the overall similarity value is greater than an overall similarity threshold and the corresponding overall gesture types are the same, obtaining the gesture type according to the human body key point information and the human body depth map includes:

[0099] According to the labels in the human body key point information, a position frame is set, and an image of the position frame in the human body depth map is extracted to obtain a gesture image.

[0100] In this embodiment, the positions of the two hands are marked as 1 and 2. A 40x40 frame is constructed at the positions of 1 and 2 in the human body depth map to extract the image.

[0101] According to the gesture image, a gesture contour is obtained by using an edge detection algorithm.

[0102] In this embodiment, the edge detection algorithm uses the Canny function in the OpenCV library to extract the gesture contour.

[0103] According to the gesture image, a gesture rough classification network is used to perform rough classification to obtain human gesture categories; the human gesture categories include clenching a fist, opening the fist, and extending the knuckles.

[0104] In this embodiment, the gesture rough classification network includes a convolutional neural network and a classifier. Convolutional neural networks are used for feature extraction, and a softmax classifier is used for classification. The gesture rough classification network is trained by three images of clenched fists, open fists, and extended knuckles of multiple people at multiple angles.

[0105] The human body gesture category, gesture contour image and gesture image are input into a gesture discrimination network to obtain a gesture human body posture and a gesture posture type.

[0106] Optionally, obtaining the gesture posture type through a gesture discrimination network based on the human gesture category, the gesture contour image and the gesture image includes:

[0107] The human gesture category at multiple time points is determined to determine whether it is a cyclically changing gesture or a non-changing gesture.

[0108] In this embodiment, the Huffman compression algorithm is used to check whether the byte sequence is repeated, so as to determine whether it is a cyclically changing gesture or a non-changing gesture.

[0109] If it is a cyclically changing gesture or a non-changing gesture, the gesture contour images and gesture images at the multiple time points are respectively put into a gesture contour set and multiple gesture sets according to the same order in the cycle.

[0110] Among them, such as 1, 2, 3, 4; looping with 2 as the node, then the gesture categories corresponding to 1 and 3 are the same, and the gesture categories corresponding to 2 and 4 are the same. Put the gesture contour images corresponding to 1 and 3 into the gesture contour set, and the corresponding gesture images into the gesture set. Put the gesture contour images corresponding to 2 and 4 into the gesture contour set, and the corresponding gesture images into the gesture set.

[0111] The gesture contour images at multiple time points are input into the temporal convolutional network to obtain the changes in the gesture contour and the type of the changed gesture posture.

[0112] The gesture contour images are input into the temporal convolutional network from far to near according to the time points. A plurality of continuous gesture contour images are used to train the gesture posture type.

[0113] The images in the multiple gesture sets are input into the gesture similarity network to make similarity judgments and obtain gesture similarity values;

[0114] If the gesture similarity value is greater than the gesture similarity threshold, the changed gesture posture type is set as the gesture posture type.

[0115] In this embodiment, the gesture similarity threshold is set to 0.2.

[0116] Through the above method, if you want to interact, such as rotating a button, touching, etc., there will be a cyclic or short-term lingering posture, so according to the posture of the roughly classified gesture, it is judged whether the gesture is cyclic. Because the gesture contour image only includes the contour of the gesture, and the gesture image not only includes the gesture posture change but also includes the color and shape of the hand, so the gesture contour image is input into the temporal convolutional network, which not only reduces the network burden, but also can accurately judge the transformation of the network. And by inputting the cyclic gesture image into the gesture similarity network, the similarity of gestures can be better judged.

[0117] Optionally, the step of inputting the images in the plurality of gesture sets into a gesture similarity network to perform similarity judgment and obtain gesture similarity values ​​includes:

[0118] The gesture similarity network includes a first gesture extraction network, a second gesture extraction network and a discriminant network;

[0119] Acquire a first gesture image and a second gesture image; the second gesture image is a gesture image at a time point adjacent to the first gesture image; the time point at which the second gesture image is acquired is earlier than the time point of the first gesture image;

[0120] Inputting the first gesture image into a first gesture extraction network, extracting first gesture image features, and obtaining first gesture features;

[0121] The second gesture image is input into a second gesture extraction network, and features of the second gesture image are extracted to obtain second gesture features.

[0122] The first gesture extraction network and the second gesture extraction network are convolutional neural networks with the same structure but different parameter values.

[0123] The first gesture feature and the second gesture feature are input into a discriminant network to obtain a discriminant value.

[0124] The discriminant network is a fully connected neural network trained using images of multiple continuous operation gestures as training images.

[0125] The absolute value of the discriminant value minus 0.5 is set as the gesture similarity value.

[0126] In this embodiment, if the first gesture image and the second gesture image are directly compared on a pixel basis, although the same operation is performed at the same time point, unnecessary movement of the hand will lead to reduced accuracy. Therefore, features are extracted to determine whether they are the same gesture.

[0127] Optionally, the human body key point network includes:

[0128] A training set is obtained; the training set includes multiple training images and multiple annotation data; the training images include training human body images and training human body contour images; the annotation data includes the positions and labels of hands, arms, head, torso, and legs.

[0129] In this embodiment, the left hand is labeled 1, the right hand is labeled 2, the left arm is labeled 3, the right arm is labeled 4, the head is labeled 5, and the torso is labeled 6. The positions of the hands, arms, head, torso, and legs are the midpoints of the areas where they are located.

[0130] Inputting the training human body image into a first human body key point network, extracting human body features, and obtaining first training features;

[0131] Inputting the training human body contour image into a second human body key point network, extracting human body posture features, and obtaining second training features;

[0132] The first training feature and the second training feature are combined to obtain a human body key point output value;

[0133] The output value of the human body key points and the labeled data are used to calculate the loss, and the human body key point network is trained.

[0134] Through the above method, the shape features of the human body image are deepened with the human body contour image, so that the key point positions of the human body can be judged more accurately without being reduced by other factors such as the human body's clothing and skin color.

[0135] Optionally, judging whether the human body contacts the interactive object according to the human body outline image and the virtual scene includes:

[0136] According to the distance between the human body and the real fixed object in the image, find the distance from the human body to the binocular camera, the first human body distance;

[0137] Subtract the distance from the virtual object to the binocular camera from the first human body distance, and calculate the absolute value to obtain the first horizontal distance;

[0138] According to the interactive virtual objects in the virtual scene, find the plane distance between the interactive objects to obtain a first vertical distance;

[0139] Calculating the first object distance based on the first horizontal distance and the first vertical distance by using the Pythagorean theorem;

[0140] According to the first human body distance, a contact threshold is obtained; the contact threshold is less than the first human body distance;

[0141] The contact threshold in this embodiment is the distance in real life, which is 10 cm.

[0142] If the first object distance is less than the contact threshold, it is assumed that the human body can contact the interactive object.

[0143] If the first object distance is greater than or equal to the contact threshold, it is assumed that the human body is not in contact with the interactive object.

[0144] By using the above method, the first horizontal distance of the contact between the object and the human body is obtained in the directly captured image, and the first vertical distance is obtained by the relationship between the position of the binocular camera in real life and the depth map and real life. When setting the contact threshold, it is set based on the distance from the human body to the binocular camera.

[0145] Optionally, constructing a virtual scene according to the human body depth map includes:

[0146] Acquire virtual fixed object information; the virtual fixed object information includes the appearance and position of the set fixed object; the fixed object is an object that cannot interact;

[0147] Acquire a real scene image; the real scene image is a depth map of an object in real life captured by a binocular camera;

[0148] According to the appearance and position of the fixed object in the real scene image, the real fixed object information is obtained;

[0149] The real object information in the real scene image is replaced by the virtual object information to obtain a virtual fixed object image.

[0150] Optionally, if the human body contacts the interactive object, judging whether the human body interacts according to the posture type includes:

[0151] Acquire the corresponding real operation according to the posture type;

[0152] Send real operation signals to control real objects to react.

[0153] Through the above method, how to construct a virtual scene with two images; how to judge the penetration of two images;

[0154] A situation where the first camera changes while the second camera changes is adopted.

[0155] Example 2

[0156] Based on the above-mentioned human posture recognition and interaction method applied to virtual reality, an embodiment of the present invention further provides a human posture recognition and interaction system applied to virtual reality, the system comprising:

[0157] Acquisition module: acquires multiple groups of images captured by a binocular camera; each group of images includes two images; the images include human bodies;

[0158] Correction module: correct the two captured images respectively, match the pixels after correction, and obtain a human depth map; the human depth map represents the distance from the binocular camera to each point in the scene;

[0159] A virtual scene construction module: constructs a virtual scene according to the human body depth map; the virtual scene is a scene in which virtual objects replace real objects;

[0160] Human body contour recognition module: based on the human body depth map, human body contour recognition is performed to obtain a human body contour map; multiple groups of captured images are used to obtain multiple human body depth maps and multiple human body contour maps;

[0161] Discrimination module: Determines whether the human body is in contact with an interactive object based on the human body outline and virtual scene;

[0162] Posture module: If the continuous time length of the human body contacting the interactive object is greater than the contact threshold, the human body posture changes at multiple time points are judged according to multiple human body depth maps and human body contour maps to obtain the posture type;

[0163] Interaction module: If the human body contacts an interactive object, the interaction is performed according to the posture type.

[0164] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0165] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0166] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0167] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0168] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the apparatus according to an embodiment of the present invention. The present invention may also be implemented as a device or device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may have the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0169] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.

Claims

1. A human body posture recognition and interaction method applied to virtual reality, characterized in that: include: Acquire multiple groups of images captured by a binocular camera; each group of images includes two images; and the images include human bodies; The two captured images are corrected respectively, and after correction, pixel matching is performed to obtain a human body depth map; the human body depth map represents the distance from the binocular camera to each point in the scene; Constructing a virtual scene according to the human body depth map; the virtual scene is a scene in which virtual objects replace real objects; Based on the human body depth map, human body contour recognition is performed to obtain a human body contour map; multiple groups of captured images are used to obtain multiple human body depth maps and multiple human body contour maps; Based on the human body outline and virtual scene, determine whether the human body is in contact with the interactive object; If the continuous time length of the human body contacting the interactive object is greater than the contact threshold, the human body posture changes at multiple time points are judged according to multiple human body depth maps and human body contour maps to obtain the posture type; If the human body contacts the interactive object, the interaction is performed according to the gesture type; If the continuous time length of the human body contacting the interactive object is greater than the contact threshold, the human body posture changes at multiple time points are judged according to multiple human body depth maps and human body contour maps to obtain the posture type, including: According to the human body contour map, human body key point information is obtained through a human body key point network; the human body key point information includes positions and labels of multiple human body key points; Connecting the key points of the human body according to the labels to obtain the overall human body posture; According to the center of gravity of two human body contour images at adjacent time points, the two human body contour images are overlapped; The overall human body posture is used to replace the human body in the corresponding human body contour image, and the Hausdorff distance is calculated as the overall similarity value; If the overall similarity value is greater than the overall similarity threshold and the corresponding overall gesture types are the same, obtaining the gesture type according to the human body key point information and the human body depth map; If the gesture posture types are the same, taking the overall human body posture and the gesture posture type as the posture type; The determining whether the human body is interacting according to the posture type and the operation position includes: Acquire the corresponding real operation according to the posture type; Send real operation signals to control real objects to react.

2. The human body posture recognition and interaction method applied to virtual reality according to claim 1, characterized in that: If the overall similarity value is greater than the overall similarity threshold and the corresponding overall gesture types are the same, obtaining the gesture type according to the human body key point information and the human body depth map includes: According to the labels in the human body key point information, a position frame is set, and an image of the position frame in the human body depth map is extracted to obtain a gesture image; According to the gesture image, a gesture contour is obtained by using an edge detection algorithm; According to the gesture image, a gesture rough classification network is further used to perform rough classification to obtain human gesture categories; the human gesture categories include clenching a fist, opening the fist, and extending the knuckles; Multiple time points correspond to multiple gesture images, multiple gesture contours, and multiple human gesture categories; Based on the human body gesture category, gesture contour image and gesture image, the gesture posture type is obtained through a gesture discrimination network.

3. The human body posture recognition and interaction method applied to virtual reality according to claim 2, characterized in that: The method of obtaining the gesture type based on the human gesture category, the gesture contour image and the gesture image through a gesture discrimination network includes: The gesture discrimination network includes a temporal convolutional network and a gesture similarity network; Classify the human gestures at multiple time points and determine whether they are cyclically changing gestures or non-changing gestures; If it is a cyclically changing gesture or a non-changing gesture, the gesture contour images and gesture images at the multiple time points are respectively put into a gesture contour set and multiple gesture sets according to the same order in the cycle; Input gesture contour images at multiple time points into the temporal convolutional network to obtain the change of gesture contour and the type of changed gesture posture; The images in the multiple gesture sets are input into the gesture similarity network to make similarity judgments and obtain gesture similarity values; If the gesture similarity value is greater than the gesture similarity threshold, the changed gesture posture type is set as the gesture posture type.

4. The human body posture recognition and interaction method applied to virtual reality according to claim 3, characterized in that: The inputting of images in the plurality of gesture sets into the gesture similarity network, performing similarity judgment, and obtaining gesture similarity values ​​comprises: The gesture similarity network includes a first gesture extraction network, a second gesture extraction network and a discriminant network; Acquire a first gesture image and a second gesture image; the second gesture image is a gesture image at a time point adjacent to the first gesture image; the time point at which the second gesture image is acquired is earlier than the time point of the first gesture image; Inputting the first gesture image into a first gesture extraction network, extracting first gesture image features, and obtaining first gesture features; Inputting the second gesture image into a second gesture extraction network, extracting second gesture image features, and obtaining second gesture features; Inputting the first gesture feature and the second gesture feature into a discriminant network to obtain a discriminant value; The absolute value of the discriminant value minus 0.5 is set as the gesture similarity value.

5. The human body posture recognition and interaction method applied to virtual reality according to claim 1, characterized in that: The human body key point network comprises: Obtaining a training set; the training set includes a plurality of training images and a plurality of annotated data; the training images include training human body images and training human body contour images; the annotated data include marking positions and numbers of hands, arms, head, torso, and legs; Inputting the training human body image into a first human body key point network, extracting human body features, and obtaining first training features; Inputting the training human body contour image into a second human body key point network, extracting human body posture features, and obtaining second training features; The first training feature and the second training feature are combined to obtain a human body key point output value; The output value of the human body key points and the labeled data are used to calculate the loss, and the human body key point network is trained.

6. The human body posture recognition and interaction method applied to virtual reality according to claim 1, characterized in that: The determining, based on the human body outline image and the virtual scene, whether the human body contacts the interactive object includes: According to the distance between the human body and the real fixed object in the image, find the distance from the human body to the binocular camera, the first human body distance; Subtract the distance from the virtual object to the binocular camera from the first human body distance, and calculate the absolute value to obtain the first horizontal distance; According to the interactive virtual objects in the virtual scene, find the plane distance between the interactive objects to obtain a first vertical distance; Calculating the first object distance based on the first horizontal distance and the first vertical distance by using the Pythagorean theorem; According to the first human body distance, a contact threshold is obtained; the contact threshold is less than the first human body distance; If the first object distance is less than the contact threshold, it is assumed that the human body can contact the interactive object; If the first object distance is greater than or equal to the contact threshold, it is assumed that the human body is not in contact with the interactive object.

7. The human body posture recognition and interaction method applied to virtual reality according to claim 1, characterized in that: The step of constructing a virtual scene according to the human body depth map includes: Acquire virtual object information; the virtual object information includes the appearance and position of the set object; Acquire a real scene image; the real scene image is a depth map of an object in real life captured by a binocular camera; According to the appearance and position of the object in the real scene image, the real object information is obtained; The real object information in the real scene image is replaced by the virtual object information to obtain a virtual fixed object image.

8. A human posture recognition and interaction system applied to virtual reality, characterized in that: include: Acquisition module: acquires multiple groups of images captured by a binocular camera; each group of images includes two images; the images include human bodies; Correction module: correct the two captured images respectively, match the pixels after correction, and obtain a human depth map; the human depth map represents the distance from the binocular camera to each point in the scene; A virtual scene construction module: constructs a virtual scene according to the human body depth map; the virtual scene is a scene in which virtual objects replace real objects; Human body contour recognition module: based on the human body depth map, human body contour recognition is performed to obtain a human body contour map; multiple groups of captured images are used to obtain multiple human body depth maps and multiple human body contour maps; Discrimination module: Determines whether the human body is in contact with an interactive object based on the human body outline and virtual scene; Posture module: If the continuous time length of the human body contacting the interactive object is greater than the contact threshold, the human body posture changes at multiple time points are judged according to multiple human body depth maps and human body contour maps to obtain the posture type; Interaction module: if the human body contacts the interactive object, the interaction is performed according to the posture type; If the continuous time length of the human body contacting the interactive object is greater than the contact threshold, the human body posture changes at multiple time points are judged according to multiple human body depth maps and human body contour maps to obtain the posture type, including: According to the human body contour map, human body key point information is obtained through a human body key point network; the human body key point information includes positions and labels of multiple human body key points; Connecting the key points of the human body according to the labels to obtain the overall human body posture; According to the center of gravity of two human body contour images at adjacent time points, the two human body contour images are overlapped; The overall human body posture is used to replace the human body in the corresponding human body contour image, and the Hausdorff distance is calculated as the overall similarity value; If the overall similarity value is greater than the overall similarity threshold and the corresponding overall gesture types are the same, obtaining the gesture type according to the human body key point information and the human body depth map; If the gesture posture types are the same, taking the overall human body posture and the gesture posture type as the posture type; The determining whether the human body is interacting according to the posture type and the operation position includes: Acquire the corresponding real operation according to the posture type; Send real operation signals to control real objects to react.

Citation Information

Patent Citations

  • Human-computer interaction support test system based on augmented reality and image recognition

    CN107450714A

  • Human-computer interaction method and device based on integration of eye movement tracking and gesture recognition in virtual assembly

    CN110362210A

  • Method and device for detecting interaction between 3D hand and unknown object in RGB video in real time

    CN112199994A

  • Augmented reality interaction method and system with vision and force feedback

    CN114596582A

  • Virtual reality input system based on gesture recognition

    CN116909393A