Gesture recognition method and device, electronic device, and storage medium

By collecting and correcting sound wave signals in multi-device coexistence scenarios and identifying gesture action frequencies, the problem of gesture recognition due to clock offset and signal interference is solved, the recognition accuracy and universality are improved, and convenient device interaction control is realized.

CN112965639BActive Publication Date: 2024-09-03BEIJING XIAOMI MOBILE SOFTWARE CO LTD +1
View PDF 18 Cites 0 Cited by

Patent Information

Application Number
CN202110286183.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-17
Publication Date
2024-09-03
Estimated Expiration
2041-03-17

AI Technical Summary

Technical Problem

In a scenario where multiple devices coexist, gesture recognition cannot be recognized normally due to mutual interference of ultrasonic signals, and it is difficult to achieve accurate device interaction control with existing technology.

Method used

By collecting and correcting sound wave signals between different devices in the same sound field space, identifying the action frequency of gestures to determine interactive instructions, using the curve offset slope to correct the original motion change curve, reducing clock offset and improving recognition accuracy.

Benefits of technology

It effectively reduces the clock offset between devices, improves the accuracy and universality of gesture recognition, avoids recognition failures caused by mutual signal interference, and achieves more convenient device interactive control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112965639B
    Figure CN112965639B
Patent Text Reader

Abstract

The present disclosure relates to a gesture recognition method and device, an electronic device, and a storage medium. The method is applied to a first electronic device, and includes: collecting a sound wave signal reflected back according to a preset gesture; when the sender of the sound wave signal is a second electronic device, correcting and processing the sound wave signal to identify the action frequency of the gesture; wherein the first electronic device and the second electronic device are different devices located in the same sound field space; based on the action frequency of the gesture, determining the interaction instruction corresponding to the gesture. The embodiment of the present disclosure will first correct the sound wave signal and then recognize the gesture, which can effectively reduce the situation where the clock offset of the collected sound wave signal due to the different crystal oscillator circuits of the first electronic device and the second electronic device, which will lead to inaccurate gesture recognition, and can improve the accuracy of gesture recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of information processing technology, and in particular to a gesture recognition method and device, an electronic device, and a storage medium. 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, it is necessary to first wake up the smart device with voice, and then input a voice command to stop playing. The interaction process is a bit complicated. Therefore, it is necessary to introduce a more convenient way to realize interactive control of devices.

[0003] In the related art, gesture recognition can be used to control device interaction. However, the gesture recognition scheme in the related art is usually applicable to the scenario where there is only one device in the space. When there are two or more devices in the space, the ultrasonic waves emitted by each device will interfere with each other, which will cause the devices in the space to fail to recognize gestures normally. Summary of the invention

[0004] The present disclosure provides a gesture recognition method and device, an electronic device, and a storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a gesture recognition method is provided, which is applied to a first electronic device, and the method includes:

[0006] Collecting sound wave signals reflected back according to preset gestures;

[0007] In the case where the sender of the sound wave signal is a second electronic device, the sound wave signal is corrected to identify the action frequency of the gesture; wherein the first electronic device and the second electronic device are different devices located in the same sound field space;

[0008] Based on the action frequency of the gesture, an interaction instruction corresponding to the gesture is determined.

[0009] In some embodiments, the correcting and processing the sound wave signal to identify the action frequency of the gesture includes:

[0010] Based on the sound wave signal, determining an original motion change curve of the gesture;

[0011] Correcting the original motion change curve to obtain a target motion change curve;

[0012] Based on the target motion change curve, the action frequency of the gesture is identified.

[0013] In some embodiments, the correcting the original motion change curve to obtain the target motion change curve includes:

[0014] Determine a curve offset slope, where the curve offset slope is used to characterize a degree of clock drift between the first electronic device and the second electronic device;

[0015] The original motion change curve is corrected based on the curve offset slope to obtain the target motion change curve.

[0016] In some embodiments, determining the curve offset slope comprises:

[0017] Obtaining the first movement distance within a preset time range;

[0018] The curve offset slope is determined based on the first movement distance within the preset time range.

[0019] In some embodiments, the correcting the original motion change curve based on the curve offset slope to obtain the target motion change curve includes:

[0020] Based on the original motion change curve, obtaining second motion distances corresponding to different moments;

[0021] Based on the product of the curve offset slope and the different moments, the offset corresponding to the different moments is obtained;

[0022] Based on the second movement distances corresponding to different moments and the offsets corresponding to the different moments, obtaining third movement distances corresponding to the different moments;

[0023] The target movement change curve is formed based on the third movement distances corresponding to the different moments.

[0024] In some embodiments, determining the original motion change curve of the gesture based on the sound wave signal includes:

[0025] The original motion change curve is determined based on phase ranging or Doppler ranging of the sound wave signal.

[0026] In some embodiments, the method further comprises:

[0027] In the case where the sender is the first electronic device, the action frequency of the gesture is identified directly based on the sound wave signal.

