Holding detection method and device, electronic equipment and storage medium

By detecting multiple consecutive touch points in the electronic device screen and analyzing their sliding trajectories, the problem that the prior art can only judge the grip mode in the fingerprint unlocking scenario is solved, and the grip mode judgment is achieved in multiple scenarios, improving the accuracy and scope of application of the judgment.

CN120010733APending Publication Date: 2025-05-16BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311531620.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-16
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The existing grip detection technology can only judge the grip mode of electronic devices in fingerprint unlocking scenarios, but cannot be effectively judged in other scenarios, which is limited.

Method used

By acquiring a number of consecutive touch points detected in the electronic device screen, the grip mode of the electronic device is determined based on the sliding trajectory and preset conditions of these touch points. The preset conditions include the longitudinal distance of the touch point, the lateral distance difference, and the number of touch points located in the preset area.

Benefits of technology

It realizes the grip mode of judging the electronic device in any sliding scenario, and is not restricted by fingerprint unlocking scenarios, with a wider scope of application and higher judgment accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120010733A_ABST
    Figure CN120010733A_ABST
Patent Text Reader

Abstract

The invention relates to a holding detection method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a plurality of continuous touch points detected in a screen of the electronic equipment; and when the plurality of touch points meet a preset condition, determining a holding mode of the electronic equipment based on the sliding tracks corresponding to the plurality of touch points, the preset condition being used for representing gesture features of an up-sliding gesture or a down-sliding gesture. According to the method, the holding mode is judged through the sliding track of sliding when the user uses the electronic equipment, the use scene is not limited, the holding mode can be judged in any sliding scene, the method is not limited to a fingerprint unlocking scene, and the method has universality and is wider in application range.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a grip detection method, device, electronic device, and storage medium. Background Art

[0002] Grip detection technology is a technology that identifies how users hold electronic devices. By detecting how users hold electronic devices, various functions can be implemented to improve user experience. In related technologies, the direction of the fingerprint when unlocking the electronic device is used to determine the holding method of the electronic device. However, this method can only be applied to fingerprint unlocking scenarios. If there is no fingerprint unlocking on the screen of the electronic device or the electronic device is not in the fingerprint unlocking scenario, the holding method cannot be determined, which has limitations. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a grip detection method, device, electronic device and storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a grip detection method is provided, the method comprising:

[0005] Acquire a plurality of continuous touch points detected on the screen of the electronic device;

[0006] When the multiple touch points meet preset conditions, the holding method of the electronic device is determined based on the sliding tracks corresponding to the multiple touch points, and the preset conditions are used to characterize the gesture characteristics of the swipe up gesture or the swipe down gesture.

[0007] In some embodiments, the step of acquiring a plurality of consecutive touch points detected on a screen of an electronic device includes:

[0008] When the electronic device is in a portrait mode, the multiple touch points are acquired.

[0009] In some embodiments, when the multiple touch points meet a preset condition, before determining the holding method of the electronic device based on the sliding tracks corresponding to the multiple touch points, the method further includes:

[0010] The plurality of touch points are filtered to obtain a plurality of processed touch points.

[0011] In some embodiments, the plurality of touch points satisfy a preset condition, including at least one of the following:

[0012] The longitudinal distance between every two adjacent touch points among the multiple touch points is greater than a first preset threshold;

[0013] The difference between the longitudinal distance between the first touch point and the second touch point and the lateral distance between the first touch point and the second touch point is greater than a second preset threshold, the first touch point is the first touch point detected among the multiple touch points, and the second touch point is the second touch point detected among the multiple touch points;

[0014] A ratio between the number of touch points located in a preset area among the plurality of touch points and the number of the plurality of touch points is greater than a third preset threshold.

[0015] In some embodiments, before determining the holding method of the electronic device based on the sliding tracks corresponding to the multiple touch points, the method further includes:

