Screen capture method, electronic device and storage medium
By analyzing touch screen data in an electronic device, identifying user's gestures and performing screenshot operations, the page scrolling problem that users may cause when taking screenshots is solved, and the accuracy and user experience of screenshots are improved.
Patent Information
- Application Number
- CN202110292289.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-18
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2041-03-18
AI Technical Summary
In electronic devices, when a user takes screenshots through multi-finger sliding operations, page scrolling and screenshots may occur simultaneously, resulting in the user not being able to seize the desired page and reducing the user experience.
By detecting the user's multi-finger sliding operation, obtaining and parsing touch screen data, determining whether the user's gesture is a preset screenshot gesture, and performing screenshot operations when it is determined to be a screenshot gesture, avoiding misunderstanding as a scrolling operation.
It effectively avoids the situation where page scrolling and screenshots occur simultaneously, and improves the user's screenshot efficiency and experience.
Smart Images

Figure CN115167747B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computers, and in particular to a screenshot method, an electronic device, and a storage medium. Background Art
[0002] With the continuous development of electronic technology, most electronic devices with display screens (such as mobile phones, tablets, notebooks, etc.) have touch screen functions, which brings convenience to users. In addition, users can take screenshots of the screen through multi-finger operations, for example, users can take screenshots through a three-finger swipe gesture.
[0003] In actual applications, if the displayed content of the current page of a certain application exceeds the display area of the display screen of the electronic device, the current page may include a scroll bar, so that the user can browse the content beyond the above display area by operating the scroll bar. For example, the user can operate the current page through a gesture (e.g., a two-finger swipe gesture) so that the current page can be scrolled so that the user can browse the undisplayed content.
[0004] When a user wants to take a screenshot using a screenshot gesture (for example, a three-finger swipe down), the three-finger swipe down gesture will be interpreted by the electronic device as a two-finger swipe down gesture, which may trigger both the screenshot and the page scrolling at the same time, resulting in the user being unable to capture the desired page (i.e., the current page that does not scroll), reducing the user experience. Summary of the invention
[0005] The embodiments of the present application provide a screenshot method, an electronic device, and a storage medium to provide a way to take a screenshot on a page to avoid the situation where the page is scrolled and the screenshot occurs at the same time.
[0006] In a first aspect, an embodiment of the present application provides a screenshot method, which is applied to an electronic device, comprising:
[0007] In response to the detected multi-finger sliding operation of the user, the first touch screen data of the user is obtained; specifically, the first touch screen data can be created according to the multi-finger sliding operation of the user. The first touch screen data may include the number of touch points and touch point information of the user.
[0008] The first touch screen data is parsed, and the first touch screen data is updated based on the parsing result to obtain the second touch screen data; specifically, the second touch screen data may contain the same fields as the first touch screen data, and the values in the fields of the second touch screen data may be different from the values in the fields of the first touch screen data.
[0009] The second touch screen data is parsed to determine whether the user gesture corresponding to the second touch screen data is a preset screenshot gesture; if it is determined that the user gesture corresponding to the second touch screen data is the preset screenshot gesture, a screenshot operation is performed.
[0010] In the embodiment of the present application, by filtering the touch screen data, it is possible to avoid the user's screenshot action being misunderstood as a scrolling operation, thereby improving the user's screenshot efficiency and improving the user experience.
[0011] In one possible implementation, the first touch screen data includes the number of touch points, and the first touch screen data is updated based on the analysis result, and the second touch screen data is obtained including:
[0012] Comparing the number of touch points in the first touch screen data with a preset first value;
[0013] If the number of touch points in the first touch screen data is consistent with the preset first value, the number of touch points in the first touch screen data is updated to obtain the second touch screen data, and the second touch screen data includes the number of touch points of the preset second value.
[0014] In the embodiment of the present application, by changing the value of the number of touch points in the touch screen data, the touch screen data is filtered, which can improve the efficiency of filtering.
[0015] In order to effectively identify the second touch screen data and improve filtering efficiency, in one possible implementation, the second value is preset as a special value.
[0016] In one possible implementation, the electronic device is installed with a first application, the first application is used for taking screenshots, and parsing the second touch screen data includes:
[0017] In response to the received data request of the first application, the second touch screen data is sent to the first application, so that the first application parses the second touch screen data.
[0018] In the embodiment of the present application, the efficiency of gesture recognition can be improved by actively acquiring the second touch screen data through the application program.
[0019] In one possible implementation, the electronic device is further installed with a second application, the second application is used to display the page, and further includes:
[0020] Obtaining an identity of a second application;
[0021] If the identity of the second application is in a preset whitelist, the screenshot operation is prohibited, wherein the preset whitelist includes the identities of one or more application programs.
[0022] In the embodiment of the present application, by identifying the second application program, it is determined whether to prohibit the screenshot operation, thereby preventing the screenshot from being taken by mistake in the second application program.
[0023] In one possible implementation, the electronic device is further installed with a second application, the second application is used to display the page, and further includes:
[0024] Obtaining an identity of a second application;
[0025] If the identity identifier of the second application is in the preset whitelist, a screenshot prompt is sent, and the screenshot prompt is used to prompt the user whether to take a screenshot.
[0026] In the embodiment of the present application, a prompt is sent to allow the user to decide whether to take a screenshot, thereby improving the flexibility of screenshots and further improving the user experience.
[0027] In one possible implementation, the second touch screen data includes a plurality of touch point data, each touch point data includes a touch point coordinate, and parsing the second touch screen data to determine whether the user gesture corresponding to the second touch screen data is a preset screenshot gesture includes:
[0028] Reading the touch point data in the second touch screen data, and determining the total number of the touch point data as the number of touch points;
[0029] determining the user's action based on a change in the touch point coordinates of the touch point data in the second touch screen data;
[0030] Based on the number of touch points and the user's action, it is determined whether the user gesture corresponding to the second touch screen data is a preset screenshot gesture, where the preset screenshot gesture includes a preset number of touch points and a preset action.
[0031] In the embodiment of the present application, whether the user's gesture is a preset screenshot gesture is determined by the number of contacts and actions, so that the efficiency of gesture recognition can be improved.
[0032] The present application also provides a screenshot method, which is applied to an electronic device and includes:
[0033] In response to a detected multi-finger sliding operation of the user, the user's first touch screen data is obtained; the first touch screen data is parsed to determine whether the user gesture corresponding to the first touch screen data is a preset screenshot gesture; if it is determined that the user gesture corresponding to the first touch screen data is a preset screenshot gesture, the screenshot operation is performed.
[0034] In the embodiment of the present application, the user's screenshot gesture can be identified by identifying the touch screen data, thereby avoiding the simultaneous occurrence of the screenshot operation and the page scrolling operation, thereby improving the user experience.
[0035] In one possible implementation, the first touch screen data includes a plurality of touch point data, each touch point data includes a touch point coordinate, and parsing the first touch screen data to determine whether the user gesture corresponding to the first touch screen data is a preset screenshot gesture includes:
[0036] Acquire two first touch screen data and the number of touch points in the first touch screen data;
[0037] determining a user's action based on a change in the touch point coordinates of the touch point data in the two first touch screen data;
[0038] Based on the number of touch points in the first touch screen data and the user's action, it is determined whether the user gesture corresponding to the first touch screen data is a preset screenshot gesture.
[0039] In an embodiment of the present application, by identifying two first touch screen data to determine the user's gesture, the recognition speed can be accelerated, so that the screenshot operation can be identified before the page scrolling operation is identified, thereby avoiding the simultaneous occurrence of the page scrolling operation and the screenshot operation.
[0040] In order to improve the efficiency of screenshot, in one possible implementation, the electronic device is installed with a first application, the first application is used for screenshot, if it is determined that the user gesture corresponding to the first touch screen data is a preset screenshot gesture, then executing the screenshot operation includes:
[0041] If it is determined that the user gesture corresponding to the first screen touch data is a preset screenshot gesture, a screenshot instruction is sent to the first application, where the screenshot instruction is used to instruct the first application to perform a screenshot operation.
[0042] In a second aspect, an embodiment of the present application provides a screen capture device, which is applied to an electronic device, including:
[0043] An acquisition module, configured to acquire first touch screen data of the user in response to a detected multi-finger sliding operation of the user;
[0044] An updating module, configured to parse the first touch screen data, and update the first touch screen data based on the parsing result to obtain second touch screen data;
[0045] A parsing module, used to parse the second touch screen data and determine whether the user gesture corresponding to the second touch screen data is a preset screenshot gesture;
[0046] The screenshot module is used to execute a screenshot operation if it is determined that the user gesture corresponding to the second touch screen data is a preset screenshot gesture.
[0047] In one possible implementation method, the first touch screen data includes the number of touch points, and the above-mentioned update module is also used to compare the number of touch points in the first touch screen data with a preset first value; if the number of touch points in the first touch screen data is consistent with the preset first value, the number of touch points in the first touch screen data is updated to obtain the second touch screen data, and the second touch screen data includes the number of touch points of the preset second value.
[0048] In one possible implementation manner, the preset second value is a special value.
[0049] In one possible implementation, the electronic device is installed with a first application, which is used for taking screenshots. The parsing module is also used to send the second touch screen data to the first application in response to a data request received from the first application, so that the first application parses the second touch screen data.
[0050] In one possible implementation, the electronic device is further installed with a second application, the second application is used to display a page, and the apparatus further includes:
[0051] The prohibition module is used to obtain the identity of the second application; if the identity of the second application is in a preset whitelist, the screenshot operation is prohibited, wherein the preset whitelist includes the identities of one or more applications.
[0052] In one possible implementation, the electronic device is further installed with a second application, the second application is used to display a page, and the apparatus further includes:
[0053] The prompt module is used to obtain the identity of the second application; if the identity of the second application is in the preset whitelist, a screenshot prompt is sent, and the screenshot prompt is used to prompt the user whether to take a screenshot.
[0054] In one possible implementation method, the second touch screen data includes multiple touch point data, each touch point data includes touch point coordinates, and the analysis module is also used to read the touch point data in the second touch screen data to determine the total number of touch point data as the number of touch points; determine the user's action based on the change of the touch point coordinates of the touch data in the second touch screen data; determine whether the user gesture corresponding to the second touch screen data is a preset screenshot gesture based on the number of touch points and the user's action, and the preset screenshot gesture includes a preset number of touch points and a preset action.
[0055] The present application also provides a screen capture device, which is applied to an electronic device, including:
[0056] An acquisition module, configured to acquire first touch screen data of the user in response to a detected multi-finger sliding operation of the user;
[0057] A parsing module, used to parse the first touch screen data and determine whether the user gesture corresponding to the first touch screen data is a preset screenshot gesture;
[0058] The screenshot module is used to execute a screenshot operation if it is determined that the user gesture corresponding to the first touch screen data is a preset screenshot gesture.
[0059] In one possible implementation method, the above-mentioned first touch screen data includes multiple touch point data, each touch point data includes touch point coordinates, and the above-mentioned analysis module is also used to obtain two first touch screen data and the number of touch points in the first touch screen data; determine the user's action based on the change of the touch point coordinates of the touch point data in the two first touch screen data; determine whether the user gesture corresponding to the first touch screen data is a preset screenshot gesture based on the number of touch points in the first touch screen data and the user's action.
[0060] In one possible implementation, the electronic device is installed with a first application, which is used for taking screenshots. The screenshot module is also used to send a screenshot indication to the first application if it is determined that the user gesture corresponding to the first touch screen data is a preset screenshot gesture. The screenshot indication is used to instruct the first application to perform a screenshot operation.
[0061] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0062] A memory, wherein the memory is used to store computer program codes, wherein the computer program codes include instructions, and when the electronic device reads the instructions from the memory, the electronic device performs the following steps:
[0063] In response to the detected multi-finger sliding operation of the user, acquiring first touch screen data of the user;
[0064] Parsing the first touch screen data, and updating the first touch screen data based on the parsing result to obtain second touch screen data;
[0065] Parsing the second touch screen data to determine whether the user gesture corresponding to the second touch screen data is a preset screenshot gesture;
[0066] If it is determined that the user gesture corresponding to the second touch screen data is a preset screenshot gesture, a screenshot operation is performed.
[0067] In one possible implementation, the first touch screen data includes the number of touch points, and when the instruction is executed by the electronic device, the electronic device updates the first touch screen data based on the analysis result, and the step of obtaining the second touch screen data includes:
[0068] Comparing the number of touch points in the first touch screen data with a preset first value;
[0069] If the number of touch points in the first touch screen data is consistent with the preset first value, the number of touch points in the first touch screen data is updated to obtain the second touch screen data, and the second touch screen data includes the number of touch points of the preset second value.
[0070] In one possible implementation manner, the preset second value is a special value.
[0071] In one possible implementation, the electronic device is installed with a first application, the first application is used for taking screenshots, and when the instruction is executed by the electronic device, the electronic device is enabled to perform a step of parsing the second touch screen data, including:
[0072] In response to the received data request of the first application, the second touch screen data is sent to the first application, so that the first application parses the second touch screen data.
[0073] In one possible implementation, the electronic device is further installed with a second application, and the second application is used to display a page. When the instruction is executed by the electronic device, the electronic device further performs the following steps:
[0074] Obtaining an identity of a second application;
[0075] If the identity of the second application is in a preset whitelist, the screenshot operation is prohibited, wherein the preset whitelist includes the identities of one or more application programs.
[0076] In one possible implementation, the electronic device is further installed with a second application, and the second application is used to display a page. When the instruction is executed by the electronic device, the electronic device further performs the following steps:
[0077] Obtaining an identity of a second application;
[0078] If the identity identifier of the second application is in the preset whitelist, a screenshot prompt is sent, and the screenshot prompt is used to prompt the user whether to take a screenshot.
[0079] In one possible implementation, the second touch screen data includes a plurality of touch point data, each touch point data includes touch point coordinates, and when the instruction is executed by the electronic device, the electronic device is caused to perform parsing of the second touch screen data, and the step of determining whether the user gesture corresponding to the second touch screen data is a preset screenshot gesture includes:
[0080] Reading the touch point data in the second touch screen data, and determining the total number of the touch point data as the number of touch points;
[0081] determining the user's action based on a change in the touch point coordinates of the touch point data in the second touch screen data;
[0082] Based on the number of touch points and the user's action, it is determined whether the user gesture corresponding to the second touch screen data is a preset screenshot gesture.
[0083] The present application also provides an electronic device, including:
[0084] A memory, wherein the memory is used to store computer program codes, wherein the computer program codes include instructions, and when the electronic device reads the instructions from the memory, the electronic device performs the following steps:
[0085] In response to the detected multi-finger sliding operation of the user, acquiring first touch screen data of the user;
[0086] Parsing the first touch screen data to determine whether the user gesture corresponding to the first touch screen data is a preset screenshot gesture;
[0087] If it is determined that the user gesture corresponding to the first touch screen data is a preset screenshot gesture, a screenshot operation is performed.
[0088] In one possible implementation, the first touch screen data includes a plurality of touch point data, each touch point data includes touch point coordinates, and when the instruction is executed by the electronic device, the electronic device is caused to perform parsing of the first touch screen data, and the step of determining whether the user gesture corresponding to the first touch screen data is a preset screenshot gesture includes:
[0089] Acquire two first touch screen data and the number of touch points in the first touch screen data;
[0090] determining a user's action based on a change in the touch point coordinates of the touch point data in the two first touch screen data;
[0091] Based on the number of touch points in the first touch screen data and the user's action, it is determined whether the user gesture corresponding to the first touch screen data is a preset screenshot gesture.
[0092] In one possible implementation, the electronic device is installed with a first application, and the first application is used for taking screenshots. When the instruction is executed by the electronic device, the electronic device performs the following steps: if it is determined that the user gesture corresponding to the first touch screen data is a preset screenshot gesture, then the screenshot operation is performed:
[0093] If it is determined that the user gesture corresponding to the first screen touch data is a preset screenshot gesture, a screenshot instruction is sent to the first application, where the screenshot instruction is used to instruct the first application to perform a screenshot operation.
[0094] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the method described in the first aspect.
[0095] In a fifth aspect, an embodiment of the present application provides a computer program, which, when executed by a computer, is used to execute the method described in the first aspect.
[0096] In one possible design, the program in the fifth aspect may be stored in whole or in part on a storage medium packaged together with the processor, or may be stored in whole or in part on a memory not packaged together with the processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0097] Figure 1 A schematic diagram of the software architecture of an electronic device provided in an embodiment of the present application;
[0098] Figure 2 A schematic diagram of the hardware structure of an electronic device is provided for an embodiment of the present application;
[0099] Figure 3 A flowchart of an embodiment of the screenshot method provided by the present application;
[0100] Figure 4 A schematic diagram of user gestures provided in an embodiment of the present application;
[0101] Figure 5-Figure 7 A schematic diagram of touch screen data provided in an embodiment of the present application;
[0102] Figure 8 A schematic diagram of gesture recognition provided in an embodiment of the present application;
[0103] Fig. 9 A flowchart of another embodiment of the screenshot method provided by the present application;
[0104] Fig.10 A schematic diagram of the structure of an embodiment of a screenshot device provided by the present application;
[0105] Fig.11 A schematic structural diagram of another embodiment of the screenshot device provided in the present application. DETAILED DESCRIPTION
[0106] The technical solution in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. In the description of the embodiment of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0107] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0108] At present, when a user operates on the display screen of an electronic device through a touch screen gesture, the electronic device can obtain the user's touch screen data. Taking a laptop as an example, the laptop can obtain the user's touch screen data through the Human Interface Devices (HID) driver in Windows. Then, the HID driver can send the touch screen data to the HID service. After receiving the touch screen data, the HID service can parse the touch screen data.
[0109] Usually, users can take a screenshot of the content of the current page through a screenshot gesture (e.g., three-finger swipe down). However, in actual applications, the swipe down gesture will also trigger a scrolling operation, thereby triggering both the screenshot and scrolling operations at the same time, resulting in the user not being able to capture the desired content (i.e., the current page without scrolling), which reduces the user experience.
[0110] Based on the above problems, the embodiment of the present application proposes a screenshot method, which is applied to an electronic device. The electronic device may be a display device with a display screen, such as a mobile phone, a tablet, and a laptop computer. The embodiment of the present application does not specifically limit the specific form of the electronic device. The method of the present application can effectively avoid the situation where the user scrolls the page during the screenshot process, thereby improving the user experience.
[0111] Now take a laptop as an example, combined with Figure 1-Figure 7 The screenshot method provided in the embodiment of the present application is described. Figure 1 is a software architecture diagram of the notebook computer 10, such as Figure 1 As shown, the notebook computer 10 includes a HID driver module 11 , a HID filter driver module 12 , a HID service 13 and an application program 14 .
[0112] The HID driver module 11 is used to obtain touch screen data and send the touch screen data to the HID filter driver module 12. The touch screen data can be generated based on the user's gesture.
[0113] The HID filter driver module 12 is used to receive the touch screen data sent by the above-mentioned HID driver module 11, read the value of the touch number field in the touch screen data, match the value of the touch number field with the touch number of the preset screenshot gesture, and if the value of the touch number field matches the touch number of the preset screenshot gesture, modify the value of the touch number field and send the modified touch screen data to the HID service 13.
[0114] Optionally, the HID filter driver module 12 may also receive the touch screen data sent by the above-mentioned HID driver module 11, identify the touch screen data to obtain the corresponding user gesture, and if the user gesture matches the preset screenshot gesture, the screenshot gesture may be sent directly to the application 14.
[0115] The HID service 13 is used to receive the touch screen data sent by the HID filter driver module 12, judge the touch point information in the touch screen data, and determine whether there is a downward gesture. If there is no downward gesture, the touch screen data is sent to the application 14 based on the request of the application 14.
[0116] The application 14 is used to send a touch screen data request to the HID service 13 to obtain the touch screen data. The application 14 can also be used to receive the touch screen data sent by the HID service 13, obtain the number and coordinates of touch points in the touch screen data, perform recognition based on the number and coordinates of touch points, obtain the corresponding user gesture, match the user gesture with the preset screenshot gesture, and if the user gesture matches the preset screenshot gesture, perform the corresponding screenshot operation.
[0117] Optionally, the application 14 may also be configured to receive a screenshot instruction sent by the HID filter driver module 12, and perform a corresponding screenshot operation based on the screenshot instruction.
[0118] Combine the following Figure 2 First, an exemplary electronic device provided in the following embodiments of the present application is introduced. Figure 2 A schematic structural diagram of an electronic device 100 is shown. The electronic device 100 may be a display device with a display screen, such as a mobile phone, a tablet, or a laptop computer.
[0119] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0120] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0121] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. Among them, the controller can be the nerve center and command center of the electronic device 100. The controller can generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
[0122] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0123] The execution of the screenshot method provided in the embodiment of the present application can be controlled by the processor 110 or completed by calling other components, such as calling the processing program of the embodiment of the present application stored in the internal memory 121 to implement the user's screenshot operation and enhance the user experience.
[0124] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0125] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0126] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0127] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0128] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0129] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0130] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be arranged in the same device as the mobile communication module 150 or other functional modules.
[0131] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0132] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0133] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0134] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0135] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0136] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0137] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0138] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0139] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0140] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0141] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0142] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0143] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0144] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0145] In the embodiment of the present application, the user's touch screen data can be acquired through the touch sensor 180K, and the touch screen data can be sent to the processor 110 for processing.
[0146] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0147] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0148] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0149] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0150] Figure 3 A flowchart of an embodiment of a screenshot method provided in an embodiment of the present application includes:
[0151] Step 101: The HID driver module 11 obtains first touch screen data.
[0152] Specifically, the user can perform operations such as touch or slide in the current page. For example, the user can perform operations such as touch or slide on the display screen 194 of the electronic device 100. Among them, the current page may include a web page and a PPT page of the browser. It can be understood that the web page and PPT page of the above browser are exemplary descriptions and do not constitute a limitation on the embodiments of the present application.
[0153] It should be noted that the user's sliding operation may include a multi-finger sliding operation of the user. Exemplarily, the sliding operation may include sliding up, sliding down, sliding left, sliding right, etc., which is not limited in the embodiments of the present application. The multi-finger operation may include gestures such as three fingers and four fingers, and may also include other types of gestures, which are not specifically limited in the embodiments of the present application. Figure 4 A schematic diagram of a three-finger swipe down provided in an embodiment of the present application.
[0154] The touch sensor 180K in the electronic device 100 detects the user's operation, and the HID driver module 11 can generate corresponding first touch screen data based on the user's operation. The first touch screen data can include information such as the number of touch points and touch coordinates.
[0155] It can be understood that the user's touch screen sliding operation is a continuous action. At a certain moment t, the HID driver module 11 can obtain a first touch screen data S1, and the first touch screen data S1 corresponds to the coordinates of the user's finger at the moment t. As the user's finger slides, at another moment t1, the HID driver module 11 will receive another first touch screen data S2, and the first touch screen data S2 corresponds to the coordinates of the user's finger at the moment t1. Therefore, each first touch screen data can also correspond to a moment, where the moment is used to represent the time when the first touch screen data is generated.
[0156] The first touch screen data may be embodied in the form of a data packet. Figure 5 Schematic diagram of the data structure of the first touch screen data packet. Figure 5 As shown, the first touch screen data packet may include 34 bits of data information. For example, the 34 bits of data information may include a data flag of 1 bit of data information, contact information of 30 bits of data information, a contact ID of 2 bits of data information, and a contact number flag of 1 bit of data information. Among them, the data flag can be used to identify whether it is touch screen data. For example, if the data flag = 01, the data is touch screen data. The contact information may include 5 contact information, that is, the contact information may include information of 5 contacts. Among them, each contact information includes 6 bits of data information. The first bit of data information of each contact information is used to identify whether the user presses. For example, if the first bit of data information = 01, it means that the user's finger is pressed, and if the first bit of data information = 00, it means that the user's finger is lifted. The second bit of data information of each contact information is used to identify the ID number of the contact. For example, if ID = 00, the contact is the first contact, if ID = 01, the contact is the second contact, and so on. The third to sixth bits of data information of each contact information are used to identify the coordinates of the contact. Exemplarily, the third and fourth digits in each contact information may be the horizontal coordinates of the contact, and the fifth and sixth digits may be the vertical coordinates of the contact; it is understandable that the third and fourth digits in each contact information may be the vertical coordinates of the contact, and the fifth and sixth digits may be the horizontal coordinates of the contact, and the embodiments of the present application do not specifically limit this. The contact ID can be used to identify the cumulative number of touches. The contact number flag is used to identify the number of contacts detected by the current HID driver. Exemplarily, if the user slides with three fingers, the number of contacts is 3.
[0157] It is understandable that the above Figure 5 The field format of the touch screen data is shown only as an example. In some embodiments, the touch screen data may contain more or fewer data bits, for example, greater than the above 34 bits of data information, or less than the above 34 bits of data information, and the present application does not impose any special limitation on this.
[0158] Step 102 : The HID driver module 11 sends the first touch screen data to the HID filter driver module 12 .
[0159] Specifically, the HID driver module 11 can send the above-mentioned multiple first touch screen data to the HID filter driver module 12 in chronological order. Further, the HID driver module 11 can send the time corresponding to the above-mentioned first touch screen data to the HID filter driver module 12. For example, if the HID driver module 11 detects the user's first touch screen data S1 at time t, then the first touch screen data S1 and the corresponding time t can be sent to the HID filter driver module 12 at time t; at this time, if the user slides his finger on the display screen of the electronic device 100, so that the HID driver module 11 detects the user's first touch screen data S2 at time t1, then the first touch screen data S2 and the corresponding time t1 can be sent to the HID filter driver module 12 at time t1.
[0160] Optionally, the HID driver module 11 may also collect multiple first touch screen data within a preset time period, and send the multiple first touch screen data to the HID filter driver module 12 at the same time. For example, if the HID driver module 11 detects the user's first touch screen data S1 at time t, and then detects the user's first touch screen data S2 and S3 at times t1 and t2, where t1 and t2 are both later than t, t2 is later than t1, and the time period between t2 and t is a preset time period, then the HID driver module 11 may simultaneously send S1, S2, S3 and the corresponding time t, t1 and t2 to the HID filter driver module 12. It is understandable that the above-mentioned method of sending multiple first touch screen data and corresponding time is only an exemplary description and does not constitute a limitation on the embodiments of the present application.
[0161] Step 103: The HID filter driver module 12 reads the touch point number flag in the first touch screen data, modifies the touch point number flag, and obtains the second touch screen data.
[0162] Specifically, when the HID filter driver module 12 receives the first touch screen data sent by the HID driver module 11, it can read the value in the touch point number flag in the first touch screen data, and can make a judgment based on the value. In specific implementation, the value in the touch point number flag can be compared with a preset value. Among them, the preset value can be the touch point number of the preset screenshot gesture.
[0163] If the value in the number of touches in the first touch screen data is consistent with the preset value, the HID filter driver module 12 can consider that the user's gesture is a screenshot operation. At this time, the value in the number of touches in the first touch screen data can be modified to 0, thereby obtaining the second touch screen data, and further executing step 104B. It can be understood that the above value 0 is an exemplary description and does not constitute a limitation on the embodiment of the present application. In some embodiments, it can also be other values or characters. Exemplarily, if three fingers slide down as a preset screenshot gesture, the number of touches corresponding to the screenshot gesture is 3, that is, the preset value of the number of touches is 3. It can be understood that the number of touches of the preset screenshot gesture is an exemplary description and does not constitute a limitation on the embodiment of the present application. In some embodiments, the number of touches of the preset screenshot gesture can also be other values. The second touch screen data is obtained by modifying the value in the number of touches in the first touch screen data to a special value (for example, a value of 0). Since the value in the touch point number flag in the above-mentioned second touch screen data is a special value, the HID service 13 will no longer parse the above-mentioned second touch screen data. In other words, the HID service believes that the second touch screen data does not contain a user gesture and will not be parsed as a slide-down operation, thereby avoiding erroneous parsing as a slide-down operation.
[0164] Now combined Figure 6 To explain, Figure 6 As shown, the first touch screen data 600 includes a data flag 601, contact information 602, a contact ID 603 and a contact number flag 604. Among them, the value in the contact number flag 604 is 3. After the HID filter driver module 12 reads the value in the contact number flag 604, since the value in the contact number flag 604 is consistent with the number of contacts of the preset screenshot gesture, at this time, the value in the contact number flag 604 can be modified to 0, thereby obtaining the second touch screen data 610. The second touch screen data 610 includes a data flag 611, contact information 612, a contact ID 613 and a contact number flag 614. Among them, the value of data mark 611 is the same as that of data mark 601, the information of contact information 612 is the same as that of contact information 602, the information of contact ID 613 is the same as that of contact ID 603, the information of contact number mark 614 is different from that of contact number mark 604, the value in contact number mark 614 is 0, and the value in contact number mark 604 is 3.
[0165] If the value is inconsistent with the preset value, the HID filter driver module 12 may further execute step 104A.
[0166] Step 104A: The HID filter driver module 12 may send the first touch screen data to the HID service 13 .
[0167] It should be noted that step 104A and step 104B are executed alternatively, that is, after step 104A is executed, step 104B is no longer executed.
[0168] Step 104B: the HID filter driver module 12 may send the second touch screen data to the HID service 13 .
[0169] Optionally, the HID filter driver module 12 may also send the time corresponding to the second touch screen data to the HID service 13 .
[0170] Step 105 , the HID service 13 receives the touch screen data sent by the HID filter driver module 12 , reads the touch point number flag in the touch screen data, and determines the second touch screen data based on the value of the touch point number flag in the touch screen data.
[0171] Specifically, the HID service 13 receives the touch screen data sent by the HID filter driver module 12, and the touch screen data may include the first touch screen data or the second touch screen data. Then, the HID service 13 may read the value of the touch point number flag in the touch screen data, and may make a judgment based on the value in the touch point number flag, and determine the second touch screen data based on the judgment result.
[0172] Exemplarily, if the value of the touch point number flag of any touch screen data is a special value (for example, 0 or a character), the HID service 13 can consider the touch screen data to be the second touch screen data. Since 0 or a character is a special value, that is, the touch screen data this time has no touch point number, the HID service 13 will not trigger other operations (for example, scrolling operations). At this time, the HID service 13 can send the second touch screen data to the application 14.
[0173] If the value of the touch point number flag of any touch screen data is a normal value (for example, not 0 and not a character), the HID service 13 can consider the touch screen data to be the first touch screen data. Then, the HID service 13 can obtain the user's action based on the coordinates in the first touch screen data. For example, if the user's action is to slide down, a scrolling operation is performed.
[0174] Step 106 : The HID service 13 sends the second touch screen data to the application 14 based on the request of the application 14 .
[0175] Specifically, the application 14 may be a screenshot application, for example, the screenshot application may provide a screenshot function. Optionally, the application 14 may also be a gesture processing application, for example, the gesture processing application may not include a screenshot function, and when the gesture processing application is started, the system's screenshot function may be called. The embodiment of the present application does not specifically limit the specific implementation form of the above-mentioned application 14. In addition, a preset configuration file may be stored in the application 14, and the configuration file may include a preset screenshot gesture. Among them, the screenshot gesture may include contact number information and action information, the contact number information may be used to identify the number of contacts, and the action information may be used to identify the user's action (for example, swipe up, swipe down, swipe left or swipe right). It can be understood that the information in the configuration file may be pre-set by the user, or maintained by the user, for example, the user may change the contact number information and / or action information in the above-mentioned configuration file. Table 1 exemplarily shows the information of the above-mentioned configuration file.
[0176] Table 1
[0177] User gestures Number of contacts action screenshot 3 Downward
[0178] It is understandable that, after the application 14 is started, a touch screen data request may be sent to the HID service 13, wherein the touch screen data request is used to obtain the touch screen data received by the HID service 13. Thus, after receiving the second touch screen data sent by the HID filter driver module 12, the HID service 13 may send the second touch screen data to the application 14. Optionally, the HID service 13 may also send the time corresponding to the second touch screen data to the application 14.
[0179] Step 107 , the application 14 receives the second touch screen data sent by the HID service 13 , reads the touch point information in the second touch screen data, and determines the number of touch points and the touch point coordinates in the second touch screen data.
[0180] Specifically, the application 14 can read all the touch point information in the second touch screen data. For example, any second touch screen data can contain 5 touch point information, and the application 14 can read the touch point information in the order in which the touch point information is arranged in each second touch screen data (for example, according to Figure 6 The touch point information may be read in the order of the second touch screen data 610 shown in FIG. 1 , or may be read in other ways, which is not particularly limited in the embodiments of the present application.
[0181] The application 14 can obtain the data in the touch point information by reading the touch point information of each second touch screen data, thereby determining the number of touch points and the touch point coordinates contained in each second touch screen data. Exemplarily, if any touch point information contains data other than all zeros, the data in the touch point information is valid, that is, the touch point information corresponds to one touch point.
[0182] Now combined Figure 7 To explain, Figure 7 As shown, the second touch screen data 700 includes first touch information 701, second touch information 702, third touch information 703, fourth touch information 704 and fifth touch information 705. The first touch information 701 includes a press mark 7011, a touch ID 7012 and a touch coordinate 7013; the second touch information 702 includes a press mark 7021, a touch ID 7022 and a touch coordinate 7023; the third touch information 703 includes a press mark 7031, a touch ID 7032 and a touch coordinate 7033; the fourth touch information 704 includes a press mark 7041, a touch ID 7042 and a touch coordinate 7043; the fifth touch information 705 includes a press mark 7051, a touch ID 7052 and a touch coordinate 7053. The data in the first touch point information 701, the second touch point information 702 and the third touch point information 703 are not all-0 data, therefore, the first touch point information 701, the second touch point information 702 and the third touch point information 703 are valid touch points. Then, the data in the touch point coordinates 7013, 7023 and 7033 in the first touch point information 701, the second touch point information 702 and the third touch point information 703 can be read respectively, thereby obtaining the coordinates of the first touch point, the second touch point and the third touch point. The data in the fourth touch point information 704 and the fifth touch point information 705 are all-0 data, therefore, the fourth touch point information 704 and the fifth touch point information 705 are invalid touch points. By reading the five touch point information in the second touch screen data 700, it can be determined that the number of touch points in the second touch screen data 700 is 3, that is, the first touch point information 701, the second touch point information 702 and the third touch point information 703 respectively.
[0183] In step 108 , the application 14 compares the coordinates of the second touch screen data to determine the action.
[0184] Specifically, after the application 14 obtains the coordinates of multiple second touch screen data, the coordinates of the multiple second touch screen data can be compared, thereby determining the user's action. In a specific implementation, the application 14 can determine the time sequence of the two second touch screen data. Among them, the above time sequence can be determined according to the order in which the application 14 receives the above second touch screen data. Optionally, the above time sequence can also be determined based on the time corresponding to the above second touch screen data. The embodiment of the present application does not specifically limit this. Then, the application 14 can compare the coordinates of the touch point information in the two second touch screen data. The time sequences corresponding to the two second touch screen data are different. For example, the time of one second touch screen data S1 is t, and the time of the other second touch screen data S2 is t1. Among them, the two second touch screen data can be the two second touch screen data received earliest after the user's operation is detected, or they can be two second touch screen data arbitrarily selected from multiple second touch screen data after the user's operation is detected. The embodiment of the present application does not limit this.
[0185] After determining the two second touch screen data and the corresponding time sequence, the action can be determined according to the coordinates and time sequence of the two touch screen data. For example, assuming that the time of one second touch screen data S1 is t, the time of the other second touch screen data S2 is t1, and t1 is later than t, if the coordinate of S2 is below S1, then the action can be determined to be sliding down.
[0186] Now combined Figure 8 To explain, Figure 8As shown, the second touch screen data 800 at time t includes first touch point information 801, second touch point information 802 and third touch point information 803, wherein the coordinates corresponding to the first touch point information 801 are (04, 05, 8c, 03), the coordinates corresponding to the second touch point information 802 are (2e, 04, f5, 03), and the coordinates corresponding to the third touch point information 803 are (28, 06, 69, 04); the second touch screen data 810 at time t1 includes first touch point information 811, second touch point information 812 and third touch point information 813, wherein the coordinates corresponding to the first touch point information 811 are (04, 05, 8d, 04), the coordinates corresponding to the second touch point information 812 are (2e, 04, f6, 04), and the coordinates corresponding to the third touch point information 813 are (28, 06, 70, 05). Assuming that time t1 is later than time t, according to the coordinate changes of the first touch information 811 and the first touch information 801, the coordinate changes of the second touch information 812 and the second touch information 802, and the coordinate changes of the third touch information 813 and the third touch information 803, for example, the coordinates of the first touch information 811 are below the coordinates of the first touch information 801, the coordinates of the second touch information 812 are below the coordinates of the second touch information 802, and the coordinates of the third touch information 813 are below the coordinates of the third touch information 803; thereby, it can be determined that the user's current action is sliding down.
[0187] Optionally, when determining the user's action, only the change of one contact point can be judged. For example, it can be determined whether the user's current action is sliding down based on the change of any one of the contacts, including the coordinate change of the first contact information 811 and the first contact information 801, the coordinate change of the second contact information 812 and the second contact information 802, or the coordinate change of the third contact information 813 and the third contact information 803.
[0188] It is understandable that the above example only illustrates the method of determining an action by comparing two second touch screen data, and the number of the second touch screen data selected above does not constitute a limitation on the embodiments of the present application. In some embodiments, the application 14 may also select more second touch screen data for comparison, for example, 3 second touch screen data or more. The specific comparison process can be referred to Figure 8 The embodiments shown will not be described in detail here.
[0189] Step 109 , the application 14 determines the user gesture based on the action and the number of touch points, compares the user gesture with a preset screenshot gesture, and performs a screenshot operation according to the comparison result.
[0190] Specifically, after the application 14 determines the action, it can determine the user gesture based on the action and the number of contacts. For example, if the number of contacts is 3 and the action is a slide down, the application 14 can determine that the user's current gesture is a three-finger slide down. Then, the application 14 can compare the user's current gesture with the preset screenshot gesture. The preset screenshot gesture can be obtained from the configuration file in step 106. Exemplarily, if the preset screenshot gesture is a three-finger slide down, that is, the number of contacts of the preset screenshot gesture is 3, and the action is a slide down, the user's current gesture is consistent with the preset screenshot gesture, thereby allowing the application 14 to perform a screenshot action. For example, the user browses a web page and operates by sliding down with three fingers on the current page. After the screenshot application detects the user's three-finger slide down gesture, it can recognize that the three-finger slide down is a screenshot operation, thereby performing a screenshot operation on the current page. If the above user gesture is inconsistent with the preset screenshot gesture, the above screenshot operation cannot be performed.
[0191] Optionally, after determining that the user gesture is a screenshot gesture, the application 14 can also obtain the identity of the application corresponding to the current page. For example, assuming that the user operates in a drawing page, the application corresponding to the drawing page is a drawing application (for example, it can be a drawing software). At this time, the application 14 can obtain the identity of the drawing application (for example, it can be the APP ID of the drawing application). Then, the application 14 can match the identity of the drawing application with the identity in the preset application whitelist. Among them, the preset application whitelist may include the identities of one or more applications, and the preset application whitelist may be pre-stored in the application 14.
[0192] If the identity of the current drawing application is in the preset application whitelist, the application 14 can block the screenshot gesture, thereby avoiding the screenshot action from conflicting with the user's current drawing action. Preferably, the application 14 can also send a screenshot prompt, for example, the prompt information can be a text prompt, "Do you want to take a screenshot?" The user can click the "Confirm" button to perform the screenshot operation, or the user can also click the "Reject" button to reject the screenshot operation.
[0193] If the identity of the current drawing application is not in the preset application whitelist, the application 14 may further perform a screenshot operation.
[0194] In this embodiment, after obtaining the user's touch screen data, the touch screen data is filtered based on the number of touch points, thereby avoiding misunderstanding the user's screenshot action as other operations (for example, scrolling operations), thereby improving the user's screenshot efficiency and improving the user experience.
[0195] It can be understood that in the above embodiments, steps 101 to 109 are all optional steps. The present application only provides one feasible embodiment, which may also include more or fewer steps than steps 101 to 109, and the present application does not limit this.
[0196] The above embodiment is described by taking the manner of performing gesture recognition on touch screen data in the application 14 as an example. Next, the following description is given by taking the manner of performing gesture recognition on touch screen data in the HID filter driver module 12 as an example.
[0197] Fig. 9 A flowchart of another embodiment of the screenshot method provided in the embodiment of the present application includes:
[0198] Step 201: The HID driver module 11 obtains first touch screen data.
[0199] Specifically, the user can perform operations such as touch or slide in the current page. For example, the user can perform operations such as touch or slide on the display screen 194 of the electronic device 100. Among them, the current page may include a web page and a PPT page of the browser. It can be understood that the web page and PPT page of the above browser are exemplary descriptions and do not constitute a limitation on the embodiments of the present application.
[0200] It should be noted that the user's sliding operation may include a multi-finger sliding operation of the user. Exemplarily, the sliding operation may include sliding up, sliding down, sliding left, sliding right, etc., which is not limited in the present embodiment. The multi-finger operation may include a three-finger, four-finger gesture, or other types of gestures, which is not specifically limited in the present embodiment. The schematic diagram of the user sliding down with multiple fingers can be referred to Figure 4 , I will not go into details here.
[0201] The touch sensor 180K in the electronic device 100 detects the user's operation, and the HID driver module 11 can generate corresponding first touch screen data based on the user operation. The first touch screen data may include information such as the number of touch points and touch coordinates. The data packet format of the first touch screen data can refer to Figure 5 , I will not go into details here.
[0202] It can be understood that the format of the above-mentioned first touch screen data packet is only an exemplary illustration of the field format of the touch screen data. In some embodiments, the touch screen data may contain more or fewer data bits, for example, greater than the above-mentioned 34-bit data information, or less than the above-mentioned 34-bit data information. The present application does not impose any special limitation on this.
[0203] In addition, the HID driving module 11 may also record the time corresponding to each of the above-mentioned first touch screen data.
[0204] Step 202 : The HID driver module 11 sends the first touch screen data to the HID filter driver module 12 .
[0205] Specifically, the HID driver module 11 can send the above-mentioned multiple first touch screen data to the HID filter driver module 12 in chronological order. Further, the HID driver module 11 can send the time corresponding to the above-mentioned first touch screen data to the HID filter driver module 12. For example, if the HID driver module 11 detects the user's first touch screen data S1 at time t, then the first touch screen data S1 and the corresponding time t can be sent to the HID filter driver module 12 at time t; at this time, if the user slides his finger on the display screen of the electronic device 100, so that the HID driver module 11 detects the user's first touch screen data S2 at time t1, then the first touch screen data S2 and the corresponding time t1 can be sent to the HID filter driver module 12 at time t1.
[0206] Optionally, the HID driver module 11 may also collect multiple first touch screen data within a preset time period, and send the multiple first touch screen data to the HID filter driver module 12 at the same time. For example, if the HID driver module 11 detects the user's first touch screen data S1 at time t, and then detects the user's first touch screen data S2 and S3 at times t1 and t2, where t1 and t2 are both later than t, t2 is later than t1, and the time period between t2 and t is a preset time period, then the HID driver module 11 may simultaneously send S1, S2, S3 and the corresponding time t, t1 and t2 to the HID filter driver module 12. It is understandable that the above-mentioned method of sending multiple first touch screen data and corresponding time is only an exemplary description and does not constitute a limitation on the embodiments of the present application.
[0207] Step 203 : The HID filter driver module 12 sends the first touch screen data to the HID service 13 .
[0208] Step 204: The HID filter driver module 12 reads the touch point number flag in the first touch screen data, and identifies the first touch screen data based on the touch point number flag.
[0209] Specifically, after the HID filter driver module 12 receives the first touch screen data sent by the HID driver module 11, it can also read the value of the touch number flag in the first touch screen data in chronological order, and can make a judgment based on the value in the touch flag, for example, the value can be compared with a preset value, wherein the preset value can be the touch number of a preset screenshot gesture.
[0210] Step 205 : The HID filter driver module 12 sends a screenshot instruction to the application 14 based on the identification result.
[0211] Specifically, the HID filter driver module 12 can also obtain the contact information in the above-mentioned first touch screen data. Then, the contact information in the two first touch screen data can be compared, thereby determining the user's action, wherein the action may include sliding up, sliding down, sliding left and sliding right, etc. The above-mentioned two first touch screen data can be the two touch screen data received earliest, in which the value of the touch number flag is equal to the preset value. Optionally, the above-mentioned two first touch screen data can also be the earliest received touch screen data and another touch screen data, for example, the first received touch screen data and the second received touch screen data. It can be understood that the above-mentioned selection of the earliest two touch screen data for comparison is a preferred method of the present application, and does not constitute a limitation on the embodiments of the present application.
[0212] For example, suppose that the HID filter driver module 12 receives the first touch screen data S1 and S2 at time t and t1 respectively, where t1 is later than t, S1 is the first touch screen data submitted by the HID driver module 11 after detecting the user operation, that is, S1 is the first touch screen data received by the HID filter driver module 12; no other touch screen data is generated between t and t1, that is, S2 is the second touch screen data received by the HID filter driver module 12, in other words, S1 and S2 are the first two touch screen data received. If the number of touch points of S1 and S2 are both equal to the preset value (for example, the preset number of touch points of the screenshot gesture), at this time, the HID filter driver module 12 can compare the touch point information of S1 and S2.
[0213] In a specific implementation, the HID filter driver module 12 can compare a contact information in S1 with the corresponding contact information in S2, thereby determining the user's action. Exemplarily, assuming that S1 includes the first contact information s11, the second contact information s12, and the third contact information s13, and S2 includes the first contact information s21, the second contact information s22, and the third contact information s23, at this time, the HID filter driver module 12 can compare the coordinates of s11 with the corresponding coordinates of s21, or can compare the coordinates of s12 with the corresponding coordinates of s22, or can compare the coordinates of s13 with the corresponding coordinates of s23, thereby determining the user's action (for example, whether it is sliding down).
[0214] Optionally, the HID filter driver module 12 may also compare the multiple contact information of S1 with the corresponding contact information in S2. It is understandable that the above-mentioned method of comparing one contact information in S1 with the corresponding contact information in S2 is a preferred method of the embodiment of the present application and does not constitute a limitation of the embodiment of the present application. Among them, the specific process of determining the user action can refer to step 109, which will not be repeated here. Since multiple first touch screen data are generated in the process of determining the scrolling gesture (for example, in the process of the user sliding the finger). Assuming that 6 first touch screen data are generated in the process of the user's finger sliding, at this time, the HID service 13 needs to judge the change of the above 6 first touch screen data, thereby determining whether the user's gesture is a downward slide, and in this application, only the earliest two touch screen data need to be judged, thereby before the HID service 13 determines the downward slide gesture, the HID filter driver module 12 has determined that the user's current gesture is a downward slide, and then the user's gesture can be recognized more quickly, avoiding the downward slide error caused by the HID service 13 recognizing the downward slide gesture.
[0215] Next, after the HID filter driver module 12 determines the user action, it can determine whether it is a screenshot gesture based on the user action and the number of touch points. In specific implementation, the user action and the number of touch points can be matched with the action and the number of touch points of the preset screenshot gesture, wherein the information of the preset screenshot gesture can be pre-stored in the configuration file of the HID filter driver module 12, and the content of the configuration file can be specifically referred to in Table 1, which will not be repeated here.
[0216] If the HID filter driver module 12 determines that the current user's gesture is a screenshot gesture, it sends a screenshot instruction to the application 14 .
[0217] Step 206 , the application 14 receives the screenshot instruction sent by the HID filter driver module 12 , and performs a corresponding screenshot operation.
[0218] In this embodiment, by identifying the user's gesture based on the earliest first touch screen data in the HID filter driver module 12, the user's gesture can be identified more quickly, thereby triggering the screenshot operation more quickly, thereby avoiding the conflict between the screenshot operation and the scrolling operation.
[0219] Fig.10 This is a structural diagram of an embodiment of the screenshot device of the present application. Fig.10 As shown, the screenshot device 1000 may include: an acquisition module 1010, an update module 1020, a parsing module 1030 and a screenshot module 1040; wherein,
[0220] An acquisition module 1010 is used to acquire first touch screen data of the user in response to a detected multi-finger sliding operation of the user;
[0221] An updating module 1020, configured to parse the first touch screen data, and update the first touch screen data based on the parsing result to obtain second touch screen data;
[0222] The parsing module 1030 is used to parse the second touch screen data and determine whether the user gesture corresponding to the second touch screen data is a preset screenshot gesture;
[0223] The screenshot module 1040 is configured to execute a screenshot operation if it is determined that the user gesture corresponding to the second touch screen data is a preset screenshot gesture.
[0224] In one possible implementation method, the first touch screen data includes the number of touch points, and the above-mentioned update module 1020 is also used to compare the number of touch points in the first touch screen data with a preset first value; if the number of touch points in the first touch screen data is consistent with the preset first value, the number of touch points in the first touch screen data is updated to obtain the second touch screen data, and the second touch screen data includes the number of touch points of the preset second value.
[0225] In one possible implementation manner, the preset second value is a special value.
[0226] In one possible implementation, the electronic device is installed with a first application, which is used for taking screenshots. The parsing module 1030 is also used to send the second touch screen data to the first application in response to a data request received from the first application, so that the first application parses the second touch screen data.
[0227] In one possible implementation, the electronic device is further installed with a second application, the second application is used to display a page, and the apparatus 1000 further includes:
[0228] The prohibition module 1050 is used to obtain the identity of the second application; if the identity of the second application is in the preset white list, the screenshot operation is prohibited, wherein the preset white list includes the identities of one or more applications.
[0229] In one possible implementation, the electronic device is further installed with a second application, the second application is used to display a page, and the apparatus 1000 further includes:
[0230] The prompt module 1060 is used to obtain the identity of the second application; if the identity of the second application is in the preset whitelist, a screenshot prompt is sent, and the screenshot prompt is used to prompt the user whether to take a screenshot.
[0231] In one possible implementation, the second touch screen data includes multiple touch point data, each touch point data includes touch point coordinates, and the analysis module 1030 is also used to read the touch point data in the second touch screen data, and determine the total number of touch point data as the number of touch points; determine the user's action based on the change of the touch point coordinates of the touch data in the second touch screen data; determine whether the user gesture corresponding to the second touch screen data is a preset screenshot gesture based on the number of touch points and the user's action, and the preset screenshot gesture includes a preset number of touch points and a preset action.
[0232] Fig.10 The screenshot device provided in the illustrated embodiment can be used to execute the present application Figure 1-Figure 9 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.
[0233] Fig.11 This is a structural diagram of another embodiment of the screenshot device of the present application. Fig.11 As shown, the above-mentioned screenshot device 1000 may include: an acquisition module 1110, a parsing module 1120 and a screenshot module 1130; wherein,
[0234] An acquisition module 1110 is configured to acquire first touch screen data of a user in response to a detected multi-finger sliding operation of the user;
[0235] The parsing module 1120 is used to parse the first touch screen data and determine whether the user gesture corresponding to the first touch screen data is a preset screenshot gesture;
[0236] The screenshot module 1130 is configured to execute a screenshot operation if it is determined that the user gesture corresponding to the first touch screen data is a preset screenshot gesture.
[0237] In one possible implementation, the first touch screen data includes multiple touch point data, each touch point data includes touch point coordinates, and the parsing module 1120 is also used to obtain two first touch screen data and the number of touch points in the first touch screen data; determine the user's action based on the change of the touch point coordinates of the touch point data in the two first touch screen data; determine whether the user gesture corresponding to the first touch screen data is a preset screenshot gesture based on the number of touch points in the first touch screen data and the user's action.
[0238] In one possible implementation, the electronic device is installed with a first application, which is used for taking screenshots. The screenshot module 1130 is also used to send a screenshot indication to the first application if it is determined that the user gesture corresponding to the first touch screen data is a preset screenshot gesture. The screenshot indication is used to instruct the first application to perform a screenshot operation.
[0239] Fig.11 The screenshot device provided in the illustrated embodiment can be used to execute the present application Figure 1-Figure 9 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.
[0240] It should be understood that the above Fig.10 and Fig.11 The division of the various modules of the screenshot device shown is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. For example, the detection module can be a separately established processing element, or it can be integrated in a chip of an electronic device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. In the implementation process, each step of the above method or each of the above modules can be completed by an integrated logic circuit of hardware in the processor element or instructions in software form.
[0241] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (DSP), or one or more field programmable gate arrays (FPGA). For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0242] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0243] It is understandable that, in order to realize the above functions, the above-mentioned electronic devices, etc. include hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.
[0244] The embodiment of the present application can divide the functional modules of the above-mentioned electronic device etc. according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0245] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0246] Each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0247] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk.
[0248] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A screenshot method, applied to an electronic device, characterized in that: The method comprises: In response to a detected multi-finger sliding operation of a user, acquiring first touch screen data of the user, where the first touch screen data includes a number of touch points; parsing the first touch screen data, and updating the first touch screen data based on the parsing result to obtain second touch screen data; parsing the second touch screen data to determine whether the user gesture corresponding to the second touch screen data is a preset screenshot gesture; If it is determined that the user gesture corresponding to the second touch screen data is a preset screenshot gesture, executing a screenshot operation; The updating the first touch screen data based on the analysis result to obtain the second touch screen data comprises: Compare the number of touch points in the first touch screen data with a preset first value, where the preset first value is the number of touch points of a preset screenshot gesture; If the number of touch points in the first touch screen data is consistent with the preset first value, the number of touch points in the first touch screen data is updated to obtain the second touch screen data, wherein the second touch screen data includes the number of touch points of the preset second value, and the preset second value of the number of touch points is used so that the user's multi-finger sliding operation is not interpreted as a sliding gesture.
2. The method according to claim 1, characterized in that The preset second value is a special value, and the special value includes 0 or a character.
3. The method according to claim 1, characterized in that The electronic device is installed with a first application, the first application is used for taking screenshots, and the parsing of the second touch screen data includes: In response to the received data request of the first application, the second touch screen data is sent to the first application, so that the first application parses the second touch screen data.
4. The method according to claim 3, characterized in that The electronic device is also installed with a second application, the second application is used to display a page, and the method further includes: Obtaining the identity of the second application; If the identity of the second application is in a preset whitelist, the screenshot operation is prohibited, wherein the preset whitelist includes the identities of one or more applications.
5. The method according to claim 3, characterized in that: The electronic device is also installed with a second application, the second application is used to display a page, and the method further includes: Obtaining the identity of the second application; If the identity identifier of the second application is in the preset whitelist, a screenshot prompt is sent, where the screenshot prompt is used to prompt the user whether to take a screenshot.
6. The method according to claim 1, characterized in that The second touch screen data includes a plurality of touch point data, each of the touch point data includes touch point coordinates, and the parsing of the second touch screen data to determine whether the user gesture corresponding to the second touch screen data is a preset screenshot gesture includes: reading the touch point data in the second touch screen data, and determining the total number of the touch point data as the number of touch points; determining a user's action based on a change in the touch point coordinates of the touch point data in the second touch screen data; Based on the number of touch points and the user's action, it is determined whether the user gesture corresponding to the second touch screen data is a preset screenshot gesture, where the preset screenshot gesture includes a preset number of touch points and a preset action.
7. An electronic device, characterized in that: The electronic device comprises: a memory, the memory is used to store computer program codes, the computer program codes include instructions, when the electronic device reads the instructions from the memory, the electronic device performs the following steps: In response to a detected multi-finger sliding operation of a user, acquiring first touch screen data of the user, where the first touch screen data includes a number of touch points; parsing the first touch screen data, and updating the first touch screen data based on the parsing result to obtain second touch screen data; parsing the second touch screen data to determine whether the user gesture corresponding to the second touch screen data is a preset screenshot gesture; If it is determined that the user gesture corresponding to the second touch screen data is a preset screenshot gesture, executing a screenshot operation; The updating the first touch screen data based on the analysis result to obtain the second touch screen data comprises: Compare the number of touch points in the first touch screen data with a preset first value, where the preset first value is the number of touch points of a preset screenshot gesture; If the number of touch points in the first touch screen data is consistent with the preset first value, the number of touch points in the first touch screen data is updated to obtain second touch screen data, wherein the second touch screen data includes the number of touch points of the preset second value, so that the user's multi-finger sliding operation is not interpreted as a sliding gesture.
8. The electronic device according to claim 7, characterized in that: The preset second value is a special value, and the special value includes 0 or a character.
9. The electronic device according to claim 7, characterized in that: The electronic device is installed with a first application, the first application is used for taking screenshots, and when the instruction is executed by the electronic device, the electronic device is caused to perform the step of parsing the second touch screen data, which includes: In response to the received data request of the first application, the second touch screen data is sent to the first application, so that the first application parses the second touch screen data.
10. The electronic device according to claim 9, characterized in that: The electronic device is also installed with a second application, and the second application is used to display a page. When the instruction is executed by the electronic device, the electronic device further performs the following steps: Obtaining the identity of the second application; If the identity of the second application is in a preset whitelist, the screenshot operation is prohibited, wherein the preset whitelist includes the identities of one or more applications.
11. The electronic device according to claim 9, characterized in that: The electronic device is also installed with a second application, and the second application is used to display a page. When the instruction is executed by the electronic device, the electronic device further performs the following steps: Obtaining the identity of the second application; If the identity identifier of the second application is in the preset whitelist, a screenshot prompt is sent, where the screenshot prompt is used to prompt the user whether to take a screenshot.
12. The electronic device according to claim 7, characterized in that: The second touch screen data includes a plurality of touch point data, each of the touch point data includes touch point coordinates, and when the instruction is executed by the electronic device, the electronic device is caused to perform parsing of the second touch screen data, and the step of determining whether the user gesture corresponding to the second touch screen data is a preset screenshot gesture includes: reading the touch point data in the second touch screen data, and determining the total number of the touch point data as the number of touch points; determining a user's action based on a change in the touch point coordinates of the touch point data in the second touch screen data; Based on the number of touch points and the user's action, it is determined whether the user gesture corresponding to the second touch screen data is a preset screenshot gesture.
13. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on the electronic device, cause the electronic device to execute the method according to any one of claims 1 to 6.
14. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Interface interception method and device
CN105700801A
Mobile terminal information protecting method and device and mobile terminal
CN106791168A