[0028] In some embodiments, the second electronic device is a device with the highest priority in the same sound field space.

[0029] According to a second aspect of an embodiment of the present disclosure, a gesture recognition device is provided, which is applied to a first electronic device, and the device includes:

[0030] A collection module, configured to collect sound wave signals reflected back according to a preset gesture;

[0031] a correction module, configured to, when the sender of the sound wave signal is a second electronic device, perform correction processing on the sound wave signal to identify the action frequency of the gesture; wherein the first electronic device and the second electronic device are different devices located in the same sound field space;

[0032] The determination module is configured to determine the interaction instruction corresponding to the gesture based on the action frequency of the gesture.

[0033] In some embodiments, the correction module includes:

[0034] a curve determination module, configured to determine an original motion change curve of the gesture based on the sound wave signal;

[0035] A first correction determination module is configured to correct the original motion change curve to obtain a target motion change curve;

[0036] The recognition module is configured to recognize the action frequency of the gesture based on the target motion change curve.

[0037] In some embodiments, the correction determination module includes:

[0038] a slope determination module, configured to determine a curve offset slope, wherein the curve offset slope is used to characterize a degree of clock drift between the first electronic device and the second electronic device;

[0039] The second correction determination module is configured to correct the original motion change curve based on the curve offset slope to obtain the target motion change curve.

[0040] In some embodiments, the slope determination module is further configured to obtain a first movement distance within a preset time range; and determine the curve offset slope based on the first movement distance within the preset time range.

[0041] In some embodiments, the second correction determination module is further configured to obtain the second movement distance corresponding to different moments based on the original motion change curve; obtain the offset corresponding to the different moments based on the product of the curve offset slope and the different moments; obtain the third movement distance corresponding to the different moments based on the second movement distance corresponding to different moments and the offset corresponding to the different moments; and form the target motion change curve based on the third movement distance corresponding to the different moments.

[0042] In some embodiments, the curve determination module is further configured to determine the original motion change curve based on phase ranging or Doppler ranging of the sound wave signal.

[0043] In some embodiments, the apparatus further comprises:

[0044] The identification module is configured to identify the action frequency of the gesture directly based on the sound wave signal when the sender is the first electronic device.

[0045] In some embodiments, the second electronic device is a device with the highest priority in the same sound field space.

[0046] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising at least: a processor and a memory for storing executable instructions that can be run on the processor, wherein:

[0047] When the processor is used to run the executable instructions, the executable instructions execute the steps in the gesture recognition method provided in the first aspect above.

[0048] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the gesture recognition method provided in the first aspect above.

[0049] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0050] In the disclosed embodiment, the first electronic device collects the sound wave signal reflected back according to the preset gesture according to the preset collection; when the sender of the sound wave signal is the second electronic device, the sound wave signal is corrected and processed to identify the action frequency of the gesture; the first electronic device and the second electronic device are different devices located in the same sound field space; based on the action frequency of the gesture, the interaction instruction corresponding to the gesture is determined. In this way, on the one hand, when the sender of the sound wave signal, i.e., the second electronic device, and the collector of the sound wave signal, i.e., the first electronic device, are different devices, the disclosed embodiment will first correct the sound wave signal and then recognize the gesture, which can effectively reduce the situation where the clock offset of the collected sound wave signal due to the different crystal oscillator circuits of the first electronic device and the second electronic device causes inaccurate gesture recognition, and can improve the accuracy of gesture recognition.

[0051] On the other hand, the embodiment of the present disclosure performs correction processing on the sound wave signal when the sender of the sound wave signal is the second electronic device. That is to say, the embodiment of the present disclosure is not based on the first electronic device and the second electronic device transmitting the sound wave signal at the same time to recognize the gesture, but based on the second electronic device among multiple devices in the same sound field space as the sender to send the sound wave signal, which can reduce the situation where multiple devices in the same sound field space transmit the sound wave signal at the same time, causing the signals to interfere with each other and the gesture cannot be recognized, and can enable the device to better recognize the gesture.

[0052] In addition, the embodiment of the present disclosure can correct the sound wave signal based on whether the sender of the sound wave signal is the second electronic device to identify the action frequency of the gesture, so that gesture recognition can be applied to different situations, thereby improving the universality of gesture recognition.

[0053] 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

[0054] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0055] Figure 1 This is a gesture recognition method flow diagram shown in an exemplary embodiment of the present disclosure. Figure 1 .

[0056] Figure 2 This is a gesture recognition method flow diagram shown in an exemplary embodiment of the present disclosure. Figure 2 .

[0057] Figure 3a is a schematic diagram of a combined signal shown in an exemplary embodiment of the present disclosure.

[0058] Figure 3b 1 is a schematic diagram of linear displacement of a gesture recognition method according to an exemplary embodiment of the present disclosure.

