CN-115509350-B - Multi-user environment gesture control right acquisition method, network equipment and storage medium
Abstract
The application provides a multi-person environment gesture control right acquisition method, network equipment and a storage medium, wherein the method comprises the steps of acquiring coordinates (x, y, z) of a spatial position identification information point P of a gesture with acquired control right, which is cached in a previous frame, acquiring a multi-person gesture information set handlist = { hand0, hand1, hand2, & gt, handn }, wherein n represents the number of hands in the current frame, each gesture in the set contains hand key point coordinates for identifying the gesture, judging the number of gestures in the multi-person gesture information set handlist, and outputting the hand closest to the P coordinates in the current frame as the gesture with the acquired control right if the number of the gestures is larger than 1. According to the embodiment of the application, the gesture for acquiring the control right in the current frame can be recognized under the environment of multiple gestures, so that confusion of an interactive system is avoided.
Inventors
- HE YANGCHANG
Assignees
- 新华三智能终端有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20220909
Claims (8)
- 1. The method for acquiring the control right of the gestures in the multi-person environment is characterized in that, Acquiring the space position identification information point P coordinates (x, y, z) of the gesture of acquiring the control right cached in the previous frame; Acquiring a plurality of hand gesture information sets handlist = { hand0, hand1, hand2, &.. handn }, wherein n represents the number of hands in the current frame, and each hand gesture in the set comprises hand key point coordinates for recognizing the hand gesture; Acquiring the number of gestures through the multi-person gesture information set handlist, if the number of hand is greater than 1, outputting a hand closest to the P coordinate in the current frame as a gesture for acquiring control right, if the number of gestures in handlist is equal to 1, outputting the current gesture as a gesture for acquiring control right, and updating the P coordinate; Judging whether the P coordinate is empty or not, if not, judging the number of gestures in the multi-person gesture information set handlist to obtain a control right gesture, if so, traversing handlist, and sequentially taking the key point coordinate of one gesture each time to perform gesture conversion; Judging whether the converted gesture is a gesture with control right, if so, updating the P coordinate, ending the traversal, and if not, re-acquiring the key point coordinate of the next gesture in handlist for gesture conversion and judging whether to acquire the gesture with control right.
- 2. The method of claim 1, wherein the P-coordinate (x, y, z) is obtained by an algorithm from a gesture key point.
- 3. The method for acquiring the control right of the multi-person environment gesture according to claim 2, wherein the P coordinate (x, y, z) is acquired by a gesture key point through an algorithm, and the gesture key point is obtained by processing the gesture key point through an average value or a weighting algorithm.
- 4. The method of claim 1, wherein the P-coordinate (x, y, z) is selected from an area surrounded by gesture keypoints.
- 5. The method of claim 4, wherein the P-coordinate (x, y, z) is the center of the area enclosed by the gesture keypoints.
- 6. The method for acquiring control rights of gestures in a multi-person environment according to claim 1, wherein the gestures in the multi-person gesture information set are set gestures capable of acquiring control rights.
- 7. Network device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor executes the program to perform a method comprising the multi-person environmental gesture control right acquisition method according to any of the claims 1-6.
- 8. A storage medium having stored thereon computer program instructions, which when executed by a processor are adapted to carry out the multi-person environment gesture control right acquisition method according to any of claims 1-6.
Description
Multi-user environment gesture control right acquisition method, network equipment and storage medium Technical Field The present application relates to the field of communications devices, and in particular, to a method for acquiring gesture control rights in a multi-user environment, a network device, and a storage medium. Background The gesture control can realize non-contact operation, the application is wider and wider, and the operation of manual interaction through gesture recognition is gradually becoming a mainstream control mode. However, in the gesture recognition process, the system can only recognize one gesture, and gestures of multiple persons can occur in the camera recognition, so that the system recognition is confused. Disclosure of Invention In order to overcome the problems in the related art, the application provides a multi-user environment gesture control right acquisition method, network equipment and a storage medium. According to the multi-person environment gesture control right acquisition method of the first aspect of the embodiment of the application, Acquiring coordinates (x, y, z) of a spatial position identification information point P of the gesture of acquiring control right cached in the previous frame; Acquiring a plurality of hand gesture information sets handlist = { hand0, hand1, hand2, &.. handn }, wherein n represents the number of hands in the current frame, and each hand gesture in the set comprises hand key point coordinates for recognizing the hand gesture; And judging the number of gestures in the multi-person gesture information set handlist, and if the number of the gestures is larger than 1, outputting the hand closest to the P coordinate in the current frame as the gesture for acquiring the control right. Preferably, the number of gestures in the multi-user gesture information set handlist is judged, if the number of the gestures handlist is equal to 1, the current gesture is output as a gesture for acquiring control right, and the P coordinate is updated; If handlist is equal to 0, the P coordinate is null. Preferably, the method further comprises the steps of judging whether the P coordinate is empty or not, if not, judging the number of gestures in the multi-user gesture information set handlist to obtain a gesture with the acquired control right, traversing handlist if the P coordinate is empty, and sequentially taking the key point coordinate of one gesture at a time to perform gesture conversion; Judging whether the gesture after conversion is a gesture for acquiring control rights; if the gesture is not the gesture, the key point coordinate of the next gesture in handlist is acquired again for gesture conversion and whether the gesture is the gesture for acquiring the control right is judged. Preferably, the P coordinate (x, y, z) is algorithmically derived from the gesture keypoints. Preferably, the P coordinate (x, y, z) is obtained from the gesture keypoints by an algorithm, including processing the gesture keypoints by an average or weighting algorithm. Preferably, the P coordinate (x, y, z) is selected from the area enclosed by the gesture keypoints. Preferably, the P coordinate (x, y, z) is the center of the area enclosed by the gesture keypoints. Preferably, the gesture in the identified multi-person gesture information set is a set gesture capable of acquiring control right. The second aspect of the present application provides a network device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the method for acquiring control rights of gestures in a multi-user environment when executing the program. A third aspect of the present application provides a storage medium having stored thereon computer program instructions which, when executed by a processor, are adapted to carry out a method of multi-person environmental gesture control rights acquisition. The technical scheme provided by the embodiment of the application can have the following beneficial effects: in the embodiment of the application, the gesture of acquiring the control right in the current frame can be identified through the adjacent frame comparison algorithm under the environment of multiple gestures, so that confusion of an interactive system is avoided. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed. Drawings The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments consistent with the application and together with the application, serve to explain the principles of the application. FIG. 1 is a schematic flow chart of embodiment 1 of the present application; FIG. 2 is a schematic flow chart of embodiment 2 of the present application; fig. 3 is a schematic flow chart of embodiment 3 of