[0016] Curve fitting is performed on the multiple touch points to obtain the sliding trajectory.

[0017] In some embodiments, determining the holding method of the electronic device based on the sliding tracks corresponding to the multiple touch points includes:

[0018] Determining a curvature direction corresponding to the sliding trajectory;

[0019] When the curvature direction is the first direction, determining that the holding mode is right-hand holding;

[0020] When the curvature direction is the second direction, determining that the holding mode is left-hand holding;

[0021] The first direction is opposite to the second direction.

[0022] In some embodiments, the step of acquiring a plurality of consecutive touch points detected on a screen of an electronic device includes:

[0023] Acquire mutual capacitance data of the screen, wherein the mutual capacitance data includes a capacitance value of each channel in the screen;

[0024] Based on the mutual capacitance data, the plurality of touch points are determined.

[0025] According to a second aspect of an embodiment of the present disclosure, a grip detection device is provided, the device comprising:

[0026] A touch point acquisition module is configured to acquire a plurality of continuous touch points detected on the screen of the electronic device;

[0027] The holding method determination module is configured to determine the holding method of the electronic device based on the sliding tracks corresponding to the multiple touch points when the multiple touch points meet the preset conditions, and the preset conditions are used to characterize the gesture characteristics of the swipe up gesture or the swipe down gesture.

[0028] In some embodiments, the touch point acquisition module is configured to:

[0029] When the electronic device is in a portrait mode, the multiple touch points are acquired.

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

[0031] The filtering module is configured to perform filtering processing on the multiple touch points to obtain multiple processed touch points.

[0032] In some embodiments, the plurality of touch points satisfy a preset condition, including at least one of the following:

[0033] The longitudinal distance between every two adjacent touch points among the multiple touch points is greater than a first preset threshold;

[0034] The difference between the longitudinal distance between the first touch point and the second touch point and the lateral distance between the first touch point and the second touch point is greater than a second preset threshold, the first touch point is the first touch point detected among the multiple touch points, and the second touch point is the second touch point detected among the multiple touch points;

[0035] A ratio between the number of touch points located in a preset area among the plurality of touch points and the number of the plurality of touch points is greater than a third preset threshold.

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

[0037] The sliding trajectory determination module is configured to perform curve fitting on the multiple touch points to obtain the sliding trajectory.

[0038] In some embodiments, the holding mode determination module is configured to:

[0039] Determining a curvature direction corresponding to the sliding trajectory;

[0040] When the curvature direction is the first direction, determining that the holding mode is right-hand holding;

[0041] When the curvature direction is the second direction, determining that the holding mode is left-hand holding;

[0042] The first direction is opposite to the second direction.

[0043] In some embodiments, the touch point acquisition module is configured to:

[0044] Acquire mutual capacitance data of the screen, wherein the mutual capacitance data includes a capacitance value of each channel in the screen;

[0045] Based on the mutual capacitance data, the plurality of touch points are determined.

[0046] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0047] processor;

[0048] a memory for storing processor-executable instructions;

[0049] The processor is configured to execute the method as described in the first aspect of the embodiment of the present disclosure.

[0050] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method described in the first aspect of the embodiment of the present disclosure.

[0051] The above method of the present disclosure has the following beneficial effects:

[0052] The method provided by the embodiment of the present disclosure obtains a plurality of continuous touch points detected on the screen of the electronic device; when the plurality of touch points meet the preset conditions, the holding method of the electronic device is determined based on the sliding tracks corresponding to the plurality of touch points, and the preset conditions are used to characterize the gesture features of the upward or downward swipe gesture. The holding method is determined by the sliding track of the user sliding when using the electronic device, and there is no restriction on the usage scenario. The holding method can be determined in any sliding scenario, not limited to the fingerprint unlocking scenario, and has universality and a wider range of applications.

[0053] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0055] Figure 1 is a flow chart showing a grip detection method according to an exemplary embodiment;