[0059] Figure 4 It is a schematic diagram of an original motion change curve determined by a mobile phone based on a sound wave signal, shown in an exemplary embodiment of the present disclosure.

[0060] Figure 5 It is a schematic diagram of a target motion change curve obtained by correcting an original motion change curve, shown in an exemplary embodiment of the present disclosure.

[0061] Figure 6 It is a schematic diagram of a gesture recognition curve determined by a speaker based on a sound wave signal shown in an exemplary embodiment of the present disclosure.

[0062] Figure 7 FIG. 1 is a diagram of a gesture recognition device according to an exemplary embodiment of the present disclosure.

[0063] Figure 8 It is a block diagram of an electronic device shown in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0064] 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 invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0065] Figure 1 This is a gesture recognition method flow shown in the embodiment of the present disclosure. Figure 1 ,like Figure 1 As shown, the method applied to the first electronic device includes the following steps:

[0066] S101, collecting sound wave signals reflected back according to a preset gesture;

[0067] S102: When the sender of the sound wave signal is a second electronic device, perform correction processing on the sound wave signal to identify the action frequency of the gesture; wherein the first electronic device and the second electronic device are different devices located in the same sound field space;

[0068] S103: Determine an interaction instruction corresponding to the gesture based on the action frequency of the gesture.

[0069] In the disclosed embodiments, the gesture recognition method can be applied to scenarios with multiple devices in the same sound field space. The same sound field space can be understood as two devices having a direct acoustic path. When the two devices are separated by a strong physical barrier, they are considered not to be in the same space. For example, the living room is a sound field space, and the bedroom is another sound field space. Exemplarily, whether multiple devices are in the same sound field space can be judged in the following way: if a sound wave is emitted by one device and another device can detect a stronger signal, then they are in the same space; if only a weak signal can be detected, then they are not in the same space, because the penetration of sound is very weak and physical barriers will greatly attenuate the sound. For smart home environments, the spatial distribution of the home environment can be perceived by smart devices distributed in various rooms. For example, a device with a built-in speaker and microphone is used to calculate the impulse response of each room, and the room impulse response is used to divide different rooms.

[0070] It should be noted that, for multiple devices in the same sound field space, data can be transmitted between the multiple devices through sound waves, and the multiple devices do not need to be connected to the same local area network before data transmission can be performed.

[0071] The first electronic device may be any one of a plurality of devices in the same sound field space, which recognizes gestures in the same sound field space and executes a scene of an interactive instruction corresponding to the gesture. The above-mentioned smart device includes a terminal device or a smart home appliance in the Internet of Things. Among them, the terminal device may include: a smart phone, a notebook, a tablet computer or a wearable electronic device; the smart home appliance includes: a television, a speaker, an air conditioner, a washing machine or a rice cooker, which is not limited in the embodiments of the present disclosure.

[0072] For example, multiple devices in the same sound field space may include: air conditioners, speakers, or televisions. The first electronic device may be an air conditioner among multiple smart devices, and the air conditioner executes a command to control the air conditioner to turn on or off by recognizing a "tap once" gesture; the first electronic device may be a speaker among multiple devices, and the speaker executes a command to pause or continue playing by recognizing a "tap twice" gesture; the first electronic device may be a television among multiple devices, and the television executes a command to switch channels by recognizing a "tap three times" gesture.

[0073] In step S101, during the gesture recognition process, the sender of the sound wave signal may send the sound wave signal according to a preset gesture. The first electronic device collects the sound wave signal reflected back according to the preset gesture.

[0074] The sender of the sound wave signal may be a device located in the same sound field space as the first electronic device. In this way, a device in the same sound field space can transmit a sound wave signal, which can reduce the mutual interference caused by multiple devices in the same sound field space transmitting sound field signals at the same time, and facilitate the subsequent recognition of gestures.

[0075] The above-mentioned preset gestures may be air gestures, which may include: a “pat” gesture, an “OK” gesture, or an “arm swing” gesture, which is not limited in the embodiments of the present disclosure.

[0076] The above-mentioned sound wave signal can be formed by combining a first frequency greater than a preset frequency and a second frequency sound wave signal. In this way, the number of sound wave signals reflected back in the same sound field space can be increased, so that the first electronic device can better collect the reflected sound wave signals.

[0077] The preset frequency may be set according to actual needs. For example, the preset frequency may be set to be greater than or equal to 20 KHz, which is not limited in the embodiments of the present disclosure.

[0078] For example, the first frequency may be 22 KHz, the second frequency may be 22.7 KHz, and the sound wave signal may be formed by combining sound waves of frequencies of 22 KHz and 22.7 KHz.

[0079] In the disclosed embodiment, multiple devices in the same sound field space all have a sound wave signal receiving module and a sound wave signal transmitting module. The sound wave signal transmitting module can transmit the sound wave signal to the devices in the same sound field, and the sound wave signal receiving module in the same sound field can receive the sound wave signal transmitted in the same sound field.

