Processing method, apparatus and electronic device

CN116795239BActive Publication Date: 2026-10-27VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310856427.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-13
Publication Date
2026-10-27
Estimated Expiration
2043-07-13

Smart Images

  • Figure CN116795239B_ABST
    Figure CN116795239B_ABST
Patent Text Reader

Abstract

The application discloses a processing method, device and electronic equipment, and belongs to the technical field of electronic equipment. The processing method is executed by an electronic equipment, and the electronic equipment comprises a touch component and a distance sensor. The method comprises the following steps: in the case that a touch input to the touch component is detected, a first coordinate corresponding to the touch input is determined; target angle information is determined according to the first coordinate and a second coordinate corresponding to the distance sensor; in the case that the target angle information is within a target angle range and the distance sensor detects an approaching condition, whether to respond to the touch input is determined according to a detection result of the distance sensor after a delay target time length.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electronic equipment technology, and specifically relates to a processing method, apparatus and electronic equipment. Background Technology

[0002] In related technologies, gesture recognition can provide convenience for users to use electronic devices. Generally, this is achieved by setting up an infrared sensor on the electronic device to detect whether there is a foreign object approaching. In such a scenario, the gesture recognition function is turned off to prevent accidental touches.

[0003] However, in actual use cases, there are instances where foreign objects are mistakenly detected, leading to inaccurate accidental touch detection. Summary of the Invention

[0004] The purpose of this application is to provide a processing method, apparatus, and electronic device that can solve the problem of inaccurate accidental touch detection.

[0005] In a first aspect, embodiments of this application provide a processing method executed by an electronic device, the electronic device including a touch component and a distance sensor, the method comprising:

[0006] When a touch input to the touch component is detected, the first coordinate corresponding to the touch input is determined;

[0007] The target angle information is determined based on the first coordinate and the second coordinate corresponding to the distance sensor.

[0008] If the target angle information is within the target angle range and the distance sensor detects proximity, the system determines whether to respond to touch input based on the detection result of the distance sensor after a delay of the target duration.

[0009] Secondly, embodiments of this application provide a processing apparatus applied to an electronic device, the electronic device including a touch component and a distance sensor, the processing apparatus including:

[0010] The determination module is used to determine the first coordinates corresponding to the touch input when a touch input to the touch component is detected; and to determine the target angle information based on the first coordinates and the second coordinates corresponding to the distance sensor.

[0011] The execution module is used to determine whether to respond to touch input based on the detection result of the distance sensor after a delay of the target angle information when the target angle information is within the target angle range and the distance sensor detects that the target is approaching.

[0012] Thirdly, embodiments of this application provide an electronic device, including a processor and a memory, wherein the memory stores a program or instructions that can run on the processor, and when the program or instructions are executed by the processor, they implement the steps of the method as described in the first aspect.

[0013] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method as described in the first aspect.

[0014] Fifthly, embodiments of this application provide a chip including a processor and a communication interface coupled to the processor, the processor being used to run programs or instructions to implement the steps of the method as described in the first aspect.

[0015] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method as described in the first aspect.

[0016] In this embodiment, when a user touches the touch component, the target angle information is determined based on the touch coordinates and the distance sensor coordinates. This target angle information can reflect the user's hand posture to a certain extent. When the target angle information is within the target angle range, if the distance sensor detects proximity, the system determines whether the user's hand is obstructing the distance sensor based on the detection result after the distance sensor delay. This avoids misidentifying the scenario where the user is obstructing the distance sensor during input as a scenario where the electronic device is in a pocket or bag, thereby improving the accuracy and reliability of accidental touch detection. Attached Figure Description

[0017] Figure 1 A flowchart illustrating the processing method of an embodiment of this application is shown;

[0018] Figure 2 A schematic diagram illustrating the determination of the first angle according to an embodiment of this application is shown;

[0019] Figure 3 A schematic diagram illustrating the target angle range according to an embodiment of this application is shown;

[0020] Figure 4 A schematic diagram illustrating the determination of the second angle according to an embodiment of this application is shown;

[0021] Figure 5 A structural block diagram of a processing apparatus according to an embodiment of this application is shown;

[0022] Figure 6 A structural block diagram of an electronic device according to an embodiment of this application is shown;

[0023] Figure 7A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application. Detailed Implementation

[0024] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0025] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0026] The processing methods, apparatuses, and electronic devices provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.