[0056] Figure 2 is a flow chart showing a grip detection method according to an exemplary embodiment;

[0057] Figure 3 is a schematic diagram showing a curvature direction according to an exemplary embodiment;

[0058] Figure 4 is a schematic diagram showing a curvature direction according to an exemplary embodiment;

[0059] Figure 5 is a block diagram of a holding detection device according to an exemplary embodiment;

[0060] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0061] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0062] In the related art, the holding method of the electronic device is judged by the direction of the fingerprint when the fingerprint is unlocked. If the fingerprint is tilted upward, it is determined that the electronic device is held by the right hand, and if the fingerprint is not tilted upward, it is determined that the electronic device is held by the left hand. This method has limitations, on the one hand, if there is no fingerprint unlocking on the screen of the electronic device or the electronic device is not in the fingerprint unlocking scene, it is impossible to judge the holding method. On the other hand, the fingerprint unlocking area of ​​many electronic devices is located relatively low on the screen, and the fingerprint is oriented close to the horizontal direction, resulting in poor judgment accuracy.

[0063] Compared with the solution of judging the holding method based on fingerprint unlocking, the solution of judging the holding method based on the sliding trajectory provided in the embodiment of the present disclosure is more universal, has a wider range of applications, and has higher judgment accuracy.

[0064] The method provided by the embodiments of the present disclosure can be applied in a variety of scenarios.

[0065] For example, in the scenario of preventing accidental touch operations, when the user holds the electronic device, the user's fingers or palms may accidentally touch the screen of the electronic device, especially the edge of the screen, but this touch is not what the user wants. Therefore, after detecting that the user is holding the electronic device, the method provided by the embodiment of the present disclosure is adopted to temporarily disable some touch functions until the user is no longer detected holding the electronic device. Furthermore, when the holding method includes left-hand holding and right-hand holding, if it is detected that the user is holding with the left hand, the partial touch function of the left area of ​​the screen can be temporarily disabled, and if it is detected that the user is holding with the right hand, the partial touch function of the right area of ​​the screen can be temporarily disabled.

[0066] For another example, in a scenario where antenna adjustment is applied, multiple antennas are deployed in an electronic device. When the antenna is blocked, the signal quality of the electronic device will be affected. After detecting that a user is holding the electronic device using the method provided in an embodiment of the present disclosure, the antenna transmission power can be adjusted according to the user's holding method. For example, if it is detected that the user is holding the electronic device with his left hand, the transmission power of the right antenna can be increased and the transmission function of the left antenna can be reduced. If it is detected that the user is holding the electronic device with his right hand, the transmission power of the left antenna can be increased and the transmission power of the right antenna can be reduced, thereby enhancing the signal of the electronic device as much as possible while keeping the power consumption of the electronic device basically unchanged.

[0067] Of course, in other scenarios, after the method provided in the embodiment of the present disclosure is used to detect the user's holding method, the electronic device can also perform corresponding operations, thereby providing the user with a better user experience. The embodiment of the present disclosure does not limit the operations that the electronic device can perform after detecting the user's holding method.

[0068] The method provided in the embodiment of the present disclosure is executed by an electronic device, which may be a mobile phone, a tablet computer, a laptop computer, a wearable device, a vehicle-mounted terminal, a smart home device, or other device with a touch screen.

[0069] Figure 1 is a flowchart of a grip detection method according to an exemplary embodiment, which is executed by an electronic device, see Figure 1 , the method comprises the following steps:

[0070] Step S101, acquiring a plurality of continuous touch points detected on the screen of the electronic device.

[0071] The touch point is the position point when the user touches the screen. When the user's finger slides on the screen, the electronic device can detect multiple continuous touch points. Each touch point has a corresponding coordinate, which is a coordinate in a two-dimensional coordinate system on the screen. The vertical axis of the two-dimensional coordinate system is the vertical direction of the screen, and the horizontal axis is the horizontal direction of the screen. The origin can be any position point on the screen.

