WO2021179972A1 - Processing method and apparatus - Google Patents

Processing method and apparatus Download PDF

Info

Publication number
WO2021179972A1
WO2021179972A1 PCT/CN2021/078918 CN2021078918W WO2021179972A1 WO 2021179972 A1 WO2021179972 A1 WO 2021179972A1 CN 2021078918 W CN2021078918 W CN 2021078918W WO 2021179972 A1 WO2021179972 A1 WO 2021179972A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
touch input
touch
acceleration
duration
Prior art date
Application number
PCT/CN2021/078918
Other languages
French (fr)
Chinese (zh)
Inventor
王丰
刘旭东
赖志隆
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021179972A1 publication Critical patent/WO2021179972A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • This application relates to the field of computer technology, in particular to a processing method and device.
  • Touch screen control is currently a commonly used control method in mobile phones. Users can control the mobile phone by tapping the touch screen of the mobile phone.
  • the click action can cause the mobile phone to vibrate, which in turn causes the acceleration of the mobile phone to change, and the acceleration of the mobile phone can be measured.
  • the force of clicking on the touch screen is directly proportional to the acceleration of the mobile phone.
  • the tapping force reaches a certain strength, the acceleration of the mobile phone caused by the tapping action will reach a specific value, so that it can be determined that the tapping action has occurred on the touch screen.
  • this application shows a processing method and device.
  • this application shows a processing method applied to an electronic device, and the method includes:
  • the first parameter satisfies a first preset condition, and/or the touch duration satisfies a second preset condition, respond to the touch input, wherein the first parameter includes: the electronic The acceleration of the device, the angular velocity of the electronic device, and the recovery time of the electronic device from deformation due to the pressure of the touch input.
  • the first parameter includes the acceleration of the electronic device
  • responding to the touch input includes:
  • the first parameter includes the angular velocity of the electronic device
  • responding to the touch input includes:
  • responding to the touch input includes:
  • the first parameter includes the recovery duration
  • responding to the touch input includes:
  • the present application shows a processing device applied to electronic equipment, and the device includes:
  • An acquiring module configured to acquire the first parameter of the electronic device and the touch duration corresponding to the touch input when the user's touch input is acquired;
  • the response module is configured to respond to the touch input when the first parameter satisfies a first preset condition, and/or the touch duration satisfies a second preset condition, wherein the first parameter It includes: the acceleration of the electronic device, the angular velocity of the electronic device, and the recovery time of the electronic device from deformation due to the pressure of the touch input.
  • the first parameter includes the acceleration of the electronic device
  • the response module includes:
  • An acquiring unit for acquiring the first acceleration at the first moment and the second acceleration at the second moment
  • a first response unit configured to respond to the touch input when the target index is greater than a preset value, wherein the first time is before the second time;
  • the second response unit is configured to respond to the touch input when the change trend of the value of the acceleration of the electronic device in the direction perpendicular to the touch screen of the electronic device first decreases and then increases.
  • the first parameter includes the angular velocity of the electronic device
  • the response module includes:
  • the third response unit is configured to respond to the touch input when the alternating period of the positive and negative values of the first-order difference of the angular velocity is greater than the preset period.
  • the response module includes:
  • the fourth response unit is configured to respond to the touch input when the continuous touch duration is within the first preset duration interval.
  • the first parameter includes the recovery duration
  • the response module includes:
  • the fifth response unit is configured to respond to the touch input when the recovery duration is within a second preset duration interval.
  • this application shows an electronic device including a processor, a memory, and a computer program stored on the memory and capable of running on the processor.
  • the computer program is executed by the processor, The steps of the processing method as described in the first aspect are implemented.
  • the present application shows a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the processing method as described in the first aspect are implemented .
  • the first parameter of the electronic device and the touch duration corresponding to the touch input are acquired, where the first parameter includes: the acceleration of the electronic device, the angular velocity of the electronic device, or the electronic device due to touch The recovery time of the deformation caused by the input pressure.
  • the first parameter satisfies the first preset condition, and/or the touch duration satisfies the second preset condition, respond to the touch input.
  • This application combines the acceleration of the electronic device, the angular velocity of the electronic device, the recovery time of the deformation of the electronic device due to the pressure of the touch input, and the touch duration corresponding to the touch input to determine whether the touch input is the input of clicking the touch screen, which can improve The accuracy of the determined result.
  • Fig. 1 is a flow chart of a processing method shown in an embodiment of the present application.
  • Fig. 2 is a schematic diagram of three-dimensional coordinates of an electronic device shown in an embodiment of the present application. .
  • Fig. 3 is a flowchart of another step of the processing method shown in the embodiment of the present application.
  • Fig. 4 is a structural block diagram of a processing device shown in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of the hardware structure of an electronic device shown in an embodiment of the present application.
  • the processing method shown in the embodiment of the present application is shown in FIG. 1.
  • the method is applied to an electronic device, and the method includes: step S101 and step S102.
  • step S101 when the user's touch input is acquired, the first parameter of the electronic device and the touch duration corresponding to the touch input are acquired.
  • the first parameter includes: the acceleration of the electronic device, the angular velocity of the electronic device, and the recovery time of the electronic device from deformation due to the pressure of the touch input.
  • examples of electronic devices include mobile phones and tablet computers, etc.
  • the electronic devices include touch screens, and the user can control the electronic devices by clicking on the touch screen.
  • the touch screen of an electronic device includes a curved screen or a waterfall screen. In this way, a part of the side of the electronic device is also a touch screen.
  • the finger sometimes touches the edge of the touch screen of the electronic device.
  • the user only holds the electronic device, and does not need to control the electronic device by tapping the touch screen. Therefore, at this time, it is necessary to detect whether the user is holding the electronic device normally or whether the user inputs a click operation to the electronic device to generate a click event.
  • edge suppression is required, so that the electronic device will not misjudge that the touch screen generates a click event due to the user's normal holding of the electronic device, thereby solving the problem of false touches on the edge of the touch screen.
  • the side effect caused by this is that when the user needs to click the edge of the touch screen located on the side of the electronic device, the click action is suppressed by the edge suppression algorithm, resulting in the click failure.
  • the present application needs to improve the accuracy of determining whether the user's touch input is the input of clicking on the touch screen.
  • an acceleration sensor is built into the electronic device, and the sampling frequency of acceleration is 200 Hertz (Hz), that is, the acceleration sensor collects the acceleration of the electronic device every 5 milliseconds (ms).
  • the sampling frequency can also be Other frequencies, not detailed here, based on the acceleration sensor can detect the acceleration of the electronic device at each moment.
  • the acceleration in the electronic device is usually a three-axis sensor, as shown in Figure 2, a three-dimensional coordinate system can be drawn in the electronic device in advance.
  • the value output by the acceleration sensor represents the external force received by the electronic device divided by the mass of the electronic device to obtain an intermediate acceleration, and then calculate the vector difference between the intermediate acceleration and the earth's gravitational acceleration g to obtain the electronic device on the three coordinate axes The vector sum of the acceleration components.
  • the acceleration of the electronic device in the present application may also refer to the acceleration of the electronic device on the Z axis.
  • step S102 when the first parameter satisfies the first preset condition, and/or the touch duration satisfies the second preset condition, the touch input is responded to.
  • the first parameter of the electronic device and the touch duration corresponding to the touch input are acquired, where the first parameter includes: the acceleration of the electronic device, the angular velocity of the electronic device, and the electronic device due to touch The recovery time of the deformation caused by the input pressure.
  • the first parameter satisfies the first preset condition, and/or the touch duration satisfies the second preset condition, respond to the touch input.
  • This application combines the acceleration of the electronic device, the angular velocity of the electronic device, the recovery time of the deformation of the electronic device due to the pressure of the touch input, and the touch time corresponding to the touch input to determine whether the touch input is the input of clicking the touch screen, which can improve The accuracy of the determined result.
  • the first parameter includes the acceleration of the electronic device; in this way, when the first parameter satisfies the first preset condition, responding to the touch input includes: step S201, step S202, and step S203, such as Shown in Figure 3.
  • step S201 the first acceleration at the first time and the second acceleration at the second time are acquired.
  • the first moment is before the second moment.
  • the first time can be from the fourth to the fourteenth time from the second time, and so on.
  • step S202 a target index is constructed based on the first-order difference of the first acceleration and the first-order difference of the second acceleration.
  • the process of obtaining the first-order difference of the first acceleration includes: calculating the difference between the acceleration of the electronic device at the first moment and the acceleration of the electronic device at the first historical moment, as the first-order difference of the first acceleration Difference, where the first historical moment is adjacent to and before the first moment.
  • the process of obtaining the first-order difference of the second acceleration includes: calculating the difference between the acceleration of the electronic device at the second moment and the acceleration of the electronic device at the second historical moment, and taking it as a first-order difference of the second acceleration. Order difference, where the second historical moment is adjacent to and before the second moment.
  • the first acceleration is one, that is, the first-order difference of the first acceleration is one.
  • the first-order difference of the second acceleration and the first acceleration can be calculated
  • the ratio between the first-order differences of obtains the shock mutation index, which can be used as the target index.
  • step S203 when the target index is greater than a preset value, respond to the touch input.
  • the target index is greater than the preset value, it can be determined that a touch screen click event has occurred, that is, the touch input input by the user is the touch input of clicking the touch screen, so that the touch input can be responded to.
  • the target index at that moment is often larger, which can be derived from a large amount of data experiments.
  • the target index at this moment is often greater than the preset value, and the preset values include 6, 6.3, and 6.5. Therefore, when the target index of the electronic device is greater than the preset value, it often indicates that the electronic device may have a touch screen click event.
  • the target index includes the shock mutation index of electronic equipment and so on.
  • the target index of the electronic device by constructing the target index of the electronic device, and then comparing the magnitude relationship between the target index and the preset value, it is possible to improve the determination of whether the touch input input by the user is the touch of clicking the touch screen.
  • the accuracy of input in other words, can improve the accuracy of determining whether a touch screen click event has occurred.
  • the acceleration of the electronic device on the X-axis, Y-axis, and Z-axis are 0, 0, and 9.8, respectively.
  • the touch screen of the electronic device is facing upward or obliquely upward, and the acceleration of the electronic device on the Z axis is between +6 and +9.8.
  • the angle between the direction of the click and the positive direction of the Z axis is greater than 90 degrees, so the acceleration of the electronic device on the Z axis first decreases and then increases, for example, a wave trough appears first and then a wave crest appears immediately.
  • the touch screen of the electronic device is facing down or diagonally downward. At this time, if the user clicks on the touch screen, the angle between the direction of the click and the positive direction of the Z axis is still greater than 90 degrees, so the electronic device is on the Z axis
  • the acceleration on the upper surface still first decreases and then increases, for example, a trough appears first and then a crest appears immediately.
  • the first parameter includes the acceleration of the electronic device; thus, in the case that the first parameter satisfies the first preset condition, responding to the touch input includes: In the case where the change trend of the value of the acceleration in the direction perpendicular to the touch screen of the electronic device is to first decrease and then increase, the touch input is responded to.
  • the changing trend in this application includes first decreasing and then increasing, and first increasing and then decreasing, etc.
  • the acceleration of the electronic device at multiple moments after receiving the user's touch input may be acquired based on the acceleration sensor.
  • the trend of first decreasing and then increasing appears on the waveform first, and then the crest appears.
  • the crest appears immediately after the crest appears to confirm that a touch screen click event has occurred, that is, the touch input input by the user is a click
  • the touch input of the touch screen can respond to the touch input.
  • the first parameter includes the angular velocity of the electronic device; in this way, when the first parameter satisfies the first preset condition, the response to the touch input includes: an alternating period of positive and negative values of the first-order difference of the angular velocity If it is greater than the preset period, respond to touch input.
  • the angular velocity of the electronic device includes the angular velocity of the rotation of the plane on which the touch screen of the electronic device is located.
  • the angular velocity of the plane where the touch screen of the electronic device is located can be obtained through a gyroscope provided inside the electronic device.
  • the angular velocity of the electronic device can also be obtained in a manner, which is not limited in this application.
  • the electronic device For example, if the electronic device is placed horizontally on the table, it is assumed that knocking on the table causes the electronic device to vibrate, then the angular velocity of the electronic device at multiple consecutive moments is determined, and then the angular velocity of the electronic device at multiple consecutive moments is determined. The sign of the first-order difference in angular velocity at multiple consecutive times.
  • the signs of the first-order difference in angular velocity of an electronic device at multiple consecutive times are one consecutive negative first-order difference, two consecutive positive first-order differences, and one consecutive negative first-order difference.
  • the sign of the order difference Suppose that the user clicks on the touch screen of the electronic device, and then determines the angular velocity of the electronic device at multiple consecutive moments, and then determines the angular velocity of the electronic device at multiple consecutive moments according to the angular velocity of the electronic device at multiple consecutive moments. The sign of the order difference.
  • the signs of the first-order difference of the angular velocity of the electronic device at multiple consecutive times are five consecutive negative first-order differences, nine consecutive positive first-order differences, and eight consecutive negative first-order differences.
  • the electronic device in a scenario, can be placed horizontally on the desktop, and the touch screen of the electronic device is facing upwards. If someone knocks on the table or other machines vibrate and cause the table to vibrate, then the electronic device is vibrated.
  • the force of the electronic device is often transmitted to the electronic device through the back of the electronic device, which will cause the electronic device to rotate around the X axis or the Y axis. Therefore, the angular velocity of the electronic device rotating around the X axis or the Y axis is greater than zero.
  • the component force of the acting force along the direction parallel to the desktop is almost zero, so the angular velocity of the electronic device rotating around the Z axis is almost zero.
  • the angular velocity of the electronic device rotating around the Z axis will increase significantly.
  • the angular velocity of the electronic device rotating around the Z axis is usually Will be greater than 0.1 degrees per second (dps). If you click on the front of the touch screen, although the force of the finger is mainly concentrated in the direction perpendicular to the touch screen, the component force in the direction parallel to the touch screen is not zero. Therefore, it will also make the electronic device around the Z axis The angular velocity of rotation increases significantly. After a large number of experimental statistics, the angular velocity of the rotation of the electronic device around the Z axis is usually greater than 0.1dps.
  • the acceleration of the electronic device will change when the finger clicks on the touch screen, and the alternation of the sign of the first-order difference of the angular velocity of the electronic device at multiple consecutive times is relatively slow.
  • the vibration of the electronic device caused by the vibration of the table or other machinery will cause the acceleration of the electronic device to change, but the sign of the first-order difference of the angular velocity of the electronic device at multiple consecutive moments alternates faster.
  • the determination of whether the touch input input by the user is a touch of a click on the touch screen can be improved.
  • the accuracy of input in other words, can improve the accuracy of determining whether a touch screen click event has occurred.
  • responding to the touch input includes: responding to the touch input when the continuous touch duration is within the first preset duration interval.
  • the first preset duration interval includes 10ms-20ms and so on.
  • the process of obtaining the duration of continuous touch when the touch screen of the electronic device is touched includes: step 11 and step 12.
  • Step 11 Obtain the first-order difference of the acceleration of the electronic device at at least one fourth historical moment, where the fourth historical moment is located before the time when the electronic device receives the touch input.
  • the fourth historical moment when the fourth historical moment is one, the fourth historical moment may be located before the moment when the electronic device receives the touch input and is adjacent to the moment when the electronic device receives the touch input.
  • the fourth historical moment may be located before the moment when the electronic device receives the touch input, and the multiple fourth historical moments are consecutive moments, and among the multiple fourth historical moments The latest fourth historical moment is adjacent to the moment when the electronic device receives the touch input.
  • the fourth historical time may be the first to third time before the time of the touch input received by the electronic device, and the time of the touch input received from the electronic device.
  • Step 12 Acquire the duration of continuous touch when the touch screen of the electronic device is touched according to the first-order difference of the acceleration at the fourth historical moment and the first-order difference of the acceleration at the fifth historical moment.
  • the fifth historical time is located before the time when the electronic device receives the touch input and is at least one time between the time when the electronic device receives the touch input.
  • the ratio between the first-order difference of acceleration at the fourth historical moment and the first-order difference of acceleration at the fifth historical moment is the number of fourth historical moments in the first preset ratio interval. Then, the continuous touch duration is obtained according to the number of the fourth historical moments and the distance between two adjacent moments.
  • the distance between two adjacent moments is the sampling period.
  • the sampling frequency is 200 Hz
  • the sampling period is 5 ms.
  • the number of fourth historical moments and the distance between two adjacent moments can be calculated.
  • the electronic device determines that a touch screen click event has occurred, that is, the touch input input by the user is the touch input of clicking the touch screen, so that the touch input can be responded to.
  • the touch screen when the user clicks on the touch screen of the electronic device, the touch screen will produce a slight deformation, and in general, the user’s finger touches the touch screen of the electronic device for a short duration during the user’s click on the touch screen, for example, A large number of experiments can count that the touch duration is often between 10ms and 20ms. Of course, the touch duration can also vary according to the actual situation. This application limits this, because the touch duration is relatively short, so that the ground touch screen will deform The duration is relatively short. After the click is over, the user's finger will leave the touch screen, and the touch screen will automatically return to its original shape from the deformed state.
  • the user’s finger will touch the edge of the touch screen of the electronic device.
  • the user’s finger touches the touch screen of the electronic device for a long time, so that the deformation of the ground touch screen lasts for a long time.
  • the touch duration is often greater than 20ms, etc., and the user’s finger has been touching the edge of the touch screen when holding the touch screen to continuously put pressure on the touch screen so that the ground touch screen cannot change from a deformed state for a long time revert to original.
  • the accuracy of determining whether the touch input input by the user is the touch input of clicking the touch screen can be improved. , In other words, can improve the accuracy of determining whether a touch screen click event has occurred.
  • the first parameter includes the recovery time; when the first parameter satisfies the first preset condition, responding to the touch input includes: responding to the touch when the recovery time is in the second preset time interval. ⁇ input.
  • the process of acquiring the continuous recovery duration of the process of recovering the original shape after the touch screen of the electronic device is touched and deformed includes: step 21 and step 22.
  • Step 21 Obtain the first-order difference of the acceleration of the electronic device at at least one sixth historical moment, the sixth historical moment being located after the moment when the electronic device receives the touch input.
  • the sixth historical time and the first to the twentieth time after the time when the touch input is received from the electronic device and so on.
  • Step 22 According to the first-order difference of the acceleration at the sixth historical moment, the first-order difference of the acceleration when the electronic device receives the touch input, and the first-order difference of the acceleration at the fifth historical moment, it is obtained that the touch screen of the electronic device is touched.
  • the duration of the restoration process after the deformation is the first-order difference of the acceleration at the sixth historical moment.
  • the first-order difference of the acceleration at the sixth historical moment is different from the sign of the first-order difference of the acceleration when the electronic device receives the touch input and is the same as the first-order difference of the acceleration at the fifth historical moment.
  • the ratio of the order difference is located at the number of sixth historical moments in the second preset ratio interval, and then the continuous recovery time is obtained according to the distance between the number of sixth historical moments and two adjacent moments.
  • the distance between two moments is the sampling period.
  • the sampling frequency is 200 Hz
  • the sampling period is 5 ms.
  • the number of sixth historical moments and the distance between two adjacent moments can be calculated. Multiply the product to get the duration of continuous recovery.
  • the time when the electronic device receives the touch input may belong to the recovery time in the process of restoring the original shape after the touch screen is touched and deformed.
  • the duration of the continuous recovery time can be regarded as the duration. Recovery time.
  • the touch screen when the user clicks on the touch screen of the electronic device, the touch screen will produce a slight deformation, and in general, the user’s finger touches the touch screen of the electronic device for a short duration during the user’s click on the touch screen, for example, A large number of experiments can count that the duration is often between 10ms and 20ms. Of course, the duration of touch can also vary according to actual conditions. This application limits this so that the deformation duration of the ground touch screen is shorter. After the click is over , The user’s finger will leave the touch screen, and the touch screen will automatically return to its original shape from the deformed state.
  • the user’s finger will touch the edge of the touch screen. Normally, the user’s finger touches the touch screen of the electronic device for a long time, so that the deformation of the ground touch screen lasts for a long time. For example, after a large number of experiments, it can be calculated that the touch duration is often greater than 20ms, etc. The user's finger holding the touch screen has been touching the edge of the touch screen, so that the ground touch screen cannot be restored from the deformed state for a long time.
  • the touch screen is subjected to the external force exerted by the user, which causes the touch screen to deform faster.
  • the user's finger will leave the touch screen, which in turn causes the deformation of the touch screen to last for a shorter period of time.
  • the touch screen is not subject to external pressure from the user, which makes the recovery of the touch screen slower, which in turn makes the recovery of the touch screen from the deformed state last longer, for example, after A large number of experiments can calculate that the recovery duration is often greater than 30ms, for example, between 30ms and 60ms.
  • the user’s finger will always touch the edge of the touch screen for a short period of time, that is, the user’s finger has been pressing the touch screen for a short period of time, so that the touch screen cannot be restored from the deformed state in a short time. , That is, there is no recovery time in a short time, and there is no continuous recovery time in a short time.
  • the accuracy of determining whether the touch input input by the user is the touch input of clicking the touch screen can be improved. In other words, the accuracy of determining whether a touch screen click event has occurred can be improved.
  • the processing device shown in the embodiment of the present application is shown in FIG. 4.
  • the processing device 40 is applied to electronic equipment, and the processing device 40 may specifically include the following modules:
  • the obtaining module 11 is configured to obtain the first parameter of the electronic device and the touch duration corresponding to the touch input when the user's touch input is obtained;
  • the response module 12 is configured to respond to the touch input when the first parameter satisfies a first preset condition, and/or the touch duration satisfies a second preset condition, wherein the first parameter
  • the parameters include the acceleration of the electronic device, the angular velocity of the electronic device, and the recovery time of the electronic device from deformation due to the pressure of the touch input.
  • the first parameter includes the acceleration of the electronic device
  • the response module includes:
  • An acquiring unit for acquiring the first acceleration at the first moment and the second acceleration at the second moment
  • a first response unit configured to respond to the touch input when the target index is greater than a preset value, wherein the first time is before the second time;
  • the second response unit is configured to respond to the touch input when the change trend of the value of the acceleration of the electronic device in the direction perpendicular to the touch screen of the electronic device first decreases and then increases.
  • the first parameter includes the angular velocity of the electronic device
  • the response module includes:
  • the third response unit is configured to respond to the touch input when the alternating period of the positive and negative values of the first-order difference of the angular velocity is greater than the preset period.
  • the response module includes:
  • the fourth response unit is configured to respond to the touch input when the continuous touch duration is within the first preset duration interval.
  • the first parameter includes the recovery duration
  • the response module includes:
  • the fifth response unit is configured to respond to the touch input when the recovery duration is within a second preset duration interval.
  • the first parameter of the electronic device and the touch duration corresponding to the touch input are acquired; the first parameter includes: the acceleration of the electronic device, the angular velocity of the electronic device, and the electronic device due to touch The recovery time of the deformation caused by the input pressure.
  • the first parameter satisfies the first preset condition, and/or the touch duration satisfies the second preset condition, respond to the touch input.
  • This application combines the acceleration of the electronic device, the angular velocity of the electronic device, the recovery time of the deformation of the electronic device due to the pressure of the touch input, and the touch time corresponding to the touch input to determine whether the touch input is the input of clicking the touch screen, which can improve The accuracy of the determined result.
  • FIG. 5 is a schematic diagram of the hardware structure of an electronic device implementing each embodiment of the present application.
  • the electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and Power supply 511 and other components.
  • a radio frequency unit 501 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and Power supply 511 and other components.
  • Those skilled in the art can understand that the structure of the electronic device shown in FIG. 5 does not constitute a limitation on the electronic device.
  • the electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers
  • the processor 510 is configured to obtain a first parameter of the electronic device and a touch duration corresponding to the touch input when the user's touch input is obtained; when the first parameter satisfies a first preset condition , And/or, in the case that the touch duration satisfies a second preset condition, respond to the touch input, wherein the first parameter includes: the acceleration of the electronic device, the angular velocity of the electronic device, and the The recovery time of the electronic device deformed due to the pressure of the touch input.
  • This application combines the acceleration of the electronic device, the angular velocity of the electronic device, the recovery time of the deformation of the electronic device due to the pressure of the touch input, and the touch time corresponding to the touch input to determine whether the touch input is the input of clicking the touch screen, which can improve The accuracy of the determined result.
  • the radio frequency unit 501 can be used for receiving and sending signals during information transmission or communication. Specifically, the downlink data from the base station is received and processed by the processor 510; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 503 can convert the audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output it as sound. Moreover, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic device 500 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 504 is used to receive audio or video signals.
  • the input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042.
  • the graphics processor 5041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 506.
  • the image frame processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or sent via the radio frequency unit 501 or the network module 502.
  • the microphone 5042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 501 for output in the case of a telephone call mode.
  • the electronic device 500 further includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 5061 and the display panel 5061 when the electronic device 500 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 505 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 506 is used to display information input by the user or information provided to the user.
  • the display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 507 may be used to receive input numbers or content information, and generate key signal inputs related to user settings and function control of the electronic device.
  • the user input unit 507 includes a touch panel 5071 and other input devices 5072.
  • the touch panel 5071 also known as a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 5071 or near the touch panel 5071. operate).
  • the touch panel 5071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 510, the command sent by the processor 510 is received and executed.
  • the touch panel 5071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 507 may also include other input devices 5072.
  • other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 5071 can be overlaid on the display panel 5061.
  • the touch panel 5071 detects a touch operation on or near it, it is transmitted to the processor 510 to determine the type of touch event, and then the processor 510 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 5061.
  • the touch panel 5071 and the display panel 5061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 508 is an interface for connecting an external device and the electronic device 500.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 508 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 500 or can be used to connect the electronic device 500 to an external device. Transfer data between devices.
  • the memory 509 can be used to store software programs and various data.
  • the memory 509 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 509 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 510 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 509, and calls data stored in the memory 509 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 510.
  • the electronic device 500 may also include a power source 511 (such as a battery) for supplying power to various components.
  • a power source 511 such as a battery
  • the power source 511 may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
  • the electronic device 500 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present application further provides an electronic device, including a processor 510, a memory 509, a computer program stored on the memory 509 and running on the processor 510, when the computer program is executed by the processor 510.
  • an electronic device including a processor 510, a memory 509, a computer program stored on the memory 509 and running on the processor 510, when the computer program is executed by the processor 510.
  • An embodiment of the present application also provides an electronic device configured to perform each process of the foregoing processing method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • the embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored.
  • a computer program When the computer program is executed by a processor, each process of the above-mentioned processing method embodiment is realized, and the same technical effect can be achieved. To avoid repetition, I won’t repeat it here.
  • the computer-readable storage medium include non-transitory computer-readable storage media, such as read-only memory (Read-Only Memory, ROM for short), Random Access Memory (RAM for short), and magnetic CD or CD, etc.
  • the embodiments of the present application also provide a computer program product, which can be executed by a processor to implement the various processes of the foregoing processing method embodiments, and can achieve the same technical effect. To avoid repetition, details are not described herein again.
  • Such a processor can be, but is not limited to, a general-purpose processor, a dedicated processor, a special application processor, or a field programmable logic circuit. It can also be understood that each block in the block diagram and/or flowchart and the combination of the blocks in the block diagram and/or flowchart can also be implemented by dedicated hardware that performs specified functions or actions, or can be implemented by dedicated hardware and A combination of computer instructions.
  • the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present application.
  • a terminal which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A processing method and apparatus. Said method comprises: upon acquiring a touch input of a user, acquiring a first parameter of an electronic device and a touch duration corresponding to the touch input (S101), wherein the first parameter comprises: the acceleration of the electronic device, the angular velocity of the electronic device, and a recovery duration of deformation of the electronic device due to the pressure by the touch input; and in the case where the first parameter satisfies a first preset condition and/or the touch duration satisfies a second preset condition, responding to the touch input (S102).