[0027] In some embodiments of this application, a processing method is provided, executed by an electronic device, which includes a touch component and a proximity sensor. Figure 1 A flowchart of the processing method according to an embodiment of this application is shown, as follows: Figure 1 As shown, the method includes:

[0028] Step 102: If a touch input to the touch component is detected, determine the first coordinate corresponding to the touch input;

[0029] In this embodiment, the electronic device may be a mobile phone, tablet computer, PDA, vehicle infotainment system, etc. The touch component may be a touch component or touchpad. The distance sensor may be an infrared distance sensor or a microwave radar distance sensor.

[0030] Touch input can be input from the user's limbs, such as fingers, in contact with the touch component, or it can be input from an electronic pen, such as input from the user holding an electronic pen. For example, the touch component is a capacitive touch component. The capacitive touch component determines the contact position between the user's finger and the capacitive touch component by detecting the capacitance value of the touch layer, and then determines the first coordinate.

[0031] It is understandable that the first coordinate can be the coordinate in the built-in coordinate system of the electronic device. Specifically, assuming the device is a mobile phone and the touch component and proximity sensor are both located on the front of the phone, a planar coordinate system can be set on the plane on the front of the phone, and the first coordinate is the coordinate in the planar coordinate system.

[0032] Step 104: Determine the target angle information based on the first coordinate and the second coordinate corresponding to the distance sensor;

[0033] In the application embodiment, the first coordinate is specifically the user's touch input, that is, the coordinate of the contact position between the user's body and the touch component, and the second coordinate is specifically the coordinate of the distance sensor in the same plane coordinate system as the first coordinate.

[0034] Based on the first and second coordinates and the baseline, the target angle information is obtained. This target angle information can reflect the angle between the user's limbs and the electronic device, thereby reflecting whether the user is holding the electronic device.

[0035] Step 106: When the target angle information is within the target angle range and the distance sensor detects proximity, determine whether to respond to touch input based on the detection result of the distance sensor after the target delay time.

[0036] In this embodiment of the application, the distance sensor detects proximity, specifically when the distance value detected by the distance sensor is less than or equal to a threshold.

[0037] In related technologies, if a proximity sensor detects proximity, the electronic device will determine that it may be in a pocket, bag, or other similar situation, and therefore will consider the received touch input as a mis-touch and will not respond to the touch input.

[0038] In some scenarios, such as when a user is holding a phone and making touch input, the user's hand may block the proximity sensor. In this case, the proximity sensor will also detect the proximity. If the user's touch input is considered to be a mis-touch, from the user's perspective, the touch input is not effective.

[0039] To address the aforementioned issues, this application embodiment, while detecting proximity or distance using a distance sensor, further determines the angle information of the touch input based on the first coordinate of the touch input and the second coordinate of the distance sensor, and compares the angle information with the target angle range.

[0040] The target angle range refers to the angle range between the user's limb and the baseline corresponding to the electronic device when the user is holding and using the electronic device. If the detected target angle information is within the target angle range, it can be assumed that the user may be holding and using the electronic device. If the distance sensor detects that it is blocked, it is possible that the user's hand holding the electronic device is blocking the distance sensor. Therefore, the electronic device will not immediately recognize the current touch input as a mis-touch, but will wait for a preset time before reassessing the distance sensor's detection result.

[0041] Specifically, since the user's hand is constantly moving when holding the phone and making touch input, it will not block the distance sensor for a long time. Therefore, the system determines whether the currently received touch input is a false touch based on the detection result after a preset delay of the distance sensor. If it is determined to be a false touch, the touch input will not be responded to, thus achieving reliable prevention of false touch. If it is determined to be a true false touch, the touch input will be responded to, ensuring the success rate of touch input and enabling more accurate false touch detection.

[0042] In this context, "responding to touch input" refers to an electronic device responding to a user's touch input and executing the corresponding function. For example, if the touch input is a gesture to wake up the screen, then when responding to touch input, the electronic device wakes up and lights up the screen; when not responding to touch input, the electronic device remains in a screen-off state.

[0043] Based on the original distance sensor anti-mistouch detection, this application embodiment determines the target angle information when a user touches the touch component, according to the touch coordinates and the distance sensor coordinates. This target angle information can reflect the user's hand posture to a certain extent, thereby determining whether the user's hand is obstructing the distance sensor. When the user's hand may be obstructing the distance sensor, the detection result after the distance sensor delay is used to determine whether it is an accidental touch scenario, thereby improving the accuracy and reliability of anti-mistouch detection.