[0072] Step S102, when the multiple touch points meet the preset conditions, the holding method of the electronic device is determined based on the sliding tracks corresponding to the multiple touch points, and the preset conditions are used to characterize the gesture features of the swipe up gesture or the swipe down gesture.

[0073] Among them, multiple touch points satisfying the preset conditions means: the multiple touch points are generated by the user's swipe up gesture or swipe down gesture, and multiple touch points satisfying the preset conditions indicates that the user is currently performing a swipe up operation or a swipe down operation on the screen, the sliding trajectory refers to the sliding trajectory generated by the swipe up operation or the swipe down operation, and the holding methods include right-hand holding and left-hand holding.

[0074] Since different fingers have different inclinations when sliding, for example, when the user's right fingers slide, they will unconsciously deviate to the right, and when the user's left fingers slide, they will unconsciously deviate to the left. Therefore, when the user operates with one hand, that is, the hand holding the electronic device and the hand sliding on the screen are the same, it can be determined based on the sliding trajectory whether the user is holding the electronic device with the left hand or the right hand.

[0075] The method provided by the embodiment of the present disclosure obtains a plurality of continuous touch points detected on the screen of the electronic device; when the plurality of touch points meet the preset conditions, the holding method of the electronic device is determined based on the sliding tracks corresponding to the plurality of touch points, and the preset conditions are used to characterize the gesture features of the upward or downward swipe gesture. The holding method is determined by the sliding track of the user sliding when using the electronic device, and there is no restriction on the usage scenario. The holding method can be determined in any sliding scenario, not limited to the fingerprint unlocking scenario, and has universality and a wider range of applications.

[0076] Figure 2 is a flowchart of a grip detection method according to an exemplary embodiment, which is executed by an electronic device, see Figure 2 , the method comprises the following steps:

[0077] Step S201, when the electronic device is in the portrait mode, obtaining the mutual capacitance data of the screen.

[0078] In the disclosed embodiment, the electronic device has a landscape mode and a portrait mode. When the electronic device is in landscape mode, the user usually needs to use both hands to operate the electronic device. In this case, it is somewhat redundant to determine the way the user holds the electronic device. While increasing the power consumption of the electronic device, it is difficult to generate additional benefits. When the electronic device is in portrait mode, it is more convenient for the user to operate the electronic device with one hand. In this case, the user may hold the device with the right hand or with the left hand. In order to facilitate the subsequent electronic device to perform corresponding operations based on the holding method, it is necessary to first determine the way the user holds the electronic device. Therefore, when the electronic device is in portrait mode, the solution of determining the way the user holds the electronic device is started.

[0079] In some embodiments, the electronic device obtains a picture currently displayed on the screen, and based on the picture, determines whether the electronic device is in portrait mode.

[0080] The screen of the electronic device may be a capacitive screen or other types of screens. The disclosed embodiment takes the screen of the electronic device as a capacitive screen as an example to obtain the mutual capacitance data of the screen. The mutual capacitance data is data that characterizes the user's touch control of the screen. The mutual capacitance data includes the capacitance value of each channel in the screen. A larger capacitance value indicates that the position point corresponding to the channel in the screen is a touch point, and a smaller capacitance value indicates that the position point corresponding to the channel in the screen is not a touch point.

[0081] In some embodiments, a plurality of sensors are disposed under the screen. When a user touches the screen, the sensors can detect corresponding capacitance values, and mutual capacitance data is determined based on the capacitance values ​​detected by the plurality of sensors.

[0082] Step S202, determining a plurality of touch points based on the mutual capacitance data.

[0083] Based on the capacitance values ​​included in the mutual capacitance data, a plurality of touch points are determined. Optionally, when a capacitance value corresponding to a certain position point is greater than a preset capacitance value, the position point is determined to be a touch point.