[0080] Exemplarily, the transmitting module of the sound wave signal may include a speaker, and the receiving module of the sound wave signal may include a microphone. In the embodiment of the present disclosure, the speaker included in the sender of the sound wave signal may send the sound wave signal according to a preset gesture, and the sound wave signal may be reflected due to the occlusion of the preset gesture. The above-mentioned first electronic device collects the sound wave signal reflected back according to the preset gesture, which may include: the microphone included in the first electronic device collects the sound wave signal reflected back according to the preset gesture.

[0081] In the disclosed embodiment, when there is no gesture movement in the same sound field space, the sound field is stable and there will be no sound field fluctuation; when there is gesture movement in the same sound field space, the sound field will fluctuate. Therefore, the sound wave signal reflected back according to the preset gesture can reflect whether there is gesture movement in the sound field and the characteristics of the gesture movement, and then in the gesture recognition process, the working frequency of the gesture can be determined according to the reflected sound wave signal to realize the recognition of the gesture.

[0082] In step S102, the first electronic device and the sender of the sound wave signal may be the same device in the same sound field space, or may be different devices in the same sound field space, which is not limited in the embodiment of the present disclosure.

[0083] In some embodiments, when the sender of the sound wave signal is the second electronic device, the sound wave signal is corrected to identify the action frequency of the gesture. The first electronic device and the second electronic device are different devices in the same sound field space.

[0084] In the embodiment of the present disclosure, the second electronic device in the same sound field space sends a sound wave signal, and the first electronic device in the same sound wave space collects the reflected sound wave signal, and performs correction processing on the sound wave signal to identify the action frequency of the gesture. In this way, the embodiment of the present disclosure is not based on the first electronic device and the second electronic device transmitting the sound wave signal at the same time to recognize the gesture, but is based on a second electronic device among multiple devices in the same sound field space as the sender, which can reduce the situation where multiple devices in the same sound field space transmit sound wave signals at the same time, causing the signals to interfere with each other and the gesture cannot be recognized, and can enable the device to better recognize the gesture. In addition, the first electronic device can effectively reduce the situation of inaccurate gesture recognition caused by the clock offset caused by the different crystal oscillator circuits of the first electronic device and the second electronic device through correction processing, and can improve the accuracy of gesture recognition.

[0085] The correction processing of the sound wave signal by the first electronic device may include: correcting the clock data corresponding to the sound wave signal, and using the sound wave signal corresponding to the corrected clock data to identify the action frequency of the gesture; it may also include: correcting the original motion change curve of the gesture determined by the sound wave signal to identify the action frequency of the gesture, which is not limited by the embodiments of the present disclosure.

[0086] In other embodiments, when the sender is the first electronic device, the action frequency of the gesture is identified directly based on the sound wave signal.

[0087] The above-mentioned identifying the movement frequency of the gesture based on the sound wave signal includes: identifying the movement frequency of the gesture based on the original movement change curve of the gesture determined by the sound wave signal.

[0088] In the disclosed embodiment, the sender and collector of the sound wave signal are both the first electronic device, and clock offset will not occur. At this time, the first electronic device does not need to compensate the sound wave signal, and can directly identify the action frequency of the gesture based on the collected sound wave signal. In this way, the disclosed embodiment can perform gesture recognition on the sound wave signal in different ways based on whether the sender of the sound wave signal is the first electronic device, so that gesture recognition can be applied to different situations, improving the universality and accuracy of gesture recognition.

[0089] In step S103, the gesture frequency indicates the frequency of the same gesture within a preset time. For example, if the "pat" gesture appears twice in 1 minute, the corresponding gesture frequency is 2. For another example, if the "OK" gesture appears three times in 1 minute, the corresponding gesture frequency is 3.

[0090] The above gestures have different action frequencies, and the corresponding gesture interaction instructions are different. For example, the first action frequency of the gesture corresponds to an instruction to turn on or off the first electronic device; the second action frequency of the gesture corresponds to an instruction to adjust the temperature of the first electronic device; the third action frequency of the gesture corresponds to an instruction to pause or continue playing of the first electronic device, which is not limited in the embodiments of the present disclosure.

[0091] It should be noted that after identifying the action frequency of the gesture, the first electronic device can directly execute the interaction instruction determined based on the action frequency of the gesture. In this way, the first electronic device does not need to be awakened first but directly executes the interaction instruction, making the interaction of the first electronic device more convenient and quick.

[0092] In the disclosed embodiment, the first electronic device collects the sound wave signal reflected back according to the preset gesture; when the sender of the sound wave signal is the second electronic device, the sound wave signal is corrected and processed to identify the action frequency of the gesture; the first electronic device and the second electronic device are different devices located in the same sound field space; based on the action frequency of the gesture, the interaction instruction corresponding to the gesture is determined. In this way, on the one hand, when the sender of the sound wave signal, i.e., the second electronic device, and the collector of the sound wave signal, i.e., the first electronic device, are different devices, the disclosed embodiment will first correct the sound wave signal and then recognize the gesture, which can effectively reduce the situation where the clock offset of the collected sound wave signal due to the different crystal oscillator circuits of the first electronic device and the second electronic device causes inaccurate gesture recognition, and can improve the accuracy of gesture recognition.