[0044] In some embodiments of this application, the target angle information includes a first angle;

[0045] Determine the target angle information, including:

[0046] Determine the target line segment based on the first and second coordinates;

[0047] The first angle is determined based on the angle between the line containing the target line segment and the baseline.

[0048] In this embodiment, the angle information includes a first angle. Specifically, the first coordinate is the coordinate of the touch input, which can be detected by the touch component of the electronic device. The second coordinate is the coordinate of the distance sensor, which is a preset value. The second coordinate and the first coordinate are located in the same coordinate system.

[0049] The first coordinate and the second coordinate correspond to two points on the same plane. A line segment is determined by taking the point corresponding to the first coordinate as the first endpoint and the point corresponding to the second coordinate as the second endpoint. The angle between the line containing the line segment and the preset baseline is the first angle.

[0050] Specifically, Figure 2 A schematic diagram illustrating the determination of the first angle according to an embodiment of this application is shown, as follows. Figure 2 As shown, the touch component 200 receives the user's touch input, determines the first endpoint 202 according to the first coordinates corresponding to the touch input, and determines the second endpoint 204 according to the second coordinates of the distance sensor. The line segment between the first endpoint 202 and the second endpoint 204 is located on the straight line 206, and the angle between the straight line 206 and the baseline 208 is the first angle α.

[0051] For example, a baseline can be a straight line on a horizontal plane.

[0052] For example, the baseline can be a straight line parallel to the short side of the touch component.

[0053] For example, the baseline can be a straight line parallel to the long side of the touch component.

[0054] The target angle range is determined experimentally. To determine this range, a large number of touch operations from testers were collected. The operating hotspot was identified based on the distribution of motor coordinates of these touch operations on the touch component; this hotspot represents the coordinate area where most touch operations are concentrated.

[0055] After obtaining the operating hot zone, a fitting operation is performed on the hot zone to obtain a circular region. For example... Figure 3 As shown, the circular area is the hot zone 302. Taking the center 304 of the distance sensor as the endpoint, tangents are drawn to both sides of the circular area corresponding to the hot zone 302, respectively, to obtain the first tangent 306 and the second tangent 308. Based on the angle between the first tangent 306 and the reference line 310, the lower limit value m of the target angle range is determined, and based on the angle between the second tangent 308 and the reference line 310, the upper limit value n of the target angle range is determined, thus obtaining the target angle range [m, n].

[0056] When the first angle α is within the target angle range [m, n], it is determined that the user is holding the phone and the proximity sensor is blocked. This is because the user's hand may be blocking the proximity sensor, so the current scene is not determined to be a scene inside a pocket or bag.

[0057] For example, the target angle range is [10°, 90°].

[0058] For example, the target angle range is [15°, 75°].

[0059] For example, the target angle range is [20°, 60°].

[0060] The embodiments of this application can avoid misidentifying a scenario where the user's input obstructs the distance sensor as a scenario where the electronic device is in a pocket or bag, thereby improving the recognition accuracy of gesture-based touch operations.

[0061] In some embodiments of this application, the target angle information further includes a second angle;

[0062] After determining the first angle, the method also includes:

[0063] Based on the detection values ​​of the touch component, the touch area corresponding to the touch input is determined, and the touch area is an elliptical touch area;

[0064] The second angle is determined based on the angle between the line containing the long axis of the touch area and the baseline;

[0065] When the target angle information is within the target angle range and the distance sensor detects proximity, the system determines whether to respond to touch input based on the detection result of the distance sensor after a target delay, including:

[0066] When both the first and second angles are within the target angle range and the distance sensor detects proximity, the system determines whether to respond to touch input based on the detection result of the distance sensor after a delay of the target duration.

[0067] In this embodiment, the touch component can be a capacitive touch component. Taking a capacitive touch component as an example, the inner surface and the interlayer of the capacitive touch component each include a layer of nano-indium tin oxide. When the user's hand touches the capacitive touch component, due to the human body electric field, a coupling capacitor is formed between the user's finger and the capacitive touch component. At this time, the capacitive touch component can detect the corresponding detection value.

[0068] like Figure 4 As shown, based on the detection values ​​of the capacitive touch component, the touch area corresponding to the user's touch input can be determined. This touch area is then fitted into an elliptical region, i.e. Figure 4 The elliptical touch area 402 shown is... Figure 4 The numbers in the squares shown are detection values; this data is only used as an example and has no limiting effect.