Description

处理方法及装置Processing method and device
相关申请的交叉引用Cross-references to related applications
本申请主张在2020年03月09日在中国提交的中国专利申请号202010159091.9的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 202010159091.9 filed in China on March 9, 2020, the entire content of which is incorporated herein by reference.
技术领域Technical field
本申请涉及计算机技术领域,特别是涉及一种处理方法及装置。This application relates to the field of computer technology, in particular to a processing method and device.
背景技术Background technique
触屏操控是目前手机中常用的一种操控方式,用户通过点击手机的触摸屏以实现操控手机。Touch screen control is currently a commonly used control method in mobile phones. Users can control the mobile phone by tapping the touch screen of the mobile phone.
当手机的触摸屏被点击时,点击动作可以使得手机震动,进而导致手机的加速度发生变化,可以测量手机的加速度。其中,点击触摸屏的力度与手机的加速度成正比。当点击力度达到一定力度时,由点击动作引发的手机的加速度会达到特定的数值,从而可以确定对触摸屏发生了点击动作。When the touch screen of the mobile phone is clicked, the click action can cause the mobile phone to vibrate, which in turn causes the acceleration of the mobile phone to change, and the acceleration of the mobile phone can be measured. Among them, the force of clicking on the touch screen is directly proportional to the acceleration of the mobile phone. When the tapping force reaches a certain strength, the acceleration of the mobile phone caused by the tapping action will reach a specific value, so that it can be determined that the tapping action has occurred on the touch screen.
然而,发明人发现,手机在晃动或其他非点击的情况下也会导致手机的加速度达到特定的数值,因此,根据手机的加速度来确定是否发生点击事件容易出现误判情况。However, the inventor found that shaking or other non-clicking conditions of the mobile phone will also cause the acceleration of the mobile phone to reach a specific value. Therefore, determining whether a click event occurs according to the acceleration of the mobile phone is prone to misjudgment.
发明内容Summary of the invention
为了降低出现误判情况的可能性,本申请示出了一种处理方法及装置。In order to reduce the possibility of misjudgment, this application shows a processing method and device.
第一方面,本申请示出了一种处理方法,应用于电子设备,所述方法包括:In the first aspect, this application shows a processing method applied to an electronic device, and the method includes:
在获取到用户的触控输入的情况下,获取所述电子设备的第一参数及 所述触控输入对应的触摸时长;In the case of acquiring the user's touch input, acquiring the first parameter of the electronic device and the touch duration corresponding to the touch input;
在所述第一参数满足第一预设条件,和/或,所述触摸时长满足第二预设条件的情况下,响应所述触控输入,其中,所述第一参数包括:所述电子设备的加速度、所述电子设备的角速度及所述电子设备因所述触控输入的压力而发生形变的恢复时长。In the case that the first parameter satisfies a first preset condition, and/or the touch duration satisfies a second preset condition, respond to the touch input, wherein the first parameter includes: the electronic The acceleration of the device, the angular velocity of the electronic device, and the recovery time of the electronic device from deformation due to the pressure of the touch input.
在一个可选的实现方式中,所述第一参数包括所述电子设备的加速度;In an optional implementation manner, the first parameter includes the acceleration of the electronic device;
在所述第一参数满足第一预设条件的情况下,响应所述触控输入,包括:When the first parameter satisfies a first preset condition, responding to the touch input includes:
获取第一时刻的第一加速度与第二时刻的第二加速度;Acquiring the first acceleration at the first moment and the second acceleration at the second moment;
基于所述第一加速度的一阶差分与第二加速度的一阶差分构造目标指数;Constructing a target index based on the first-order difference of the first acceleration and the first-order difference of the second acceleration;
在所述目标指数大于预设值的情况下,响应所述触控输入,其中,所述第一时刻在所述第二时刻之前;Responding to the touch input when the target index is greater than a preset value, wherein the first moment is before the second moment;
和/或,and / or,
在所述电子设备的加速度在垂直于所述电子设备的触摸屏的方向上的数值的变化趋势为先降低再升高的情况下,响应所述触控输入。In the case where the change trend of the numerical value of the acceleration of the electronic device in the direction perpendicular to the touch screen of the electronic device is firstly decreasing and then increasing, responding to the touch input.
在一个可选的实现方式中,所述第一参数包括所述电子设备的角速度;In an optional implementation manner, the first parameter includes the angular velocity of the electronic device;
在所述第一参数满足第一预设条件的情况下,响应所述触控输入,包括:When the first parameter satisfies a first preset condition, responding to the touch input includes:
在所述角速度的一阶差分的正负值交替周期大于预设周期的情况下,响应所述触控输入。In the case where the alternating period of the positive and negative values of the first-order difference of the angular velocity is greater than the preset period, responding to the touch input.
在一个可选的实现方式中,在所述触摸时长满足第二预设条件的情况下,响应所述触控输入,包括:In an optional implementation manner, in the case that the touch duration meets a second preset condition, responding to the touch input includes:
在所述持续触摸时长位于第一预设时长区间的情况下,响应所述触控输入。In the case that the continuous touch duration is within the first preset duration interval, responding to the touch input.
在一个可选的实现方式中,所述第一参数包括所述恢复时长;In an optional implementation manner, the first parameter includes the recovery duration;
在所述第一参数满足第一预设条件的情况下,响应所述触控输入,包 括:When the first parameter satisfies the first preset condition, responding to the touch input includes:
在所述恢复时长位于第二预设时长区间的情况下,响应所述触控输入。In a case where the recovery time period is within the second preset time period, responding to the touch input.
第二方面,本申请示出了一种处理装置,应用于电子设备,所述装置包括:In the second aspect, the present application shows a processing device applied to electronic equipment, and the device includes:
获取模块,用于在获取到用户的触控输入的情况下,获取所述电子设备的第一参数及所述触控输入对应的触摸时长;An acquiring module, configured to acquire the first parameter of the electronic device and the touch duration corresponding to the touch input when the user's touch input is acquired;
响应模块,用于在所述第一参数满足第一预设条件,和/或,所述触摸时长满足第二预设条件的情况下,响应所述触控输入,其中,所述第一参数包括:所述电子设备的加速度、所述电子设备的角速度及所述电子设备因所述触控输入的压力而发生形变的恢复时长。The response module is configured to respond to the touch input when the first parameter satisfies a first preset condition, and/or the touch duration satisfies a second preset condition, wherein the first parameter It includes: the acceleration of the electronic device, the angular velocity of the electronic device, and the recovery time of the electronic device from deformation due to the pressure of the touch input.
在一个可选的实现方式中,所述第一参数包括所述电子设备的加速度;In an optional implementation manner, the first parameter includes the acceleration of the electronic device;
所述响应模块包括:The response module includes:
获取单元,用于获取第一时刻的第一加速度与第二时刻的第二加速度;An acquiring unit for acquiring the first acceleration at the first moment and the second acceleration at the second moment;
构造单元,用于基于所述第一加速度的一阶差分与第二加速度的一阶差分构造目标指数;A construction unit for constructing a target index based on the first-order difference of the first acceleration and the first-order difference of the second acceleration;
第一响应单元,用于在所述目标指数大于预设值的情况下,响应所述触控输入,其中,所述第一时刻在所述第二时刻之前;A first response unit, configured to respond to the touch input when the target index is greater than a preset value, wherein the first time is before the second time;
和/或,and / or,
第二响应单元,用于在所述电子设备的加速度在垂直于所述电子设备的触摸屏的方向上的数值的变化趋势为先降低再升高的情况下,响应所述触控输入。The second response unit is configured to respond to the touch input when the change trend of the value of the acceleration of the electronic device in the direction perpendicular to the touch screen of the electronic device first decreases and then increases.
在一个可选的实现方式中,所述第一参数包括所述电子设备的角速度;In an optional implementation manner, the first parameter includes the angular velocity of the electronic device;
所述响应模块包括:The response module includes:
第三响应单元,用于在所述角速度的一阶差分的正负值交替周期大于预设周期的情况下,响应所述触控输入。The third response unit is configured to respond to the touch input when the alternating period of the positive and negative values of the first-order difference of the angular velocity is greater than the preset period.
在一个可选的实现方式中,所述响应模块包括:In an optional implementation manner, the response module includes:
第四响应单元,用于在所述持续触摸时长位于第一预设时长区间的情况下,响应所述触控输入。The fourth response unit is configured to respond to the touch input when the continuous touch duration is within the first preset duration interval.
在一个可选的实现方式中,所述第一参数包括所述恢复时长;In an optional implementation manner, the first parameter includes the recovery duration;
所述响应模块包括:The response module includes:
第五响应单元,用于在所述恢复时长位于第二预设时长区间的情况下,响应所述触控输入。The fifth response unit is configured to respond to the touch input when the recovery duration is within a second preset duration interval.
第三方面,本申请示出了一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第一方面所述的处理方法的步骤。In the third aspect, this application shows an electronic device including a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, The steps of the processing method as described in the first aspect are implemented.
第四方面,本申请示出了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的处理方法的步骤。In the fourth aspect, the present application shows a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the processing method as described in the first aspect are implemented .
在获取到用户的触控输入的情况下,获取电子设备的第一参数及触控输入对应的触摸时长,其中,第一参数包括:电子设备的加速度、电子设备的角速度或电子设备因触控输入的压力而发生形变的恢复时长。在第一参数满足第一预设条件,和/或,触摸时长满足第二预设条件的情况下,响应触控输入。本申请通过结合电子设备的加速度、电子设备的角速度、电子设备因触控输入的压力而发生形变的恢复时长以及触控输入对应的触摸时长来确定触控输入是否为点击触摸屏的输入,可以提高确定出的结果的准确率。When the user's touch input is acquired, the first parameter of the electronic device and the touch duration corresponding to the touch input are acquired, where the first parameter includes: the acceleration of the electronic device, the angular velocity of the electronic device, or the electronic device due to touch The recovery time of the deformation caused by the input pressure. When the first parameter satisfies the first preset condition, and/or the touch duration satisfies the second preset condition, respond to the touch input. This application combines the acceleration of the electronic device, the angular velocity of the electronic device, the recovery time of the deformation of the electronic device due to the pressure of the touch input, and the touch duration corresponding to the touch input to determine whether the touch input is the input of clicking the touch screen, which can improve The accuracy of the determined result.
附图说明Description of the drawings
图1是本申请实施例示出的处理方法的一种步骤流程图。Fig. 1 is a flow chart of a processing method shown in an embodiment of the present application.
图2是本申请实施例示出的电子设备的三维坐标示意图。.Fig. 2 is a schematic diagram of three-dimensional coordinates of an electronic device shown in an embodiment of the present application. .
图3是本申请实施例示出的处理方法的另一种步骤流程图。Fig. 3 is a flowchart of another step of the processing method shown in the embodiment of the present application.
图4是本申请实施例示出的处理装置的结构框图。Fig. 4 is a structural block diagram of a processing device shown in an embodiment of the present application.
图5是本申请实施例示出的电子设备的硬件结构示意图。FIG. 5 is a schematic diagram of the hardware structure of an electronic device shown in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本申请实施例示出的处理方法如图1所示。该方法应用于电子设备中,该方法包括:步骤S101和步骤S102。The processing method shown in the embodiment of the present application is shown in FIG. 1. The method is applied to an electronic device, and the method includes: step S101 and step S102.
在步骤S101中,在获取到用户的触控输入的情况下,获取电子设备的第一参数及触控输入对应的触摸时长。In step S101, when the user's touch input is acquired, the first parameter of the electronic device and the touch duration corresponding to the touch input are acquired.
其中,第一参数包括:电子设备的加速度、电子设备的角速度及电子设备因触控输入的压力而发生形变的恢复时长。Among them, the first parameter includes: the acceleration of the electronic device, the angular velocity of the electronic device, and the recovery time of the electronic device from deformation due to the pressure of the touch input.
在本申请中,电子设备的示例包括手机以及平板电脑等,电子设备包括触摸屏,用户可以通过点击触摸屏来控制电子设备。In this application, examples of electronic devices include mobile phones and tablet computers, etc. The electronic devices include touch screens, and the user can control the electronic devices by clicking on the touch screen.
电子设备的触摸屏包括曲面屏或者瀑布屏等,这样,电子设备侧边有部分区域也是触摸屏,用户手握电子设备的时候,手指有时候会触摸到电子设备的触摸屏的边缘。但此时用户仅仅是手握电子设备而已,并不是需要通过点击触摸屏来控制电子设备,因此,此时就需要检测用户是正常手握电子设备还是用户是向电子设备输入了点击操作以产生点击事件。The touch screen of an electronic device includes a curved screen or a waterfall screen. In this way, a part of the side of the electronic device is also a touch screen. When the user holds the electronic device, the finger sometimes touches the edge of the touch screen of the electronic device. However, at this time, the user only holds the electronic device, and does not need to control the electronic device by tapping the touch screen. Therefore, at this time, it is necessary to detect whether the user is holding the electronic device normally or whether the user inputs a click operation to the electronic device to generate a click event.
如果是用户正常手握电子设备,则需要进行边缘抑制,这样电子设备就不会因用户正常手握电子设备而误判触屏产生点击事件,进而可以解决触摸屏边缘的误触问题。但是由此引发的副作用是在用户需要点击位于电子设备侧边的触摸屏边缘时,点击动作却被边缘抑制算法抑制,导致点击失效。If the user normally holds the electronic device, edge suppression is required, so that the electronic device will not misjudge that the touch screen generates a click event due to the user's normal holding of the electronic device, thereby solving the problem of false touches on the edge of the touch screen. However, the side effect caused by this is that when the user needs to click the edge of the touch screen located on the side of the electronic device, the click action is suppressed by the edge suppression algorithm, resulting in the click failure.
因此,本申请需要提高确定用户的触控输入是否为点击触摸屏的输入的准确率。Therefore, the present application needs to improve the accuracy of determining whether the user's touch input is the input of clicking on the touch screen.
在本申请中,电子设备中内置有加速度传感器,加速度的采样频率为200赫兹(Hz),也即,加速度传感器每间隔5毫秒(ms)采集一次电子设备的加速度,当然,采样频率也可以为其他频率,在此不做详述,基于 加速度传感器可以检测到电子设备在每一个时刻时的加速度。In this application, an acceleration sensor is built into the electronic device, and the sampling frequency of acceleration is 200 Hertz (Hz), that is, the acceleration sensor collects the acceleration of the electronic device every 5 milliseconds (ms). Of course, the sampling frequency can also be Other frequencies, not detailed here, based on the acceleration sensor can detect the acceleration of the electronic device at each moment.
电子设备中的加速度通常为三轴传感器,如图2所示,事先可以在电子设备中绘制一个三维坐标系。The acceleration in the electronic device is usually a three-axis sensor, as shown in Figure 2, a three-dimensional coordinate system can be drawn in the electronic device in advance.
加速度传感器输出的数值代表的是电子设备受到的外力除以电子设备质量,得到一中间加速度,然后计算中间加速度与去地球重力加速度g之间的矢量差,从而得到电子设备在三个坐标轴上的加速度分量的矢量和。The value output by the acceleration sensor represents the external force received by the electronic device divided by the mass of the electronic device to obtain an intermediate acceleration, and then calculate the vector difference between the intermediate acceleration and the earth's gravitational acceleration g to obtain the electronic device on the three coordinate axes The vector sum of the acceleration components.
在另一个实施例中,本申请中的电子设备的加速度也可以指电子设备在Z轴上的加速度等。In another embodiment, the acceleration of the electronic device in the present application may also refer to the acceleration of the electronic device on the Z axis.
在步骤S102中,在第一参数满足第一预设条件,和/或,触摸时长满足第二预设条件的情况下,响应触控输入。In step S102, when the first parameter satisfies the first preset condition, and/or the touch duration satisfies the second preset condition, the touch input is responded to.
本申请的第一预设条件以及第二预设条件的解释可以参见之后的实施例,在此不做详述。For the explanation of the first preset condition and the second preset condition of the present application, please refer to the following embodiments, which will not be described in detail here.
在获取到用户的触控输入的情况下,获取电子设备的第一参数及触控输入对应的触摸时长,其中,第一参数包括:电子设备的加速度、电子设备的角速度及电子设备因触控输入的压力而发生形变的恢复时长。在第一参数满足第一预设条件,和/或,触摸时长满足第二预设条件的情况下,响应触控输入。本申请通过结合电子设备的加速度、电子设备的角速度、电子设备因触控输入的压力而发生形变的恢复时长以及触控输入对应的触摸时长来确定触控输入是否为点击触摸屏的输入,可以提高确定出的结果的准确率。When the user's touch input is acquired, the first parameter of the electronic device and the touch duration corresponding to the touch input are acquired, where the first parameter includes: the acceleration of the electronic device, the angular velocity of the electronic device, and the electronic device due to touch The recovery time of the deformation caused by the input pressure. When the first parameter satisfies the first preset condition, and/or the touch duration satisfies the second preset condition, respond to the touch input. This application combines the acceleration of the electronic device, the angular velocity of the electronic device, the recovery time of the deformation of the electronic device due to the pressure of the touch input, and the touch time corresponding to the touch input to determine whether the touch input is the input of clicking the touch screen, which can improve The accuracy of the determined result.
在本申请一个实施例中,第一参数包括电子设备的加速度;如此,在第一参数满足第一预设条件的情况下,响应触控输入,包括:步骤S201、步骤S202和步骤S203,如图3所示。In an embodiment of the present application, the first parameter includes the acceleration of the electronic device; in this way, when the first parameter satisfies the first preset condition, responding to the touch input includes: step S201, step S202, and step S203, such as Shown in Figure 3.
在步骤S201中,获取第一时刻的第一加速度与第二时刻的第二加速度。In step S201, the first acceleration at the first time and the second acceleration at the second time are acquired.
其中,第一时刻在第二时刻之前。第一时刻可以是从第二时刻往前第4个至第14个时刻等。Among them, the first moment is before the second moment. The first time can be from the fourth to the fourteenth time from the second time, and so on.
在步骤S202中,基于第一加速度的一阶差分与第二加速度的一阶差分构造目标指数。In step S202, a target index is constructed based on the first-order difference of the first acceleration and the first-order difference of the second acceleration.
其中,获取第一加速度的一阶差分的过程,包括:计算电子设备在第一时刻时的加速度与电子设备在第一历史时刻时的加速度之间的差值,并作为第一加速度的一阶差分,其中,第一历史时刻与第一时刻相邻且位于第一时刻之前。Wherein, the process of obtaining the first-order difference of the first acceleration includes: calculating the difference between the acceleration of the electronic device at the first moment and the acceleration of the electronic device at the first historical moment, as the first-order difference of the first acceleration Difference, where the first historical moment is adjacent to and before the first moment.
其中,获取第二加速度的一阶差分的过程,包括:计算电子设备在该第二时刻时的加速度与电子设备在第二历史时刻时的加速度之间的差值,并作为第二加速度的一阶差分,其中,第二历史时刻与第二时刻相邻且位于第二时刻之前。Wherein, the process of obtaining the first-order difference of the second acceleration includes: calculating the difference between the acceleration of the electronic device at the second moment and the acceleration of the electronic device at the second historical moment, and taking it as a first-order difference of the second acceleration. Order difference, where the second historical moment is adjacent to and before the second moment.
在本申请中,在第一时刻为一个的情况下,则第一加速度为一个,也即,第一加速度的一阶差分为一个,如此,可以计算第二加速度的一阶差分与第一加速度的一阶差分之间的比值,得到震动突变指数,可以将其作为目标指数。In this application, when there is one at the first moment, then the first acceleration is one, that is, the first-order difference of the first acceleration is one. In this way, the first-order difference of the second acceleration and the first acceleration can be calculated The ratio between the first-order differences of, obtains the shock mutation index, which can be used as the target index.
或者,or,
在第一时刻为多个的情况下,则第一加速度为多个,也即,第一加速度的一阶差分为多个,如此,可以计算多个第一加速度的一阶差分之间的平均值,计算第二加速度的一阶差分与该平均值之间的比值,得到震动突变指数,可以将其作为目标指数。In the case of multiple first moments, there are multiple first accelerations, that is, there are multiple first-order differences of the first accelerations. In this way, the average of the first-order differences of multiple first accelerations can be calculated. Calculate the ratio between the first-order difference of the second acceleration and the average value to obtain the shock mutation index, which can be used as the target index.
在步骤S203中,在目标指数大于预设值的情况下,响应触控输入。In step S203, when the target index is greater than a preset value, respond to the touch input.
在目标指数大于预设值的情况下,可以确定发生了触摸屏点击事件,也即,用户输入的触控输入为点击触摸屏的触控输入,从而可以响应触控输入。In the case that the target index is greater than the preset value, it can be determined that a touch screen click event has occurred, that is, the touch input input by the user is the touch input of clicking the touch screen, so that the touch input can be responded to.
在本申请中,通常情况下,在某一时刻发生触摸屏的点击事件时,短时间内会出现比较剧烈的冲激,因此,该时刻的目标指数往往较大,根据大量数据实验可以得出,该时刻的目标指数往往大于预设值,预设值包括6、6.3以及6.5等。因此,在电子设备的目标指数大于预设值情况下,往往说明电子设备可能发生了触摸屏点击事件。其中,目标指数包括电子设备的震动突变指数等。In this application, under normal circumstances, when a touch screen click event occurs at a certain moment, a relatively violent impulse will occur in a short period of time. Therefore, the target index at that moment is often larger, which can be derived from a large amount of data experiments. The target index at this moment is often greater than the preset value, and the preset values include 6, 6.3, and 6.5. Therefore, when the target index of the electronic device is greater than the preset value, it often indicates that the electronic device may have a touch screen click event. Among them, the target index includes the shock mutation index of electronic equipment and so on.
如此,基于上述原理,在本申请实施例中,通过构造电子设备的目标指数,然后通过比较目标指数与预设值的大小关系,可以提高确定用户输 入的触控输入是否为点击触摸屏的触控输入的准确率,或者说,可以提高确定是否发生了触摸屏点击事件的准确率。In this way, based on the foregoing principle, in the embodiment of the present application, by constructing the target index of the electronic device, and then comparing the magnitude relationship between the target index and the preset value, it is possible to improve the determination of whether the touch input input by the user is the touch of clicking the touch screen. The accuracy of input, in other words, can improve the accuracy of determining whether a touch screen click event has occurred.
在电子设备水平放置在桌面上且电子设备的触摸屏朝上的情况下,电子设备在X轴、Y轴以及Z轴上的加速度分别为0,0,9.8。When the electronic device is placed horizontally on the desktop and the touch screen of the electronic device faces upward, the acceleration of the electronic device on the X-axis, Y-axis, and Z-axis are 0, 0, and 9.8, respectively.
如果用户是站立或者坐着手持电子设备,则电子设备的触摸屏朝上或者朝斜上方,此时电子设备在Z轴上的加速度位于+6至+9.8之间,此时如果用户点击触摸屏,则点击的方向与Z轴正方向的夹角大于90度,所以电子设备在Z轴上的加速度先降低然后再升高,例如,先出现波谷然后紧接着再出现波峰。If the user is standing or sitting holding the electronic device, the touch screen of the electronic device is facing upward or obliquely upward, and the acceleration of the electronic device on the Z axis is between +6 and +9.8. At this time, if the user clicks on the touch screen, The angle between the direction of the click and the positive direction of the Z axis is greater than 90 degrees, so the acceleration of the electronic device on the Z axis first decreases and then increases, for example, a wave trough appears first and then a wave crest appears immediately.
如果用户是仰卧着看手机,则电子设备的触摸屏朝下或者朝斜下方,此时如果用户点击触摸屏,点击的方向与Z轴正方向的夹角仍然是大于90度,所以电子设备在Z轴上的加速度仍然是先降低然后再升高,例如,先出现波谷然后紧接着再出现波峰。If the user is looking at the phone while lying on his back, the touch screen of the electronic device is facing down or diagonally downward. At this time, if the user clicks on the touch screen, the angle between the direction of the click and the positive direction of the Z axis is still greater than 90 degrees, so the electronic device is on the Z axis The acceleration on the upper surface still first decreases and then increases, for example, a trough appears first and then a crest appears immediately.
因此,基于上述原理,在本申请一个实施例中,第一参数包括电子设备的加速度;如此,在第一参数满足第一预设条件的情况下,响应触控输入,包括:在电子设备的加速度在垂直于电子设备的触摸屏的方向上的数值的变化趋势为先降低再升高的情况下,响应触控输入。Therefore, based on the foregoing principle, in an embodiment of the present application, the first parameter includes the acceleration of the electronic device; thus, in the case that the first parameter satisfies the first preset condition, responding to the touch input includes: In the case where the change trend of the value of the acceleration in the direction perpendicular to the touch screen of the electronic device is to first decrease and then increase, the touch input is responded to.
本申请中的变化趋势包括先降低然后再升高,以及,先升高然后再降低等。The changing trend in this application includes first decreasing and then increasing, and first increasing and then decreasing, etc.
在本申请中,可以基于加速度传感器来获取电子设备在接收到用户的触控输入之后的多个时刻的加速度。先降低再升高的趋势在波形上呈现先出现波谷然后出现波峰,在本申请中,在出现波谷之后立刻出现波峰就可以确定发生了触摸屏点击事件,也即,用户输入的触控输入为点击触摸屏的触控输入,从而可以响应触控输入。In this application, the acceleration of the electronic device at multiple moments after receiving the user's touch input may be acquired based on the acceleration sensor. The trend of first decreasing and then increasing appears on the waveform first, and then the crest appears. In this application, the crest appears immediately after the crest appears to confirm that a touch screen click event has occurred, that is, the touch input input by the user is a click The touch input of the touch screen can respond to the touch input.
在本申请另一实施例中,第一参数包括电子设备的角速度;如此,在第一参数满足第一预设条件,响应触控输入,包括:在角速度的一阶差分的正负值交替周期大于预设周期的情况下,响应触控输入。In another embodiment of the present application, the first parameter includes the angular velocity of the electronic device; in this way, when the first parameter satisfies the first preset condition, the response to the touch input includes: an alternating period of positive and negative values of the first-order difference of the angular velocity If it is greater than the preset period, respond to touch input.
其中,电子设备的角速度包括电子设备的触摸屏所在的平面旋转的角速度等。Among them, the angular velocity of the electronic device includes the angular velocity of the rotation of the plane on which the touch screen of the electronic device is located.
其中,可以通过设置在电子设备内部的陀螺仪来获取电子设备的触摸屏所在的平面旋转的角速度,当然,也可以通过方式来获取电子设备的角速度,本申请对此不加以限定。Wherein, the angular velocity of the plane where the touch screen of the electronic device is located can be obtained through a gyroscope provided inside the electronic device. Of course, the angular velocity of the electronic device can also be obtained in a manner, which is not limited in this application.
可以获取电子设备分别在多个第三历史时刻时的角速度一阶差分的正负值交替周期,第三历史时刻位于电子设备接收到触控输入时的时刻之后;例如,从电子设备接收到触控输入时的时刻往后第1个至第20个时刻等。It is possible to obtain the alternating periods of the positive and negative values of the first-order angular velocity difference of the electronic device at a plurality of third historical moments, which are located after the moment when the electronic device receives the touch input; for example, the touch input is received from the electronic device. The time of the control input is from the 1st to the 20th time later and so on.
例如,电子设备水平放置在桌子上,假设,敲桌子引起电子设备震动,之后确定电子设备在连续的多个时刻时的角速度,然后根据电子设备在连续的多个时刻时的角速度确定电子设备在连续的多个时刻时的角速度的一阶差分的正负号。For example, if the electronic device is placed horizontally on the table, it is assumed that knocking on the table causes the electronic device to vibrate, then the angular velocity of the electronic device at multiple consecutive moments is determined, and then the angular velocity of the electronic device at multiple consecutive moments is determined. The sign of the first-order difference in angular velocity at multiple consecutive times.
例如,电子设备在连续的多个时刻时的角速度的一阶差分的正负号分别为连续一个的负的一阶差分、连续二个的正的一阶差分、连续一个的负的一阶差分、连续二个的正的一阶差分、连续四个的负的一阶差分以及连续三个的正的一阶差分等,然后可以计算(1+2+1+2+4+3)/6=13/6=2.17,并作为正负值交替周期。For example, the signs of the first-order difference in angular velocity of an electronic device at multiple consecutive times are one consecutive negative first-order difference, two consecutive positive first-order differences, and one consecutive negative first-order difference. , Two consecutive positive first-order differences, four consecutive negative first-order differences, and three consecutive positive first-order differences, etc., and then you can calculate (1+2+1+2+4+3)/6 = 13/6 = 2.17, and is used as a positive and negative alternating period.
假设,用户点击电子设备的触摸屏,之后确定电子设备在连续的多个时刻时的角速度,然后根据电子设备在连续的多个时刻时的角速度确定电子设备在连续的多个时刻时的角速度的一阶差分的正负号。Suppose that the user clicks on the touch screen of the electronic device, and then determines the angular velocity of the electronic device at multiple consecutive moments, and then determines the angular velocity of the electronic device at multiple consecutive moments according to the angular velocity of the electronic device at multiple consecutive moments. The sign of the order difference.
例如,电子设备在连续的多个时刻时的角速度的一阶差分的正负号分别为连续五个的负的一阶差分、连续九个的正的一阶差分、连续八个的负的一阶差分、连续九个的正的一阶差分、连续六个的负的一阶差分以及连续六个的正的一阶差分等,然后可以计算(5+9+8+9+6+6)/6=43/6=7.17,并作为正负值交替周期。For example, the signs of the first-order difference of the angular velocity of the electronic device at multiple consecutive times are five consecutive negative first-order differences, nine consecutive positive first-order differences, and eight consecutive negative first-order differences. The first-order difference, nine consecutive positive first-order differences, six consecutive negative first-order differences, and six consecutive positive first-order differences, etc., can then be calculated (5+9+8+9+6+6) /6=43/6=7.17, and is used as a positive and negative alternating period.
在本申请中,在一种场景中,电子设备可以水平放置在桌面上,此时电子设备的触摸屏朝上,如果有人敲桌子或者其他机器震动导致桌子震动,继而引起电子设备震动时,则对电子设备的作用力往往是通过电子设备的背面传输至电子设备,此时会引起电子设备绕X轴或者Y轴旋转,因此,电子设备绕X轴或者Y轴旋转的角速度大于零。其次,作用力沿着平行于桌面方向的分力几乎为零,所以电子设备绕Z轴旋转的角速度几乎为零。In this application, in a scenario, the electronic device can be placed horizontally on the desktop, and the touch screen of the electronic device is facing upwards. If someone knocks on the table or other machines vibrate and cause the table to vibrate, then the electronic device is vibrated. The force of the electronic device is often transmitted to the electronic device through the back of the electronic device, which will cause the electronic device to rotate around the X axis or the Y axis. Therefore, the angular velocity of the electronic device rotating around the X axis or the Y axis is greater than zero. Secondly, the component force of the acting force along the direction parallel to the desktop is almost zero, so the angular velocity of the electronic device rotating around the Z axis is almost zero.
在用户使用手指点击触摸屏的情况下,如果点击的是触摸屏的侧边,则电子设备绕Z轴旋转的角速度会明显增加,例如,经过大量实验统计得出,电子设备绕Z轴旋转的角速度通常会大于0.1度每秒(dps)。如果点击的是触摸屏的正面,因为手指的作用力虽然主要集中在垂直于触摸屏的方向,但是在平行于触摸屏的方向上的分力也是不为零的,因此,也会使得电子设备绕Z轴旋转的角速度明显增加,经过大量实验统计得出,电子设备绕Z轴旋转的角速度通常会大于0.1dps。When the user taps the touch screen with a finger, if the side of the touch screen is clicked, the angular velocity of the electronic device rotating around the Z axis will increase significantly. For example, after a large number of experimental statistics, the angular velocity of the electronic device rotating around the Z axis is usually Will be greater than 0.1 degrees per second (dps). If you click on the front of the touch screen, although the force of the finger is mainly concentrated in the direction perpendicular to the touch screen, the component force in the direction parallel to the touch screen is not zero. Therefore, it will also make the electronic device around the Z axis The angular velocity of rotation increases significantly. After a large number of experimental statistics, the angular velocity of the rotation of the electronic device around the Z axis is usually greater than 0.1dps.
由于力和加速度是可以突变的,但是速度和角速度是不会突变的。因此,手指点击触摸屏会引起的电子设备的加速度发生变化,且电子设备在连续多个时刻时的角速度的一阶差分的正负号的交替比较慢。桌子震动或者其他机器震动引起电子设备震动会引起的电子设备的加速度发生变化,但电子设备在连续多个时刻时的角速度的一阶差分的正负号的交替比较快。Since the force and acceleration can be changed abruptly, the speed and angular velocity cannot be changed abruptly. Therefore, the acceleration of the electronic device will change when the finger clicks on the touch screen, and the alternation of the sign of the first-order difference of the angular velocity of the electronic device at multiple consecutive times is relatively slow. The vibration of the electronic device caused by the vibration of the table or other machinery will cause the acceleration of the electronic device to change, but the sign of the first-order difference of the angular velocity of the electronic device at multiple consecutive moments alternates faster.
如此,基于上述原理,在本申请实施例中,通过比较角速度的一阶差分的正负值交替周期与预设周期的大小关系,可以提高确定用户输入的触控输入是否为点击触摸屏的触控输入的准确率,或者说,可以提高确定是否发生了触摸屏点击事件的准确率。In this way, based on the above principle, in the embodiment of the present application, by comparing the positive and negative value alternating period of the first-order difference of angular velocity with the preset period, the determination of whether the touch input input by the user is a touch of a click on the touch screen can be improved. The accuracy of input, in other words, can improve the accuracy of determining whether a touch screen click event has occurred.
在本申请另一实施例中,在触摸时长满足第二预设条件的情况下,响应触控输入,包括:在持续触摸时长位于第一预设时长区间的情况下,响应触控输入。In another embodiment of the present application, when the touch duration meets the second preset condition, responding to the touch input includes: responding to the touch input when the continuous touch duration is within the first preset duration interval.
其中,第一预设时长区间包括10ms~20ms等。Wherein, the first preset duration interval includes 10ms-20ms and so on.
其中,获取电子设备的触摸屏被触摸的持续触摸时长的流程,包括:步骤11和步骤12。Wherein, the process of obtaining the duration of continuous touch when the touch screen of the electronic device is touched includes: step 11 and step 12.
步骤11、获取电子设备在至少一个第四历史时刻时的加速度的一阶差分,第四历史时刻位于电子设备接收到的触控输入时的时刻之前。Step 11: Obtain the first-order difference of the acceleration of the electronic device at at least one fourth historical moment, where the fourth historical moment is located before the time when the electronic device receives the touch input.
在本申请中,在第四历史时刻为一个时,第四历史时刻可以位于电子设备接收到的触控输入时的时刻之前且与电子设备接收到的触控输入时的时刻相邻。在第四历史时刻为多个时,第四历史时刻可以位于电子设备接收到的触控输入时的时刻之前,且多个第四历史时刻是连续的时刻,以及,多个第四历史时刻中最晚的第四历史时刻与电子设备接收到的触控输入时 的时刻相邻。In this application, when the fourth historical moment is one, the fourth historical moment may be located before the moment when the electronic device receives the touch input and is adjacent to the moment when the electronic device receives the touch input. When there are multiple fourth historical moments, the fourth historical moment may be located before the moment when the electronic device receives the touch input, and the multiple fourth historical moments are consecutive moments, and among the multiple fourth historical moments The latest fourth historical moment is adjacent to the moment when the electronic device receives the touch input.
例如,第四历史时刻可以为位于电子设备接收到的触控输入时的时刻之前,且从电子设备接收到的触控输入时的时刻往前第1个至第3个时刻等。For example, the fourth historical time may be the first to third time before the time of the touch input received by the electronic device, and the time of the touch input received from the electronic device.
步骤12、根据第四历史时刻时的加速度的一阶差分以及第五历史时刻时的加速度的一阶差分获取电子设备的触摸屏被触摸的持续触摸时长。Step 12: Acquire the duration of continuous touch when the touch screen of the electronic device is touched according to the first-order difference of the acceleration at the fourth historical moment and the first-order difference of the acceleration at the fifth historical moment.
第五历史时刻位于电子设备接收到的触控输入时的时刻之前、且与电子设备接收到的触控输入时的时刻之间间隔至少一个时刻。The fifth historical time is located before the time when the electronic device receives the touch input and is at least one time between the time when the electronic device receives the touch input.
在本申请中,可以确定第四历史时刻时的加速度的一阶差分与第五历史时刻时的加速度的一阶差分之间的比值位于第一预设比值区间中的第四历史时刻的数量,然后根据第四历史时刻的数量与相邻的两个时刻之间的距离获取持续触摸时长。In this application, it can be determined that the ratio between the first-order difference of acceleration at the fourth historical moment and the first-order difference of acceleration at the fifth historical moment is the number of fourth historical moments in the first preset ratio interval, Then, the continuous touch duration is obtained according to the number of the fourth historical moments and the distance between two adjacent moments.
其中,相邻的两个时刻之间的距离即为采样周期,例如,假设采样频率为200Hz,则采样周期为5ms,可以计算第四历史时刻的数量与相邻的两个时刻之间的距离之间的乘积,得到持续触摸时长。Among them, the distance between two adjacent moments is the sampling period. For example, assuming that the sampling frequency is 200 Hz, the sampling period is 5 ms. The number of fourth historical moments and the distance between two adjacent moments can be calculated. The product between, get the duration of continuous touch.
例如,在电子设备接收到的触控输入时往前的第1个至第3个时刻中,如果某个时刻的加速度的一阶差分的绝对值是第五历史时刻时的加速度的一阶差分的3倍到10倍,则确定发生了触摸屏点击事件,也即,用户输入的触控输入为点击触摸屏的触控输入,从而可以响应触控输入。For example, in the first to third moments before the touch input received by the electronic device, if the absolute value of the first-order difference of the acceleration at a certain moment is the first-order difference of the acceleration at the fifth historical moment 3 times to 10 times, it is determined that a touch screen click event has occurred, that is, the touch input input by the user is the touch input of clicking the touch screen, so that the touch input can be responded to.
在本申请中,在用户点击电子设备的触摸屏的过程中,触摸屏会产生微小形变,且通常情况下,用户点击触摸屏的过程中用户手指触摸电子设备的触摸屏的触摸持续时长较短,例如,经过大量实验可以统计出触摸持续时长往往在10ms~20ms之间等,当然,触摸持续时长根据实际情况也可以有变动,本申请对此加以限定,由于触摸持续时长较短,以使地触摸屏的形变持续时长较短,在点击结束之后,用户手指就会离开触摸屏,触摸屏从形变状态自动恢复原样。In this application, when the user clicks on the touch screen of the electronic device, the touch screen will produce a slight deformation, and in general, the user’s finger touches the touch screen of the electronic device for a short duration during the user’s click on the touch screen, for example, A large number of experiments can count that the touch duration is often between 10ms and 20ms. Of course, the touch duration can also vary according to the actual situation. This application limits this, because the touch duration is relatively short, so that the ground touch screen will deform The duration is relatively short. After the click is over, the user's finger will leave the touch screen, and the touch screen will automatically return to its original shape from the deformed state.
而用户如果是正常手握电子设备,则用户的手指会触摸电子设备的触摸屏的边缘,则通常情况下用户的手指触摸电子设备的触摸屏的触摸持续时长较长,以使地触摸屏的形变持续时长较长,例如,经过大量实验可以 统计出触摸持续时长往往大于20ms等,且在手握触摸屏时用户手指一直触摸着触摸屏的边缘,以持续给触摸屏压力,以使地触摸屏长时间无法从形变状态恢复原样。If the user is holding the electronic device normally, the user’s finger will touch the edge of the touch screen of the electronic device. Generally, the user’s finger touches the touch screen of the electronic device for a long time, so that the deformation of the ground touch screen lasts for a long time. Longer, for example, after a large number of experiments, it can be calculated that the touch duration is often greater than 20ms, etc., and the user’s finger has been touching the edge of the touch screen when holding the touch screen to continuously put pressure on the touch screen so that the ground touch screen cannot change from a deformed state for a long time revert to original.
因此,在持续触摸时长位于第一预设时长区间的情况下,往往说明电子设备在第一采样时刻可能发生了触摸屏点击事件。Therefore, when the continuous touch duration is within the first preset duration interval, it often indicates that the touch screen click event may have occurred in the electronic device at the first sampling moment.
如此,基于上述原理,在本申请实施例中,通过比较持续触摸时长与第一预设时长区间之间的关系,可以提高确定用户输入的触控输入是否为点击触摸屏的触控输入的准确率,或者说,可以提高确定是否发生了触摸屏点击事件的准确率。In this way, based on the foregoing principle, in the embodiment of the present application, by comparing the relationship between the continuous touch duration and the first preset duration interval, the accuracy of determining whether the touch input input by the user is the touch input of clicking the touch screen can be improved. , In other words, can improve the accuracy of determining whether a touch screen click event has occurred.
在本申请另一实施例中,第一参数包括恢复时长;在第一参数满足第一预设条件,响应触控输入,包括:在恢复时长位于第二预设时长区间的情况下,响应触控输入。In another embodiment of the present application, the first parameter includes the recovery time; when the first parameter satisfies the first preset condition, responding to the touch input includes: responding to the touch when the recovery time is in the second preset time interval.控input.
其中,获取电子设备的触摸屏被触摸而发生形变之后恢复原样的过程的持续恢复时长的流程,包括:步骤21和步骤22。Wherein, the process of acquiring the continuous recovery duration of the process of recovering the original shape after the touch screen of the electronic device is touched and deformed includes: step 21 and step 22.
步骤21、获取电子设备在至少一个第六历史时刻的加速度的一阶差分,第六历史时刻位于电子设备接收到触控输入的时刻之后。Step 21: Obtain the first-order difference of the acceleration of the electronic device at at least one sixth historical moment, the sixth historical moment being located after the moment when the electronic device receives the touch input.
其中,第六历史时刻且从电子设备接收到触控输入的时刻往后第1个至第20个时刻等。Among them, the sixth historical time and the first to the twentieth time after the time when the touch input is received from the electronic device, and so on.
步骤22、根据第六历史时刻的加速度的一阶差分、电子设备接收到触控输入时的加速度的一阶差分以及第五历史时刻时的加速度的一阶差分获取电子设备的触摸屏被触摸而发生形变之后恢复原样的过程的持续恢复时长。Step 22: According to the first-order difference of the acceleration at the sixth historical moment, the first-order difference of the acceleration when the electronic device receives the touch input, and the first-order difference of the acceleration at the fifth historical moment, it is obtained that the touch screen of the electronic device is touched. The duration of the restoration process after the deformation.
在本步骤中,可以确定第六历史时刻的加速度的一阶差分与电子设备接收到触控输入时的加速度的一阶差分的正负号不同的、且与第五历史时刻时的加速度的一阶差分的比值位于第二预设比值区间内的第六历史时刻的数量,然后根据第六历史时刻的数量与相邻的两个时刻之间的距离获取持续恢复时长。In this step, it can be determined that the first-order difference of the acceleration at the sixth historical moment is different from the sign of the first-order difference of the acceleration when the electronic device receives the touch input and is the same as the first-order difference of the acceleration at the fifth historical moment. The ratio of the order difference is located at the number of sixth historical moments in the second preset ratio interval, and then the continuous recovery time is obtained according to the distance between the number of sixth historical moments and two adjacent moments.
其中,两个时刻之间的距离即为采样周期,例如,假设采样频率为200Hz,则采样周期为5ms,可以计算第六历史时刻的数量与相邻的两个 时刻之间的距离之间的乘积,得到持续恢复时长。Among them, the distance between two moments is the sampling period. For example, if the sampling frequency is 200 Hz, the sampling period is 5 ms. The number of sixth historical moments and the distance between two adjacent moments can be calculated. Multiply the product to get the duration of continuous recovery.
例如,在电子设备接收到触控输入时的时刻往后第1个至第20个采样时刻中,如果某个采样时刻的加速度的一阶差分的绝对值是第五历史时刻时的加速度的一阶差分的2倍到10倍,则认为电子设备接收到触控输入时的时刻可能属于触摸屏被触摸而发生形变之后恢复原样的过程中的恢复时刻,将连续的恢复时刻组成的时长可以作为持续恢复时长。For example, in the first to twentieth sampling moments after the time when the electronic device receives the touch input, if the absolute value of the first-order difference of the acceleration at a certain sampling moment is one of the acceleration at the fifth historical moment 2 times to 10 times the order difference, it is considered that the time when the electronic device receives the touch input may belong to the recovery time in the process of restoring the original shape after the touch screen is touched and deformed. The duration of the continuous recovery time can be regarded as the duration. Recovery time.
在本申请中,在用户点击电子设备的触摸屏的过程中,触摸屏会产生微小形变,且通常情况下,用户点击触摸屏的过程中用户手指触摸电子设备的触摸屏的触摸持续时长较短,例如,经过大量实验可以统计出持续时长往往在10ms~20ms之间等,当然,触摸持续时长根据实际情况也可以有变动,本申请对此加以限定,以使地触摸屏的形变持续时长较短,点击结束之后,用户手指就会离开触摸屏,触摸屏从形变状态自动恢复原样。In this application, when the user clicks on the touch screen of the electronic device, the touch screen will produce a slight deformation, and in general, the user’s finger touches the touch screen of the electronic device for a short duration during the user’s click on the touch screen, for example, A large number of experiments can count that the duration is often between 10ms and 20ms. Of course, the duration of touch can also vary according to actual conditions. This application limits this so that the deformation duration of the ground touch screen is shorter. After the click is over , The user’s finger will leave the touch screen, and the touch screen will automatically return to its original shape from the deformed state.
而用户如果是正常手握电子设备,则用户的手指会触摸触摸屏的边缘,则通常情况下用户的手指触摸电子设备的触摸屏的触摸持续时长较长,以使地触摸屏的形变持续时长较长,例如,经过大量实验可以统计出触摸持续时长往往大于20ms等,这手握触摸屏用户手指一直触摸着触摸屏的边缘,以使地触摸屏长时间无法从形变状态恢复原样。If the user is holding the electronic device normally, the user’s finger will touch the edge of the touch screen. Normally, the user’s finger touches the touch screen of the electronic device for a long time, so that the deformation of the ground touch screen lasts for a long time. For example, after a large number of experiments, it can be calculated that the touch duration is often greater than 20ms, etc. The user's finger holding the touch screen has been touching the edge of the touch screen, so that the ground touch screen cannot be restored from the deformed state for a long time.
然而,在用户点击触摸屏的过程中,触摸屏受到用户施压的外力,使得触摸屏形变的速度较快,用户点击完毕之后,用户手指就会离开触摸屏,进而使得触摸屏的形变持续时长较短,然而,在点击完毕触摸屏从形变状态恢复原样的过程中,触摸屏不受到用户施压的外力,使得触摸屏恢复的速度较慢,进而使得触摸屏从形变状态恢复原样的过程的恢复持续时长较长,例如,经过大量实验可以统计出恢复持续时长往往大于30ms,例如,位于30ms~60ms之间等。However, when the user clicks on the touch screen, the touch screen is subjected to the external force exerted by the user, which causes the touch screen to deform faster. After the user clicks, the user's finger will leave the touch screen, which in turn causes the deformation of the touch screen to last for a shorter period of time. In the process of restoring the touch screen from the deformed state after clicking, the touch screen is not subject to external pressure from the user, which makes the recovery of the touch screen slower, which in turn makes the recovery of the touch screen from the deformed state last longer, for example, after A large number of experiments can calculate that the recovery duration is often greater than 30ms, for example, between 30ms and 60ms.
而用户如果是正常手握电子设备,则短时间内用户的手指会一直触摸触摸屏的边缘,也即,短时间内用户手指一直对触摸屏施压,以使触摸屏短时间内无法从形变状态恢复原样,也即,短时间内不存在恢复的时刻,进而短时间内也不存在持续恢复时长。If the user is holding the electronic device normally, the user’s finger will always touch the edge of the touch screen for a short period of time, that is, the user’s finger has been pressing the touch screen for a short period of time, so that the touch screen cannot be restored from the deformed state in a short time. , That is, there is no recovery time in a short time, and there is no continuous recovery time in a short time.
因此,基于上述原理,在本申请实施例中,通过比较恢复时长与第二 预设时长区间之间的关系,可以提高确定用户输入的触控输入是否为点击触摸屏的触控输入的准确率,或者说,可以提高确定是否发生了触摸屏点击事件的准确率。Therefore, based on the foregoing principle, in the embodiments of the present application, by comparing the relationship between the recovery time period and the second preset time period, the accuracy of determining whether the touch input input by the user is the touch input of clicking the touch screen can be improved. In other words, the accuracy of determining whether a touch screen click event has occurred can be improved.
本申请实施例示出的处理装置如图4所示。该处理装置40应用于电子设备中,该处理装置40具体可以包括如下模块:The processing device shown in the embodiment of the present application is shown in FIG. 4. The processing device 40 is applied to electronic equipment, and the processing device 40 may specifically include the following modules:
获取模块11,用于在获取到用户的触控输入的情况下,获取所述电子设备的第一参数及所述触控输入对应的触摸时长;The obtaining module 11 is configured to obtain the first parameter of the electronic device and the touch duration corresponding to the touch input when the user's touch input is obtained;
响应模块12,用于在所述第一参数满足第一预设条件,和/或,所述触摸时长满足第二预设条件的情况下,响应所述触控输入,其中,所述第一参数包括:所述电子设备的加速度、所述电子设备的角速度及所述电子设备因所述触控输入的压力而发生形变的恢复时长。The response module 12 is configured to respond to the touch input when the first parameter satisfies a first preset condition, and/or the touch duration satisfies a second preset condition, wherein the first parameter The parameters include the acceleration of the electronic device, the angular velocity of the electronic device, and the recovery time of the electronic device from deformation due to the pressure of the touch input.
在一个可选的实现方式中,所述第一参数包括所述电子设备的加速度;In an optional implementation manner, the first parameter includes the acceleration of the electronic device;
所述响应模块包括:The response module includes:
获取单元,用于获取第一时刻的第一加速度与第二时刻的第二加速度;An acquiring unit for acquiring the first acceleration at the first moment and the second acceleration at the second moment;
构造单元,用于基于所述第一加速度的一阶差分与第二加速度的一阶差分构造目标指数;A construction unit for constructing a target index based on the first-order difference of the first acceleration and the first-order difference of the second acceleration;
第一响应单元,用于在所述目标指数大于预设值的情况下,响应所述触控输入,其中,所述第一时刻在所述第二时刻之前;A first response unit, configured to respond to the touch input when the target index is greater than a preset value, wherein the first time is before the second time;
和/或,and / or,
第二响应单元,用于在所述电子设备的加速度在垂直于所述电子设备的触摸屏的方向上的数值的变化趋势为先降低再升高的情况下,响应所述触控输入。The second response unit is configured to respond to the touch input when the change trend of the value of the acceleration of the electronic device in the direction perpendicular to the touch screen of the electronic device first decreases and then increases.
在一个可选的实现方式中,所述第一参数包括所述电子设备的角速度;In an optional implementation manner, the first parameter includes the angular velocity of the electronic device;
所述响应模块包括:The response module includes:
第三响应单元,用于在所述角速度的一阶差分的正负值交替周期大于预设周期的情况下,响应所述触控输入。The third response unit is configured to respond to the touch input when the alternating period of the positive and negative values of the first-order difference of the angular velocity is greater than the preset period.
在一个可选的实现方式中,所述响应模块包括:In an optional implementation manner, the response module includes:
第四响应单元,用于在所述持续触摸时长位于第一预设时长区间的情况下,响应所述触控输入。The fourth response unit is configured to respond to the touch input when the continuous touch duration is within the first preset duration interval.
在一个可选的实现方式中,所述第一参数包括所述恢复时长;In an optional implementation manner, the first parameter includes the recovery duration;
所述响应模块包括:The response module includes:
第五响应单元,用于在所述恢复时长位于第二预设时长区间的情况下,响应所述触控输入。The fifth response unit is configured to respond to the touch input when the recovery duration is within a second preset duration interval.
在获取到用户的触控输入的情况下,获取电子设备的第一参数及触控输入对应的触摸时长;其中,第一参数包括:电子设备的加速度、电子设备的角速度及电子设备因触控输入的压力而发生形变的恢复时长。在第一参数满足第一预设条件,和/或,触摸时长满足第二预设条件的情况下,响应触控输入。本申请通过结合电子设备的加速度、电子设备的角速度、电子设备因触控输入的压力而发生形变的恢复时长以及触控输入对应的触摸时长来确定触控输入是否为点击触摸屏的输入,可以提高确定出的结果的准确率。When the user's touch input is acquired, the first parameter of the electronic device and the touch duration corresponding to the touch input are acquired; the first parameter includes: the acceleration of the electronic device, the angular velocity of the electronic device, and the electronic device due to touch The recovery time of the deformation caused by the input pressure. When the first parameter satisfies the first preset condition, and/or the touch duration satisfies the second preset condition, respond to the touch input. This application combines the acceleration of the electronic device, the angular velocity of the electronic device, the recovery time of the deformation of the electronic device due to the pressure of the touch input, and the touch time corresponding to the touch input to determine whether the touch input is the input of clicking the touch screen, which can improve The accuracy of the determined result.
图5为实现本申请各个实施例的电子设备的硬件结构示意图。FIG. 5 is a schematic diagram of the hardware structure of an electronic device implementing each embodiment of the present application.
该电子设备500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、处理器510、以及电源511等部件。本领域技术人员可以理解,图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本申请实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and Power supply 511 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 5 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiments of the present application, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
处理器510,用于在获取到用户的触控输入的情况下,获取所述电子设备的第一参数及所述触控输入对应的触摸时长;在所述第一参数满足第一预设条件,和/或,所述触摸时长满足第二预设条件的情况下,响应所述触控输入,其中,所述第一参数包括:所述电子设备的加速度、所述电子设备的角速度及所述电子设备因所述触控输入的压力而发生形变的恢复时长。The processor 510 is configured to obtain a first parameter of the electronic device and a touch duration corresponding to the touch input when the user's touch input is obtained; when the first parameter satisfies a first preset condition , And/or, in the case that the touch duration satisfies a second preset condition, respond to the touch input, wherein the first parameter includes: the acceleration of the electronic device, the angular velocity of the electronic device, and the The recovery time of the electronic device deformed due to the pressure of the touch input.
本申请通过结合电子设备的加速度、电子设备的角速度、电子设备因触控输入的压力而发生形变的恢复时长以及触控输入对应的触摸时长来确 定触控输入是否为点击触摸屏的输入,可以提高确定出的结果的准确率。This application combines the acceleration of the electronic device, the angular velocity of the electronic device, the recovery time of the deformation of the electronic device due to the pressure of the touch input, and the touch time corresponding to the touch input to determine whether the touch input is the input of clicking the touch screen, which can improve The accuracy of the determined result.
应理解的是,本申请实施例中,射频单元501可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器510处理;另外,将上行的数据发送给基站。通常,射频单元501包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元501还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present application, the radio frequency unit 501 can be used for receiving and sending signals during information transmission or communication. Specifically, the downlink data from the base station is received and processed by the processor 510; in addition, Uplink data is sent to the base station. Generally, the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块502为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元503可以将射频单元501或网络模块502接收的或者在存储器509中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元503还可以提供与电子设备500执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元503包括扬声器、蜂鸣器以及受话器等。The audio output unit 503 can convert the audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output it as sound. Moreover, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic device 500 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
输入单元504用于接收音频或视频信号。输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元506上。经图形处理器5041处理后的图像帧可以存储在存储器509(或其它存储介质)中或者经由射频单元501或网络模块502进行发送。麦克风5042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元501发送到移动通信基站的格式输出。The input unit 504 is used to receive audio or video signals. The input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042. The graphics processor 5041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame may be displayed on the display unit 506. The image frame processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or sent via the radio frequency unit 501 or the network module 502. The microphone 5042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 501 for output in the case of a telephone call mode.
电子设备500还包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板5061的亮度,接近传感器可在电子设备500移动到耳边时,关闭显示面板5061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子 设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、震动识别相关功能(比如计步器、敲击)等;传感器505还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 500 further includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light. The proximity sensor can close the display panel 5061 and the display panel 5061 when the electronic device 500 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 505 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元506用于显示由用户输入的信息或提供给用户的信息。显示单元506可包括显示面板5061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板5061。The display unit 506 is used to display information input by the user or information provided to the user. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元507可用于接收输入的数字或内容信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板5071上或在触控面板5071附近的操作)。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器510,接收处理器510发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板5071。除了触控面板5071,用户输入单元507还可以包括其他输入设备5072。具体地,其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 507 may be used to receive input numbers or content information, and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. The touch panel 5071, also known as a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 5071 or near the touch panel 5071. operate). The touch panel 5071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 510, the command sent by the processor 510 is received and executed. In addition, the touch panel 5071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may also include other input devices 5072. Specifically, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板5071可覆盖在显示面板5061上,当触控面板5071检测到在其上或附近的触摸操作后,传送给处理器510以确定触摸事件的类型,随后处理器510根据触摸事件的类型在显示面板5061上提供相应的视觉输出。虽然在图5中,触控面板5071与显示面板5061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板5071与显示面板5061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 5071 can be overlaid on the display panel 5061. When the touch panel 5071 detects a touch operation on or near it, it is transmitted to the processor 510 to determine the type of touch event, and then the processor 510 determines the type of the touch event according to the touch. The type of event provides corresponding visual output on the display panel 5061. Although in FIG. 5, the touch panel 5071 and the display panel 5061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元508为外部装置与电子设备500连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元508可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备500内的一个或多个元件或者可以用于在电子设备500和外部装置之间传输数据。The interface unit 508 is an interface for connecting an external device and the electronic device 500. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 508 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 500 or can be used to connect the electronic device 500 to an external device. Transfer data between devices.
存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器509可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 509 can be used to store software programs and various data. The memory 509 may mainly include a storage program area and a storage data area. The storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 509 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器510是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器509内的软件程序和/或模块,以及调用存储在存储器509内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器510可包括一个或多个处理单元;优选的,处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。The processor 510 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 509, and calls data stored in the memory 509 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 510.
电子设备500还可以包括给各个部件供电的电源511(比如电池),优选的,电源511可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 500 may also include a power source 511 (such as a battery) for supplying power to various components. Preferably, the power source 511 may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
另外,电子设备500包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 500 includes some functional modules not shown, which will not be repeated here.
优选的,本申请实施例还提供一种电子设备,包括处理器510,存储器509,存储在存储器509上并可在所述处理器510上运行的计算机程序,该计算机程序被处理器510执行时实现上述处理方法实施例的各个过程, 且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present application further provides an electronic device, including a processor 510, a memory 509, a computer program stored on the memory 509 and running on the processor 510, when the computer program is executed by the processor 510 Each process of the foregoing processing method embodiment can be implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
本申请实施例还提供一种电子设备,被配置成用于执行上述处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application also provides an electronic device configured to perform each process of the foregoing processing method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质的示例包括非暂态计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each process of the above-mentioned processing method embodiment is realized, and the same technical effect can be achieved. To avoid repetition, I won’t repeat it here. Wherein, examples of the computer-readable storage medium include non-transitory computer-readable storage media, such as read-only memory (Read-Only Memory, ROM for short), Random Access Memory (RAM for short), and magnetic CD or CD, etc.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品可被处理器执行以实现上述处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application also provide a computer program product, which can be executed by a processor to implement the various processes of the foregoing processing method embodiments, and can achieve the same technical effect. To avoid repetition, details are not described herein again.
上面参考根据本发明的实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本发明的各方面。应当理解,流程图和/或框图中的每个方框以及流程图和/或框图中各方框的组合可以由计算机程序指令实现。这些计算机程序指令可被提供给通用计算机、专用计算机、或其它可编程数据处理装置的处理器,以产生一种机器,使得经由计算机或其它可编程数据处理装置的处理器执行的这些指令使能对流程图和/或框图的一个或多个方框中指定的功能/动作的实现。这种处理器可以是但不限于是通用处理器、专用处理器、特殊应用处理器或者现场可编程逻辑电路。还可理解,框图和/或流程图中的每个方框以及框图和/或流程图中的方框的组合,也可以由执行指定的功能或动作的专用硬件来实现,或可由专用硬件和计算机指令的组合来实现。The various aspects of the present invention have been described above with reference to the flowcharts and/or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present invention. It should be understood that each block in the flowcharts and/or block diagrams and combinations of blocks in the flowcharts and/or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine that enables the execution of these instructions via the processor of the computer or other programmable data processing device Implementation of the functions/actions specified in one or more blocks of the flowcharts and/or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a dedicated processor, a special application processor, or a field programmable logic circuit. It can also be understood that each block in the block diagram and/or flowchart and the combination of the blocks in the block diagram and/or flowchart can also be implemented by dedicated hardware that performs specified functions or actions, or can be implemented by dedicated hardware and A combination of computer instructions.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括 该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. Without more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the application are described above with reference to the accompanying drawings, but the application is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of this application, many forms can be made without departing from the purpose of this application and the scope of protection of the claims, all of which fall within the protection of this application.