[0093] On the other hand, the embodiment of the present disclosure performs correction processing on the sound wave signal when the sender of the sound wave signal is the second electronic device. That is to say, the embodiment of the present disclosure is not based on the first electronic device and the second electronic device transmitting the sound wave signal at the same time to recognize the gesture, but based on the second electronic device among multiple devices in the same sound field space as the sender to send the sound wave signal, which can reduce the situation where multiple devices in the same sound field space transmit the sound wave signal at the same time, causing the signals to interfere with each other and the gesture cannot be recognized, and can enable the device to better recognize the gesture.

[0094] In addition, the embodiment of the present disclosure can correct the sound wave signal based on whether the sender of the sound wave signal is the second electronic device to identify the action frequency of the gesture, so that gesture recognition can be applied to different situations, thereby improving the universality of gesture recognition.

[0095] In some embodiments, Figure 2 As shown, the correction processing of the sound wave signal to identify the action frequency of the gesture, that is, step S102, includes:

[0096] S102a, determining an original motion change curve of the gesture based on the sound wave signal;

[0097] S102b, correcting the original motion change curve to obtain a target motion change curve;

[0098] S102c: Based on the target motion change curve, identify the action frequency of the gesture.

[0099] In the embodiment of the present disclosure, when the sender of the sound wave signal is the second electronic device, and the second electronic device and the first electronic device are different devices located in the same sound field space, the embodiment of the present disclosure performs correction processing on the sound wave signal to determine the original motion change curve of the gesture.

[0100] In some embodiments, determining an original motion change curve of a gesture based on a sound wave signal includes: determining the original motion change curve based on phase ranging or Doppler ranging of the sound wave signal.

[0101] Among them, based on phase ranging of the sound wave signal, the original motion change curve is determined, including: determining the distance difference at different times in the first time through the phase difference between the reflected sound wave signal and the transmitted sound wave signal; based on the distance difference at different times in the first time, forming the original motion change curve.

[0102] Based on Doppler ranging of the sound wave signal, the original motion change curve is determined, including: determining the distance difference at different times in the second time through the time difference between the reflected sound wave signal and the transmitted sound wave signal; and forming the original motion change curve based on the distance difference at different times in the second time.

[0103] In the disclosed embodiment, after determining the original motion change curve, the original motion change curve is corrected to obtain the target motion change curve. The original motion change curve is the motion change of the gesture represented by the sound wave signal before correction in terms of distance and time. The target motion change curve is the motion change of the gesture represented by the sound wave signal after correction in terms of distance and time.

[0104] After determining the target motion change curve, the first electronic device may identify the action frequency of the gesture based on the target motion change curve to complete the recognition of the gesture.

[0105] The above-mentioned recognition of the action frequency of gestures based on the target motion change curve includes:

[0106] Determine the peak value of the target motion change curve; determine the action frequency of the recognized gesture based on the sum of the number of the peak values;

[0107] or,

[0108] By comparing the target motion change curve with a preset baseline, a target motion change curve that is larger than the baseline and has a rising edge and a falling edge is used as an identification curve; and the action frequency of the identification gesture is determined based on the number and the number of the identification curves.

[0109] In the disclosed embodiment, the original motion change curve is corrected by using the sound wave signal to obtain the target motion change curve, and then the action frequency of the gesture is recognized based on the target motion change curve. In this way, the first electronic device can correct the gesture motion distance in the original motion change curve, thereby improving the accuracy of gesture recognition.

[0110] In some embodiments, the correcting the original motion change curve to obtain the target motion change curve includes:

[0111] Determine a curve offset slope, where the curve offset slope is used to characterize a degree of clock drift between the first electronic device and the second electronic device;

[0112] The original motion change curve is corrected based on the curve offset slope to obtain the target motion change curve.

[0113] In the embodiment of the present disclosure, in the process of correcting the original motion change curve, the curve offset slope may be determined first. The curve offset slope is used to characterize the degree of clock offset between the first electronic device and the second electronic device. The degree of clock offset is positively correlated with the curve offset slope. The greater the degree of clock offset, the greater the curve offset slope.

[0114] When the sender of the sound wave signal is the first electronic device, that is, the first electronic device transmits the sound wave signal and receives the reflected sound wave signal, the original motion change curve determined by the first electronic device based on the sound wave signal does not have a clock offset, and thus there is no need to calculate the target motion change curve, but the first electronic device can directly identify the action frequency of the gesture based on the original motion change curve.

[0115] In some embodiments, determining the curve offset slope comprises:

[0116] Obtaining the first movement distance within a preset time range;

[0117] The curve offset slope is determined based on the first movement distance within the preset time range.

[0118] In the embodiment of the present disclosure, the first electronic device obtains the first movement distance within the preset time range, including: the first electronic device obtains the first movement distance within the preset time range by performing phase ranging or Doppler ranging on the sound wave signal. The above-mentioned determination of the curve offset slope based on the first movement distance within the preset time range includes: determining the curve offset slope based on the quotient between the first movement distance within the preset time range and different moments within the preset time range.

[0119] After determining the curve offset slope, the original motion change curve is corrected based on the curve offset slope to obtain the target motion change curve. It should be noted that the clock offset will cause the distance of the first electronic device in calculating the original motion change curve to change. Then, by correcting the original motion change curve by the curve offset slope, the distance change of the original motion change curve can be corrected, thereby improving the accuracy of identifying the gesture action frequency based on the target motion change curve.

[0120] In some embodiments, the correcting the original motion change curve based on the curve offset slope to obtain the target motion change curve includes:

[0121] Based on the original motion change curve, obtaining second motion distances corresponding to different moments;

[0122] Based on the product of the curve offset slope and the different moments, the offset corresponding to the different moments is obtained;

[0123] Based on the second movement distances corresponding to different moments and the offsets corresponding to the different moments, obtaining third movement distances corresponding to the different moments;

[0124] The target movement change curve is formed based on the third movement distances corresponding to the different moments.

[0125] In the embodiment of the present disclosure, the second movement distance corresponding to different moments is obtained based on the original movement change curve for supplementation, and the third movement distance corresponding to different moments is obtained, which can be determined by formula (1):

[0126] Formula (1):

[0127] Wherein, d(t) is the second movement distance corresponding to different moments; α0 is the curve offset slope; α0*t is the offset corresponding to different moments; is the third movement distance corresponding to different moments.

[0128] In the embodiment of the present disclosure, based on the second movement distance corresponding to different moments and the offset corresponding to different moments, the second movement distance corresponding to different moments can be corrected, so that the target motion change curve formed based on the third movement distance corresponding to different moments can have the same characteristics as the curve calculated by the first electronic device as the sender and collector, and can be used for accurate recognition of gestures.

[0129] In some embodiments, the second electronic device is a device with the highest priority in the same sound field space.

[0130] In the embodiment of the present disclosure, when there are multiple devices in the same sound field space, the multiple devices have different priorities, and the second electronic device is the device with the highest priority in the same sound field space. The above priority may be the priority of the sound wave signal output performance. The sound wave signal output performance includes: maximum output sound pressure level or sensitivity, which is not limited in the embodiment of the present disclosure.

[0131] In the above process of determining the device with the highest priority in the same sound field space, it can be determined by a networking decision between multiple devices in the same sound field space, or the server can store a priority list of multiple devices, select the device with the highest priority from the priority list, and make the device with the highest priority send a sound wave signal. In the same sound field space, the server and multiple devices communicate with each other through a local area network.

[0132] In the disclosed embodiment, the device with the highest priority in the same sound field space is used as the sender of the sound wave signal, so that the sound wave signal can be sent better. In addition, by deciding to send a sound wave signal from a device in the same sound field space, it is possible to reduce the situation where multiple devices in the same sound field space send sound wave signals at the same time, causing signals to interfere with each other and fail to recognize gestures, so that the device can better recognize gestures.

[0133] In order to better understand the embodiments of the present disclosure, the embodiments of the present disclosure are exemplified as follows:

[0134] Multiple devices in the same sound field space include: speakers, TVs, and mobile phones. The speaker with the highest priority is determined as the sender to transmit the sound wave signal. Figure 3a As shown, the sound wave signal is a combined signal formed by two sound wave signals with frequencies of 22 KHz and 22.7 KHz.

[0135] The first electronic device located in the same sound field space is a mobile phone. The sound wave signal is in the same sound field space, and the mobile phone collects the reflected sound wave signal through its microphone and corrects the sound wave signal. Since the speaker and the mobile phone are different devices, and the crystal oscillator circuits between the speaker and the mobile phone are different, the mobile phone may have a clock offset in the process of collecting the reflected sound wave signal, which may cause a distance change within a fixed time range. Figure 3b As shown in FIG. 1 , the dotted line is a curve with clock offset, and the solid line is a curve without clock offset. By comparing the dotted line and the solid line, it is found that a linear offset occurs in the gesture recognition process of the mobile phone based on the sound wave signal.

[0136] Figure 4 It is a schematic diagram of the original motion change curve determined by the mobile phone based on the sound wave signal according to the embodiment of the present disclosure. Figure 5 This is a schematic diagram of a target motion change curve obtained by correcting an original motion change curve according to an embodiment of the present disclosure. Figure 6 This is a schematic diagram of a gesture recognition curve determined by a speaker based on a sound wave signal shown in an embodiment of the present disclosure.