[0084] In some embodiments, mutual capacitance data is acquired each time the screen is refreshed, and a touch point is determined based on the mutual capacitance data acquired each time, thereby determining multiple touch points based on the mutual capacitance data acquired multiple times.

[0085] In the disclosed embodiment, mutual capacitance data is data generated when a user operates on the screen. Multiple touch points are determined based on the mutual capacitance data without additionally increasing the power consumption of the electronic device.

[0086] Step S203: filter the multiple touch points to obtain multiple processed touch points.

[0087] In some embodiments, a plurality of touch points may be filtered by a filter to obtain a plurality of processed touch points, wherein the filter may be an IIR (Infinite Impulse Response) filter, a FIR (Finite Impulse Response) filter or other filters.

[0088] In the disclosed embodiment, by filtering multiple touch points, abnormal touch points among the multiple touch points can be removed, so that a smoother sliding trajectory can be fitted subsequently, and the abnormal touch points are prevented from affecting the subsequent curve fitting.

[0089] Step S204: when the multiple touch points meet the preset conditions, curve fitting is performed on the multiple touch points to obtain a sliding trajectory.

[0090] The preset condition is used to characterize the gesture feature of the swipe up gesture or the swipe down gesture.

[0091] In some embodiments, the plurality of touch points satisfy a preset condition, including at least one of the following:

[0092] 1. The longitudinal distance between every two adjacent touch points among the multiple touch points is greater than a first preset threshold.

[0093] Among them, the first preset threshold is a pre-set value. Since the refresh rate of the electronic device is fixed, the duration of the interval between each two adjacent touch points is fixed. When the duration of the interval is fixed, the larger the longitudinal distance between two adjacent touch points, the faster the sliding speed of the user's finger, and the smaller the longitudinal distance between two adjacent touch points, the slower the sliding speed of the user's finger. If the sliding speed of the finger is relatively slow, it means that the user may not slide a long distance. In this case, it is difficult to obtain the sliding trajectory. When the sliding speed of the finger is relatively fast, it means that the user may slide a long distance. At this time, the sliding trajectory can be obtained. Therefore, when the longitudinal distance between each two adjacent touch points is greater than the first preset threshold, curve fitting is performed on multiple touch points to obtain the sliding trajectory.

[0094] 2. A difference between a longitudinal distance between the first touch point and the second touch point and a lateral distance between the first touch point and the second touch point is greater than a second preset threshold.

[0095] The first touch point is the first touch point detected among the multiple touch points, the second touch point is the second touch point detected among the multiple touch points, and the second preset threshold is a preset value. That is to say, for the entire sliding process, it is necessary to present a trend of sliding upward or sliding downward, rather than sliding left or right.

[0096] 3. A ratio between the number of touch points located in the preset area among the multiple touch points and the number of the multiple touch points is greater than a third preset threshold.

[0097] The third preset threshold is a preset value, and the preset area is an area in the middle of the screen. In view of the actual situation, when a user holds an electronic device in one hand and slides the finger of the hand holding the electronic device on the screen, the finger is likely to slide in the area in the middle of the screen. Therefore, it is determined whether the ratio is greater than the third threshold. When the ratio is greater than the third preset, it means that more of the multiple touch points are located in the area in the middle of the screen.

[0098] In the disclosed embodiment, multiple touch points meet preset conditions, which can ensure that the holding method is judged when the user slides up or down, avoiding misjudgment of the holding method during other operations, thereby making subsequent holding method judgment results more accurate.

[0099] In some embodiments, the mutual capacitance data also includes the acquisition time corresponding to each capacitance value. When determining the touch point, the order of acquisition of multiple touch points can be determined based on the acquisition time, and curve fitting can be performed on the multiple touch points based on the order of acquisition of the multiple touch points.

[0100] In some embodiments, performing curve fitting on multiple touch points to obtain a sliding trajectory includes: performing curve fitting based on the coordinates of the multiple touch points to obtain the sliding trajectory. It should be noted that the embodiments of the present disclosure do not limit the implementation method adopted when curve fitting.