[0069] The angle between the major axis 404 of the elliptical touch area 402 and the baseline 406, also known as the second angle β, is determined when the first angle α is within the target angle range [m, n] and the second angle β is also within the target angle range [m, n]. In this case, it is determined that the user is holding the phone and the proximity sensor is blocked. This may be because the user's hand is blocking the proximity sensor, so the current scene is not determined to be a scene inside a pocket or bag.

[0070] The embodiments of this application can avoid misidentifying a scenario where the user's input obstructs the distance sensor as a scenario where the electronic device is in a pocket or bag, thereby improving the recognition accuracy of gesture-based touch operations.

[0071] In some embodiments of this application, determining whether to respond to touch input based on the detection result of the distance sensor after a delay of the target duration includes:

[0072] If the distance sensor still detects proximity after a delay of the target duration, it will abandon responding to touch input.

[0073] In this embodiment of the application, when the first angle and the second angle are detected to be within the target angle range, and the distance sensor detects that the device is approaching, the electronic device determines whether to respond to the touch input based on the detection result of the distance sensor after a preset delay time.

[0074] Specifically, when both the first angle and the second angle are within the target angle range, if the distance value detected by the distance sensor is less than or equal to the distance threshold, that is, an approaching object is detected, a delay judgment is triggered. After a preset delay, it is judged whether the distance value detected by the distance sensor is still less than or equal to the distance threshold.

[0075] If the detected distance value is still less than or equal to the distance threshold after a preset delay, it is determined that the proximity result detected by the distance sensor is accurate. In scenarios such as the current electronic device being in a pocket or bag, the touch input is a false touch, and the electronic device does not respond to the touch input.

[0076] For example, the preset duration is 2 seconds.

[0077] For example, the preset duration is 5 seconds.

[0078] For example, the preset duration is 7 seconds.

[0079] For example, the distance threshold is 2cm.

[0080] For example, the distance threshold is 5cm.

[0081] For example, the distance threshold is 8cm.

[0082] In this embodiment of the application, when a touch input is received, if the first angle and the second angle are both within the target angle range and the distance sensor detects proximity, the system determines whether it is a false touch based on the detection result of the distance sensor after a preset delay. If it is determined to be a false touch scenario, the system does not respond to the touch input, which can reduce power consumption caused by false touches.

[0083] In some embodiments of this application, determining whether to respond to touch input based on the detection result of the distance sensor after a delay of the target duration includes:

[0084] The system responds to touch input when the distance sensor detects that the target has moved away after a delay of the target duration.

[0085] In this embodiment of the application, when the first angle and the second angle are detected to be within the target angle range, and the distance sensor detects that the device is approaching, the electronic device determines whether to respond to the touch input based on the detection result of the distance sensor after a preset delay time.

[0086] Specifically, when both the first angle and the second angle are within the target angle range, if the distance value detected by the distance sensor is less than or equal to the distance threshold, that is, an approaching object is detected, a delay judgment is triggered. After a preset delay, it is judged whether the distance value detected by the distance sensor is still less than or equal to the distance threshold.

[0087] If the distance value detected after a preset delay is greater than the distance threshold, it is determined that the proximity detected by the distance sensor may be the user's hand, and the electronic device is not currently in a pocket or bag, etc., so the touch input is not a mis-touch, and the electronic device responds to the touch input.

[0088] For example, the preset duration is 2 seconds.

[0089] For example, the preset duration is 5 seconds.

[0090] For example, the preset duration is 7 seconds.

[0091] For example, the distance threshold is 2cm.

[0092] For example, the distance threshold is 5cm.

[0093] For example, the distance threshold is 8cm.

[0094] In this embodiment of the application, when a touch input is received, if the first angle and the second angle are both within the target angle range and the distance sensor detects proximity, the system determines whether it is a false touch based on the detection result of the distance sensor after a preset delay. If it is determined to be a non-false touch scenario, the system responds to the touch input, thereby avoiding false detection of false touch scenarios and improving the reliability and success rate of gesture touch input.

[0095] In some embodiments of this application, after determining the target angle information based on the first coordinate and the second coordinate corresponding to the distance sensor, the method further includes:

[0096] The system responds to touch input when the target angle information is within the target angle range and the distance sensor detects that the target is moving away.

[0097] If the target angle information is outside the target angle range, the system determines whether to respond to touch input based on the detection results of the distance sensor.