Claims (14)

  1. 一种处理方法,应用于电子设备,所述方法包括:A processing method applied to an electronic device, the method including:
    在获取到用户的触控输入的情况下,获取所述电子设备的第一参数及所述触控输入对应的触摸时长;In the case of acquiring the touch input of the user, acquiring the first parameter of the electronic device and the touch duration corresponding to the touch input;
    在所述第一参数满足第一预设条件,和/或,所述触摸时长满足第二预设条件的情况下,响应所述触控输入,其中,所述第一参数包括:所述电子设备的加速度、所述电子设备的角速度及所述电子设备因所述触控输入的压力而发生形变的恢复时长。In the case that the first parameter satisfies a first preset condition, and/or the touch duration satisfies a second preset condition, respond to the touch input, wherein the first parameter includes: the electronic The acceleration of the device, the angular velocity of the electronic device, and the recovery time of the electronic device from deformation due to the pressure of the touch input.
  2. 根据权利要求1所述的方法,其中,所述第一参数包括所述电子设备的加速度;The method of claim 1, wherein the first parameter includes acceleration of the electronic device;
    在所述第一参数满足第一预设条件的情况下,响应所述触控输入,包括:When the first parameter satisfies a first preset condition, responding to the touch input includes:
    获取第一时刻的第一加速度与第二时刻的第二加速度;Acquiring the first acceleration at the first moment and the second acceleration at the second moment;
    基于所述第一加速度的一阶差分与第二加速度的一阶差分构造目标指数;Constructing a target index based on the first-order difference of the first acceleration and the first-order difference of the second acceleration;
    在所述目标指数大于预设值的情况下,响应所述触控输入,其中,所述第一时刻在所述第二时刻之前;Responding to the touch input when the target index is greater than a preset value, wherein the first moment is before the second moment;
    和/或,and / or,
    在所述电子设备的加速度在垂直于所述电子设备的触摸屏的方向上的数值的变化趋势为先降低再升高的情况下,响应所述触控输入。In the case where the change trend of the numerical value of the acceleration of the electronic device in the direction perpendicular to the touch screen of the electronic device is firstly decreasing and then increasing, responding to the touch input.
  3. 根据权利要求1所述的方法,其中,所述第一参数包括所述电子设备的角速度;The method according to claim 1, wherein the first parameter includes the angular velocity of the electronic device;
    在所述第一参数满足第一预设条件的情况下,响应所述触控输入,包括:When the first parameter satisfies a first preset condition, responding to the touch input includes:
    在所述角速度的一阶差分的正负值交替周期大于预设周期的情况下,响应所述触控输入。In the case where the alternating period of the positive and negative values of the first-order difference of the angular velocity is greater than the preset period, responding to the touch input.
  4. 根据权利要求1所述的方法,其中,在所述触摸时长满足第二预设条件的情况下,响应所述触控输入,包括:The method according to claim 1, wherein, when the touch duration meets a second preset condition, responding to the touch input comprises:
    在所述持续触摸时长位于第一预设时长区间的情况下,响应所述触控输入。In the case that the continuous touch duration is within the first preset duration interval, responding to the touch input.
  5. 根据权利要求1所述的方法,其中,所述第一参数包括所述恢复时长;The method according to claim 1, wherein the first parameter includes the recovery duration;
    在所述第一参数满足第一预设条件的情况下,响应所述触控输入,包括:When the first parameter satisfies a first preset condition, responding to the touch input includes:
    在所述恢复时长位于第二预设时长区间的情况下,响应所述触控输入。In a case where the recovery time period is within the second preset time period, responding to the touch input.
  6. 一种处理装置,应用于电子设备,所述装置包括:A processing device applied to electronic equipment, the device comprising:
    获取模块,用于在获取到用户的触控输入的情况下,获取所述电子设备的第一参数及所述触控输入对应的触摸时长;An acquiring module, configured to acquire the first parameter of the electronic device and the touch duration corresponding to the touch input when the user's touch input is acquired;
    响应模块,用于在所述第一参数满足第一预设条件,和/或,所述触摸时长满足第二预设条件的情况下,响应所述触控输入,其中,所述第一参数包括:所述电子设备的加速度、所述电子设备的角速度及所述电子设备因所述触控输入的压力而发生形变的恢复时长。The response module is configured to respond to the touch input when the first parameter satisfies a first preset condition, and/or the touch duration satisfies a second preset condition, wherein the first parameter It includes: the acceleration of the electronic device, the angular velocity of the electronic device, and the recovery time of the electronic device from deformation due to the pressure of the touch input.
  7. 根据权利要求6所述的装置,其中,所述第一参数包括所述电子设备的加速度;The apparatus according to claim 6, wherein the first parameter includes acceleration of the electronic device;
    所述响应模块包括:The response module includes:
    获取单元,用于获取第一时刻的第一加速度与第二时刻的第二加速度;An acquiring unit for acquiring the first acceleration at the first moment and the second acceleration at the second moment;
    构造单元,用于基于所述第一加速度的一阶差分与第二加速度的一阶差分构造目标指数;A construction unit for constructing a target index based on the first-order difference of the first acceleration and the first-order difference of the second acceleration;
    第一响应单元,用于在所述目标指数大于预设值的情况下,响应所述触控输入,其中,所述第一时刻在所述第二时刻之前;A first response unit, configured to respond to the touch input when the target index is greater than a preset value, wherein the first time is before the second time;
    和/或,and / or,
    第二响应单元,用于在所述电子设备的加速度在垂直于所述电子设备的触摸屏的方向上的数值的变化趋势为先降低再升高的情况下,响应所述触控输入。The second response unit is configured to respond to the touch input when the change trend of the value of the acceleration of the electronic device in the direction perpendicular to the touch screen of the electronic device first decreases and then increases.
  8. 根据权利要求6所述的装置,其中,所述第一参数包括所述电子设备的角速度;The apparatus according to claim 6, wherein the first parameter includes the angular velocity of the electronic device;
    所述响应模块包括:The response module includes:
    第三响应单元,用于在所述角速度的一阶差分的正负值交替周期大于预设周期的情况下,响应所述触控输入。The third response unit is configured to respond to the touch input when the alternating period of the positive and negative values of the first-order difference of the angular velocity is greater than the preset period.
  9. 根据权利要求6所述的装置,其中,所述响应模块包括:The device according to claim 6, wherein the response module comprises:
    第四响应单元,用于在所述持续触摸时长位于第一预设时长区间的情况下,响应所述触控输入。The fourth response unit is configured to respond to the touch input when the continuous touch duration is within the first preset duration interval.
  10. 根据权利要求6所述的装置,其中,所述第一参数包括所述恢复时长;The device according to claim 6, wherein the first parameter includes the recovery duration;
    所述响应模块包括:The response module includes:
    第五响应单元,用于在所述恢复时长位于第二预设时长区间的情况下,响应所述触控输入。The fifth response unit is configured to respond to the touch input when the recovery duration is within a second preset duration interval.
  11. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的处理方法的步骤。An electronic device, comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program being executed by the processor to implement any of claims 1 to 5 One of the steps of the treatment method.
  12. 一种电子设备,被配置成用于执行如权利要求1至5中任一项所述的处理方法的步骤。An electronic device configured to perform the steps of the processing method according to any one of claims 1 to 5.
  13. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的处理方法的步骤。A computer-readable storage medium storing a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the processing method according to any one of claims 1 to 5 are realized.
  14. 一种计算机程序产品,所述计算机程序产品可被处理器执行以实现如权利要求1至5中任一项所述的处理方法的步骤。A computer program product that can be executed by a processor to implement the steps of the processing method according to any one of claims 1 to 5.
