Human-computer interaction method and device, electronic equipment and computer readable storage medium
By introducing friction on the touch surface of wearable devices to generate vibration signals, and analyzing the signals to identify operating gestures, it solves the problems of insufficient dustproof and waterproof performance and single function of existing devices, and achieves efficient human-computer interaction and diversity. Gesture operation.
Patent Information
- Application Number
- CN202310194229.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-08-30
AI Technical Summary
The physical buttons and traditional touch screens on existing wearable devices are insufficient in dustproof and waterproof performance, and have single functions, making it difficult to achieve efficient human-computer interaction.
By introducing friction on the touch surface to generate vibration signals, vibration sensors are used to collect and analyze the signals, and generate feature maps to identify operating gestures, thereby executing corresponding instructions, replacing traditional buttons and traditional touch screen solutions.
It improves the waterproof and dustproof capabilities of the device without opening holes, enhances the efficiency and diversity of human-computer interaction, and provides rich gesture operation functions.
Smart Images

Figure CN118567544A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of gesture control technology, and in particular to a human-computer interaction method, device, electronic device, and readable storage medium. Background Art
[0002] With the rapid development of technology, more and more wearable devices are entering people's lives. Wearable devices refer to portable devices that can be worn directly on the user, or integrated into the user's clothes or accessories.
[0003] At present, many wearable devices are equipped with physical buttons. Users can achieve rich human-computer interactions by operating the physical buttons, such as waking up the wearable device, increasing the volume, decreasing the volume, etc.
[0004] However, holes must be opened on the wearable device to set physical buttons, and the dust and water resistance functions are poor. Summary of the invention
[0005] The embodiments of the present application provide a human-computer interaction method, device, electronic device and readable storage medium. After a user inputs an operation gesture on a touch surface, the touch surface generates a vibration signal according to the friction force of the operation gesture. The electronic device recognizes the operation gesture by analyzing the vibration signal and then executes the instruction corresponding to the operation gesture.
[0006] In a first aspect, an embodiment of the present application provides a human-computer interaction method, which is applied to an electronic device having a touch surface, and the method includes:
[0007] After the user inputs an operation gesture on the touch surface, obtaining a vibration signal generated by the touch surface within a first preset time period;
[0008] generating a characteristic graph according to the vibration signal within the first preset time period;
[0009] recognizing the operation gesture according to the feature graph;
[0010] In response to the operation gesture, an instruction corresponding to the operation gesture is executed.
[0011] In a second aspect, an embodiment of the present application provides a human-computer interaction device, which is integrated on an electronic device having a touch surface, and the device includes:
[0012] An acquisition module, configured to acquire a vibration signal generated by the touch surface within a first preset time period after a user inputs an operation gesture on the touch surface;
[0013] A processing module, configured to generate a characteristic graph according to the vibration signal within the first preset time period;
[0014] A recognition module, used for recognizing the operation gesture according to the feature map;
[0015] The response module is used to respond to the operation gesture and execute the instruction corresponding to the operation gesture.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0017] A touch surface for users to input operation gestures;
[0018] A vibration sensor, used to collect vibration signals generated by the touch surface;
[0019] A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device processes the vibration signal to implement the method described in the first aspect or various possible implementations of the first aspect.
[0020] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed by a processor, they are used to implement the method described in the first aspect or various possible implementation methods of the first aspect.
[0021] In a fifth aspect, an embodiment of the present application provides a computer program product comprising a computing program, and when the computer program is executed by a processor, the method described in the first aspect or various possible implementation methods of the first aspect is implemented.
[0022] The human-computer interaction method, device, electronic device and readable storage medium provided in the embodiments of the present application are applied to electronic devices with a touch surface. When a user inputs an operation gesture on the touch surface, the touch surface generates a vibration signal due to friction. The electronic device obtains the vibration signal generated by the touch surface within a first preset time, converts the vibration signal into a feature map, analyzes the feature map to identify the operation gesture, and then executes the instruction corresponding to the operation gesture. With this solution, the electronic device identifies the operation gesture by analyzing the vibration signal, and then executes the instruction corresponding to the operation gesture, replacing physical buttons, capacitors and ultrasound solutions. The device has an integrated appearance, strong waterproof and dustproof capabilities, and improves the efficiency of human-computer interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 is a structural schematic diagram of an electronic device for executing a human-computer interaction method provided in an embodiment of the present application;
[0025] Figure 2 Shown is a schematic diagram of an electronic device provided by an embodiment of the present application;
[0026] Figure 3 A side view of a touch surface of an electronic device provided in an embodiment of the present application;
[0027] Figure 4A is a front schematic diagram of a touch surface of an electronic device provided in an embodiment of the present application;
[0028] Figure 4B is a schematic diagram of the back side of the touch surface of the electronic device provided in an embodiment of the present application;
[0029] Figure 5 is a flow chart of the human-computer interaction method provided in an embodiment of the present application;
[0030] Fig. 6A is a time-frequency diagram corresponding to the first sliding gesture in the human-computer interaction method provided in an embodiment of the present application;
[0031] Figure 6B is a time-frequency diagram corresponding to the second sliding gesture in the human-computer interaction method provided in an embodiment of the present application;
[0032] Fig. 7A It is a time-frequency diagram corresponding to a single-click gesture in the human-computer interaction method provided in an embodiment of the present application;
[0033] Figure 7B It is a time-frequency diagram corresponding to the double-click gesture in the human-computer interaction method provided in an embodiment of the present application;
[0034] Fig. 8A is an amplitude diagram corresponding to the first sliding gesture of the human-computer interaction method provided in an embodiment of the present application;
[0035] Figure 8B is an amplitude diagram corresponding to the second sliding gesture in the human-computer interaction method provided in an embodiment of the present application;
[0036] Fig.9A is an amplitude diagram corresponding to a single-click gesture of the human-computer interaction method provided in an embodiment of the present application;
[0037] Fig. 9B It is an amplitude diagram corresponding to the double-click gesture in the human-computer interaction method provided in an embodiment of the present application;
[0038] Fig.10 is another flow chart of the human-computer interaction method provided by an embodiment of the present application;
[0039] Fig.11 A schematic diagram of a human-computer interaction device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0041] At present, many wearable devices are equipped with physical buttons or touch screens. Users can realize rich human-computer interaction by operating physical buttons or touch screens, such as waking up the wearable device, increasing the volume, decreasing the volume, etc. Among them, the operation of the touch screen refers to inputting operation gestures on the touch screen. After the wearable device recognizes the operation gesture according to the sliding trajectory, it executes the instruction corresponding to the operation gesture, thereby realizing human-computer interaction. Touch screens include capacitive touch screens, resistive touch screens or ultrasonic touch screens.
[0042] However, when human-computer interaction is performed through physical buttons, holes need to be opened on the wearable device, and the dust and water resistance is poor. In addition, the physical buttons only have a single pressing function, a rotating function, etc., and the human-computer interaction function is limited.
[0043] For resistive touch screens, wearable devices recognize operation gestures based on pressure sensing, but multiple sensor module arrays are required to detect operation gestures, and the sensitivity is low.
[0044] For capacitive touch screens, wearable devices detect current to identify gestures. However, when users wear wearable devices, the touch screen can easily come into contact with human skin, causing the touch screen to stop working. Moreover, capacitive touch screens cannot be bent, making it difficult to touch on curved surfaces and difficult to prevent dust and water.
[0045] In addition, there are some wearable devices on the market that use ultrasonic wave recognition to operate gestures, thus achieving high-precision touch and recognition, but they are expensive and have complex algorithms.
[0046] Based on this, the embodiments of the present application provide a human-computer interaction method, device, electronic device and readable storage medium. After the user inputs an operation gesture on the touch surface, the touch surface generates friction and then generates a vibration signal. The electronic device recognizes the operation gesture by analyzing the vibration signal and then executes the instruction corresponding to the operation gesture.
[0047] The human-computer interaction method provided in the embodiment of the present application is applied to electronic devices, such as smart wearable devices with touch surfaces, such as watches, headphones, glasses, etc., and users can achieve rich human-computer interaction by inputting different operation gestures on the touch surface.
[0048] Figure 1is a schematic diagram of the structure of an electronic device for executing a human-computer interaction method provided in an embodiment of the present application. Figure 1 The electronic device provided in the embodiment of the present application includes: a radio frequency (RF) circuit 101, a memory 102, a touch screen 103, a sensor 104, a wireless fidelity (WiFi) module 105, an audio circuit 106, a processor 107, and a power supply 108. Those skilled in the art can understand that Figure 1 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0049] Combine the following Figure 1 A detailed introduction to the various components of electronic equipment:
[0050] The RF circuit 101 may be used to receive and send information or signals during a call, for example, receiving downlink data and handing it over to the processor 107 for processing; or sending uplink data. Generally, the RF circuit 101 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc.
[0051] The memory 102 may be used to store software programs, etc. The processor 107 executes various functional applications and data processing of the electronic device by running the software programs stored in the memory 102 .
[0052] The touch surface 103 is also called a touch panel, display screen, touch screen, etc. When a user inputs an operation gesture on the touch surface 103, the touch surface 103 generates a vibration signal, and a vibration sensor disposed on the back of the touch surface 103 sends the vibration signal to other devices such as the processor 107. In addition, the touch surface 103 can be implemented using various types of materials such as resistive, capacitive, and anisotropic surfaces. When an anisotropic surface is used to implement the touch surface 103, sliding operations in different directions will generate different vibration signals, and sliding operations in different directions can be understood as different operation gestures, and rich human-computer interactions can be implemented based on different operation gestures.
[0053] In specific implementation, the electronic device has multiple touch surfaces 103. Taking a smart watch as an example, the main interface uses a capacitive touch surface, and the material used for the touch surface on the side is an anisotropic surface, and the anisotropic surface is used to replace the physical buttons.
[0054] In addition, the touch surface 103 of the main interface and the touch surface 103 of the side can be two independent touch surfaces, or they can be integrated together. When the touch surface 103 of the main interface and the touch surface 103 of the side are designed as one body, the touch surface 103 is, for example, a resistive touch screen, a capacitive touch screen, or is implemented using an anisotropic surface. When the touch surface 103 is a resistive touch screen or a capacitive touch screen, the electronic device can implement click gestures, sliding gestures, etc. input by the user on the touch surface 103. When the touch surface 103 is an anisotropic surface, if the operation gesture input by the user is a sliding gesture, the electronic device further identifies the direction of the sliding gesture, and sliding gestures in different directions represent different operation gestures.
[0055] When the touch surface 103 of the main interface and the touch surface 103 of the side are separately provided, the touch surface 103 of the main interface is, for example, a resistive touch screen, a capacitive touch screen, etc., and the touch surface 103 of the side is an anisotropic surface.
[0056] The electronic device may further include at least one sensor 104, such as a vibration sensor, a motion sensor, or other sensors. The vibration sensor is disposed on the back of the touch surface 103, and the front of the touch surface 103 faces outward. When a user inputs an operation gesture on the front of the touch surface 103, the touch surface 1031 generates a vibration signal according to the operation gesture, and the vibration sensor detects the vibration signal and sends the vibration signal to the processor 107.
[0057] Motion sensors, such as accelerometer sensors, can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. They can be used in applications to identify the posture of electronic devices (such as switching between horizontal and vertical screens, related games, and magnetometer posture calibration), vibration recognition related functions (such as pedometers and tapping), etc.; as for other sensors that electronic devices can also be equipped with, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be elaborated here.
[0058] The audio circuit 106, the speaker 1062, and the microphone 1061 provide an audio interface between the user and the electronic device. The audio circuit 106 converts the received audio data into an electrical signal and transmits it to the speaker 1062, which converts it into a sound signal for output; on the other hand, the microphone 1061 converts the collected sound signal into an electrical signal, which is received by the audio circuit 106 and converted into audio data, and then the audio data is output to the processor 107 for processing, and then sent to another electronic device through the RF circuit 101, or the audio data is output to the memory 102 for further processing.
[0059] WiFi is a short-range wireless transmission technology. Electronic devices can help users send and receive emails, browse web pages, and access streaming media through WiFi modules 105. It provides users with wireless broadband Internet access. Figure 1 A WiFi module 105 is shown, but it is understandable that it is not an essential component of the electronic device and can be omitted as needed without changing the essence of the invention.
[0060] The processor 107 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 102 and calling data stored in the memory 102, thereby monitoring the electronic device as a whole.
[0061] The electronic device also includes a power source 108 (such as a battery) for supplying power to various components. Preferably, the power source can be logically connected to the processor 107 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
[0062] Although not shown, the electronic device may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0063] The following embodiments can all be implemented in an electronic device (eg, an electronic device) having the above hardware.
[0064] Figure 2 The figure shows a schematic diagram of an electronic device provided by an embodiment of the present application. Figure 2 When the electronic device is a smart watch, the electronic device includes a first touch surface 21 and a second touch surface 22, wherein the first touch surface 21 is located on the front of the electronic device and is used to provide a main operation interface. The user clicks, slides, and other operations on the first touch surface to realize functions such as opening applications and turning pages; the second touch surface 22 is located on the side of the electronic device and is used to provide an auxiliary interface. The user inputs operation gestures such as clicks and slides on the second touch surface 22 to realize functions such as waking up the electronic device, increasing the volume, and decreasing the volume.
[0065] In one embodiment, the first touch surface 21 and the second touch surface 22 are integrally designed, and the user can input an operation gesture on the first touch surface 21 or the second touch surface 22, and generate a vibration signal according to the friction generated by the operation gesture. The electronic device recognizes the operation gesture by analyzing the vibration signal, and then executes the instruction corresponding to the operation gesture. When the integrally designed touch surface is a capacitive touch screen or a resistive touch screen, the electronic device can recognize a click gesture or a sliding gesture; when the integrally designed touch surface is an anisotropic surface, the electronic device can recognize a click gesture or a sliding gesture, and when the operation gesture is a sliding gesture, the electronic device further recognizes the sliding direction of the sliding gesture.
[0066] In another embodiment, the first touch surface 21 and the second touch surface 22 are designed as one body, but the first touch surface 21 is a capacitive touch screen or a resistive touch screen, and the second touch surface 22 is an anisotropic surface.
[0067] In another embodiment, the first touch surface 21 and the second touch surface 22 are independently provided. The first touch surface 21 is, for example, a capacitive touch screen or a resistive touch screen, and the second touch surface 22 is an anisotropic surface.
[0068] When the user's finger slides or is about to slide on the touch surface, the contact between the finger and the touch surface causes the touch surface to generate a force that prevents relative motion, that is, friction. The roughness or texture of the touch surface is different, so the friction is different. Therefore, taking the second touch surface 22 as an example, the anisotropic surface in the embodiment of the present application means: a microstructure is set on the second touch surface 22, and the microstructure is different in each direction. When the user slides on the second touch surface 22 in different directions, the vibration signal generated by the second touch surface 22 is different. In other words, when the user's finger slides in different directions on the anisotropic surface, there is a difference in friction. During the sliding process, the touch surface generates a vibration signal, and the electronic device uses the differences in the time domain and frequency domain of the vibration signal generated by different gestures to identify the gesture type of the operation gesture. The types of operation gestures include but are not limited to click, slide, etc. When the operation gesture is a click gesture, it is further distinguished whether it is a single-click gesture or a double-click gesture. When the operation gesture is a single-click gesture, the further area is a fingertip click, a fingernail click, etc. When the operation gesture is a double-click gesture, it is further distinguished as a fingertip double-click, a fingernail double-click, etc. When the operation gesture is a sliding gesture, further distinction is made into sliding from dense to sparse, sliding from sparse to dense, and so on.
[0069] In the embodiment of the present application, the microstructure of the touch surface includes but is not limited to a sawtooth structure, a convex structure, etc. In order to make the friction force generated by the second touch surface different when the user slides in different directions, the microstructure on the second touch surface 22 can be flexibly set.
[0070] For example, the density of the microstructures on the second touch surface 22 changes from dense to sparse or from sparse to dense in the direction indicated by the arrow.
[0071] For another example, the height of the microstructures on the second touch surface 22 is from high to low or from low to high in the direction indicated by the arrow.
[0072] Another example: Figure 2 The black filled circle in the middle indicates the symmetry center of the second touch surface 22 . The density of the microstructures on the second touch surface 22 increases as they are closer to the symmetry center, and decreases as they are farther away from the symmetry center.
[0073] For another example, the closer the microstructures on the second touch surface 22 are to the symmetry center, the greater their heights are, and the farther away from the symmetry center, the smaller their heights are.
[0074] It can be understood that in the embodiment of the present application, when a touch surface, such as the second touch surface 22, is an anisotropic surface, it means that the entire second touch surface 22 is an anisotropic surface. Figure 2 Alternatively, the second touch surface 22 includes an area of anisotropic surface, such as Figure 2 The anisotropic surface is located in the center of the second touch surface 22 or close to one side of the second touch surface 22 .
[0075] Figure 3 This is a side view of the touch surface of the electronic device provided in the embodiment of the present application. Figure 3 , a serrated microstructure is set on the touch surface, and the density of the serrated microstructure gradually decreases along the direction of the arrow.
[0076] Figure 4A is a front view schematic diagram of a touch surface of an electronic device provided in an embodiment of the present application, Figure 4B is a schematic diagram of the back side of the touch surface of the electronic device provided in the embodiment of the present application. Figure 4A and Figure 4B The touch surface is, for example, Figure 2 The second touch surface 22 in the embodiment. The length, width and height of the touch surface are X, Y and Z, where X=2.54 cm, Y=0.762 cm and Z=0.3937 cm. The embodiment of the present application does not limit the size of the touch surface.
[0077] Please refer to Figure 4A , an area 41 on the touch surface is an anisotropic surface, and the area is close to a long side of the touch surface. Figure 4BIn the embodiment, a recessed portion is provided at the position of the region 41 for arranging a vibration sensor 42, and the vibration sensor 42 is connected to an analog-to-digital converter (ADC) of an electronic device. The analog converter can be externally mounted on a processor of the electronic device, or can be integrated into the processor, and the processor of the electronic device is, for example, a microcontroller unit (MCU). The vibration sensor includes, but is not limited to, a piezoelectric ceramic sensor, a strain gauge sensor, and the like.
[0078] Sliding in different directions on the user area 41 corresponds to different sliding gestures. For example, sliding in the direction indicated by arrow ① in the figure is a first sliding gesture, and sliding in the direction indicated by arrow ② in the figure is a second sliding gesture.
[0079] In the embodiment of the present application, the touch surface can be a flat surface or a curved surface, and can be bent. Since there is no need to open a hole in the electronic device, it has a good waterproof and dustproof effect.
[0080] Below, based on Figure 1 to Figure 4B The human-computer interaction method described in the embodiment of the present application is described in detail. For example, please refer to Figure 5 , Figure 5 : is a flow chart of a human-computer interaction method provided by an embodiment of the present application. The execution subject of this embodiment is an electronic device with a touch surface. This embodiment includes:
[0081] 501. After a user inputs an operation gesture on the touch surface, a vibration signal generated by the touch surface within a first preset time period is obtained.
[0082] When the user's finger slides on the touch surface, the touch surface generates friction, and the vibration sensor collects a vibration signal corresponding to the friction, the duration of which is at least a first preset duration, and the first preset duration is, for example, 1 second, 2 seconds, 3 seconds, etc., which is not limited in the embodiments of the present application.
[0083] 502. Generate a characteristic graph according to the vibration signal within the first preset time length.
[0084] In the embodiment of the present application, for different operation gestures, the vibration signals picked up by the vibration sensor are completely different. The vibration sensor continuously collects vibration signals and transmits the vibration signals to the ADC, which performs analog-to-digital conversion on the vibration signals and sends them to the MCU. The MCU calculates the characteristics of the analog-to-digital converted vibration signals, such as frequency components, signal duration, signal amplitude, etc., and obtains feature graphs that are sufficient to characterize the signal differences, such as time-frequency graphs, amplitude graphs, etc. The conversion methods used include but are not limited to short-time Fourier transforms or wavelet transforms.
[0085] 503. Identify the operation gesture according to the feature graph.
[0086] In the embodiment of the present application, the characteristic graph can reflect the difference in vibration signals corresponding to different operation gestures, such as frequency difference, amplitude difference, etc. The electronic device determines the gesture type of the operation gesture input by the user in combination with the time-frequency information, signal amplitude, duration, etc. The gesture types include but are not limited to sliding, single-clicking, double-clicking, etc. When the touch surface is an anisotropic surface and the gesture type is a sliding gesture, the sliding direction of the gesture is further identified to distinguish whether the sliding gesture is the first sliding gesture or the second sliding gesture.
[0087] 504. In response to the operation gesture, execute an instruction corresponding to the operation gesture.
[0088] In the embodiment of the present application, the electronic device pre-stores the correspondence between the operation gesture and the instruction, the single-click gesture corresponds to the wake-up instruction, the first sliding gesture corresponds to the volume increase, the second sliding gesture corresponds to the volume decrease... After the electronic device recognizes the operation gesture, it executes the instruction corresponding to the operation gesture, thereby realizing human-computer interaction.
[0089] The human-computer interaction method provided in the embodiment of the present application is applied to an electronic device with a touch surface. When a user inputs an operation gesture on the touch surface, the touch surface generates a vibration signal due to friction. The electronic device obtains the vibration signal generated by the touch surface within a first preset time, converts the vibration signal into a feature map, analyzes the feature map to identify the operation gesture, and then executes the instruction corresponding to the operation gesture. With this solution, the electronic device identifies the operation gesture by analyzing the vibration signal, and then executes the instruction corresponding to the operation gesture, replacing physical buttons, capacitors, and ultrasound solutions. The device has an integrated appearance, strong waterproof and dustproof capabilities, and improves the efficiency of human-computer interaction.
[0090] Optionally, in the above embodiment, the characteristic graph includes a time-frequency graph, and the electronic device determines a first proportion of high-frequency signals having a frequency greater than a first preset frequency in the time-frequency graph. When the first proportion is greater than a first threshold, the operation gesture is determined to be a sliding gesture; when the first proportion is less than a second threshold, the operation gesture is determined to be a click gesture, and the second threshold is less than the first threshold.
[0091] For example, the horizontal axis of the time-frequency graph is time, and the vertical axis is frequency. The electronic device analyzes the time-frequency graph to identify the operation gesture as a click gesture or a slide gesture. When it is impossible to distinguish whether the operation gesture is a click gesture or a slide gesture based on the time-frequency graph, further analysis is required in combination with amplitude, energy, etc.
[0092] Fig. 6A is a time-frequency diagram corresponding to the first sliding gesture in the human-computer interaction method provided in an embodiment of the present application, Figure 6B: is a time-frequency diagram corresponding to the second sliding gesture in the human-computer interaction method provided in an embodiment of the present application. The first sliding gesture is a gesture of sliding from the first end to the second end of the touch surface, a microstructure is arranged between the first end and the second end and the density is from dense to sparse, and the second sliding gesture is a gesture of sliding from the second end to the first end of the touch surface. The direction of the first sliding gesture is as follows: Figure 4A As shown by arrow ① in the figure, the direction of the second sliding gesture is Figure 4A As shown by arrow ② in .
[0093] Fig. 7A is a time-frequency diagram corresponding to a single-click gesture in the human-computer interaction method provided in an embodiment of the present application, Figure 7B It is a time-frequency diagram corresponding to the double-click gesture in the human-computer interaction method provided in an embodiment of the present application.
[0094] by Figure 6B and Fig. 7A For example, the first frequency is 2000 Hz. When the frequency of the vibration signal is greater than the first frequency, the vibration signal is a high-frequency signal. When the frequency of the vibration signal is less than the first frequency, the vibration signal is a low-frequency signal.
[0095] Figure 6B and Fig. 7A In the figure, the highlighted point indicates the vibration signal, and the first preset duration is about 0.5 seconds. Figure 6B between 2.7 and 3.2 seconds, or Fig. 7A After the electronic device generates a time-frequency diagram based on the vibration signal within the preset time length, it determines the proportion of high-frequency signals.
[0096] Figure 6B In the example, the high-frequency signal is mainly distributed in the area 62, and the low-frequency signal is mainly distributed in the area 61. The electronic device determines the area S1 of the high-frequency signal in the area 62, and then determines the ratio of the area S1 to the total area to obtain the first proportion X1. The first proportion X1 is greater than the first threshold. Therefore, Figure 6B The corresponding operation gesture is a sliding gesture. The first threshold is, for example, 0.6, etc., which is not limited in the embodiment of the present application.
[0097] Fig. 7A In the example, the high-frequency signal is mainly distributed in the area 72, and the low-frequency signal is mainly distributed in the area 71. The electronic device determines the area S2 of the high-frequency signal in the area 72, and then determines the ratio of the area S2 to the total area to obtain the first proportion X2. The first proportion X2 is less than the second threshold. Therefore, Fig. 7A The corresponding operation gesture is a click gesture. The second threshold is, for example, 0.4, etc., which is not limited in the embodiment of the present application.
[0098] It should be noted that Figure 6BThe middle area S1 is not the area of the region 62, but the area of the high-frequency signal in the region 62. The total area is not the sum of the areas of the regions 62 and 61, but the areas of the high-frequency signal and the low-frequency signal in the regions 61 and 62. The high-frequency signal is shown as the highlighted part in the region 62, and the low-frequency signal is shown as the highlighted part in the region 61.
[0099] In addition, it should be noted that, although the above is to determine the type of operation gesture by comparing the relationship between the first proportion and the first threshold and the second threshold. However, the embodiment of the present application is not limited, and in other feasible implementations, the electronic device can also determine the ratio of the area of the high-frequency signal to the area of the low-frequency signal, that is, the ratio of the area of the high-frequency signal in area 62 to the area of the low-frequency signal in area 61. Obviously, Figure 6B In the example, the area of the high frequency signal is greater than the area of the low frequency signal, and the ratio is greater than a first preset ratio, such as 1.1, so the electronic device determines that Figure 6B The corresponding operation gesture is a sliding gesture. Fig. 7A In the example, the area of the high frequency signal is smaller than the area of the low frequency signal, and the ratio is smaller than a second preset ratio, for example, 0.9. Therefore, the electronic device determines that Fig. 7A The corresponding operation gesture is the click gesture.
[0100] This solution can determine whether the operation gesture is a click gesture or a slide gesture by analyzing the proportion of high-frequency signals and low-frequency signals in the time-frequency diagram, which is fast and accurate.
[0101] Optionally, in the above embodiments, there may be a scenario where the electronic device cannot determine the type of operation gesture based on the time-frequency graph. For example, when the first proportion is between the first threshold and the second threshold, the electronic device cannot determine the type of operation gesture based on the time-frequency graph; for another example, when the ratio of the area of the high-frequency signal to the area of the low-frequency signal is between the first preset ratio and the second preset ratio, the electronic device cannot determine the type of operation gesture based on the time-frequency graph. At this time, the electronic device further determines the type of operation gesture based on the amplitude, energy, etc. of the vibration signal.
[0102] When determining the type of the operation gesture in combination with the amplitude, the electronic device generates an amplitude graph according to the vibration signal generated by the touch surface within the first preset time period, and determines the maximum amplitude of the vibration signal within the first preset time period according to the amplitude graph. When the maximum amplitude is less than the preset amplitude, the operation gesture is determined to be a sliding gesture; when the maximum amplitude is greater than or equal to the preset amplitude, the operation gesture is determined to be a clicking gesture.
[0103] Fig. 8A is an amplitude diagram corresponding to the first sliding gesture of the human-computer interaction method provided in an embodiment of the present application, Figure 8B It is an amplitude diagram corresponding to the second sliding gesture in the human-computer interaction method provided in an embodiment of the present application. Fig.9A is an amplitude diagram corresponding to a single-click gesture of the human-computer interaction method provided in an embodiment of the present application, Fig. 9B : is an amplitude diagram corresponding to a double-click gesture in a human-computer interaction method provided in an embodiment of the present application, wherein the horizontal axis represents time and the vertical axis represents amplitude.
[0104] by Fig. 8A and Figure 8B For example, please refer to Fig. 8A , the first preset duration is 0.4 seconds, such as Fig. 8A The duration between 0.2 seconds and 0.6 seconds, the amplitude is [-0.04, 0.04], that is, the maximum amplitude is 0.04, and the preset amplitudes are, for example, 0.2, 0.3, etc. Obviously, the maximum amplitude is smaller than the preset amplitude, so the electronic device determines that Fig. 8A The corresponding operation gesture is a sliding gesture.
[0105] Please refer to Fig.9A , the first preset duration is 0.4 seconds, such as Fig.9A The duration between 0.2 seconds and 0.6 seconds, the amplitude is [-1.5, 1.5], that is, the maximum amplitude is 1.5, and the preset amplitudes are, for example, 0.2, 0.3, etc. Obviously, the maximum amplitude is greater than the preset amplitude, so the electronic device determines that Fig.9A The corresponding operation gesture is the click gesture.
[0106] With this solution, when the electronic device cannot determine whether the operation gesture is a click gesture or a slide gesture based on the time-frequency diagram of the vibration signal, the operation gesture is further identified based on the amplitude diagram of the vibration signal, with high accuracy and high speed.
[0107] When determining the type of operation gesture in combination with energy, the electronic device divides the time-frequency graph into multiple sub-graphs according to a preset step size on the time axis, and determines the energy of the vibration signal corresponding to each of the multiple sub-graphs to obtain multiple energies. Afterwards, a target sub-graph is determined from the multiple sub-graphs based on the multiple energies, and the target sub-graph is the sub-graph with the largest energy. When the energy of the target sub-graph is less than the preset energy, the operation gesture is determined to be a sliding gesture, and when the energy of the target sub-graph is greater than or equal to the preset energy, the operation gesture is determined to be a click gesture. Among them, the preset energy is, for example, the minimum energy for realizing a click operation.
[0108] For example, please refer to Figure 6B , the first preset duration is, for example, 0.5 seconds, and the preset step length is, for example, 0.1 seconds. The electronic device divides the time-frequency graph corresponding to the first preset duration into 5 sub-graphs, each of which corresponds to a time length of 0.1 seconds, and then determines the energy of each sub-graph. The maximum value is determined from the energies of the 5 sub-graphs, and the maximum value is compared with the preset energy to find that the maximum value is less than the preset energy. Therefore, the electronic device determines that the operation gesture is a sliding gesture.
[0109] Please refer to Fig. 7A , the first preset duration is, for example, 0.5 seconds, and the preset step length is, for example, 0.1 seconds. The electronic device divides the time-frequency graph corresponding to the first preset duration into 5 sub-graphs. The short-time energy during click is the largest. Assuming that the third sub-graph corresponds to the click moment, the energy of the third sub-graph is the largest and is greater than the preset energy. Therefore, the electronic device determines that the operation gesture is a click gesture.
[0110] With this solution, when the electronic device cannot determine whether the operation gesture is a click gesture or a slide gesture based on the time-frequency diagram of the vibration signal, the operation gesture is further identified based on the energy of the vibration signal with high accuracy and high speed.
[0111] Optionally, in the above embodiment, when the touch surface is an anisotropic surface, sliding gestures in different directions correspond to different instructions, and the direction of the sliding gesture needs to be further determined. Therefore, when the touch surface is an anisotropic surface, after the electronic device recognizes that the operation gesture is a sliding gesture, it determines the main frequency from the time-frequency diagram. When the main frequency is less than the preset frequency, the electronic device determines that the sliding gesture is a first sliding gesture; the first sliding gesture is a gesture of sliding from the first end to the second end of the touch surface, and a microstructure is set between the first end and the second end and the density is from dense to sparse. When the main frequency is greater than or equal to the preset frequency, the sliding gesture is determined to be a second sliding gesture, and the second sliding gesture is a gesture of sliding from the second end to the first end of the touch surface.
[0112] Taking the microstructure of anisotropic surface as a convex structure as an example, the density of the convex structure is different, so the frequency of the vibration signal during sliding presents different components over time, thereby amplifying the differences between different operation gestures. Fig. 6A and Figure 6B , the highlighted point indicates the vibration signal, and the preset duration is about 0.5 seconds. Fig. 6A between 1.8 and 2.3 seconds, or Figure 6B For a duration between 2.7 seconds and 3.2 seconds, the preset frequency is, for example, 2000 Hz. Fig. 6A In the figure, the main frequency is concentrated in area 61 (there are more highlighted points in area 61), that is, the main frequency is low frequency, and low frequency refers to a frequency less than 2000 Hz. Therefore, the electronic device determines Fig. 6A The corresponding operation gesture is the first sliding gesture.
[0113] Figure 6B In the figure, the main frequency is concentrated in area 62, and there are more highlighted points in area 62, that is, the main frequency is high frequency, and high frequency refers to a frequency greater than or equal to 2000 Hz. Therefore, the electronic device determines Figure 6B The corresponding operation gesture is the second sliding gesture.
[0114] With this solution, when the operation gesture is a sliding gesture, the electronic device further distinguishes the sliding gesture as the first sliding gesture or the second sliding gesture based on the main frequency in the time-frequency graph, with high accuracy and fast speed.
[0115] Optionally, in the above embodiment, when the operation gesture is a click gesture, the electronic device further distinguishes whether the click gesture is a single-click gesture or a double-click gesture. During the distinction process, whether there are two short-time signals separated by a second preset time length in the time-frequency graph of the electronic device, and the duration of the short-time signal is less than a third preset time length. When there are two short-time signals separated by a second preset time length in the time-frequency domain signal graph, the click gesture is determined to be a double-click gesture; when there is a short-time signal in the time-frequency domain signal graph, the click gesture is determined to be a single-click gesture.
[0116] Please refer to Fig. 7A , the first preset duration is about 1.5 seconds, such as Fig. 7A During the time period between 1.0 second and 2.5 seconds, there is only one short-time signal, which is approximately located at the 1.9 second position in area 71 and area 72. Therefore, the electronic device determines that the click gesture is specifically a single-click gesture.
[0117] Please refer to Figure 7B , the first preset duration is about 1.5 seconds, such as Figure 7B During the time period between 2.0 seconds and 3.5 seconds, there are two short-time signals, which are located at the 2.4 second position in area 73 and the 3.2 second position in area 74 respectively. Therefore, the electronic device determines that the click gesture is specifically a double-click gesture.
[0118] In addition, when there is a short-term signal in the time-frequency domain signal diagram, it may be a fingertip tap gesture or a short sliding gesture. The short sliding gesture refers to an instant sliding gesture with a very short sliding time.
[0119] With this solution, when the operation gesture is a click gesture, the electronic device further distinguishes the click gesture as a single-click gesture or a double-click gesture based on the number of short-time signals in the time-frequency diagram, with high accuracy and fast speed.
[0120] According to the above Figures 6A-9B From the description, we can see that the main frequency distribution and amplitude corresponding to different operation gestures are very different. Therefore, the specific gesture category can be identified based on the time-frequency diagram and amplitude diagram of the feature signal. Fig.10 is another flow chart of the human-computer interaction method provided by the embodiment of the present application. This embodiment includes:
[0121] 1001. The vibration sensor collects a vibration signal and provides the signal to the processor.
[0122] For example, a vibration sensor of an electronic device collects a vibration signal, which is converted by an analog-to-digital converter (ADC) to obtain a digital signal, and the digital signal enters the MCU of the electronic device. The analog-to-digital converter can be external to the MCU or integrated into the MCU.
[0123] 1002. Check whether the vibration signal is valid. If the vibration signal is valid, execute step 1003; if the vibration signal is invalid, return to execute step 1001.
[0124] Exemplarily, the vibration sensor continuously collects vibration signals, and the ADC continuously sends the digital signal obtained by analog-to-digital conversion of the vibration signal to the MCU. If the user does not input an operation gesture, the vibration sensor collects a noise signal, and the signal sent to the MCU after the ADC performs analog-to-digital conversion on the noise signal is also a noise signal, not a valid signal. The noise signal should be filtered out to prevent the MCU from working at a high load. To this end, the electronic device determines whether the amplitude of the vibration signal exceeds the preset amplitude. When the amplitude exceeds the preset amplitude, the vibration signal is a valid signal, and the electronic device determines that the user inputs an operation gesture and executes step 1003; if the amplitude is less than the preset amplitude, the vibration signal is a noise signal, and it is possible that the user's skin, clothes, etc. accidentally rubbed the touch surface, and the electronic device returns to execute step 1001.
[0125] 1003. Obtain a vibration signal generated by the touch surface within a preset time period.
[0126] 1004. Generate a characteristic graph according to the vibration signal within the preset time length.
[0127] Exemplarily, when a valid signal is detected, the electronic device uses short-time Fourier transform, wavelet transform, etc. to generate a feature map based on the vibration signal within a preset time length. The feature map is also called a feature domain map, and the feature maps of different operation gestures are different.
[0128] 1005. Identify the operation gesture according to the feature graph.
[0129] Exemplarily, the electronic device comprehensively determines the gesture type of the operation gesture by combining time-frequency information, signal amplitude, duration, etc. In one method, the electronic device pre-stores logic rules, and during the process of identifying the operation gesture, the electronic device determines the proportion of high-frequency signals, main frequency components, duration of the signal, etc., and determines the type of the operation gesture according to the corresponding logic rules.
[0130] In another way, a gesture recognition model is pre-deployed on the electronic device, and the high-frequency signal proportion, main frequency components, signal duration, etc. obtained according to the feature map are input into the gesture recognition model, so that the gesture recognition model outputs the type of operation gesture. Among them, the gesture recognition module is, for example, a random forest model or a support vector machine (SVM) model learned by traditional machine learning methods.
[0131] In addition, when the gesture recognition model is a neural network model obtained by a deep learning method, the electronic device does not need to extract features, but directly inputs the feature map into the neural network model, and the neural network model outputs the gesture recognition result.
[0132] 1006. In response to the operation gesture, execute an instruction corresponding to the operation gesture.
[0133] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0134] Fig.11 A schematic diagram of a human-computer interaction device provided in an embodiment of the present application. The human-computer interaction device 1100 is integrated on an electronic device having a touch surface, and includes: an acquisition module 1101 , a processing module 1102 , an identification module 1103 and a response module 1104 .
[0135] An acquisition module 1101 is used to acquire a vibration signal generated by the touch surface within a first preset time period after the user inputs an operation gesture on the touch surface;
[0136] A processing module 1102 is used to generate a characteristic graph according to the vibration signal within the first preset time period;
[0137] A recognition module 1103, configured to recognize the operation gesture according to the feature graph;
[0138] The response module 1104 is used to respond to the operation gesture and execute the instruction corresponding to the operation gesture.
[0139] In a feasible implementation, the identification module 1103 is used to determine a first proportion of high-frequency signals in the time-frequency graph whose frequency is greater than a first preset frequency when the feature graph includes a time-frequency graph; when the first proportion is greater than a first threshold, determine that the operation gesture is a click gesture; when the first proportion is less than a second threshold, determine that the operation gesture is a sliding gesture, and the second threshold is less than the first threshold.
[0140] In a feasible implementation, the identification module 1103 is also used to determine the maximum amplitude according to the amplitude graph when the first proportion is between the first threshold and the second threshold and the characteristic graph includes an amplitude graph; when the maximum amplitude is less than a preset amplitude, determine that the operation gesture is a sliding gesture; when the maximum amplitude is greater than or equal to the preset amplitude, determine that the operation gesture is a click gesture.
[0141] In a feasible implementation, the identification module 1103 is also used to divide the time-frequency graph into multiple sub-graphs according to a preset step size on the time axis when the first proportion is between the first threshold and the second threshold; determine the energy of the vibration signal represented by each sub-graph in the multiple sub-graphs to obtain multiple energies; determine a target sub-graph from the multiple sub-graphs based on the multiple energies, and the target sub-graph is the sub-graph with the largest energy; when the energy of the target sub-graph is less than the preset energy, determine that the operation gesture is a sliding gesture; when the energy of the target sub-graph is greater than or equal to the preset energy, determine that the operation gesture is a click gesture.
[0142] In a feasible implementation, the identification module 1103 is also used to determine the main frequency from the time-frequency diagram when the touch surface is an anisotropic surface and the operation gesture is a sliding gesture; when the main frequency is less than the preset frequency, determine that the sliding gesture is a first sliding gesture; the first sliding gesture is a gesture of sliding from the first end to the second end of the touch surface, and a microstructure is set between the first end and the second end and the density decreases from dense to sparse; when the main frequency is greater than or equal to the preset frequency, determine that the sliding gesture is a second sliding gesture, and the second sliding gesture is a gesture of sliding from the second end to the first end of the touch surface.
[0143] In a feasible implementation, the identification module 1103 is also used to determine whether there are two short-time signals separated by a second preset time length in the time-frequency graph when the operation gesture is a click gesture, and the duration of the short-time signal is less than a third preset time length; when there are two short-time signals separated by a second preset time length in the time-frequency domain signal graph, determine that the click gesture is a double-click gesture; when there is a short-time signal in the time-frequency domain signal graph, determine that the click gesture is a single-click gesture.
[0144] In a feasible implementation, the processing module 1102 is also used to determine whether the amplitude of the vibration signal exceeds a preset amplitude before the acquisition module 1101 acquires the vibration signal generated by the touch surface within a first preset time length; when the amplitude of the vibration signal exceeds the preset amplitude, it is determined that the user inputs an operation gesture on the touch surface.
[0145] The data processing device provided in the embodiment of the present application can execute the actions of the NGINX server in the above embodiment. Its implementation principle and technical effects are similar and will not be repeated here.
[0146] An embodiment of the present application further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed by a processor, they are used to implement the human-computer interaction method implemented by the electronic device with a touch surface as described above.
[0147] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the human-computer interaction method implemented by the electronic device with a touch surface as described above is implemented.
[0148] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0149] It should be understood that the present application is not limited to the precise 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 application is limited only by the appended claims.
Claims
1. A human-computer interaction method, characterized in that: Applied to an electronic device having a touch surface, the method comprises: After the user inputs an operation gesture on the touch surface, obtaining a vibration signal generated by the touch surface within a first preset time period; generating a characteristic graph according to the vibration signal within the first preset time period; recognizing the operation gesture according to the feature graph; In response to the operation gesture, an instruction corresponding to the operation gesture is executed.
2. The method according to claim 1, characterized in that The identifying the operation gesture according to the feature graph includes: When the characteristic graph includes a time-frequency graph, determining a first proportion of high-frequency signals having a frequency greater than a first preset frequency in the time-frequency graph; When the first proportion is greater than a first threshold, determining that the operation gesture is a click gesture; When the first proportion is less than a second threshold, it is determined that the operation gesture is a sliding gesture, and the second threshold is less than the first threshold.
3. The method according to claim 2, characterized in that Also includes: When the first proportion is between the first threshold and the second threshold and the characteristic graph includes an amplitude graph, determining the maximum amplitude of the vibration signal according to the amplitude graph; When the maximum amplitude is less than a preset amplitude, determining that the operation gesture is a sliding gesture; When the maximum amplitude is greater than or equal to the preset amplitude, it is determined that the operation gesture is a click gesture.
4. The method according to claim 2, characterized in that: Also includes: When the first proportion is between the first threshold and the second threshold, dividing the time-frequency graph into a plurality of sub-graphs according to a preset step length on the time axis; determining the energy of the vibration signal corresponding to each of the plurality of subgraphs to obtain a plurality of energies; Determine a target subgraph from the multiple subgraphs according to the multiple energies, the target subgraph being the subgraph with the largest energy; When the energy of the target subgraph is less than a preset energy, determining that the operation gesture is a sliding gesture; When the energy of the target subgraph is greater than or equal to a preset energy, it is determined that the operation gesture is a click gesture.
5. The method according to any one of claims 2 to 4, characterized in that: Also includes: When the touch surface is an anisotropic surface and the operation gesture is a sliding gesture, determining a main frequency from the time-frequency diagram; When the main frequency is less than the preset frequency, the sliding gesture is determined to be a first sliding gesture; the first sliding gesture is a gesture of sliding from a first end to a second end of the touch surface, and a microstructure is arranged between the first end and the second end and the density is from dense to sparse; When the main frequency is greater than or equal to the preset frequency, the sliding gesture is determined to be a second sliding gesture, where the second sliding gesture is a gesture of sliding from the second end to the first end of the touch surface.
6. The method according to any one of claims 2 to 4, characterized in that: Also includes: When the operation gesture is a click gesture, determining whether there are two short-time signals separated by a second preset time length in the time-frequency graph, and the duration of the short-time signal is less than a third preset time length; When there are two short-time signals separated by a second preset time length in the time-frequency domain signal graph, determining that the click gesture is a double-click gesture; When there is a short-time signal in the time-frequency domain signal graph, it is determined that the click gesture is a single-click gesture.
7. The method according to any one of claims 1 to 4, characterized in that: After the user inputs an operation gesture on the touch surface, before obtaining the vibration signal generated by the touch surface within a first preset time period, the method further includes: Determining whether the amplitude of the vibration signal exceeds a preset amplitude; When the amplitude of the vibration signal exceeds a preset amplitude, it is determined that the user inputs an operation gesture on the touch surface.
8. A human-computer interaction device, characterized in that: Integrated in an electronic device with a touch surface, the device comprises: An acquisition module, configured to acquire a vibration signal generated by the touch surface within a first preset time period after a user inputs an operation gesture on the touch surface; A processing module, configured to generate a characteristic graph according to the vibration signal within the first preset time period; A recognition module, used for recognizing the operation gesture according to the feature map; The response module is used to respond to the operation gesture and execute the instruction corresponding to the operation gesture.
9. An electronic device, characterized in that: include: A touch surface for users to input operation gestures; A vibration sensor, used to collect vibration signals generated by the touch surface; A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device processes the vibration signal to implement the method described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