[0098] In this embodiment of the application, if the target angle information is within the target angle range and the distance sensor detects that the target is moving away, it indicates that the current touch input is not a mis-touch, and the electronic device responds to the currently received touch input.

[0099] If the target angle information is outside the target angle range, it is impossible to determine the user's current holding posture of the phone, nor is it possible to determine whether the user's hand is blocking the distance sensor. In this case, the original anti-mistouch logic is used to detect the mistouch, that is, to determine whether to respond to the current touch input based on the detection result of the distance sensor.

[0100] Specifically, if the target angle information is outside the target angle range and the distance sensor detects that the target is approaching, the touch input will not be responded to.

[0101] If the target angle information is outside the target angle range and the distance sensor detects that the target is moving away, then a touch input will be responded to.

[0102] This application embodiment, based on the anti-mistouch detection using a distance sensor, further determines whether the distance sensor is being obstructed by the user's hand by comparing the angle of the user's touch input with the target angle range, thereby improving the accuracy of the anti-mistouch detection.

[0103] The processing method provided in this application can be executed by a processing device. This application uses the example of a processing device executing the processing method to illustrate the processing device provided in this application.

[0104] In some embodiments of this application, a processing apparatus is provided for use in an electronic device. Figure 5 A structural block diagram of the processing apparatus according to an embodiment of this application is shown, such as... Figure 5 As shown, the electronic device includes a touch component and a proximity sensor, and the processing unit 500 includes:

[0105] The determining module 502 is used to determine the first coordinates corresponding to the touch input when a touch input to the touch component is detected; and to determine the target angle information based on the first coordinates and the second coordinates corresponding to the distance sensor.

[0106] The execution module 504 is used to determine whether to respond to touch input based on the detection result of the distance sensor after a delay of the target time when the target angle information is within the target angle range and the distance sensor detects proximity.

[0107] Based on the original distance sensor anti-mistouch detection, this application embodiment determines the target angle information when a user touches the touch component, according to the touch coordinates and the distance sensor coordinates. This target angle information can reflect the user's hand posture to a certain extent, thereby determining whether the user's hand is obstructing the distance sensor. When the user's hand may be obstructing the distance sensor, the detection result after the distance sensor delay is used to determine whether it is an accidental touch scenario, thereby improving the accuracy and reliability of anti-mistouch detection.

[0108] In some embodiments of this application, the target angle information includes a first angle;

[0109] The determination module is also used for:

[0110] Determine the target line segment based on the first and second coordinates;

[0111] The first angle is determined based on the angle between the line containing the target line segment and the baseline.

[0112] The embodiments of this application can avoid misidentifying a scenario where the user's hand is obstructing the distance sensor as a scenario where the electronic device is in a pocket or bag, thereby improving the recognition accuracy of gesture-based touch operations.

[0113] In some embodiments of this application, the target angle information further includes a second angle;

[0114] The determination module is also used to determine the touch area corresponding to the touch input based on the detection value of the touch component. The touch area is an elliptical touch area. The second angle is determined based on the angle between the line containing the major axis of the touch area and the baseline.

[0115] The execution module is also used to determine whether to respond to touch input based on the detection result of the distance sensor after a delay of the target time when both the first angle and the second angle are within the target angle range and the distance sensor detects proximity.

[0116] The embodiments of this application can avoid misidentifying a scenario where the user's input obstructs the distance sensor as a scenario where the electronic device is in a pocket or bag, thereby improving the recognition accuracy of gesture-based touch operations.

[0117] In some embodiments of this application, the execution module is further configured to abandon responding to touch input if the distance sensor still detects proximity after a delay of the target duration.

[0118] In this embodiment of the application, when a touch input is received, if the first angle and the second angle are both within the target angle range and the distance sensor detects proximity, the system determines whether it is a false touch based on the detection result of the distance sensor after a preset delay. If it is determined to be a false touch scenario, the system does not respond to the touch input, which can reduce power consumption caused by false touches.

[0119] In some embodiments of this application, the execution module is further configured to respond to touch input when the distance sensor detects that the target has moved away after a delay of the target duration.

[0120] In this embodiment of the application, when a touch input is received, if the first angle and the second angle are both within the target angle range and the distance sensor detects proximity, the system determines whether it is a false touch based on the detection result of the distance sensor after a preset delay. If it is determined to be a non-false touch scenario, the system responds to the touch input, thereby avoiding false detection of false touch scenarios and improving the reliability and success rate of gesture touch input.