PCT/CN2021/078918 2020-03-09 2021-03-03 Processing method and apparatus WO2021179972A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010159091.9A CN111443821B (en) 2020-03-09 2020-03-09 Processing method and device
CN202010159091.9 2020-03-09

Publications (1)

Publication Number Publication Date
WO2021179972A1 true WO2021179972A1 (en) 2021-09-16

Family

ID=71654194

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/078918 WO2021179972A1 (en) 2020-03-09 2021-03-03 Processing method and apparatus

Country Status (2)

Country Link
CN (1) CN111443821B (en)
WO (1) WO2021179972A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111443821B (en) * 2020-03-09 2023-01-13 维沃移动通信有限公司 Processing method and device
CN112445376B (en) * 2020-11-16 2023-04-07 青岛海信商用显示股份有限公司 Contact correction method and device
CN112328123A (en) * 2020-11-27 2021-02-05 北京小米移动软件有限公司 Calibration method and device of touch screen, terminal and storage medium
CN114442854B (en) * 2022-01-29 2024-07-23 联想(北京)有限公司 Information processing method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140354574A1 (en) * 2012-01-27 2014-12-04 Panasonic Corporation Electronic apparatus
CN108307074A (en) * 2018-02-05 2018-07-20 广东欧珀移动通信有限公司 Display control method and device, terminal, computer readable storage medium
US20180239490A1 (en) * 2013-08-06 2018-08-23 Lg Electronics Inc. Mobile terminal performing a different operation based on a type of a tap applied to a display and control method thereof
CN109871147A (en) * 2019-02-22 2019-06-11 华为技术有限公司 A kind of response method and electronic equipment of touch screen
CN110471559A (en) * 2019-07-25 2019-11-19 维沃移动通信有限公司 A kind of false-touch prevention method and mobile terminal
CN111443821A (en) * 2020-03-09 2020-07-24 维沃移动通信有限公司 Processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017031647A1 (en) * 2015-08-21 2017-03-02 华为技术有限公司 Method and apparatus for detecting touch mode

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140354574A1 (en) * 2012-01-27 2014-12-04 Panasonic Corporation Electronic apparatus
US20180239490A1 (en) * 2013-08-06 2018-08-23 Lg Electronics Inc. Mobile terminal performing a different operation based on a type of a tap applied to a display and control method thereof
CN108307074A (en) * 2018-02-05 2018-07-20 广东欧珀移动通信有限公司 Display control method and device, terminal, computer readable storage medium
CN109871147A (en) * 2019-02-22 2019-06-11 华为技术有限公司 A kind of response method and electronic equipment of touch screen
CN110471559A (en) * 2019-07-25 2019-11-19 维沃移动通信有限公司 A kind of false-touch prevention method and mobile terminal
CN111443821A (en) * 2020-03-09 2020-07-24 维沃移动通信有限公司 Processing method and device

