Gesture recognition method and device, medium and system thereof
By mixing and spatial clustering radar signals, calculating the velocity centroid and performing smoothing processing, the accuracy problem of gesture recognition in multi-person and low signal-to-noise ratio scenarios is solved, achieving higher recognition accuracy and wide application .
Patent Information
- Application Number
- CN202010664752.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-10
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-07-10
AI Technical Summary
Existing gesture recognition technology has low accuracy in multi-person scenes and long-distance scenes, and is susceptible to environmental interference. In particular, radar-based technology is difficult to effectively recognize in complex gesture recognition and low signal-to-noise ratio scenes.
By mixing the echo signal received by the radar and the original signal, the point cloud data frame is parsed, the vector points are screened based on the instantaneous velocity, the spatial clustering algorithm is used to divide the target, the velocity centroid is calculated, and smoothing is performed through Kalman filtering , to improve the recognition accuracy of gesture motion trajectories.
In multi-person scenes and low signal-to-noise ratio scenes, the accuracy of gesture recognition is improved, the impact of interference is reduced, the scope of application is expanded, and the user's gesture actions can be accurately recognized.
Smart Images

Figure CN113918004B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information technology, and in particular to a gesture recognition method and a device, medium and system thereof. Background Art
[0002] In recent years, with the rapid development of smart home and human-computer interaction technology, gesture recognition technology has been applied to more and more smart electronic devices. Users can interact with smart electronic devices through gestures such as waving, clenching fists, and turning palms. Smart electronic devices can realize corresponding functions by recognizing users' gestures. For example, smartphones can make calls, open applications, etc. by recognizing users' gestures, which can greatly improve user experience.
[0003] Currently, the commonly used gesture recognition technologies mainly include those based on computer vision, ultrasound, and electromagnetic signals. Gesture recognition technology based on computer vision is limited to skin color, lighting, posture and other conditions, which greatly limits its application scenarios; ultrasonic gesture recognition technology can overcome the influence of ambient lighting to a certain extent and expand the scope of gesture control, but its robustness is weak and the signal-to-noise ratio requirement is high; radar electromagnetic waves are widely used because they are not affected by light, noise, and environment, and can penetrate most materials. However, in scenarios where the distance between the user and the smart electronic device is far, or there are many people in the environment where the user is located, the gestures made by the user are difficult to be captured by the smart electronic device, and are easily interfered by other people in the environment.
[0004] In order to accurately identify the user's gestures, millimeter-wave radar can be used for gesture recognition based on range-Doppler imaging. This technology mainly relies on the changing characteristics of speed distribution in space. For simple gestures, the spatial characteristics of speed are more obvious; but for complex gestures, the spatial characteristics of speed will become blurred and similar, making it difficult to identify and distinguish.
[0005] In another solution to accurately identify the user's gesture, gesture recognition can be performed based on the motion trajectory of the radar tracking target. In this technical solution, the closest target is the user's hand. When there are other people in front of the user and they are closer to the radar, the user's hand position cannot be correctly captured. And when the user is far away and the signal-to-noise ratio is low, it is even more difficult to accurately capture the hand position due to the small area of the user's hand. Summary of the invention
[0006] Embodiments of the present application provide a gesture recognition method and a device, medium, and system thereof.
[0007] The technical solution of the present application mixes the echo signal of the radar receiving the user and the people and objects in the surrounding environment with the original signal, parses the point cloud data frame from the mixed intermediate frequency signal, and screens the parsed continuous point cloud data frames based on the instantaneous speed. Then, the vector point set screened out is divided by a spatial clustering algorithm to obtain multiple subsets. By comparing the average position of each subset in two consecutive frames of point cloud data, it is determined whether the target corresponding to each subset in two consecutive frames of point cloud data is the same target (that is, it is distinguished which target each subset in each frame of point cloud data corresponds to, for example, whether it corresponds to the user, or other people or objects around the user). Then, one or more targets that meet the set conditions are selected from the targets scanned within the radar field of view, and the gesture motion trajectory is calculated. Specifically, each vector point in each subset corresponding to the selected one or more targets is weighted with speed as the weight, and the weighted coordinates are averaged to obtain the "speed centroid" used to characterize the average position of each subset. Then, the obtained velocity centroid is smoothed, and the velocity centroid of each continuous frame after smoothing is used as the gesture motion trajectory corresponding to the aforementioned one or more targets. The gesture motion trajectory is identified, and corresponding operations are performed according to the identified results. In this way, the accuracy of gesture recognition can be improved in multi-person scenarios. Moreover, gesture recognition using the velocity centroid of continuous frames as the target gesture motion trajectory can achieve accurate gesture recognition in low signal-to-noise ratio scenarios such as when the target is far away from the terminal device at a large angle, and has a wide range of applications.
[0008] In a first aspect, an embodiment of the present application provides a gesture recognition method, the method comprising:
[0009] A multi-frame radar intermediate frequency signal is obtained, wherein the radar intermediate frequency signal is a signal obtained by mixing a radar transmission signal emitted by the radar and a radar echo signal received after the radar transmission signal is reflected by multiple targets within the radar field of view; a vector point belonging to each of the multiple targets in the multi-frame radar intermediate frequency signal is parsed; based on the vector point of a target among the multiple targets, the coordinates of the velocity centroid of the target corresponding to each frame of the radar intermediate frequency signal are calculated, wherein the coordinates of the velocity centroid are the weighted average coordinates of the coordinates of the vector points parsed from the target in one frame of the radar intermediate frequency signal, wherein the weights of the coordinates of different vector points in the weighted average coordinates are related to the velocity of the corresponding vector point; according to the calculated coordinates of the multiple velocity centroids, the trajectory of the gesture movement of the target is determined; and according to the trajectory of the gesture movement, a gesture recognition result of the target is obtained.
[0010] It can be understood that the multiple vector points parsed from each frame of radar intermediate frequency signal are a set of discrete vector points corresponding to the user's body and other people or objects in the user's surrounding environment (also called point cloud data).
[0011] Among them, the vector point of each target includes three-dimensional coordinates (X, Y, Z) and instantaneous speed V in the coordinate system based on the radar. It can be understood that the coordinates of the vector point with a larger speed have a larger weight in the weighted average coordinates after being weighted by the speed of the vector point. Conversely, the coordinates of the vector point with a smaller speed have a smaller weight in the weighted average coordinates after being weighted by the speed of the vector point. Because the user's palm moves the fastest when waving, it can be understood that the coordinates of the vector point in the palm of the user have a larger weight in the weighted average coordinates after being weighted by the speed. The obtained weighted average coordinates are closer to the palm of the user, that is, the speed centroid is closer to the vector point in the palm of the user. By corresponding to the speed centroid of the continuous multi-frame radar intermediate frequency signal to characterize the motion trajectory of the user's gesture, the interference of other targets in the multi-person scene can be avoided, and the accuracy of gesture recognition can be improved.
[0012] It can be understood that the multiple targets within the radar field of view may be multiple users, or a user and interferers (such as people or animals) around the user.
[0013] In a possible implementation of the first aspect, the method further includes: parsing the vector points belonging to each of the multiple targets in the multi-frame radar intermediate frequency signal includes:
[0014] Analyze each frame of the multi-frame radar intermediate frequency signal to obtain vector points corresponding to multiple targets within the radar field of view;
[0015] Filter out vector points whose speed is greater than a speed threshold from the vector points parsed from each frame of radar intermediate frequency signal, and obtain a target set consisting of the filtered vector points;
[0016] Perform spatial clustering on the target set to obtain multiple target subsets corresponding to each frame of radar intermediate frequency signal;
[0017] Based on the positional relationship between vector points in multiple target subsets of every two frames of radar intermediate frequency signals, vector points belonging to each of the multiple targets in the multiple frames of radar intermediate frequency signals are determined.
[0018] It is understandable that in addition to the user's arms, the radar can also scan other parts of the user, such as the head, abdomen, and legs. When the user waves, it is mainly the arm that moves, and other parts may be stationary. Therefore, by using the speed to filter the vector points analyzed by the radar, the vector points in the user's arm area can be filtered out. In this way, the amount of data processing can be reduced and the processing speed can be increased.
[0019] Moreover, by dividing the target set in each frame of radar intermediate frequency signal through spatial clustering, the vector points belonging to different targets scanned by the radar can be distinguished, so that different processing can be performed on the vector points belonging to different targets.
[0020] In a possible implementation of the first aspect, the method further includes: performing spatial clustering on the target set to obtain multiple target subsets corresponding to each frame of radar intermediate frequency signal including:
[0021] A density-based clustering method with noise is used to spatially cluster the target set, and multiple target subsets corresponding to each frame of radar intermediate frequency signal are obtained.
[0022] In a possible implementation of the first aspect, the method further includes: determining, based on the positional relationship between vector points in multiple target subsets of every two frames of radar intermediate frequency signals, a vector point belonging to each of the multiple targets in the multiple frames of radar intermediate frequency signals includes:
[0023] Calculate the average position of the vector points of each target subset in the multiple target subsets of each frame of radar intermediate frequency signal;
[0024] The average position of the vector points of each target subset of one frame of radar intermediate frequency signal is compared with the average position of the vector points of each target subset of another frame of radar intermediate frequency signal.
[0025] When the average position of the vector points in a target subset of one frame of radar intermediate frequency signal is closest to the average position of the vector points in a target subset of another frame of radar intermediate frequency signal, the vector points in the two target subsets are determined to belong to the same target.
[0026] It can be understood that the positions of the vector points of the target subsets belonging to the same target in two consecutive frames of radar intermediate frequency signals are closer. Therefore, by comparing the average positions of each target subset in the two previous and next frames of radar intermediate frequency signals, the vector points belonging to the same target can be easily obtained.
[0027] In a possible implementation of the first aspect above, the method also includes: comparing the number of vector points in the target subset of each frame of radar intermediate frequency signal, determining the target corresponding to the target subset with the largest number of vector points, and calculating the coordinates of the velocity centroid of the target corresponding to each frame of radar intermediate frequency signal.
[0028] In a possible implementation of the first aspect above, the method further includes: comparing the distances between each vector point in a target subset of each frame of the radar intermediate frequency signal and the electronic device, determining the target corresponding to the target subset with the closest distance, and calculating the coordinates of the velocity centroid of the target corresponding to each frame of the radar intermediate frequency signal.
[0029] In a possible implementation of the first aspect, the method further includes: comparing the sum of the speeds of the vector points in the target subset of each frame of the radar intermediate frequency signal, determining the target corresponding to the target subset with the largest sum of speeds, and calculating the coordinates of the speed centroid of each frame of the radar intermediate frequency signal corresponding to the target. For example, if there are two people waving in front of the TV, the user who waves more vigorously can be considered as the interested user, because he waves more vigorously, so the speeds of the vector points corresponding to him are also faster.
[0030] In a possible implementation of the first aspect, the method further includes: calculating the coordinates of the velocity centroid of each frame of the radar intermediate frequency signal corresponding to a target among the multiple targets based on a vector point of the target includes:
[0031] The coordinates of each vector point in the target subset of each frame of radar intermediate frequency signal corresponding to one of the multiple targets are weighted by using the corresponding speed as a weight to obtain weighted coordinates, and the speeds of each vector point in the target subset are summed to obtain a total speed;
[0032] Divide the weighted coordinates by the total velocity to obtain the coordinates of the velocity centroid of the target corresponding to each frame of radar intermediate frequency signal.
[0033] In a possible implementation of the first aspect, the method further includes: determining the trajectory of the gesture movement of the target according to the calculated coordinates of the plurality of velocity centroids includes:
[0034] The Kalman filter algorithm is used to smooth the coordinates of multiple velocity centroids;
[0035] Based on the coordinates of the multiple velocity centroids after smoothing, the trajectory of the target's gesture movement is determined.
[0036] In this way, the burr noise caused by interference in the actual radar acquisition process can be greatly reduced, making the final gesture recognition result more accurate.
[0037] In a possible implementation of the first aspect, the method further includes:
[0038] acquiring an image of at least one target within the radar field of view;
[0039] identifying at least one of the objects based on the acquired image;
[0040] When it is determined that the identified target meets the set conditions, gesture recognition is performed on the identified target;
[0041] The setting conditions include at least one of the following:
[0042] The identity of the target is a preset identity, and the characteristics of the target are preset characteristics.
[0043] For example, in a family, only the family member can turn on the TV. Only when the target in front of the TV is identified as the family member, the gesture recognition is performed. This improves the security and privacy of TV use while saving energy.
[0044] For example, in a family, only adults can turn on the TV. Only when the target in front of the TV is identified as the adult, gesture recognition is performed on the adult. This prevents children from turning on the TV and becoming addicted to playing games or watching TV.
[0045] In a possible implementation of the first aspect, the method further includes: the radar includes a millimeter wave radar.
[0046] In a second aspect, an embodiment of the present application provides a gesture recognition device, the device comprising:
[0047] An acquisition module is used to acquire a multi-frame radar intermediate frequency signal, wherein the radar intermediate frequency signal is a signal obtained by mixing a radar transmission signal emitted by the radar and a radar echo signal received after the radar transmission signal is reflected by multiple targets within the radar field of view;
[0048] A parsing module, used for parsing out vector points belonging to each of the multiple targets in the multi-frame radar intermediate frequency signal;
[0049] A calculation module, for calculating the coordinates of the velocity centroid of a target corresponding to each frame of radar intermediate frequency signal based on a vector point of a target among the multiple targets, wherein the coordinates of the velocity centroid are weighted average coordinates of the coordinates of the vector points of the target resolved in a frame of radar intermediate frequency signal, wherein the weights of the coordinates of different vector points in the weighted average coordinates are related to the velocity of the corresponding vector point;
[0050] A determination module, used to determine the trajectory of the target gesture movement according to the calculated coordinates of the multiple velocity centroids;
[0051] The recognition module is used to obtain the target gesture recognition result according to the trajectory of the gesture movement.
[0052] In a third aspect, an embodiment of the present application provides a computer-readable medium having instructions stored thereon, which, when executed on a computer, causes the computer to execute the gesture recognition method of the first aspect and any one of the various possible implementations of the first aspect.
[0053] In a fourth aspect, an embodiment of the present application provides a system, including:
[0054] a memory for storing instructions to be executed by one or more processors of the system, and
[0055] The processor is one of the processors of the system, and is used to execute any one of the gesture recognition methods in the above-mentioned first aspect and various possible implementations of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] FIG. 1( a ) shows a scene diagram of an electronic device performing gesture recognition using a gesture recognition method provided by the present application according to some embodiments of the present application;
[0057] FIG. 1( b ) shows the three-dimensional coordinates (X, Y, Z) and the instantaneous speed V of the vector point of the user's hand shown in FIG. 1( a ) in a coordinate system based on a radar according to some embodiments of the present application;
[0058] FIG. 1( c ) shows a vector point distribution diagram of the palm and arm of the user shown in FIG. 1( a ) according to some embodiments of the present application;
[0059] FIG. 1( d ) shows a motion trajectory of the user's gesture shown in FIG. 1( a ) according to some embodiments of the present application;
[0060] Figure 2 According to some embodiments of the present application, a hardware structure block diagram of the electronic device 100 shown in FIG1 is shown;
[0061] Figure 3 According to some embodiments of the present application, a flowchart of a gesture recognition method is shown;
[0062] Figure 4 According to some embodiments of the present application, a flowchart of another gesture recognition method is shown;
[0063] Figure 5 According to some embodiments of the present application, a structural block diagram of a gesture recognition device is shown;
[0064] Figure 6 According to some embodiments of the present application, a block diagram of a system is shown;
[0065] Figure 7 According to some embodiments of the present application, a block diagram of a system on chip (SoC) is shown. DETAILED DESCRIPTION
[0066] The illustrative embodiments of the present application include, but are not limited to, gesture recognition methods and apparatus, media, and systems thereof.
[0067] The technical solution of the present application mixes the echo signal of the radar receiving the user and the people and objects in the surrounding environment with the original signal, parses the point cloud data frame from the mixed intermediate frequency signal, and screens the parsed continuous point cloud data frames based on the instantaneous speed. Then, the vector point set screened out is divided by a spatial clustering algorithm to obtain multiple subsets. By comparing the average position of each subset in two consecutive frames of point cloud data, it is determined whether the targets corresponding to each subset in two consecutive frames of point cloud data are the same target (that is, distinguishing which target each subset in each frame of point cloud data corresponds to, for example, whether it corresponds to the user, or to other people or objects around the user). Then, one or more targets that meet the set conditions are selected from the targets scanned within the radar field of view, and the gesture motion trajectory is calculated.
[0068] Specifically, each vector point in each subset corresponding to the selected one or more targets is weighted by the speed, and the weighted coordinates are averaged to obtain the "speed centroid" used to characterize the average position of each subset. Then, the obtained speed centroid is smoothed, and the speed centroid of each continuous frame after smoothing is used as the gesture motion trajectory corresponding to the aforementioned one or more targets. The gesture motion trajectory is identified, and the corresponding operation is performed according to the identified result. In this way, it is possible to distinguish each target in a multi-person scene, and perform gesture recognition on one or more of the targets, and when performing gesture recognition on each target, it can be free from interference from other targets, thereby improving the accuracy of gesture recognition. Moreover, gesture recognition using the speed centroid of continuous frames as the target's gesture motion trajectory can achieve accurate gesture recognition in low signal-to-noise ratio scenarios such as when the target is far away from the terminal device at a large angle, and has a wide range of applications.
[0069] The embodiments of the present application will be described in further detail below in conjunction with the accompanying drawings.
[0070] FIG1(a) shows a scene diagram of an electronic device 100 performing gesture recognition using the gesture recognition method provided by the present application, according to some embodiments of the present application. As shown in FIG1(a), a user makes a gesture in front of the electronic device 100, such as waving in different directions. The electronic device captures and analyzes the user's gesture to obtain the motion trajectory of the user's gesture, recognizes the corresponding gesture based on the motion trajectory of the gesture, and then performs the corresponding operation. For example, in home entertainment, the character in the game is controlled according to the user's actions such as waving left and right in the game environment. For another example, in intelligent driving, the control of the navigation system and the in-vehicle entertainment system is completed by recognizing the driver's gestures, thereby improving driving safety.
[0071] Specifically, the radar (not shown) provided in the electronic device 100 emits continuous high-frequency electromagnetic waves (also referred to as original signals), which are reflected by the user's body (including the user's palms, arms, head, and torso connected to the arms) and other people or objects in the user's surrounding environment to form a reflected signal, which is received by the radar of the electronic device 100. The reflected signal and the original signal are mixed to form an intermediate frequency signal. The radar of the electronic device 100 parses the intermediate frequency signal to obtain a set of discrete vector points (also referred to as point cloud data) corresponding to the user's body and other people or objects in the user's surrounding environment. Discrete vector points refer to: multiple discrete points including various parts of people and objects collected in the three-dimensional space within the radar field of view, and each discrete point corresponds to a size and direction in a coordinate system based on the radar.
[0072] The set of discrete vector points collected by the radar of the electronic device 100 after each scan is called a frame of point cloud data collected by the radar. Each vector point in each frame of point cloud data includes three-dimensional coordinates (X, Y, Z) and instantaneous speed V in a coordinate system based on the radar, such as shown in FIG. 1(b). It can be understood that each frame of point cloud data collected by the electronic device 100 contains multiple vector points corresponding to the user waving in front of it and other people or objects in the user's surrounding environment. When the user waves, the moving parts are concentrated on the entire arm, and the waving gesture is mainly reflected in the movement of the palm. Since the movement speed of each part of the arm is linearly related to the distance from the shoulder joint, the movement speed of the palm at the farthest end of the arm is the fastest. That is, in each frame of point cloud data collected by the electronic device 100, the speed of the vector point corresponding to the user's palm is the fastest. The electronic device 100 weights the coordinates of multiple vector points in each frame of point cloud data collected by the electronic device 100 with the speed as the weight to obtain the "speed centroid" corresponding to each frame of point cloud data. Here, the “velocity centroid” is a point including three-dimensional coordinates and instantaneous velocity similar to a vector point in point cloud data.
[0073] In addition, it can be understood that when each vector point in the aforementioned subsets is weighted with speed as a weight, the coordinates are weighted, and then the weighted coordinates are averaged. Since the user's palm moves at the fastest speed during the waving process, the speed of the multiple vector points corresponding to the user's palm is faster, and the position of the weighted coordinates is closer to the position of the user's palm. Therefore, the velocity centroid obtained for characterizing the average position of each subset, such as shown in Figure 1 (c), is closer to the vector point in the user's palm area, and away from the vector point in the user's arm area. The electronic device 100 obtains multiple velocity centroids corresponding to the collected continuous multi-frame point cloud data, such as shown in Figure 1 (d), and by analyzing the coordinates of the multiple velocity centroids, the motion trajectory of the user's palm can be approximately reflected. The electronic device 100 recognizes the motion trajectory of the user's palm, such as by recognizing it through a pre-trained neural network model, or by matching the motion trajectory of the palm with the reference motion trajectory, thereby realizing the recognition of the user's gesture.
[0074] In addition, in the process of obtaining the velocity centroid of the point cloud data, the electronic device 100 can cluster multiple vector points in each frame of point cloud data through a spatial clustering algorithm to obtain a set of vector points corresponding to different target objects, thereby distinguishing different target objects (for example, a user waving in front of the electronic device 100, other people and objects appearing around the user, etc.).
[0075] In this way, the electronic device 100 describes the movement trajectory of the user's hand through the coordinate trajectory of the velocity centroid of the collected continuous multiple frames of point cloud data, and clusters the multiple vector points of each frame of point cloud data through a spatial clustering algorithm to distinguish the multiple objects scanned by the radar. In scenarios where the user is far away from the electronic device 100 or there are other people around the user, the electronic device 100 can enhance the ability to capture the user's gestures and improve the accuracy of gesture recognition.
[0076] It can be understood that the above “velocity centroid” is only an exemplary description of the present application, and the present application is not limited thereto. The vector point may also be other names, such as “center point”, etc.
[0077] Figure 2 According to some embodiments of the present application, a hardware structure block diagram of the electronic device 100 shown in FIG1 is shown. Figure 2 As shown, the electronic device 100 includes a radar 110, a touch screen 101 (also called a touch panel), a display screen 102, a processor 103, a memory 105, a communication module 104, a power supply 107, a power management system 106, and the like.
[0078] The radar 110 includes a transmitter 111, a transmitting antenna 114, a receiver 112, a receiving antenna 115, a signal processor 113 and other auxiliary components (not shown). The transmitter 111 is used to generate electromagnetic waves, and the electromagnetic waves are radiated through the transmitting antenna 114. After the electromagnetic waves encounter the target in its beam, they are reflected in various directions, and part of the electromagnetic waves are reflected back to the radar 110 and are obtained by the receiving antenna 115 of the radar 110. The receiving antenna 115 sends the obtained electromagnetic waves to the receiver 112 to form the echo signal of the radar 110. After the signal processor 113 mixes the received echo signal and the original signal sent out, it parses the point cloud data of the target from the mixed intermediate frequency signal, and sends the parsed point cloud data to the processor 103 of the electronic device 100 for processing. The signal processor 113 can be a processing module or processing circuit of a digital signal processor (DSP), a field programmable gate array (FPGA), etc. In some embodiments, the radar 110 is a millimeter wave radar (i.e., a radar operating in the millimeter wave band), with a wavelength between 1nm and 10nm, and has the characteristics of narrow antenna beam, high resolution, wide frequency band, strong anti-interference ability, etc., to improve the accuracy of gesture recognition. It is understandable that in the specific implementation, a radar of a suitable band can be selected as needed, and this application does not limit this.
[0079] The touch screen 101, which may also be referred to as a touch panel, can collect the user's touch operations thereon and drive the corresponding connected device according to a pre-set program.
[0080] The display screen 102 can be used to display various menus on the electronic device 100. For example, game menu options that can be controlled by the user through gestures.
[0081] The processor 103 is used for system scheduling and includes multiple processing units. It can use a spatial clustering algorithm to distinguish targets on the point cloud data parsed by the signal processor 113, obtain the velocity centroid of each frame of point cloud data, and use the velocity centroid of multiple consecutive frames of point cloud data as the trajectory of the user's gesture movement to analyze and identify the motion trajectory.
[0082] The memory 105 is used to store software programs and data. The processor 103 executes various functional applications and data processing of the electronic device 100 by running the software programs and data stored in the memory 105. For example, in some embodiments of the present application, the memory 105 can store target information distinguished by the processor 103, the coordinates of the velocity centroid obtained for each frame of point cloud data parsed by the signal processor 113 of the radar 110, the instantaneous velocity and other information. At the same time, the memory 105 can also store user registration information, login information, etc.
[0083] The communication module 104 may be used to enable the electronic device 100 to communicate with other electronic devices and connect to a network through other electronic devices.
[0084] The power management system 106 is used to connect the power supply 107, the radar 110, the memory 105 and the processor 103. The power management system 106 receives input from the power supply 107 and supplies power to the processor 103, the radar 110, the memory 105, the display screen 102 and the touch screen 101. In some other embodiments, the power management system 106 can also be set in the processor 103.
[0085] Understandably, Figure 2 What is shown is merely an exemplary structure for realizing the functions of the electronic device 100 in the technical solution of the present application. Electronic devices 100 having other structures and capable of realizing similar functions are also applicable to the technical solution of the present application, and are not limited here.
[0086] In addition, it can be understood that the electronic device 100 can be any electronic device that can implement the gesture recognition method provided by the present application, including but not limited to a server, a distributed server cluster consisting of multiple servers, a mobile phone, a vehicle, a tablet computer, a laptop computer, a desktop computer, a wearable device, a head-mounted display, a mobile email device, a portable game console, a portable music player, a reader device, a personal digital assistant, a virtual reality or augmented reality device, a television set in which one or more processors are embedded or coupled, and other electronic devices.
[0087] Below is a combination of Figures 1 to Figure 3 , based on Figure 1 and Figure 2The electronic device 100 shown is a television set as an example, and the process of the television set 100 using the gesture recognition method provided in the embodiment of the present application to recognize the user's gesture is described in detail. In this embodiment, the television set 100 receives the echo signal through the radar 110 set in the television set 100, mixes the original signal emitted by the radar 110 and the received echo signal, parses the point cloud data of the user and the people and objects in the surrounding environment from the mixed intermediate frequency signal, and uses a spatial clustering algorithm to distinguish the target of the parsed point cloud data (that is, distinguish which target the multiple point cloud data in each frame of point cloud data correspond to, for example, whether it corresponds to the user or other people or objects around the user), and then obtains the velocity centroid of the point cloud data of the user currently using the television set 100. After obtaining the velocity centroid of the point cloud data corresponding to the user in each frame of point cloud data, the obtained velocity centroid is used as the motion trajectory of the user's gesture, and the user's gesture is recognized, and the television set 100 is controlled to perform the operation corresponding to the recognized gesture according to the recognized result.
[0088] Specifically, Figure 3 As shown, the process of the television 100 using the gesture recognition method provided in the embodiment of the present application to recognize the user's gesture includes:
[0089] In step 302 , the television 100 filters each frame of point cloud data parsed by the radar 110 based on the instantaneous speed, and obtains a set of vector points whose instantaneous speed is greater than a set speed threshold.
[0090] For example, in some embodiments, a user turns on the TV 100 and uses the TV 100 to play a fruit-cutting game. There is a spectator A next to the user. A is next to the user. The user keeps waving in different directions to complete the fruit-cutting task. It is understandable that, in the process of the user using the TV 100 to play games, the radar 110 (such as a frequency modulated continuous wave (FMCW) radar) continuously transmits electromagnetic waves and receives echo signals reflected by the user and the spectator A around him. After mixing the transmitted original signal and the echo signal, the point cloud data of the user and the spectator A is parsed from the intermediate frequency signal obtained by mixing. Among them, each vector point in each frame of point cloud data includes three-dimensional coordinates and instantaneous speed. Assuming that the number of vector points in the i-th frame of the continuous multi-frame point cloud data collected by the radar 110 is N, the set corresponding to the N vector points is recorded as set P. i , set P i Each vector point in is represented by its coordinates and instantaneous velocity as p k (x k ,y k , z k, v k ), k∈[1, N]. For example, in some embodiments, among the three frames of point cloud data collected continuously by the radar 110, there are three vector points in the first frame of point cloud data whose instantaneous speed is greater than 5 km / h, denoted by P 1 (p 11 , p 12 , p 13 ); There are 4 vector points with instantaneous speed greater than 5KM / h in the second frame of point cloud data, denoted as P 2 (p 21 , p 22 , p 23 ); There are 5 vector points with instantaneous speed greater than 5KM / h in the third frame of point cloud data, denoted as P 3 (p 31 , p 32 , p 33 ).
[0091] In step 304 , the television 100 performs spatial clustering on the set of screened vector points to obtain multiple subsets corresponding to the set, and calculates the average position of multiple vector points in each subset to distinguish vector points corresponding to different targets scanned by the radar 110 .
[0092] In some embodiments, the TV 100 uses a density-based spatial clustering method with noise (DBSCAN) to perform spatial clustering on the set of vector points selected above to obtain multiple subsets. For example, the TV 100 performs spatial clustering on the set of vector points P selected from the i-th frame point cloud data. i , the DBSCAN algorithm is used to perform spatial clustering with a scanning radius of eps = 0.6m and a minimum number of points minPts = 5, and the corresponding set Pi is obtained i Multiple subsets Q of i1 ~Q in By averaging the physical positions (i.e., three-dimensional coordinates) of each subset, the average position coordinates corresponding to each subset can be obtained. It can be understood that each subset corresponds to a different target, and the average position coordinates obtained for each subset are different.
[0093] It is understandable that the above-mentioned values of the scanning radius and the minimum number of points are general examples given for the convenience of understanding the embodiments of the present invention. In other embodiments, other values can be set according to the parameters of the radar 110, and the present application does not limit this.
[0094] In other embodiments, the television 100 may also use other clustering algorithms such as the OPTICS algorithm and the DENCLUE algorithm to perform spatial clustering on the set of vector points selected above to obtain multiple subsets, which is not limited in the present application.
[0095] For example, in some embodiments, among the three frames of point cloud data collected continuously by the radar 110, the set P selected from the first frame of point cloud data is 1 Perform spatial clustering to obtain subset Q 11 , Q 12 , Q 11 , Q 12 The average position of For the set P filtered from the second frame point cloud data 2 Perform spatial clustering to obtain subset Q 21 , Q 22 , Q 21 , Q 22 The average position of For the set P selected from the point cloud data of the third frame 3 Perform spatial clustering to obtain subset Q 31 , Q 32 , Q 31 , Q 32 The average position of
[0096] In step 306, the TV 100 compares the average positions of the multiple subsets of each two consecutive frames of point cloud data, and identifies the targets corresponding to the two subsets whose average positions in the current frame are closest to the average positions in the previous frame as the same target. In this way, the TV 100 can distinguish the targets corresponding to the consecutive multiple frames of point cloud data, and select the targets of interest for analysis from the distinguished targets, thereby avoiding interference from other targets.
[0097] For example, in some embodiments, among the three frames of point cloud data continuously collected by the radar 110, the subset Q of the first frame of point cloud data 11 The average position and the subset Q of the second frame point cloud data 21 The average position The closest distance, the subset Q of the second frame point cloud data 21 The average position of And the subset Q of the point cloud data of the third frame 31 The average position The distance is the shortest; the subset Q of the first frame point cloud data 12 The average position And the subset Q of the second frame point cloud data 22 The average position The closest distance; the subset Q of the second frame point cloud data 22 The average position And the subset Q of the point cloud data of the third frame 32 The average position The distance is the shortest. Then determine the subset Q of the first frame point cloud data 11 The corresponding target and the subset Q of the second frame point cloud data 21 The corresponding target and the subset Q of the point cloud data of the third frame 31 The corresponding target is the same target (for example, a user who is playing a game on the TV 100). Determine the subset Q of the first frame of point cloud data 12 The corresponding target and the subset Q of the second frame point cloud data 21 The corresponding target and the subset Q of the point cloud data of the third frame 32 The corresponding targets are the same target (eg, spectator A next to the user playing the game).
[0098] In step 308, the TV 100 selects the user playing the game as the target of interest from the distinguished targets, and calculates the gesture motion trajectory of the user.
[0099] In some embodiments, the TV 100 may select the target corresponding to the subset with the largest number of vector points as the target of interest from the multiple subsets corresponding to the various targets in the collected continuous multi-frame point cloud data, and the other targets as interference targets. For example, the TV 100 uses the DBSCAN algorithm to select the subset Q of the point cloud data of the third frame from the set selected based on the instantaneous speed from the continuous 3 frames of point cloud data of the user playing the game and the spectator A. 31 The number of vector points included is the largest, and the corresponding target is the user. Therefore, the TV 100 determines that the user is the target of interest and can obtain the user's gesture motion trajectory.
[0100] Specifically, in some embodiments, the TV 100 may calculate the velocity centroids of multiple subsets corresponding to the user playing the game from the continuous multiple frames of point cloud data containing the user playing the game and the onlooker A. After calculating the velocity centroid corresponding to the user in each frame of point cloud data, the calculated velocity centroids of the continuous frames are smoothed to remove the burr noise caused by interference during the actual acquisition process of the radar 110.
[0101] The following takes the case where the TV 100 calculates the velocity centroid of multiple subsets corresponding to the users playing the game as an example to describe the calculation process of the velocity centroid in detail. Among the i-frame point cloud data containing the users playing the game collected by the TV 100, the subset corresponding to the users playing the game is denoted as Q i, subset Q i It includes M vector points. It can be understood that the method of calculating the velocity centroid of the subset of each frame of point cloud data corresponding to the user playing the game is similar. The specific calculation process is as follows:
[0102] First, the TV 100 uses speed as weight to sort the subset Q i The coordinates of the M vector points in are weighted to obtain the subset Q shown below i The weighted average coordinates of :
[0103]
[0104] Among them, x k ,y k , z k is the three-dimensional coordinate of one of the M vector points, v k is the instantaneous velocity of the vector point. sum is the sum of the instantaneous velocities of M vector points. i (x i ,y i , z i ) is the subset Q i The velocity center of mass.
[0105] Secondly, after the velocity centroid of the continuous multi-frame point cloud data corresponding to the user playing the game is obtained, in order to remove the burr noise caused by interference during the actual acquisition process of the radar 110, the Kalman filter algorithm can be used to smooth the velocity centroid of the continuous multi-frame point cloud data corresponding to the user playing the game. That is: based on the estimation result q′ of the previous frame i-1 (x′ i-1 , y′ i-1 , z′ i-1 ) and Kalman gain parameter K i , estimate the result of the current frame:
[0106] q′ i (x′ i , y′ i , z′ i ) = q′ i-1 (x′ i-1 , y′ i-1 , z′ i-1 )+K i (q i (x i ,y i , z i )-q′ i-1 (x′ i-1 , y′ i-1 , z′ i-1 ))
[0107] Among them, q′ i (x′ i , y′ i , z′ i ) is a subset of pairs Q i The velocity center of mass q i (x i ,y i , z i ) is the velocity centroid after smoothing; q′ i-1 (x′ i-1 , y′ i-1 , z′ i-1 ) is a subset of pairs Q i The velocity centroid q of the previous frame of the point cloud data frame to which it belongs i-1 (x i-1 ,y i-1 , z i-1 ) is smoothed. In this way, after the velocity centroid of the continuous multi-frame point cloud data corresponding to the user playing the game is obtained and the velocity centroid is smoothed using the Kalman filter algorithm, the velocity centroid estimation result [q′] of the continuous frame without burr noise is obtained. 1 ,q′ 2 ,q′ 3 …q′ i-1 ,q′ i ] That is, it can be used as the gesture movement trajectory of the user playing the game for subsequent analysis.
[0108] It can be understood that when the TV 100 selects a target of interest from the distinguished targets to calculate the gesture motion trajectory, in addition to the number of vector points in the subset as the basis for target selection as described in the above embodiment, target selection can also be based on other factors, and this application does not limit this.
[0109] For example, in some embodiments, the TV 100 may use the distance between the target and the TV 100 as the target selection basis. For example, the TV 100 performs spatial clustering on the set of screened vector points to obtain multiple subsets corresponding to the set, and after calculating the average position of multiple vector points in each subset, the average position of each subset in the point cloud data of different frames corresponding to each target is determined and the distance from the TV 100. One or more targets whose average position is closest to the TV 100 are determined as targets of interest, and one or more targets whose average position is farther away are determined as interference targets.
[0110] In some embodiments, the TV 100 may also use the moving speed of the target as the basis for target selection. For example, the TV 100 performs spatial clustering on the set of screened vector points to obtain multiple subsets corresponding to the set, calculates the average position of multiple vector points in each subset, and then compares the average positions of multiple subsets of each two consecutive frames of point cloud data to distinguish different targets. The TV 100 compares the speed information of each vector point in each frame of point cloud data corresponding to each distinguished target, determines the fastest one or more targets as the target of interest, and determines the slower one or more targets as the interference target.
[0111] In step 310, the TV 100 performs gesture recognition based on the obtained gesture motion trajectory corresponding to the selected target of interest. For example, the TV 100 distinguishes multiple targets and can select one target of interest for gesture recognition (for example, only one user is playing a game using the TV 100, and the TV 100 recognizes the gesture of the user), or multiple targets of interest can be selected for gesture recognition (for example, two users are playing the same game together using the TV 100), and this application does not limit this.
[0112] Specifically, in some embodiments, after the velocity centroid of the continuous multi-frame point cloud data corresponding to the user playing the game is obtained and the velocity centroid is smoothed using the Kalman filter algorithm, the velocity centroid estimation result [q′] of the continuous frames without burr noise is obtained. 1 , q′ 2 , q′ 3 …q′ i-1 , q′ i ] can be used as the gesture trajectory of the user playing the game. 1 , q′ 2 , q′ 3 …q′ i-1 , q′ i ] A pre-trained neural network model is input to obtain a gesture corresponding to the velocity centroid estimation result, and the TV 100 performs a corresponding function according to the recognized gesture. For example, when the user playing the game waves his hand left and right in the horizontal direction, the fruit falling down displayed on the display screen of the TV 100 can be cut horizontally; when the user playing the game waves his hand up and down in the vertical direction, the fruit falling down displayed on the display screen of the TV 100 can be cut vertically. Among them, the pre-trained neural network can be a neural network model trained by a large number of different gestures and the velocity centroid estimation results of multiple frames of continuous point cloud data corresponding to each gesture.
[0113] The estimated result of the velocity centroid of the multiple frames of continuous point cloud data collected by the radar 110 estimated by the TV 100 [q′ 1 , q′ 2 , q′ 3 …q′ i-1 , q′ i ] is used to describe the trajectory of gesture movement. The gesture to be recognized is recognized based on the velocity centroid, which can reduce the interference of other people in multi-person scenes and make the gesture recognition result more accurate.
[0114] It can be understood that the neural network model provided in the present application can be any artificial neural network model, such as convolutional neural network (CNN), deep neural network (DNN), recurrent neural network (RNN), binary neural network (BNN), etc.
[0115] Below we still use Figure 1 and Figure 2 The electronic device 100 shown is a television set as an example, and a process of the television set 100 using another gesture recognition method provided in an embodiment of the present application to recognize a user's gesture is described in detail.
[0116] Figure 4 The gesture recognition method in the embodiment shown is similar to Figure 3 The gesture recognition method shown is similar to Figure 3 The gesture recognition method shown in the figure differs only in that: Figure 3 In the illustrated embodiment, the television 100 performs spatial clustering on the set of filtered vector points to obtain multiple subsets corresponding to the set, calculates the average position of multiple vector points in each subset, compares the average positions of multiple subsets of every two consecutive frames of point cloud data, and then distinguishes different targets. Then, a target of interest is selected from the distinguished targets to calculate the gesture motion trajectory, and the gesture of the target is recognized based on the calculated gesture motion trajectory of the target.
[0117] And in Figure 4In the illustrated embodiment, the TV 100 performs spatial clustering on the set of screened vector points to obtain multiple subsets corresponding to the set. After calculating the average position of multiple vector points in each subset, the average positions of multiple subsets of each two consecutive frames of point cloud data are compared, and then after different targets are distinguished, the gesture motion trajectories of all targets are estimated. Then, according to the set selection criteria (such as the identity of the target, the distance from the TV 100, the order of entering the field of view of the radar 110 during the scanning process of the radar 110, etc.), the gestures are recognized based on the calculated gesture motion trajectories for the targets that meet the selection conditions.
[0118] Specifically, Figure 4 As shown, the process of the television 100 recognizing the user's gesture using another gesture recognition method provided in an embodiment of the present application includes:
[0119] In step 402 , the television 100 filters each frame of point cloud data parsed by the radar 110 based on the instantaneous velocity to obtain a set of filtered vector points.
[0120] For example, in some embodiments, two users (user A and user B) are playing games on the TV 100. User A is an adult and user B is a child. User A keeps waving his arms vigorously, and user B imitates user A and keeps waving his arms, but user B is just beginning to learn and the force of waving his arms is relatively small. The radar 110 continuously transmits electromagnetic waves and receives echo signals reflected by user A and user B. After mixing the original signal emitted by the radar 110 and the received echo signal, the point cloud data of multiple discrete vector points of user A and user B are parsed from the mixed intermediate frequency signal. Each vector point in each frame of point cloud data includes three-dimensional coordinates and instantaneous speed. The TV 100 filters each frame of point cloud data collected containing user A and user B based on the instantaneous speed, and filters out a set of vector points in each frame whose instantaneous speed is greater than the set speed threshold.
[0121] In step 404 , the television 100 performs spatial clustering on the set of screened vector points to obtain multiple subsets corresponding to the set, and calculates the average position of multiple vector points in each subset to distinguish the vector points corresponding to different targets scanned by the radar 110 .
[0122] In some embodiments, the TV 100 can also use the DBSCAN algorithm with noise to perform spatial clustering on the set of vector points selected above to obtain multiple subsets. By averaging the physical positions (i.e., three-dimensional coordinates) of each subset, the average position coordinates corresponding to each subset can be obtained. The specific process is similar to step 304 and will not be repeated here.
[0123] In step 406, the TV 100 compares the average positions of multiple subsets of point cloud data of every two consecutive frames, and confirms the targets corresponding to the two subsets whose average positions in the current frame are closest to the average positions in the previous frame as the same target. In this way, the TV 100 can distinguish the targets (for example, distinguish between user A and user B) for subsequent calculation of gesture motion trajectories for each target. The specific process is similar to step 306. Please refer to the above for detailed description, which will not be repeated here.
[0124] In step 408, after distinguishing the targets, the TV 100 calculates the gesture motion trajectory of each target. For example, the TV 100 distinguishes user A and user B, and uses a method similar to step 308 to calculate the gesture motion trajectory of user A and the gesture motion trajectory of user B, respectively.
[0125] Specifically, the principle of calculating the gesture motion trajectory of user A is as follows:
[0126] For example, in some embodiments, the radar 110 continuously collects multiple frames of point cloud data containing multiple discrete vector points of user A and user B, and uses the DBSCAN algorithm to perform spatial clustering on the set of vector points selected from the continuous multi-frame point cloud data based on instantaneous velocity to obtain multiple subsets. The subset corresponding to user A is denoted as H i , subset H i Includes R vector points.
[0127] First, calculate the subset H i The velocity center of mass of the subset H i The R vector points in the coordinates are weighted to obtain the subset H shown below i The weighted average coordinates of :
[0128]
[0129] Among them, x k ,y k , z k is the three-dimensional coordinate of one of the R vector points, v k is the instantaneous velocity of the vector point. sum is the sum of the instantaneous velocities of R vector points. i (x i ,y i , z i ) is a subset H i The velocity center of mass.
[0130] Secondly, in finding the subset H iAfter the velocity centroid of the sub-set H is obtained, the Kalman filter algorithm can be used to obtain the velocity centroid of the continuous frames without burr noise. i The velocity of the center of mass h i (x i ,y i , z i ) is smoothed. That is, based on the estimation result h′ of the previous frame i-1 (x′ i-1 , y′ i-1 , z′ i-1 ) and the Kalman gain parameter K i , estimate the result of the current frame:
[0131] h′ i (x′ i , y′ i , z′ i ) = h′ i-1 (x′ i-1 , y′ i-1 , z′ i-1 )+K i (h i (x i ,y i , z i )-h′ i-1 (x′ i-1 , y′ i-1 , z′ i-1 ))
[0132] Among them, h′ i (x′ i , y′ i , z′ i ) is a pair set H i The velocity of the center of mass h i (x i ,y i , z i ) is the velocity centroid after smoothing; h′ i-1 (x′ i-1 , y′ i-1 , z′ i-1 ) is a pair set H i The velocity centroid h of the previous frame of the point cloud data frame to which it belongs i-1 (x i-1 ,y i-1 , z i-1 ) is the result after smoothing. In this way, after the velocity centroid of the continuous multi-frame point cloud data corresponding to user A is obtained and the velocity centroid is smoothed using the Kalman filter algorithm, the velocity centroid estimation result [h′] of the continuous frame without burr noise is obtained. 1 , h′ 2, h′ 3 …h′ i-1 , h′ i ] can be used as the gesture movement trajectory of user A for subsequent analysis.
[0133] The principle of calculating the gesture motion trajectory of user B is as follows:
[0134] For example, in some embodiments, the radar 110 continuously collects multiple frames of point cloud data containing multiple discrete vector points of user A and user B, and uses the DBSCAN algorithm to perform spatial clustering on the set of vector points selected from the continuous multi-frame point cloud data based on instantaneous velocity to obtain multiple subsets. The subset corresponding to user B is denoted as J i , subset J i Includes L vector points.
[0135] First, calculate the subset J i The velocity center of mass of the subset J i The L vector points in the coordinates are weighted to obtain the subset J shown below i The weighted average coordinates of :
[0136]
[0137] Among them, x k ,y k , z k is the three-dimensional coordinate of one of the L vector points, v k is the instantaneous velocity of the vector point. sum is the sum of the instantaneous velocities of L vector points. i (x i ,y i , z i ) is the subset J i The velocity center of mass.
[0138] Secondly, in finding the subset J i After the velocity centroid of the subset J is obtained, the Kalman filter algorithm can be used to obtain the velocity centroid of the continuous frames without burr noise. i The velocity center of mass j i (x i ,y i , z i ) is smoothed. That is, based on the estimation result j′ of the previous frame i-1 (x′ i-1 , y′ i-1 , z′ i-1 ) and the Kalman gain parameter K i , estimate the result of the current frame:
[0139] j′i (x′ i , y′ i , z′ i ) = j′ i-1 (x′ i-1 , y′ i-1 , z′ i-1 )+K i (j i (x i ,y i , z i )-j′ i-1 (x′ i-1 , y′ i-1 , z′ i-1 ))
[0140] Among them, j′ i (x′ i , y′ i , z′ i ) is the pair set J i The velocity center of mass j i (x i ,y i , z i ) is the velocity centroid after smoothing; j′ i-1 (x′ i-1 , y′ i-1 , z′ i-1 ) is the pair set J i The velocity centroid j of the previous frame of the point cloud data frame to which it belongs i-1 (x i-1 ,y i-1 , z i-1 ) is the result after smoothing. In this way, after the velocity centroid of the continuous multi-frame point cloud data corresponding to user B is obtained and the velocity centroid is smoothed using the Kalman filter algorithm, the velocity centroid estimation result [j′] of the continuous frame without burr noise is obtained. 1 , j′ 2 , j′ 3 …j′ i-1 , j′ i ] can be used as the gesture movement trajectory of user B for subsequent analysis.
[0141] In step 410, the TV set 100 identifies the identified target. After identifying the target, the TV set 100 can focus on the gestures of the specific target that meets the set conditions, avoiding the influence of other targets.
[0142] For example, in some embodiments, after distinguishing user A from user B, the TV 100 collects images containing user A and user B through a camera, and performs face detection and feature point extraction on the collected images based on a computer vision (CV) algorithm. Then, face recognition is performed based on the extracted facial features, and information such as the age, identity, and whether they are members of the same family of user A and user B can be identified. For example, the TV 100 identifies user A as an adult and user B as a child, and the TV 100 presupposes that only adults are the users who are actually playing the game. Then, the TV 100 can determine that user A is the user who is actually playing the game, and user B is the user who is making trouble nearby (also called an interference target).
[0143] In step 412, when the TV 100 determines that the identified target meets the set conditions (for example, the identity of the target, the distance from the TV 100, being at a certain location, the order in which it enters the field of view of the radar 110 during the scanning process of the radar 110, etc., which meet the set identity, set distance, set location, set order, etc.), the TV 100 performs gesture recognition on the target based on the obtained gesture motion trajectory.
[0144] For example, in some embodiments, after determining that user A is the user who is actually playing the game and user B is the user who is making trouble nearby (also called an interference target), the TV 100 inputs the above-obtained gesture motion trajectory of user A (the estimated result of the velocity centroid of continuous frames) into a pre-trained neural network model for gesture recognition, thereby obtaining a gesture corresponding to the velocity centroid estimation result, and the TV 100 performs a corresponding function according to the recognized gesture. The pre-trained neural network can be a neural network model trained by collecting a large number of different gestures of user A and the velocity centroid estimation results of multiple frames of continuous point cloud data corresponding to each gesture.
[0145] It is understandable that if multiple users (for example, user A and user B) are playing the same game on the TV 100 at the same time, the obtained gesture motion trajectory of user A (corresponding to the estimated result of the velocity centroid of the continuous frames of user A) and the gesture motion trajectory of user B (corresponding to the estimated result of the velocity centroid of the continuous frames of user B) can also be input into the pre-trained neural network model for gesture recognition. Thus, gestures corresponding to the estimated result of the velocity centroid of user A and gestures corresponding to the estimated result of the velocity centroid of user B are obtained. The TV 100 performs corresponding functions according to the recognized gestures of user A and user B.
[0146] In some embodiments, user A and user B are in front of the TV 100 at the same time. When the TV cannot determine which of user A and user B is the user actually playing the game, the gesture movement trajectory of user A and the gesture movement trajectory of user B can be simultaneously subjected to gesture recognition, and the final effective gesture (i.e., the gesture of the user who is actually using the TV 100 to play the game) can be selected based on the matching degree of the identified gesture of user A and the matching degree of the identified gesture of user B.
[0147] The gestures of both users are recognized, and the user whose gesture has a high matching degree is determined as the user of interest.
[0148] Figure 5 According to some embodiments of the present application, a structural block diagram of a gesture recognition device is provided, such as Figure 5 As shown, including:
[0149] An acquisition module 502 is used to acquire a multi-frame radar intermediate frequency signal, wherein the radar intermediate frequency signal is a signal obtained by mixing a radar transmission signal emitted by the radar and a radar echo signal received after the radar transmission signal is reflected by multiple targets within the radar field of view;
[0150] The parsing module 504 is used to parse out the vector points belonging to each of the multiple targets in the multi-frame radar intermediate frequency signal;
[0151] A calculation module 506 is used to calculate the coordinates of the velocity centroid of a target corresponding to each frame of the radar intermediate frequency signal based on the vector point of a target among the multiple targets, wherein the coordinates of the velocity centroid are weighted average coordinates of the coordinates of the vector points of the target resolved in one frame of the radar intermediate frequency signal, wherein the weights of the coordinates of different vector points in the weighted average coordinates are related to the velocity of the corresponding vector point;
[0152] A determination module 508, configured to determine a trajectory of the target's gesture movement based on the calculated coordinates of the plurality of velocity centroids;
[0153] The recognition module 510 is used to obtain a target gesture recognition result according to the trajectory of the gesture movement.
[0154] Figure 6 FIG. 6 is a block diagram of a system 600 according to an embodiment of the present application. In one embodiment, the system 600 may include one or more processors 604, a system control logic 608 connected to at least one of the processors 604, a system memory 612 connected to the system control logic 608, a non-volatile memory (NVM) 616 connected to the system control logic 608, and a network interface 620 connected to the system control logic 608.
[0155] In some embodiments, the processor 604 may include one or more single-core or multi-core processors. In some embodiments, the processor 604 may include any combination of a general-purpose processor and a dedicated processor (e.g., a graphics processor, an application processor, a baseband processor, etc.). In an embodiment in which the system 600 uses an enhanced base station (Evolved Node B, eNB) 101 or a radio access network (Radio Access Network, RAN) controller 102, the processor 604 may be configured to execute various embodiments that conform to the embodiment, such as filtering the continuous point cloud data frames parsed by the radar based on the instantaneous speed, and then using a spatial clustering algorithm to divide the vector points of the filtered vector point set to obtain multiple subsets. By comparing the average position of each subset in two consecutive frames of point cloud data, it is determined whether the targets corresponding to each subset in two consecutive frames of point cloud data are the same target. Then, one or more targets that meet the set conditions are selected from the targets scanned within the radar field of view, and each vector point in each subset corresponding to the selected one or more targets is weighted with the speed as the weight, and then the weighted coordinates are averaged to obtain the velocity centroid used to characterize the average position of each subset. Then, the obtained velocity centroid is smoothed, and the velocity centroid of each continuous frame after smoothing is used as the gesture motion trajectory corresponding to the one or more targets. The gesture motion trajectory is recognized, and corresponding operations are performed according to the recognized results.
[0156] In some embodiments, system control logic 608 may include any suitable interface controller to provide any suitable interface to at least one of processors 604 and / or any suitable device or component in communication with system control logic 608 .
[0157] In some embodiments, the system control logic 608 may include one or more memory controllers to provide an interface to the system memory 612. The system memory 612 may be used to load and store data and / or instructions. For example, the velocity centroid of an object of interest or an object that meets a set condition, and the correspondence between the velocity centroid of consecutive frames and the gesture motion trajectory, etc. In some embodiments, the memory 612 of the system 600 may include any suitable volatile memory, such as a suitable dynamic random access memory (DRAM).
[0158] NVM / memory 616 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. In some embodiments, NVM / memory 616 may include any suitable non-volatile memory such as flash memory and / or any suitable non-volatile storage device, such as a hard disk drive (HDD), a compact disc (CD) drive, and a digital versatile disc (DVD) drive.
[0159] NVM / storage 616 may include a portion of storage resources on the device on which system 600 is installed, or it may be accessible by the device but not necessarily a portion of the device. For example, NVM / storage 616 may be accessed over a network via network interface 620.
[0160] In particular, system memory 612 and NVM / storage 616 may include, respectively, a temporary copy and a permanent copy of instructions 624. Instructions 624 may include instructions that, when executed by at least one of processors 604, cause system 600 to implement the following: Figure 3-4 In some embodiments, instructions 624, hardware, firmware, and / or software components thereof may additionally / alternatively be placed in system control logic 608, network interface 620, and / or processor 604.
[0161] The network interface 620 may include a transceiver for providing a radio interface for the system 600, thereby communicating with any other suitable devices (such as front-end modules, antennas, etc.) through one or more networks. In some embodiments, the network interface 620 may be integrated with other components of the system 600. For example, the network interface 620 may be integrated with at least one of the processor 604, the system memory 612, the NVM / storage 616, and a firmware device (not shown) having instructions. When at least one of the processors 604 executes the instructions, the system 600 implements the following. Figure 3-4 The method shown.
[0162] The network interface 620 may further include any suitable hardware and / or firmware to provide a multiple-input multiple-output radio interface. For example, the network interface 620 may be a network adapter, a wireless network adapter, a telephone modem and / or a wireless modem.
[0163] In one embodiment, at least one of the processors 604 may be packaged together with the logic of one or more controllers for the system control logic 608 to form a SIP (System In a Package). In one embodiment, at least one of the processors 604 may be integrated with the logic of one or more controllers for the system control logic 608 on the same die to form a System on Chip (SoC).
[0164] The system 600 may further include an input / output (I / O) device 632. The I / O device 632 may include a user interface to enable a user to interact with the system 600; and a peripheral component interface design to enable peripheral components to interact with the system 600. In some embodiments, the system 600 further includes a sensor for determining at least one of an environmental condition and location information related to the system 600.
[0165] In some embodiments, the user interface may include, but is not limited to, a display (e.g., an LCD display, a touch screen display, etc.), a speaker, a microphone, one or more cameras (e.g., a still image camera and / or a video camera), a flashlight (e.g., an LED flash), and a keyboard.
[0166] In some embodiments, the peripheral component interface may include, but is not limited to, a non-volatile memory port, an audio jack, and a power interface.
[0167] In some embodiments, the sensors may include, but are not limited to, gyroscope sensors, accelerometers, proximity sensors, ambient light sensors, and positioning units. The positioning unit may also be part of or interact with the network interface 620 to communicate with components of a positioning network (e.g., global positioning system (GPS) satellites).
[0168] According to an embodiment of the present application, Figure 7 FIG. 1 shows a block diagram of a system on chip (SoC) 700. Figure 7 In the FIG, similar components have the same reference numerals. In addition, the dashed boxes are optional features of more advanced SoCs. Figure 7In the embodiment, SoC700 includes: an interconnection unit 750, which is coupled to a processor 710. The processor 710 can be used to filter the continuous point cloud data frames parsed by the radar based on the instantaneous speed, and then perform target clustering on the filtered vector point set based on the DBSCAN algorithm. Then, one or more targets that meet the set conditions are selected from the targets scanned within the radar field of view, and the coordinates of each vector point in each subset corresponding to the selected one or more targets are weighted with the speed as the weight, and then the weighted coordinates are averaged to obtain the velocity centroid used to characterize the average position of each subset. Then, the obtained velocity centroid is smoothed, and the velocity centroid of each continuous frame after smoothing is used as the gesture motion trajectory corresponding to the aforementioned one or more targets. By identifying the gesture motion trajectory, corresponding operations are performed according to the identified results; system agent unit 770; bus controller unit 780; integrated memory controller unit 740; a group or one or more coprocessors 720, which may include integrated graphics logic, image processor, audio processor and video processor; static random access memory (SRAM) 730; direct memory access (DMA) unit 760. In one embodiment, the coprocessor 720 includes a dedicated processor, such as a network or communication processor, a compression engine, a general purpose computing on a graphics processor (GPGPU), a high throughput MIC processor, or an embedded processor, etc.
[0169] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.
[0170] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0171] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.
[0172] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors to perform the gesture recognition method provided by the present application. For example, the instructions may be distributed over a network or through other computer-readable media. Therefore, the machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to floppy disks, optical disks, optical discs, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROM), random access memories (RAM), erasable programmable read-only memories (EPROM), electrically erasable programmable read-only memories (EEPROM), magnetic or optical cards, flash memory, or tangible machine-readable storage for transmitting information using the Internet in electrical, optical, acoustic or other forms of propagation signals (e.g., carrier waves, infrared signals, digital signals, etc.). Therefore, the machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
[0173] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
[0174] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.
[0175] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0176] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.
Claims
1. A gesture recognition method, used in an electronic device, wherein the electronic device includes a radar, It is characterized in that The method comprises: Acquire a multi-frame radar intermediate frequency signal, wherein the radar intermediate frequency signal is a signal obtained by mixing a radar transmission signal transmitted by the radar and a radar echo signal received after the radar transmission signal is reflected by multiple targets within the radar field of view; Parsing out vector points belonging to each of the multiple targets in the multiple frames of radar intermediate frequency signals, wherein the vector points of the targets are determined based on velocity analysis of the vector points, positional relationship analysis of the vector points, and spatial clustering of the vector points; Based on a vector point of a target among the multiple targets, calculate the coordinates of the velocity centroid of the target corresponding to each frame of the radar intermediate frequency signal, wherein the coordinates of the velocity centroid are weighted average coordinates of the coordinates of the vector points of the target parsed in one frame of the radar intermediate frequency signal, wherein the weights of the coordinates of different vector points in the weighted average coordinates are related to the velocity of the corresponding vector point; Determining a trajectory of the gesture movement of the target according to the calculated coordinates of the plurality of velocity centroids; A gesture recognition result of the target is obtained according to the trajectory of the gesture movement.
2. The method according to claim 1, It is characterized in that The step of parsing the vector points belonging to each of the multiple targets in the multiple frames of radar intermediate frequency signals includes: Analyze each frame of the multiple frames of radar intermediate frequency signals to obtain vector points corresponding to multiple targets within the radar field of view; Screening out vector points whose speed is greater than a speed threshold from the vector points parsed from the radar intermediate frequency signal of each frame, and obtaining a target set consisting of the screened vector points; Performing spatial clustering on the target set to obtain a plurality of target subsets corresponding to each frame of the radar intermediate frequency signal; Based on the positional relationship between vector points in a plurality of target subsets of every two frames of the radar intermediate frequency signal, vector points belonging to each of the plurality of targets in the plurality of frames of the radar intermediate frequency signal are determined.
3. The method according to claim 2, It is characterized in that The spatial clustering of the target set to obtain a plurality of target subsets corresponding to each frame of the radar intermediate frequency signal comprises: The target set is spatially clustered using a density-based clustering method with noise to obtain a plurality of target subsets corresponding to each frame of the radar intermediate frequency signal.
4. The method according to claim 2 or 3, It is characterized in that The step of determining the vector point belonging to each of the multiple targets in multiple frames of the radar intermediate frequency signal based on the positional relationship of the vector points in the multiple target subsets in every two frames of the radar intermediate frequency signal comprises: Calculating the average position of the vector points of each target subset in the plurality of target subsets of each frame of the radar intermediate frequency signal; The average position of the vector points of each target subset of one frame of the radar intermediate frequency signal is compared with the average position of the vector points of each target subset of another frame of the radar intermediate frequency signal. When the average position of the vector points of a target subset of the radar intermediate frequency signal in one frame is closest to the average position of the vector points of a target subset of the radar intermediate frequency signal in another frame, it is determined that the vector points in the two target subsets belong to the same target.
5. The method according to claim 4, It is characterized in that The method further comprises: The number of vector points in the target subset of each frame of the radar intermediate frequency signal is compared to determine the target corresponding to the target subset with the largest number of vector points, and the coordinates of the velocity centroid of each frame of the radar intermediate frequency signal corresponding to the target are calculated.
6. The method according to claim 4, It is characterized in that The method further comprises: The distances between each vector point in the target subset of each frame of the radar intermediate frequency signal and the electronic device are compared to determine the target corresponding to the target subset with the closest distance, and the coordinates of the velocity centroid of each frame of the radar intermediate frequency signal corresponding to the target are calculated.
7. The method according to claim 4, It is characterized in that The method further comprises: The sum of the velocities of the vector points in the target subset of each frame of the radar intermediate frequency signal is compared to determine the target corresponding to the target subset with the largest sum of velocities, and calculate the coordinates of the velocity centroid of the target corresponding to each frame of the radar intermediate frequency signal.
8. The method according to any one of claims 5 to 7, It is characterized in that The step of calculating the coordinates of the velocity centroid of each frame of the radar intermediate frequency signal corresponding to a target among the multiple targets based on the vector point of the target includes: The coordinates of each vector point in the target subset of each frame of the radar intermediate frequency signal corresponding to one of the multiple targets are weighted by using the corresponding speed as a weight to obtain weighted coordinates, and the speeds of each vector point in the target subset are summed to obtain a total speed; The weighted coordinates are divided by the total speed to obtain the coordinates of the velocity centroid of the target corresponding to each frame of the radar intermediate frequency signal.
9. The method according to claim 8, It is characterized in that Determining the trajectory of the gesture movement of the target according to the calculated coordinates of the plurality of velocity centroids includes: Using a Kalman filter algorithm to smooth the coordinates of the plurality of velocity centroids; Based on the coordinates of the plurality of velocity centroids after smoothing, the trajectory of the gesture movement of the target is determined.
10. The method according to claim 1, It is characterized in that The method further comprises: acquiring an image of at least one target within the radar field of view; identifying at least one of the targets based on the acquired image; When it is determined that the identified target meets the set conditions, performing gesture recognition on the identified target; The setting condition includes at least one of the following situations: The identity of the target is a preset identity, and the characteristics of the target are preset characteristics.
11. The method according to claim 1, It is characterized in that The radar includes a millimeter wave radar.
12. A gesture recognition device, It is characterized in that include: An acquisition module is used to acquire a multi-frame radar intermediate frequency signal, wherein the radar intermediate frequency signal is a signal obtained by mixing a radar transmission signal emitted by the radar and a radar echo signal received after the radar transmission signal is reflected by multiple targets within the radar field of view; A parsing module, used for parsing out vector points belonging to each of the multiple targets in the multiple frames of the radar intermediate frequency signal, wherein the vector points of the targets are determined based on the velocity parsing of the vector points, the positional relationship parsing of the vector points and the spatial clustering of the vector points; A calculation module, configured to calculate the coordinates of the velocity centroid of a target corresponding to each frame of the radar intermediate frequency signal based on a vector point of a target among the multiple targets, wherein the coordinates of the velocity centroid are weighted average coordinates of the coordinates of the vector points of the target parsed in a frame of the radar intermediate frequency signal, wherein the weights of the coordinates of different vector points in the weighted average coordinates are related to the velocity of the corresponding vector point; A determination module, configured to determine a trajectory of the gesture movement of the target according to the calculated coordinates of the plurality of velocity centroids; The recognition module is used to obtain the gesture recognition result of the target according to the trajectory of the gesture movement.
13. A computer readable medium, It is characterized in that The computer-readable medium stores instructions, which, when executed on a computer, enable the computer to execute the gesture recognition method according to any one of claims 1 to 11.
14. A gesture recognition system, It is characterized in that include: a memory for storing instructions to be executed by one or more processors of the electronic device, and The processor is one of the processors of the electronic device, and is used to execute the gesture recognition method according to any one of claims 1 to 11.