[0101] Step S205, determining the curvature direction corresponding to the sliding track.

[0102] The curvature direction is used to represent the direction in which the user's finger deviates when sliding on the screen.

[0103] In some embodiments, the curvature direction corresponding to each touch point in the sliding track is obtained, and the curvature directions corresponding to multiple touch points are merged to obtain the curvature direction corresponding to the sliding track.

[0104] Step S206: when the curvature direction is the first direction, determining the holding mode is right-hand holding; when the curvature direction is the second direction, determining the holding mode is left-hand holding.

[0105] Among them, the first direction is opposite to the second direction, the first direction is the right direction, and the second direction is the left direction. The first direction can be towards the upper right, lower right or any direction towards the right side, and the second direction can be towards the upper left, lower left or any direction towards the left side.

[0106] For example, see Figure 3 Schematic diagram of the curvature direction shown, Figure 3 The black dots in the middle are touch points, the curve is the sliding track fitted based on multiple touch points, and the direction pointed by the arrow is the curvature direction. Figure 3 It can be seen that the direction of the curvature is toward the right, so it can be determined that the device is currently being held with the right hand.

[0107] For example, see Figure 4 Schematic diagram of the curvature direction shown, Figure 4 The black dots in the middle are touch points, the curve is the sliding track fitted based on multiple touch points, and the direction pointed by the arrow is the curvature direction. Figure 4 It can be seen that the direction of the curvature is towards the left, so it can be determined that the device is currently being held by the left hand.

[0108] The method provided by the embodiment of the present disclosure determines the holding method through the sliding trajectory of the user when using the electronic device. It has no restrictions on the usage scenarios and can determine the holding method in any sliding scenario. It is not limited to the fingerprint unlocking scenario, and is universal and has a wider range of applications.

[0109] Furthermore, in the disclosed embodiment, the holding method is determined by a sliding trajectory. Compared with a fingerprint, a sliding trajectory is a more obvious operation method and is not affected by certain areas of the screen. Moreover, compared with the orientation of a fingerprint, the curvature direction is more obvious and less prone to misjudgment. Therefore, it is more accurate to determine the holding method by the curvature direction.

[0110] Furthermore, while the user is using the electronic device, the holding method can be determined multiple times without being limited to determination at the time of unlocking. Therefore, there are more verification opportunities, and the robustness and accuracy are better.

[0111] Figure 5 is a block diagram of a holding detection device according to an exemplary embodiment, which is configured in an electronic device, see Figure 5 , the device comprises:

[0112] A touch point acquisition module 501 is configured to acquire a plurality of continuous touch points detected on the screen of the electronic device;

[0113] The holding method determination module 502 is configured to determine the holding method of the electronic device based on the sliding tracks corresponding to the multiple touch points when the multiple touch points meet the preset conditions, and the preset conditions are used to characterize the gesture characteristics of the swipe up gesture or the swipe down gesture.

[0114] In some embodiments, the touch point acquisition module 501 is configured to:

[0115] When the electronic device is in portrait mode, multiple touch points are acquired.

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

[0117] The filtering module is configured to perform filtering processing on the multiple touch points to obtain the processed multiple touch points.

[0118] In some embodiments, the plurality of touch points satisfy a preset condition, including at least one of the following:

[0119] The longitudinal distance between every two adjacent touch points among the multiple touch points is greater than a first preset threshold;

[0120] The difference between the longitudinal distance between the first touch point and the second touch point and the lateral distance between the first touch point and the second touch point is greater than a second preset threshold, the first touch point is the first touch point detected among the multiple touch points, and the second touch point is the second touch point detected among the multiple touch points;

[0121] A ratio between the number of touch points located in the preset area among the multiple touch points and the number of the multiple touch points is greater than a third preset threshold.

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