Also Published As

Publication number Publication date
CN111443821B (en) 2023-01-13
CN111443821A (en) 2020-07-24

Similar Documents

Publication Publication Date Title
WO2021179972A1 (en) Processing method and apparatus
CN108182043B (en) Information display method and mobile terminal
JP7414986B2 (en) Information display, transmission methods and electronic devices
WO2021109931A1 (en) Touch control method and wearable device
CN109710349B (en) Screen capturing method and mobile terminal
WO2021129745A1 (en) Touch key, control method and electronic device
CN108509141B (en) Control generation method and mobile terminal
WO2021129732A1 (en) Display processing method and electronic device
CN109388193A (en) A kind of acquisition methods and electronic equipment of flexible display screen spread length
WO2021057290A1 (en) Information control method and electronic device
CN110209313A (en) Icon moving method and terminal device
CN110032309A (en) A kind of split screen method and terminal device
CN110990172A (en) Application sharing method, first electronic device and computer-readable storage medium
WO2021164760A1 (en) Parameter adjustment method and electronic device
CN108196815A (en) A kind of adjusting method and mobile terminal of sound of conversing
CN111309419A (en) Split-screen display method and electronic equipment
CN108108113A (en) Webpage switching method and device
CN110096203A (en) A kind of screenshot method and mobile terminal
WO2020156121A1 (en) Display control method and mobile terminal
CN109951584B (en) Cleaning method and mobile terminal
CN110007821B (en) Operation method and terminal equipment
CN108536513B (en) Picture display direction adjusting method and mobile terminal
CN111240451A (en) Heat dissipation method, electronic device and computer-readable storage medium
CN111240567A (en) Display screen angle adjusting method and electronic equipment
WO2021208893A1 (en) Audio output mode switching method and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21768588

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21768588

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21768588

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 01.03.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21768588

Country of ref document: EP

Kind code of ref document: A1