[0137] By comparison Figure 4 and Figure 6 It can be seen that the original motion change curve determined by the mobile phone based on the sound wave signal has an offset over time, which will make the gesture recognition inaccurate. In this regard, the embodiment of the present disclosure corrects the original motion change curve based on the curve offset slope to obtain the target motion change curve. By comparing Figure 5 and Figure 6 It can be seen that the target motion change curve and the gesture recognition curve have the same waveform characteristics, which can reflect that the curve offset caused by the clock offset can be corrected by the curve offset slope, which can improve the accuracy of gesture recognition and realize that gestures in the same sound field space can be recognized by different devices in the same sound wave space.

[0138] The present disclosure also provides a gesture recognition device, which is applied to a first electronic device, such as Figure 7 As shown, the gesture recognition device includes: a collection module 1001, a correction module 1002 and a determination module 1003, wherein:

[0139] A collection module 1001 is configured to collect sound wave signals reflected back according to a preset gesture;

[0140] The correction module 1002 is configured to perform correction processing on the sound wave signal to identify the action frequency of the gesture when the sender of the sound wave signal is a second electronic device; wherein the first electronic device and the second electronic device are different devices located in the same sound field space;

[0141] The determination module 1003 is configured to determine the interaction instruction corresponding to the gesture based on the action frequency of the gesture.

[0142] In some embodiments, the correction module includes:

[0143] a curve determination module, configured to determine an original motion change curve of the gesture based on the sound wave signal;

[0144] A first correction determination module is configured to correct the original motion change curve to obtain a target motion change curve;

[0145] The recognition module is configured to recognize the action frequency of the gesture based on the target motion change curve.

[0146] In some embodiments, the correction determination module includes:

[0147] a slope determination module, configured to determine a curve offset slope, wherein the curve offset slope is used to characterize a degree of clock drift between the first electronic device and the second electronic device;

[0148] The second correction determination module is configured to correct the original motion change curve based on the curve offset slope to obtain the target motion change curve.

[0149] In some embodiments, the slope determination module is further configured to obtain a first movement distance within a preset time range; and determine the curve offset slope based on the first movement distance within the preset time range.

[0150] In some embodiments, the second correction determination module is further configured to obtain the second movement distance corresponding to different moments based on the original motion change curve; obtain the offset corresponding to the different moments based on the product of the curve offset slope and the different moments; obtain the third movement distance corresponding to the different moments based on the second movement distance corresponding to different moments and the offset corresponding to the different moments; and form the target motion change curve based on the third movement distance corresponding to the different moments.

[0151] In some embodiments, the curve determination module is further configured to determine the original motion change curve based on phase ranging or Doppler ranging of the sound wave signal.

[0152] In some embodiments, the apparatus further comprises:

[0153] The identification module is configured to identify the action frequency of the gesture directly based on the sound wave signal when the sender is the first electronic device.

[0154] In some embodiments, the second electronic device is a device with the highest priority in the same sound field space.

[0155] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0156] Figure 8 1 is a block diagram of an electronic device according to an exemplary embodiment, and the electronic device can be understood as a first electronic device. For example, the device may include a mobile phone, a mobile computer or a notebook, and may also include a household appliance, such as a refrigerator, a speaker, a washing machine or an air conditioner.

[0157] Reference Figure 8 , the device may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0158] The processing component 802 generally controls the overall operation of the device, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0159] The memory 804 is configured to store various types of data to support the operation of the device. Examples of such data include instructions for any application or method operating on the device, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0160] The power component 806 provides power to the various components of the device. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device.

[0161] The multimedia component 808 includes a screen that provides an output interface between the device 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 808 includes a front camera and / or a rear camera. When the device 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 rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0162] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0163] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0164] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device. For example, the sensor assembly 814 can detect the open / closed state of the device, the relative positioning of components, such as the display and keypad of the device, and the sensor assembly 814 can also detect changes in the position of the device or a component of the device, the presence or absence of user contact with the device, the device orientation or acceleration / deceleration, and the temperature change of the device. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0165] The communication component 816 is configured to facilitate wired or wireless communication between the device and other devices. The device can access a wireless network based on a communication standard, such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 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 816 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.

[0166] In an exemplary embodiment, the device 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 methods.

[0167] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device to perform the above 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.

[0168] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a first electronic device, enables the first electronic device to perform a gesture recognition method, the method comprising:

[0169] Collecting sound wave signals reflected back according to preset gestures;

[0170] In the case where the sender of the sound wave signal is a second electronic device, the sound wave signal is corrected to identify the action frequency of the gesture; wherein the first electronic device and the second electronic device are different devices located in the same sound field space;

[0171] Based on the action frequency of the gesture, an interaction instruction corresponding to the gesture is determined.

[0172] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0173] It should be understood that the present invention is not limited to the exact construction that has 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 invention is limited only by the appended claims.