[0123] The sliding trajectory determination module is configured to perform curve fitting on multiple touch points to obtain a sliding trajectory.

[0124] In some embodiments, the holding mode determination module 502 is configured to:

[0125] Determine the curvature direction corresponding to the sliding trajectory;

[0126] When the curvature direction is the first direction, determining the holding mode is right-hand holding;

[0127] When the curvature direction is the second direction, determining the holding mode is left-hand holding;

[0128] The first direction is opposite to the second direction.

[0129] In some embodiments, the touch point acquisition module 501 is configured to:

[0130] Get the mutual capacitance data of the screen, which includes the capacitance value of each channel in the screen;

[0131] Based on the mutual capacitance data, multiple touch points are determined.

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

[0133] An embodiment of the present disclosure further provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the holding detection method in the above embodiment.

[0134] Figure 6 is a block diagram of an electronic device 600 according to an exemplary embodiment.

[0135] Reference Figure 6, the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

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

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

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

[0139] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

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

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

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

[0143] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0144] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0145] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0146] The embodiments of the present disclosure also provide a non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the holding detection method in the above embodiment.

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

[0148] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A grip detection method, characterized in that: The method comprises: Acquire a plurality of continuous touch points detected on the screen of the electronic device; When the multiple touch points meet preset conditions, the holding method of the electronic device is determined based on the sliding tracks corresponding to the multiple touch points, and the preset conditions are used to characterize the gesture characteristics of the swipe up gesture or the swipe down gesture.

2. The method according to claim 1, characterized in that The step of acquiring a plurality of continuous touch points detected on the screen of the electronic device includes: When the electronic device is in a portrait mode, the multiple touch points are acquired.

3. The method according to claim 1, characterized in that Before determining the holding method of the electronic device based on the sliding tracks corresponding to the multiple touch points when the multiple touch points meet the preset conditions, the method further includes: The plurality of touch points are filtered to obtain a plurality of processed touch points.

4. The method according to claim 1, characterized in that: The plurality of touch points satisfy a preset condition, including at least one of the following: The longitudinal distance between every two adjacent touch points among the multiple touch points is greater than a first preset threshold; The difference between the longitudinal distance between the first touch point and the second touch point and the lateral distance between the first touch point and the second touch point is greater than a second preset threshold, the first touch point is the first touch point detected among the multiple touch points, and the second touch point is the second touch point detected among the multiple touch points; A ratio between the number of touch points located in a preset area among the plurality of touch points and the number of the plurality of touch points is greater than a third preset threshold.

5. The method according to claim 1, characterized in that Before determining the holding method of the electronic device based on the sliding tracks corresponding to the multiple touch points, the method further includes: Curve fitting is performed on the multiple touch points to obtain the sliding trajectory.

6. The method according to claim 1, characterized in that The determining the holding method of the electronic device based on the sliding tracks corresponding to the multiple touch points includes: Determining a curvature direction corresponding to the sliding trajectory; When the curvature direction is the first direction, determining that the holding mode is right-hand holding; When the curvature direction is the second direction, determining that the holding mode is left-hand holding; The first direction is opposite to the second direction.

7. The method according to claim 1, characterized in that The step of acquiring a plurality of continuous touch points detected on the screen of the electronic device includes: Acquire mutual capacitance data of the screen, wherein the mutual capacitance data includes a capacitance value of each channel in the screen; Based on the mutual capacitance data, the plurality of touch points are determined.

8. A grip detection device, characterized in that: The device comprises: A touch point acquisition module is configured to acquire a plurality of continuous touch points detected on the screen of the electronic device; The holding method determination module is configured to determine the holding method of the electronic device based on the sliding tracks corresponding to the multiple touch points when the multiple touch points meet the preset conditions, and the preset conditions are used to characterize the gesture characteristics of the swipe up gesture or the swipe down gesture.

9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method as claimed in any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 7.