[0121] In some embodiments of this application, the execution module is further configured to respond to touch input when the target angle information is within the target angle range and the distance sensor detects that the target is moving away; and to determine whether to respond to touch input based on the detection result of the distance sensor when the target angle information is outside the target angle range.

[0122] This application embodiment, based on the anti-mistouch detection using a distance sensor, further determines whether the distance sensor is being obstructed by the user's hand by comparing the angle of the user's touch input with the target angle range, thereby improving the accuracy of the anti-mistouch detection.

[0123] The processing device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope of the device.

[0124] The processing device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.

[0125] The processing apparatus provided in this application embodiment can implement the various processes implemented in the above method embodiments, and will not be described again here to avoid repetition.

[0126] Optionally, embodiments of this application also provide an electronic device. Figure 6 A structural block diagram of an electronic device according to an embodiment of this application is shown, such as... Figure 6 As shown, the electronic device 600 includes a processor 602, a memory 604, and a program or instructions stored in the memory 604 and executable on the processor 602. When the program or instructions are executed by the processor 602, they implement the various processes of the above method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.

[0127] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0128] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0129] The electronic device 700 includes, but is not limited to, components such as: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.

[0130] Those skilled in the art will understand that the electronic device 700 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 710 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 7 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0131] The processor 710 is used to determine the first coordinates corresponding to the touch input when a touch input to the touch component is detected; determine the target angle information based on the first coordinates and the second coordinates corresponding to the distance sensor; and determine whether to respond to the touch input based on the detection result of the distance sensor after a delay of the target duration when the target angle information is within the target angle range and the distance sensor detects proximity.

[0132] Based on the original distance sensor anti-mistouch detection, this application embodiment determines the target angle information when a user touches the touch component, according to the touch coordinates and the distance sensor coordinates. This target angle information can reflect the user's hand posture to a certain extent, thereby determining whether the user's hand is obstructing the distance sensor. When the user's hand may be obstructing the distance sensor, the detection result after the distance sensor delay is used to determine whether it is an accidental touch scenario, thereby improving the accuracy and reliability of anti-mistouch detection.

[0133] Optionally, the target angle information includes a first angle;

[0134] The processor 710 is also used to determine the target line segment based on the first coordinate and the second coordinate; and to determine the first angle based on the angle between the straight line containing the target line segment and the baseline.

[0135] The embodiments of this application can avoid misidentifying a scenario where the user's input obstructs the distance sensor as a scenario where the electronic device is in a pocket or bag, thereby improving the recognition accuracy of gesture-based touch operations.

[0136] Optionally, the target angle information may also include a second angle;

[0137] The processor 710 is also used to determine the touch area corresponding to the touch input based on the detection value of the touch component, wherein the touch area is an elliptical touch area; to determine a second angle based on the angle between the line containing the major axis of the touch area and the baseline; and, when both the first angle and the second angle are within the target angle range and the distance sensor detects proximity, to determine whether to respond to the touch input based on the detection result of the distance sensor after a delay of the target time.

[0138] The embodiments of this application can avoid misidentifying a scenario where the user's input obstructs the distance sensor as a scenario where the electronic device is in a pocket or bag, thereby improving the recognition accuracy of gesture-based touch operations.

[0139] Optionally, the processor 710 is also configured to abandon responding to touch input if the distance sensor still detects proximity after a delay of the target duration.

[0140] In this embodiment of the application, when a touch input is received, if the first angle and the second angle are both within the target angle range and the distance sensor detects proximity, the system determines whether it is a false touch based on the detection result of the distance sensor after a preset delay. If it is determined to be a false touch scenario, the system does not respond to the touch input, which can reduce power consumption caused by false touches.

[0141] Optionally, the processor 710 is also configured to respond to touch input if the distance sensor detects that the target has moved away after a delay of the target duration.

[0142] In this embodiment of the application, when a touch input is received, if the first angle and the second angle are both within the target angle range and the distance sensor detects proximity, the system determines whether it is a false touch based on the detection result of the distance sensor after a preset delay. If it is determined to be a non-false touch scenario, the system responds to the touch input, thereby avoiding false detection of false touch scenarios and improving the reliability and success rate of gesture touch input.