Claims

1. A gesture recognition method, characterized in that: Applied in a first electronic device, the method includes: Collecting sound wave signals reflected back according to preset gestures; In the case where the sender of the sound wave signal is a second electronic device, the sound wave signal is corrected to identify the action frequency of the gesture; wherein the first electronic device and the second electronic device are different devices located in the same sound field space; Determining an interaction instruction corresponding to the gesture based on the action frequency of the gesture; The correcting and processing the sound wave signal to identify the action frequency of the gesture includes: Based on the sound wave signal, determining an original motion change curve of the gesture; Correcting the original motion change curve to obtain a target motion change curve; Based on the target motion change curve, the action frequency of the gesture is identified.

2. The method according to claim 1, characterized in that The correcting the original motion change curve to obtain the target motion change curve includes: Determine a curve offset slope, where the curve offset slope is used to characterize a degree of clock drift between the first electronic device and the second electronic device; The original motion change curve is corrected based on the curve offset slope to obtain the target motion change curve.

3. The method according to claim 2, characterized in that The step of determining the curve offset slope comprises: Obtaining the first movement distance within a preset time range; The curve offset slope is determined based on the first movement distance within the preset time range.

4. The method according to claim 2, characterized in that: The correcting the original motion change curve based on the curve offset slope to obtain the target motion change curve includes: Based on the original motion change curve, obtaining second motion distances corresponding to different moments; Based on the product of the curve offset slope and the different moments, the offset corresponding to the different moments is obtained; Based on the second movement distances corresponding to different moments and the offsets corresponding to the different moments, obtaining third movement distances corresponding to the different moments; The target movement change curve is formed based on the third movement distances corresponding to the different moments.

5. The method according to claim 1, characterized in that: The determining, based on the sound wave signal, the original motion change curve of the gesture comprises: The original motion change curve is determined based on phase ranging or Doppler ranging of the sound wave signal.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: In the case where the sender is the first electronic device, the action frequency of the gesture is identified directly based on the sound wave signal.

7. The method according to any one of claims 1 to 5, characterized in that: The second electronic device is a device with the highest priority in the same sound field space.

8. A gesture recognition device, characterized in that: Applied in a first electronic device, the device comprises: A collection module, configured to collect sound wave signals reflected back according to a preset gesture; a correction module, configured to, when the sender of the sound wave signal is a second electronic device, perform correction processing on the sound wave signal to identify the action frequency of the gesture; wherein the first electronic device and the second electronic device are different devices located in the same sound field space; a determination module, configured to determine an interaction instruction corresponding to the gesture based on the action frequency of the gesture; The correction module comprises: a curve determination module, configured to determine an original motion change curve of the gesture based on the sound wave signal; A first correction determination module is configured to correct the original motion change curve to obtain a target motion change curve; The recognition module is configured to recognize the action frequency of the gesture based on the target motion change curve.

9. The device according to claim 8, characterized in that The correction determination module comprises: a slope determination module, configured to determine a curve offset slope, wherein the curve offset slope is used to characterize a degree of clock drift between the first electronic device and the second electronic device; The second correction determination module is configured to correct the original motion change curve based on the curve offset slope to obtain the target motion change curve.

10. The device according to claim 9, characterized in that The slope determination module is further configured to obtain a first movement distance within a preset time range; and determine the curve offset slope based on the first movement distance within the preset time range.

11. The device according to claim 9, characterized in that The second correction determination module is also configured to obtain the second movement distance corresponding to different moments based on the original motion change curve; obtain the offset corresponding to the different moments based on the product of the curve offset slope and the different moments; obtain the third movement distance corresponding to the different moments based on the second movement distance corresponding to different moments and the offset corresponding to the different moments; and form the target motion change curve based on the third movement distance corresponding to the different moments.

12. The device according to claim 8, characterized in that The curve determination module is further configured to determine the original motion change curve based on phase ranging or Doppler ranging of the sound wave signal.

13. The device according to any one of claims 8 to 12, characterized in that The device also includes: The identification module is configured to identify the action frequency of the gesture directly based on the sound wave signal when the sender is the first electronic device.

14. The device according to any one of claims 8 to 12, characterized in that: The second electronic device is a device with the highest priority in the same sound field space.

15. An electronic device, characterized in that: The electronic device comprises at least: a processor and a memory for storing executable instructions that can be run on the processor, wherein: When the processor is used to run the executable instructions, the executable instructions execute the steps in the gesture recognition method provided in any one of claims 1 to 7.

16. A non-transitory computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the gesture recognition method provided in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Non-touch gesture control system

    CN103576861A

  • Hand signal interaction method among multimedia devices in same surface based on supersonic wave

    CN104536576A

  • Ultrasonic calibration method and device for mobile device

    CN106301606A

  • Control method and device of terminal as well as terminal

    CN106354266A

  • Gesture operation method and device and mobile terminal

    CN107491254A