Device interaction method, device interaction device, storage medium and terminal
By detecting changes in the ultrasonic sound field of electronic devices and combining the minimum control recursive average algorithm and the peak statistical algorithm, the distance and number of gesture movements are identified, which solves the problem of poor gesture recognition accuracy, achieves more convenient and accurate device interaction, and improves user experience. experience.
Patent Information
- Application Number
- CN202110236455.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-03
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-03-03
AI Technical Summary
In the existing technology, gesture recognition has poor accuracy in device interactive control and is prone to false triggers, resulting in low accuracy of device interactive control, which is especially cumbersome when quick operations such as stopping music playback are required.
By detecting changes in the ultrasonic sound field generated by electronic devices, the gesture movement distance is determined, and recognition is performed when the preset conditions are met. The interactive instructions are determined based on the number of movements of the gesture. The ultrasonic transmitting and receiving module is combined with the minimum control recursive average algorithm and the peak statistical algorithm. , improve the accuracy and robustness of gesture recognition.
It improves the accuracy and robustness of gesture recognition, simplifies device interaction methods, supports multiple gesture recognitions, and improves user experience and interaction speed without increasing hardware costs.
Smart Images

Figure CN112860070B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminal technology, and in particular to a device interaction method, apparatus, storage medium and terminal. Background Art
[0002] With the development of voice interaction technology, users can free their hands by controlling devices through voice in many scenarios. However, in some scenarios, such as stopping a song, you need to first wake up the smart device with voice, and then enter a voice command to stop playing. The interaction process is a bit complicated. Therefore, it is necessary to introduce other more convenient ways to control the device. In related technologies, gestures can be used to control device interaction. However, gesture recognition has problems such as poor accuracy and easy false triggering, and the accuracy of device interaction control is not high. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a device interaction method, apparatus, storage medium and terminal.
[0004] According to a first aspect of an embodiment of the present disclosure, a device interaction method is provided, which is applied to an electronic device, and the method includes:
[0005] In response to the change of the ultrasonic sound field generated by the electronic device, determining a corresponding gesture movement distance;
[0006] When the gesture movement distance meets a preset condition, recognizing the gesture;
[0007] According to the recognized number of movements of the gesture, a corresponding interaction instruction is determined and executed.
[0008] In some possible embodiments, the change of the ultrasonic sound field is determined based on the following steps:
[0009] Controlling the electronic device to play a preset ultrasonic signal;
[0010] Analyzing the preset ultrasonic signal collected by the electronic device;
[0011] The change of the ultrasonic sound field is determined according to the phase change information obtained by analysis.
[0012] In some possible embodiments, determining the corresponding gesture movement distance in response to the change of the ultrasonic sound field includes:
[0013] Obtaining a phase change corresponding to a change in the ultrasonic sound field;
[0014] The gesture movement distance corresponding to the phase change amount is determined according to a preset corresponding relationship.
[0015] In some possible embodiments, when the gesture movement distance satisfies a preset condition, recognizing the gesture movement includes:
[0016] Determining whether the gesture movement distance is within a preset gesture movement interval;
[0017] When the gesture movement distance is within the preset gesture movement interval, recognizing the gesture;
[0018] The preset gesture movement interval is determined by the gesture movement distance and the steady-state distance, and the steady-state distance is used to characterize the movement state of the gesture.
[0019] In some possible embodiments, when the gesture movement distance is within the preset gesture movement interval, recognizing the gesture includes:
[0020] When the difference between the gesture movement distance and the steady-state distance is greater than a first preset threshold, starting to recognize the gesture;
[0021] The duration during which the absolute value of the difference between the gesture movement distance and the steady-state distance is less than a second preset threshold is obtained, and when the duration exceeds a preset time threshold, the recognition of the gesture is stopped.
[0022] In some possible embodiments, when the gesture movement distance is within the preset gesture movement interval, recognizing the gesture includes:
[0023] When the gesture movement distance is within the preset gesture movement interval, determining at least one distance peak value within the preset gesture interval;
[0024] The number of movements of the gesture is determined according to the sum of the number of the distance peaks.
[0025] According to a second aspect of an embodiment of the present disclosure, a device interaction apparatus is provided, which is applied to an electronic device, and the apparatus includes:
[0026] a determination module, configured to determine a corresponding gesture movement distance in response to a change in the ultrasonic sound field generated by the electronic device;
[0027] A recognition module, used for recognizing the gesture when the gesture movement distance meets a preset condition;
[0028] The execution module determines and executes the corresponding interaction instruction according to the recognized movement times of the gesture.
[0029] In some possible embodiments, the determining module includes:
[0030] An ultrasonic transmitting module, used to control the electronic device to play a preset ultrasonic signal;
[0031] An ultrasonic receiving module, used for analyzing the preset ultrasonic signal collected by the electronic device;
[0032] The determination module is specifically used to determine the change of the ultrasonic sound field according to the phase change information obtained by analysis.
[0033] In some possible embodiments, the determining module further includes:
[0034] An acquisition module, used to acquire a phase change amount corresponding to a change in the ultrasonic sound field;
[0035] The determination module is specifically configured to determine the gesture movement distance corresponding to the phase change amount according to a preset corresponding relationship.
[0036] In some possible embodiments, the identification module further includes:
[0037] A judging module, used for judging whether the gesture movement distance is within a preset gesture movement interval;
[0038] The recognition module is specifically configured to recognize the gesture when the gesture movement distance is within the preset gesture movement interval;
[0039] The preset gesture movement interval is determined by the gesture movement distance and the steady-state distance, and the steady-state distance is used to characterize the movement state of the gesture.
[0040] In some possible embodiments, the identification module is specifically used to:
[0041] When the difference between the gesture movement distance and the steady-state distance is greater than a first preset threshold, starting to recognize the gesture;
[0042] The duration during which the absolute value of the difference between the gesture movement distance and the steady-state distance is less than a second preset threshold is obtained, and when the duration exceeds a preset time threshold, the recognition of the gesture is stopped.
[0043] In some possible embodiments, the identification module is specifically used to:
[0044] When the gesture movement distance is within the preset gesture movement interval, determining at least one distance peak value within the preset gesture interval;
[0045] The number of movements of the gesture is determined according to the sum of the number of the distance peaks.
[0046] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the device interaction method provided in the first aspect of the present disclosure are implemented.
[0047] According to a fourth aspect of an embodiment of the present disclosure, a terminal is provided, comprising: a memory on which a computer program is stored; and a processor for executing the computer program in the memory to implement the steps of the device interaction method provided in the first aspect of the present disclosure.
[0048] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by detecting the change of the ultrasonic sound field generated by the electronic device, the corresponding gesture movement distance is determined; when the gesture movement distance meets the preset conditions, the gesture is recognized. In this way, by setting the threshold of gesture recognition, the accuracy of gesture recognition can be improved; according to the number of movements of the recognized gesture, the corresponding interaction instruction is determined and executed, more types of gestures can be recognized, and different interaction instructions can be corresponding to gestures with different movement times without increasing the hardware cost, simplifying the device interaction method and improving the user experience.
[0049] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0051] Figure 1 is a flow chart of a device interaction method according to an exemplary embodiment of the present disclosure;
[0052] Figure 2 is a schematic diagram showing a device interaction method according to an exemplary embodiment of the present disclosure;
[0053] Figure 3 is a schematic diagram showing a signal acquisition according to an exemplary embodiment of the present disclosure;
[0054] Figure 4 is a schematic diagram showing phase change information according to an exemplary embodiment of the present disclosure;
[0055] Figure 5 is a flowchart of another device interaction method according to an exemplary embodiment of the present disclosure;
[0056] Figure 6 is a flowchart of another device interaction method according to an exemplary embodiment of the present disclosure;
[0057] Figure 7 is a schematic diagram showing another type of phase change information according to an exemplary embodiment of the present disclosure;
[0058] Figure 8 is a schematic diagram of a gesture movement times statistics algorithm according to an exemplary embodiment of the present disclosure;
[0059] Fig. 9 is a flowchart of a contactless device interaction method according to an exemplary embodiment of the present disclosure;
[0060] Fig.10 is a structural schematic diagram of a device interaction apparatus according to an exemplary embodiment of the present disclosure;
[0061] Fig.11 It is a block diagram of a terminal 900 according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0062] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0063] In the description below, words such as “first” and “second” are only used for the purpose of distinguishing the description and should not be understood as indicating or implying relative importance or order.
[0064] With the development of voice interaction technology, users can free their hands by controlling devices through voice in many scenarios. However, in some scenarios, such as stopping a song, you need to first wake up the smart device with voice, and then enter a voice command to stop playing. The interaction process is a bit complicated. Therefore, it is necessary to introduce other more convenient ways to control the device. In related technologies, gestures can be used to control device interaction. However, gesture recognition has problems such as poor accuracy and easy false triggering, and the accuracy of device interaction control is not high.
[0065] In order to overcome the problems existing in the related art, the present disclosure provides a device interaction method, apparatus, storage medium and terminal, which are described below in conjunction with specific embodiments.
[0066] Figure 1It is a flowchart of a device interaction method according to an exemplary embodiment. The method is applied to an electronic device, which can be a fixed device or a mobile device, such as a smart terminal, a smart tablet, a smart wearable device, a personal e-commerce assistant, a personal computer and other electronic devices.
[0067] like Figure 1 As shown, the method includes:
[0068] Step S101: determining a corresponding gesture movement distance in response to a change in the ultrasonic sound field generated by the electronic device;
[0069] Step S102: When the gesture movement distance meets a preset condition, the gesture is recognized;
[0070] Step S103: Determine and execute the corresponding interaction instruction according to the recognized number of movements of the gesture.
[0071] The device interaction method in the embodiment of the present disclosure is implemented based on ultrasound. In some possible implementations, the electronic device may include an ultrasound transmitting device and an ultrasound receiving device for sensing changes in the ultrasound sound field. For example, the electronic device may include a speaker and a microphone.
[0072] Figure 2 It is a schematic diagram of a device interaction method according to an exemplary embodiment of the present disclosure.
[0073] like Figure 2 As shown, the electronic device is a smart speaker device as an example. The smart speaker device has a speaker and a microphone, which can sense the changes in the ultrasonic sound field through the speaker and the microphone, determine whether there is a control gesture and further determine the gesture movement distance. If the gesture movement distance meets the preset conditions, the gesture is recognized; and according to the recognized movement times, the corresponding interaction instruction is determined and executed.
[0074] In some possible implementations, when the smart speaker device is running, the user can contactlessly tap the electronic device above the smart speaker device with his hand, and the smart speaker device can be awakened and directly enter the voice recognition stage. The user only needs to directly input the voice command, without first inputting the wake-up word and waiting for the smart speaker device to respond before entering the voice recognition stage; when the smart speaker device is playing music, the user can contactlessly tap the electronic device above the smart speaker device twice, and the smart speaker device can execute the interactive command to stop playing music. The user taps the electronic device twice again, and the smart speaker device can execute the interactive command to continue playing music; when the user taps the smart speaker device three times, the smart device can broadcast the current time and today's weather. The gesture that can wake up the electronic device can be set as needed, for example, the gesture device is set to a "pat" gesture or a "clap" gesture. Similarly, the number of movements of the gesture and the interactive command executed by the electronic device can be set as needed, and the present disclosure does not limit this.
[0075] The device interaction method involved in the embodiment of the present disclosure determines the corresponding gesture movement distance by detecting the change of the ultrasonic sound field generated by the electronic device; recognizes the gesture when the gesture movement distance meets the preset conditions, so that the accuracy of gesture recognition can be improved by setting the threshold of gesture recognition; determines and executes the corresponding interaction instruction according to the number of movements of the recognized gesture, so that more types of gestures can be recognized, and without increasing the hardware cost, gestures with different numbers of movements correspond to different interaction instructions, thereby simplifying the device interaction method and improving the user experience.
[0076] In some possible implementations, the change in the ultrasonic sound field is determined based on the following steps:
[0077] Controlling the electronic device to play a preset ultrasonic signal;
[0078] Analyzing the preset ultrasonic signal collected by the electronic device;
[0079] The change of the ultrasonic sound field is determined according to the phase change information obtained by analysis.
[0080] It should be noted that the electronic device can play a preset ultrasonic signal through an ultrasonic transmitting device, such as a speaker, and then collect the preset ultrasonic signal reflected back in the space where the electronic device is located through an ultrasonic receiving device, such as a microphone. When there is no gesture movement, the sound field near the electronic device is stable; when there is gesture movement, the sound field will also produce corresponding fluctuations. By controlling the electronic device to parse the collected preset ultrasonic signal, the change of the ultrasonic sound field can be determined based on the phase change information obtained from the analysis. For example, taking the "pat" gesture as an example, the waving movement will change the ultrasonic phase information collected by the microphone, and the change of the ultrasonic sound field can be determined by the phase change.
[0081] In some embodiments, at least two single-frequency signals may be selected to form a preset ultrasonic signal, and the frequency bands of the single-frequency signals are different. The disclosed embodiments do not limit the selection of the frequency band of the single-frequency signal, and may be selected according to the needs of subsequent processing. For example, two single-frequency signals with frequencies of 22kHz and 22.7kHz may be selected for combination, or two single-frequency signals with a frequency band difference of 350Hz may be selected to match the parameters of subsequent filtering processing. After the preset ultrasonic signal is played, it is transmitted through different paths and picked up by the ultrasonic receiving device of the electronic device, such as a microphone; the collected ultrasonic signal is analyzed to obtain the corresponding phase change information, thereby characterizing the changes in the ultrasonic sound field.
[0082] Figure 3 It is a schematic diagram showing a signal collection according to an exemplary embodiment of the present disclosure.
[0083] Figure 4 It is a schematic diagram of phase change information according to an exemplary embodiment of the present disclosure, wherein curve A represents phase change information, curve B represents distance change information, and curve C represents distance change information after Gaussian smoothing.
[0084] The signal collected by the microphone is Figure 3 As shown in Figure 2, by analyzing the sound signal, the corresponding phase information change can be obtained as follows: Figure 4 As shown in the A curve. Figure 3 and Figure 4 It can be seen that when the ultrasonic sound field is stable, the phase is basically constant; when the ultrasonic sound field changes, the phase will change. Therefore, the phase change information obtained by analysis can be used to characterize the change of the ultrasonic sound field.
[0085] In some possible implementations, determining the corresponding gesture movement distance in response to the change in the ultrasonic sound field includes:
[0086] Obtaining a phase change corresponding to a change in the ultrasonic sound field;
[0087] The gesture movement distance corresponding to the phase change amount is determined according to a preset corresponding relationship.
[0088] like Figure 4 As shown, based on the phase information, the distance change curve of the gesture can be mapped. When there is no gesture movement in the sound field near the electronic device, the phase is basically constant, and the corresponding distance information is also stable; when there is gesture movement in the sound field near the electronic device, the phase changes, and the gesture movement distance corresponding to the phase change can be determined according to the preset corresponding relationship.
[0089] In some embodiments, the preset corresponding relationship between the phase change amount and the gesture movement distance can be set as the following formula 1:
[0090]
[0091] Where, Δ in Formula 1 d is the gesture movement distance, Δ θ is the phase change, and l is the wavelength.
[0092] The change of the gesture movement distance corresponding to the phase change is as follows: Figure 4 As shown in curve B.
[0093] In some embodiments, the gesture movement distance corresponding to the phase change amount can be processed by signal processing, for example, Gaussian smoothing can be performed on the distance change curve representing the gesture movement distance. In this way, the distance change caused by short-term mutation interference can be effectively filtered out, thereby improving the overall robustness. The gesture movement distance change after Gaussian smoothing is shown in FIG. Figure 4 As shown in the C curve.
[0094] Figure 5 The present invention is a flowchart of another device interaction method according to an exemplary embodiment of the present invention.
[0095] In some possible implementations, in step S102, when the gesture movement distance satisfies a preset condition, identifying the gesture movement includes:
[0096] Step S501: determining whether the gesture movement distance is within a preset gesture movement interval;
[0097] Step S502: When the gesture movement distance is within the preset gesture movement interval, the gesture is recognized;
[0098] The preset gesture movement interval is determined by the gesture movement distance and the steady-state distance, and the steady-state distance is used to characterize the movement state of the gesture.
[0099] In some possible implementations, the gesture movement distance and movement acceleration can be obtained by analyzing the fluctuation information of the ultrasonic signal collected by the electronic device. When the gesture movement distance or movement acceleration exceeds a set threshold, it is determined that the user has made a gesture specified by the system, and then a response is made. This implementation is simple and is determined by a fixed threshold; however, due to the different disturbance levels caused by gestures at different distances, the fixed threshold judgment method will result in low recognition accuracy.
[0100] The device interaction method involved in the embodiment of the present disclosure introduces the concept of steady-state distance. The minimum control recursive averaging (MCRA) algorithm can be used to estimate the steady-state distance. The preset gesture movement range is determined by the gesture movement distance and the steady-state distance. Gesture movement analysis and gesture recognition are performed within the movement range. Compared with the above-mentioned direct comparison of thresholds, the accuracy can be effectively improved.
[0101] The steady-state distance is a distance parameter introduced to characterize the motion state of a gesture. The disclosed embodiment uses the minimum control recursive averaging (MCRA) algorithm to calculate the steady-state distance during gesture motion. The implementation logic of this method makes two assumptions based on the presence or absence of gesture motion: when gesture motion does not exist, it is marked as the H0(t) state, in which the steady-state distance estimate is updated in real time; when gesture motion exists, it is marked as H1(t), and the steady-state distance is not updated. In some embodiments, the updating method of the steady-state distance can be set as shown in the following formula 2:
[0102]
[0103]
[0104] Among them, d(t) in formula 2 is the current actual distance value, is the estimated steady-state distance, t is the time, α is the smoothing factor, and the α value can be set as needed, for example, set to 0.98. The steady-state distance curve estimated by MCRA is as follows Figure 4 As shown in the C curve.
[0105] The device interaction method involved in the embodiment of the present disclosure introduces the concept of steady-state distance, adopts the minimum control recursive averaging method (MCRA algorithm) to estimate the steady-state distance, determines the preset gesture movement range through the gesture movement distance and the steady-state distance, performs gesture movement analysis and gesture recognition within the movement range, and can effectively improve the accuracy compared with the above-mentioned direct comparison of threshold solutions.
[0106] Figure 6 is a flowchart of another device interaction method according to an exemplary embodiment of the present disclosure.
[0107] In some possible implementations, in step S102, when the gesture movement distance is within the preset gesture movement interval, recognizing the gesture includes:
[0108] Step S601: when the difference between the gesture movement distance and the steady-state distance is greater than a first preset threshold, start to recognize the gesture;
[0109] Step S602: Obtain the duration during which the absolute value of the difference between the gesture movement distance and the steady-state distance is less than a second preset threshold, and stop recognizing the gesture when the duration exceeds the preset time threshold.
[0110] It should be noted that after estimating the steady-state distance through the MCRA algorithm, the preset gesture movement interval is determined according to the gesture movement distance and the steady-state distance. The gesture movement interval is the interval for recognizing the moving gesture, and the gesture movement interval can determine the time to start and stop recognizing the gesture.
[0111] Figure 7 is a schematic diagram of another phase change information according to an exemplary embodiment of the present disclosure, wherein curve A represents the distance change information after Gaussian smoothing, curve B represents the steady-state distance curve estimated by MCRA, curve C represents the preset gesture motion interval detection range, and * represents the number of peak points counted;
[0112] In some embodiments, the preset gesture motion interval may be constructed by the following method:
[0113] d(t) is the actual gesture movement distance, is the steady-state distance, Thr a is the first preset threshold, Thr b is the second preset threshold, T0 is the preset time threshold; wherein, the values of the first preset threshold, the second preset threshold and the preset time threshold can be set as needed, and the present disclosure does not limit this; for example, the first preset threshold can be set to 5 cm, the second preset threshold can be set to 2 cm, and the preset time threshold can be set to 200 ms.
[0114] When the gesture movement distance d(t) exceeds the steady-state distance The range is greater than the first preset threshold Thr a When When the difference between the gesture movement distance and the steady-state distance is greater than the first preset distance, it is determined that gesture movement has begun and the gesture recognition begins. In this state, H0(t)→H1(t) is represented, that is, the state in which gesture movement does not exist is infinitely close to the state in which gesture movement exists.
[0115] After entering gesture recognition, when d(t) exceeds Range is less than Thr b When , start timing, if If the duration of this state exceeds the preset time threshold T0, it is determined that the gesture motion does not exist. In this state, H1(t)→H0(t) is represented, that is, the state of gesture motion is infinitely close to the state of gesture motion does not exist. The above activity detection algorithm can effectively divide the gesture motion interval, and the interval divided by the above two state changes is used as the preset gesture motion interval, such as Figure 7 As shown in the C curve shown in the figure, detecting gesture movement within this interval can improve the accuracy and robustness of gesture movement recognition.
[0116] In some possible implementations, when the gesture movement distance is within the preset gesture movement interval, recognizing the gesture includes:
[0117] When the gesture movement distance is within the preset gesture movement interval, determining at least one distance peak value within the preset gesture interval;
[0118] The number of movements of the gesture is determined according to the sum of the number of the distance peaks.
[0119] In some possible implementations, the device interaction method involved in the present disclosure can also determine and execute corresponding interaction instructions based on the number of recognized gesture movements. The number of gesture movements within a preset gesture movement interval is identified by using a peak statistical algorithm. It should be noted that this method calculates how many peaks appear in the distance change curve during the entire gesture recognition process, thereby determining the number of gesture movements.
[0120] The peak statistics algorithm needs to pre-set a third preset threshold Thr Δ , the statistical distance peak d peak (t) needs to meet the following conditions: there is a first distance value in the left and right adjacent intervals of each distance peak, and the difference between the first distance value and the distance peak is less than a third preset threshold; the above two conditions can be understood as: (1) 1) the peak value d peak (t) is the maximum value in the local interval; 2) In the local interval, there are points with values less than d on the left and right of the peak point. peak (t)-Thr Δ Then, the number of distance peaks is counted, and the number of gesture movements is determined according to the sum of the number of distance peaks; wherein the third preset threshold Thr ΔThe size can be set as needed, for example, the third preset threshold is set to 5cm. By counting the number of peaks, the number of movements of the user's preset gesture is fed back. For example, when the preset gesture is a "pat" gesture, the number of times the user "pats" is fed back according to the number of peaks counted. After obtaining the number of times the user "pats", the information can be fed back to the upper-level business logic. According to the scheme that the user has configured, enter the corresponding interaction state to achieve a more convenient interaction experience.
[0121] like Figure 7 As shown, the number of peak points counted within the detection range of the preset gesture movement interval is 4, indicating that the number of movements of the preset gesture is 4. The device can determine the interaction instruction at this time based on the correspondence between the preset number of movements of the preset gesture and the interaction instruction, and execute the interaction instruction step by step. The disclosed embodiment relates to a peak statistical algorithm, and introduces a third preset threshold to determine the number of distance peaks in the preset gesture interval, which can eliminate the interference of ultrasonic fluctuations and further improve the accuracy of gesture movement detection.
[0122] In other embodiments, a peak-valley statistical algorithm may also be used to determine the number of movements of a preset gesture. Still taking the preset gesture as the "tap" gesture as an example, during the operation of the device, when it is detected that the gesture distance change is greater than a threshold, the "tap" detection link begins. When the distance change begins to be less than the threshold after a period of time, the detection ends. Using the peak-valley statistical algorithm, it is calculated that several peaks and valleys appear in the distance change curve during the entire "tap" process, and the number of peak / valley values is counted to provide feedback on how many times the user "tap".
[0123] Figure 8 FIG. 1 shows a schematic diagram of a gesture movement counting algorithm. Figure 8 As shown in the figure, in the distance change curve of a "tap", 4 peaks and 3 valleys are counted, indicating that the user has made 4 hand tapping movements in total. The peak and valley statistical algorithm can also be used to determine the number of movements of a preset gesture within the preset gesture interval, so that the device can further determine and execute the interaction instruction based on the number of movements of the preset gesture.
[0124] Fig. 9A non-contact device interaction method is shown. According to the method, by using the speaker and microphone device of the smart device, the speaker plays a designed high-frequency sound signal (ultrasound), and after the high-frequency sound is played, it is transmitted through different paths and can be picked up by the microphone of the smart device. After obtaining the sound signal collected by the microphone, the processor of the smart device will further analyze the sound signal. By calculating and analyzing the sound signal, the corresponding phase information can be obtained. According to the phase information, the distance change information of the hand can be mapped. When the hand is not moving, the phase is basically constant, and the corresponding distance information is also stable; when the hand moves, the phase changes, so the distance of the relative movement of the hand can be determined. Gaussian smoothing of the distance change curve can effectively filter out the sudden change interference caused by the movement of the device itself in a short period of time. The distance curve after Gaussian smoothing can use the minimum control recursive average (MCRA) algorithm to calculate the steady-state distance when the hand is not moving, so as to estimate the possible movement range according to the steady-state distance. The number of gesture movements is calculated within the movement interval by a peak statistical algorithm, and the device then determines and executes the interaction instruction based on the number of gesture movements and the correspondence between the number of gesture movements of different gestures and the interaction instructions pre-stored in the device.
[0125] This device interaction method is different from the traditional solution of recognizing contactless gestures through cameras. It is implemented by using ultrasonic methods and can be further applied on devices that support voice wake-up interaction. Without increasing the hardware cost of the device, it not only makes the interaction method more diverse and convenient, and the response speed is faster, but also can recognize various types of gestures and effectively filter out false touches caused by other interference, providing more robust recognition robustness.
[0126] Fig.10 1 is a schematic diagram showing a structure of a device interaction apparatus according to an exemplary embodiment, wherein the device interaction apparatus is applied to an electronic device. Fig.10 The device interaction apparatus 100 includes a determination module 101, an identification module 102 and an execution module 103.
[0127] A determination module 101, configured to determine a corresponding gesture movement distance in response to a change in the ultrasonic sound field generated by the electronic device;
[0128] A recognition module 102, configured to recognize the gesture when the gesture movement distance meets a preset condition;
[0129] The execution module 103 determines and executes a corresponding interaction instruction according to the recognized movement times of the gesture.
[0130] In some embodiments, the determining module 101 includes:
[0131] An ultrasonic transmitting module, used to control the electronic device to play a preset ultrasonic signal;
[0132] An ultrasonic receiving module, used for analyzing the preset ultrasonic signal collected by the electronic device;
[0133] The determination module 101 is specifically configured to determine the change of the ultrasonic sound field according to the phase change information obtained through analysis.
[0134] In some implementations, the determining module 101 further includes:
[0135] An acquisition module, used to acquire a phase change amount corresponding to a change in the ultrasonic sound field;
[0136] The determination module 101 is specifically configured to determine the gesture movement distance corresponding to the phase change amount according to a preset corresponding relationship.
[0137] In some embodiments, the identification module 102 includes:
[0138] A judging module, used for judging whether the gesture movement distance is within a preset gesture movement interval;
[0139] The recognition module 102 is specifically configured to recognize the gesture when the gesture movement distance is within the preset gesture movement interval;
[0140] The preset gesture movement interval is determined by the gesture movement distance and the steady-state distance, and the steady-state distance is used to characterize the movement state of the gesture.
[0141] In some implementations, the identification module 102 is specifically configured to:
[0142] When the difference between the gesture movement distance and the steady-state distance is greater than a first preset threshold, starting to recognize the gesture;
[0143] The duration during which the absolute value of the difference between the gesture movement distance and the steady-state distance is less than a second preset threshold is obtained, and when the duration exceeds a preset time threshold, the recognition of the gesture is stopped.
[0144] In some implementations, the identification module 102 is specifically configured to:
[0145] When the gesture movement distance is within the preset gesture movement interval, determining at least one distance peak value within the preset gesture interval;
[0146] The number of movements of the gesture is determined according to the sum of the number of the distance peaks.
[0147] Fig.11 1 is a block diagram of a terminal 900 according to an exemplary embodiment. For example, the terminal 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0148] Reference Fig.11 The terminal 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .
[0149] The processing component 902 generally controls the overall operation of the terminal 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned wake-up control method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0150] The memory 904 is configured to store various types of data to support operations at the terminal 900. Examples of such data include instructions for any application or method operating on the terminal 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, or an optical disk.
[0151] The power component 906 provides power to various components of the terminal 900. The power component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the terminal 900.
[0152] The multimedia component 908 includes a screen that provides an output interface between the terminal 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the terminal 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0153] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the terminal 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals. The I / O interface 912 provides an interface between the processing component 902 and the peripheral interface module, and the above-mentioned peripheral interface module can be a keyboard, a click wheel, a button, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0154] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the terminal 900. For example, the sensor assembly 914 can detect the open / closed state of the terminal 900, the relative positioning of the components, such as the display and keypad of the terminal 900, and the sensor assembly 914 can also detect the position change of the terminal 900 or a component of the terminal 900, the presence or absence of contact between the user and the terminal 900, the orientation or acceleration / deceleration of the terminal 900, and the temperature change of the terminal 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0155] The communication component 916 is configured to facilitate wired or wireless communication between the terminal 900 and other devices. The terminal 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0156] In an exemplary embodiment, the terminal 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned wake-up control method.
[0157] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by a processor 920 of a terminal 900 to complete the above-mentioned wake-up control method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0158] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program executable by a programmable device. The computer program has a code portion for executing the above-mentioned wake-up control method when executed by the programmable device.
[0159] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0160] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A device interaction method, characterized in that: Applied to electronic equipment, the method comprises: In response to the change of the ultrasonic sound field generated by the electronic device, determining a corresponding gesture movement distance; When the gesture movement distance meets a preset condition, recognizing the gesture; Determine and execute a corresponding interaction instruction according to the recognized number of movements of the gesture; When the gesture movement distance satisfies a preset condition, recognizing the gesture includes: Determining whether the gesture movement distance is within a preset gesture movement interval; When the gesture movement distance is within the preset gesture movement interval, recognizing the gesture; The preset gesture motion interval is determined by the gesture motion distance and the steady-state distance. The gesture motion interval is an interval for identifying a moving gesture. The gesture motion interval can determine the moment when the gesture starts to be recognized and stops to be recognized. The steady-state distance is used to characterize the motion state of the gesture. The steady-state distance is calculated using the minimum control recursive average (MCRA) algorithm. When gesture motion does not exist, the steady-state distance estimate is updated in real time. When gesture motion exists, the steady-state distance is not updated. When the gesture movement distance is within the preset gesture movement interval, recognizing the gesture includes: When the difference between the gesture movement distance and the steady-state distance is greater than a first preset threshold, starting to recognize the gesture; The duration during which the absolute value of the difference between the gesture movement distance and the steady-state distance is less than a second preset threshold is obtained, and when the duration exceeds a preset time threshold, the recognition of the gesture is stopped.
2. The method according to claim 1, characterized in that The change of the ultrasonic sound field is determined based on the following steps: Controlling the electronic device to play a preset ultrasonic signal; Analyzing the preset ultrasonic signal collected by the electronic device; The change of the ultrasonic sound field is determined according to the phase change information obtained by analysis.
3. The method according to claim 1 or 2, characterized in that: The step of determining the corresponding gesture movement distance in response to the change of the ultrasonic sound field includes: Obtaining a phase change corresponding to a change in the ultrasonic sound field; The gesture movement distance corresponding to the phase change amount is determined according to a preset corresponding relationship.
4. The method according to claim 1, characterized in that When the gesture movement distance is within the preset gesture movement interval, recognizing the gesture includes: When the gesture movement distance is within the preset gesture movement interval, determining at least one distance peak value within the preset gesture movement interval; The number of movements of the gesture is determined according to the sum of the number of the distance peaks.
5. A device interaction apparatus, characterized in that: Applied to electronic equipment, the device comprises: a determination module, configured to determine a corresponding gesture movement distance in response to a change in the ultrasonic sound field generated by the electronic device; A recognition module, used for recognizing the gesture when the gesture movement distance meets a preset condition; An execution module determines and executes a corresponding interaction instruction according to the recognized number of movements of the gesture; The identification module comprises: A judging module, used for judging whether the gesture movement distance is within a preset gesture movement interval; The recognition module is specifically configured to recognize the gesture when the gesture movement distance is within the preset gesture movement interval; The preset gesture motion interval is determined by the gesture motion distance and the steady-state distance. The gesture motion interval is an interval for identifying a moving gesture. The gesture motion interval can determine the moment when the gesture starts to be recognized and stops to be recognized. The steady-state distance is used to characterize the motion state of the gesture. The steady-state distance is calculated using the minimum control recursive average (MCRA) algorithm. When gesture motion does not exist, the steady-state distance estimate is updated in real time. When gesture motion exists, the steady-state distance is not updated. The identification module is specifically used for: When the difference between the gesture movement distance and the steady-state distance is greater than a first preset threshold, starting to recognize the gesture; The duration during which the absolute value of the difference between the gesture movement distance and the steady-state distance is less than a second preset threshold is obtained, and when the duration exceeds a preset time threshold, the recognition of the gesture is stopped.
6. The device according to claim 5, characterized in that The determination module comprises: An ultrasonic transmitting module, used to control the electronic device to play a preset ultrasonic signal; An ultrasonic receiving module, used for analyzing the preset ultrasonic signal collected by the electronic device; The determination module is specifically used to determine the change of the ultrasonic sound field according to the phase change information obtained by analysis.
7. The device according to claim 5 or 6, characterized in that The determination module also includes: An acquisition module, used to acquire a phase change corresponding to a change in the ultrasonic sound field; The determination module is specifically configured to determine the gesture movement distance corresponding to the phase change amount according to a preset corresponding relationship.
8. The device according to claim 5, characterized in that The identification module is specifically used for: When the gesture movement distance is within the preset gesture movement interval, determining at least one distance peak value within the preset gesture movement interval; The number of movements of the gesture is determined according to the sum of the number of the distance peaks.
9. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 4 are implemented.
10. A terminal, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Gesture recognition system and method based on ultrasonic waves
CN105718064A
Gesture operation method and device and mobile terminal
CN107491254A