[0143] Optionally, the processor 710 is also configured to respond to touch input when the target angle information is within the target angle range and the distance sensor detects that the target is moving away; and to determine whether to respond to touch input based on the detection result of the distance sensor when the target angle information is outside the target angle range.

[0144] This application embodiment, based on the anti-mistouch detection using a distance sensor, further determines whether the distance sensor is being obstructed by the user's hand by comparing the angle of the user's touch input with the target angle range, thereby improving the accuracy of the anti-mistouch detection.

[0145] It should be understood that, in this embodiment, the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The GPU 7041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0146] The memory 709 can be used to store software programs and various data. The memory 709 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 709 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 709 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0147] Processor 710 may include one or more processing units; optionally, processor 710 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 710.

[0148] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0149] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0150] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0151] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0152] This application provides a computer program product that is stored in a storage medium and executed by at least one processor to implement the various processes of the above method embodiments and achieve the same technical effects. To avoid repetition, further details are omitted here.

[0153] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0154] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0155] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A processing method executed by an electronic device, characterized in that, The electronic device includes a touch component and a proximity sensor, and the method includes: Upon detecting a touch input to the touch component, a first coordinate corresponding to the touch input is determined; Based on the first coordinate and the second coordinate corresponding to the distance sensor, the target angle information is determined; When the target angle information is within the target angle range and the distance sensor detects proximity, it is determined whether to respond to the touch input based on the detection result of the distance sensor after a delay of the target duration. The target angle information includes a first angle; The determined target angle information includes: Determine the target line segment based on the first coordinate and the second coordinate; The first angle is determined based on the angle between the straight line containing the target line segment and the baseline; The target angle information also includes a second angle; After determining the first angle, the method further includes: Based on the detection value of the touch component, the touch area corresponding to the touch input is determined, and the touch area is an elliptical touch area; The second angle is determined based on the angle between the line containing the major axis of the touch area and the baseline; The step of determining whether to respond to the touch input based on the detection result of the distance sensor after a target delay time, when the target angle information is within the target angle range and the distance sensor detects proximity, includes: When both the first angle and the second angle are within the target angle range, and the distance sensor detects proximity, it is determined whether to respond to the touch input based on the detection result of the distance sensor after a delay of the target duration.

2. The processing method according to claim 1, characterized in that, The step of determining whether to respond to the touch input based on the detection result of the distance sensor after the target delay time includes: If the distance sensor still detects proximity after a target delay period, it abandons responding to the touch input.

3. The processing method according to claim 1, characterized in that, The step of determining whether to respond to the touch input based on the detection result of the distance sensor after the target delay time includes: The touch input is responded to when the distance sensor detects that the target has moved away after a delay of the target duration.

4. The processing method according to claim 1, characterized in that, After determining the target angle information based on the first coordinates and the second coordinates corresponding to the distance sensor, the method further includes: The touch input is responded to when the target angle information is within the target angle range and the distance sensor detects that the target is moving away; or If the target angle information is outside the target angle range, determine whether to respond to the touch input based on the detection result of the distance sensor.

5. A processing device applied to an electronic device, characterized in that, The electronic device includes a touch component and a proximity sensor, and the processing device includes: The determining module is configured to, upon detecting a touch input to the touch component, determine a first coordinate corresponding to the touch input; and Based on the first coordinate and the second coordinate corresponding to the distance sensor, the target angle information is determined; An execution module is used to determine whether to respond to the touch input based on the detection result of the distance sensor after a delay of the target time when the target angle information is within the target angle range and the distance sensor detects proximity. The target angle information includes a first angle; The determining module is further configured to: Determine the target line segment based on the first coordinate and the second coordinate; The first angle is determined based on the angle between the straight line containing the target line segment and the baseline; The target angle information also includes a second angle; The determining module is further configured to: Based on the detection value of the touch component, the touch area corresponding to the touch input is determined, and the touch area is an elliptical touch area; The second angle is determined based on the angle between the line containing the major axis of the touch area and the baseline; The execution module is specifically used to determine whether to respond to the touch input based on the detection result of the distance sensor after a delay of the target time when both the first angle and the second angle are within the target angle range and the distance sensor detects proximity.

6. The processing apparatus according to claim 5, characterized in that, The execution module is further configured to abandon the operation corresponding to the touch input if the distance sensor still detects proximity after the target delay time.

7. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the processing method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Device with touch screen false-actuation prevention

    CN103677403A

  • Infrared touch screen and method and system for identifying touch points of infrared touch screen

    CN115617206A