WO2022194007A1 - 截屏方法、电子设备及存储介质 - Google Patents
截屏方法、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2022194007A1 WO2022194007A1 PCT/CN2022/079955 CN2022079955W WO2022194007A1 WO 2022194007 A1 WO2022194007 A1 WO 2022194007A1 CN 2022079955 W CN2022079955 W CN 2022079955W WO 2022194007 A1 WO2022194007 A1 WO 2022194007A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- touch screen
- screen data
- data
- user
- electronic device
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 230000004044 response Effects 0.000 claims abstract description 17
- 230000009471 action Effects 0.000 claims description 63
- 238000004590 computer program Methods 0.000 claims description 13
- 238000004458 analytical method Methods 0.000 claims description 11
- 230000008569 process Effects 0.000 abstract description 13
- 230000006870 function Effects 0.000 description 25
- 238000012545 processing Methods 0.000 description 21
- 238000004891 communication Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 14
- 230000008859 change Effects 0.000 description 13
- 238000010295 mobile communication Methods 0.000 description 11
- 230000000694 effects Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 238000003825 pressing Methods 0.000 description 5
- 238000013528 artificial neural network Methods 0.000 description 4
- 238000001914 filtration Methods 0.000 description 4
- 229920001621 AMOLED Polymers 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000593 degrading effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/0418—Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0485—Scrolling or panning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04808—Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen
Definitions
- the embodiments of the present application relate to the field of computers, and in particular, to a screen capture method, an electronic device, and a storage medium.
- the current page may contain a scroll bar, so that the user can browse the scroll bar by operating on the scroll bar.
- the user may operate the current page through a gesture (eg, a two-finger swipe gesture), so that the current page can be scrolled, so that the user can browse undisplayed content.
- the screenshot and page scrolling may be triggered at the same time, resulting in the user's unexpected capture.
- the current page that is, the current page that does not scroll
- Embodiments of the present application provide a screen capture method, an electronic device, and a storage medium, so as to provide a way to capture a screen in a page, so as to avoid a situation in which page scrolling and screen capture occur at the same time.
- an embodiment of the present application provides a screen capture method, which is applied to an electronic device, including:
- the first touch screen data of the user is acquired; specifically, the first touch screen data may be created according to the above-mentioned 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.
- Analyze the first touch screen data update the first touch screen data based on the analysis result, and obtain second touch screen data; specifically, the second touch screen data may contain the same fields as the first touch screen data, and the second touch screen data The value in the field of the screen data may be different from the value in the field of the first touch screen data.
- the second touch screen data is analyzed to determine whether the user gesture corresponding to the second touch screen data is a preset screen capture gesture; if it is determined that the user gesture corresponding to the second screen touch data is a preset screen capture gesture, a screen capture operation is performed.
- the first touch screen data includes the number of contacts
- updating the first touch screen data based on the analysis result includes:
- the filtering of the touch screen data is realized, and the filtering efficiency can be improved.
- the second value is preset as a special value.
- the electronic device is installed with a first application program
- the first application program is used to take screenshots
- the parsing of the second touch screen data includes:
- the second touch screen data is sent to the first application, so that the first application parses the second touch screen data.
- the application program actively acquires the second touch screen data, which can improve the efficiency of gesture recognition.
- the electronic device is further installed with a second application program, the second application program is used to display the page, and further includes:
- the screen capture operation is prohibited, wherein the preset whitelist includes the identity of one or more applications.
- the electronic device is further installed with a second application program, the second application program is used to display the page, and further includes:
- a screenshot prompt is sent, and the screenshot prompt is used to prompt the user whether to take a screenshot.
- the user by sending a prompt, the user is allowed to decide whether to take a screenshot, thereby improving the flexibility of the screenshot, and further improving the user experience.
- the second touch screen data includes a plurality of touch point data, and each touch point data includes contact coordinates, and the second touch screen data is parsed to determine a user gesture corresponding to the second touch screen data Whether it is the default screen capture gesture includes:
- Whether the user gesture corresponding to the second touch screen data is a preset screen capture gesture is determined based on the number of contacts and the user's action, and the preset screen capture gesture includes a preset number of contacts and a preset action.
- whether the user's gesture is a preset screenshot gesture is determined by the number of contacts and actions, which can improve the efficiency of gesture recognition.
- the embodiment of the present application also provides a screen capture method, which is applied to an electronic device, including:
- 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 screen capture gesture; When the user gesture corresponding to the touch screen data is a preset screen capture gesture, the screen capture operation is performed.
- the user's screen capture gesture can be recognized, thereby avoiding the simultaneous occurrence of the screen capture operation and the page scrolling operation, thereby improving the user's experience.
- the first touch screen data includes a plurality of touch point data, and each touch point data includes contact coordinates, and the first touch screen data is parsed to determine a user gesture corresponding to the first touch screen data. Whether it is the default screen capture gesture includes:
- Whether the user gesture corresponding to the first touch screen data is a preset screen capture gesture is determined based on the number of contacts in the first touch screen data and the user's action.
- the recognition speed can be accelerated, so that the screen capture operation can be recognized before the page scrolling operation is recognized, and the page scrolling can be avoided.
- the operation occurs at the same time as the screen capture operation.
- the electronic device is installed with a first application program, and the first application program is used for screen capture. If it is determined that the user gesture corresponding to the first touch screen data is a preset screen capture gesture, Performing a screenshot operation includes:
- a screen capture instruction is sent to the first application, where the screen capture instruction is used to instruct the first application to perform a screen capture operation.
- an embodiment of the present application provides a screen capture device, which is applied to an electronic device, including:
- an acquisition module configured to acquire the first touch screen data of the user in response to the detected multi-finger sliding operation of the user
- an update module configured to parse the first touch screen data, update the first touch screen data based on the analysis result, and obtain the second touch screen data
- a parsing module configured to parse the second touch screen data, and determine whether the user gesture corresponding to the second touch screen data is a preset screen capture gesture
- a screen capture module configured to perform a screen capture operation if it is determined that the user gesture corresponding to the second touch screen data is a preset screen capture gesture.
- the first touch screen data includes the number of contacts
- the above-mentioned updating module is further configured to compare the number of contacts in the first touch screen data with a preset first value; if the first touch screen data contains The number of contacts is consistent with the preset first value, then the number of contacts in the first touch screen data is updated to obtain second touch screen data, and the second touch screen data includes the number of contacts of the preset second value.
- the above-mentioned preset second value is a special value.
- the above-mentioned electronic device is installed with a first application program
- the above-mentioned first application program is used to take screenshots
- the above-mentioned parsing module is further used to respond to the received data request of the first application program
- the touch screen data is sent to the first application, so that the first application parses the second touch screen data.
- the above-mentioned electronic device is further installed with a second application program, and the above-mentioned second application program is used to display a page, and the above-mentioned apparatus further includes:
- a prohibition module used to obtain the identity of the second application; if the identity of the second application is in the preset whitelist, the screen capture operation is prohibited, wherein the preset whitelist includes the identity of one or more applications logo.
- the above-mentioned electronic equipment is also installed with a second application program, and the above-mentioned second application program is used to display a page, and the above-mentioned device also includes:
- 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.
- the second touch screen data includes a plurality of touch point data, each touch point data includes a touch point coordinate, and the parsing module is further configured to read the touch point data in the second touch screen data , determine the total number of touch points as the number of touch points; determine the user's action based on the change in the contact coordinates of the touch point data in the second touch screen data; determine whether the user gesture corresponding to the second touch screen data is based on the number of touch points and the user's action It is a preset screen capture gesture, and the preset screen capture gesture includes a preset number of touch points and a preset action.
- the embodiment of the present application also provides a screen capture device, which is applied to an electronic device, including:
- an acquisition module configured to acquire the first touch screen data of the user in response to the detected multi-finger sliding operation of the user
- a parsing module configured to parse the first touch screen data, and determine whether the user gesture corresponding to the first touch screen data is a preset screen capture gesture
- a screen capture module configured to perform a screen capture operation if it is determined that the user gesture corresponding to the first touch screen data is a preset screen capture gesture.
- the first touch screen data includes a plurality of touch point data, and each touch point data includes a touch point coordinate
- the parsing module is further configured to acquire two first touch screen data, and a first touch screen data.
- the number of touch points in the touch screen data; the user's action is determined based on the change of the touch point coordinates of the touch point data in the two first touch screen data; the first touch screen data is determined based on the number of touch points in the first touch screen data and the user's action.
- the user gesture corresponding to the touch screen data is a preset screenshot gesture.
- the electronic device is installed with a first application program, the first application program is used for screenshots, and the screenshot module is further configured to determine that the user gesture corresponding to the first touch screen 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.
- an electronic device including:
- Memory the memory is used to store computer program code, and the computer program code includes instructions, when the electronic equipment reads the instructions from the memory, so that the electronic equipment performs the following steps:
- a screen capture operation is performed.
- the first touch screen data includes the number of contacts, and when the instruction is executed by the electronic device, the electronic device executes to update the first touch screen data based on the analysis result, and obtains the second touch screen data. Steps include:
- the above-mentioned preset second value is a special value.
- the electronic device is installed with a first application program, and the first application program is used to take screenshots, and when the instruction is executed by the electronic device, the electronic device executes the parsing of the second touch screen data
- the steps include:
- the second touch screen data is sent to the first application, so that the first application parses the second touch screen data.
- the above-mentioned electronic device is further installed with a second application program, and the above-mentioned second application program is used to display a page, and when the above-mentioned instruction is executed by the above-mentioned electronic device, the above-mentioned electronic device further performs the following steps:
- the screen capture operation is prohibited, wherein the preset whitelist includes the identity of one or more applications.
- the above-mentioned electronic device is further installed with a second application program, and the above-mentioned second application program is used to display a page, and when the above-mentioned instruction is executed by the above-mentioned electronic device, the above-mentioned electronic device further performs the following steps:
- a screenshot prompt is sent, and the screenshot prompt is used to prompt the user whether to take a screenshot.
- the second touch screen data includes a plurality of contact data, and each contact data includes contact coordinates.
- the electronic device executes the second touch data.
- the steps of determining whether the user gesture corresponding to the second touch screen data is a preset screen capture gesture include:
- Whether the user gesture corresponding to the second touch screen data is a preset screen capture gesture is determined based on the number of touch points and the user's action.
- the embodiment of the present application also provides an electronic device, including:
- Memory the memory is used to store computer program code, and the computer program code includes instructions, when the electronic equipment reads the instructions from the memory, so that the electronic equipment performs the following steps:
- a screen capture operation is performed.
- the first touch screen data includes a plurality of contact data, and each contact data includes contact coordinates.
- the electronic device executes the first touch data.
- the steps of determining whether the user gesture corresponding to the first touch screen data is a preset screen capture gesture include:
- Whether the user gesture corresponding to the first touch screen data is a preset screen capture gesture is determined based on the number of contacts in the first touch screen data and the user's action.
- the electronic device is installed with a first application program, and the first application program is used to take screenshots, and when the above instruction is executed by the electronic device, the electronic device executes if it is determined that the first touch screen data corresponds to If the user gesture is a preset screen capture gesture, the steps of performing the screen capture operation include:
- a screen capture instruction is sent to the first application, where the screen capture instruction is used to instruct the first application to perform a screen capture operation.
- an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when it runs on a computer, causes the computer to execute the method described in the first aspect.
- an embodiment of the present application provides a computer program, which is used to execute the method described in the first aspect when the computer program is executed by a computer.
- the program in the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, or may be stored in part or in part in a memory not packaged with the processor
- FIG. 1 is a schematic diagram of a software architecture of an electronic device provided by an embodiment of the present application.
- FIG. 2 provides a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application
- FIG. 3 is a schematic flowchart of an embodiment of a screen capture method provided by the present application.
- FIG. 4 is a schematic diagram of a user gesture provided by an embodiment of the present application.
- FIG. 8 is a schematic diagram of gesture recognition provided by an embodiment of the present application.
- FIG. 9 is a schematic flowchart of another embodiment of a screen capture method provided by the present application.
- FIG. 10 is a schematic structural diagram of an embodiment of a screen capture device provided by the application.
- FIG. 11 is a schematic structural diagram of another embodiment of a screen capture device provided by the present application.
- first and second are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features.
- a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature.
- plural means two or more.
- the electronic device can acquire the user's touch screen data.
- the notebook computer can obtain the user's touch screen data through a human interface device (Human Interface Devices, HID) driver in Windows.
- HID Human Interface Devices
- the HID driver can send the touch screen data to the HID service.
- the HID service can parse the touch screen data.
- the user can take a screenshot of the content of the current page through a screen capture gesture (for example, three-finger swipe down).
- a screen capture gesture for example, three-finger swipe down.
- the above swipe gesture will also trigger the scrolling operation, which will trigger both the screenshot and the scrolling operation, so that the user cannot capture the desired content (ie, the current page without scrolling), which reduces the user experience. .
- an embodiment of the present application proposes a screen capture 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 notebook computer.
- the specific form of the electronic device is not particularly limited in the embodiments of the present application.
- FIG. 1 is a software architecture diagram of the notebook computer 10. As shown in FIG. The HID filter driver module 12 , the HID service 13 and the application program 14 .
- the HID driving module 11 is configured to acquire touch screen data and send the touch screen data to the HID filter driving module 12 .
- the touch screen data may be generated based on the user's gesture.
- the HID filter driving module 12 is configured to receive the touch screen data sent by the above-mentioned HID driving module 11, read the value of the contact number field in the touch screen data, and match the value of the contact number field with the contact number of the preset screen capture gesture Matching is performed. If the value of the contact number field matches the contact number of the preset screen capture gesture, the value of the contact number field is modified, and the modified touch screen data is sent to the HID service 13 .
- the HID filter driving module 12 can also receive the touch screen data sent by the above-mentioned HID driving module 11, and identify the touch screen data to obtain the corresponding user gesture. If the user gesture matches the preset screen capture gesture, then This screen capture gesture can be sent directly to the application 14 .
- the HID service 13 is used for receiving the touch screen data sent by the HID filter driver module 12, and judging the contact information in the touch screen data to determine whether there is a sliding gesture, and if there is no sliding gesture, based on the request of the application program 14
- the touch screen data is sent to the application 14 .
- the application 14 is used to send a touch screen data request to the HID service 13 to obtain 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 of touch points and coordinates in the touch screen data, identify based on the number of touch points and the coordinates, obtain a corresponding user gesture, and associate the user gesture with the preset
- the preset screen capture gesture is matched, and if the user gesture matches the preset screen capture gesture, the corresponding screen capture operation is performed.
- 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.
- FIG. 2 shows a schematic structural diagram of an electronic device 100
- the electronic device 100 may be a display device with a display screen, such as a mobile phone, a tablet, and a notebook computer.
- 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 charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
- SIM Subscriber identification module
- 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, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
- the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 .
- the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
- the illustrated components may be implemented in hardware, software or a combination of software and hardware.
- 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), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- the controller may be the nerve center and command center of the electronic device 100 . The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
- the execution of the screenshot method provided by this embodiment of the present application may be performed by the processor 110 controlled by or by invoking other components, such as invoking the processing program of the present application embodiment stored in the internal memory 121, so as to realize the user's screenshot operation and improve the user's experience.
- the processor 110 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transceiver
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB universal serial bus
- the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. 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.
- the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
- the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
- the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
- the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify 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 then turn it into an electromagnetic wave for radiation through the antenna 1 .
- at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
- the modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
- the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
- the modem processor may be a stand-alone device.
- the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
- WLAN wireless local area networks
- BT Bluetooth
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication
- IR infrared technology
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
- the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
- the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with 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), broadband 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, etc.
- the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
- global positioning system global positioning system, GPS
- global navigation satellite system global navigation satellite system, GLONASS
- Beidou navigation satellite system beidou navigation satellite system, BDS
- quasi-zenith satellite system quadsi -zenith satellite system, QZSS
- SBAS satellite based augmentation systems
- the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
- the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
- Display screen 194 is used to display images, videos, and the like.
- 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 (active-matrix organic light).
- LED diode AMOLED
- flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
- the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
- the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
- the ISP is used to process the data fed back by the camera 193 .
- the shutter is opened, 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 the ISP for processing, and converts it into an image visible to the naked eye.
- ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
- ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be provided in the camera 193 .
- Camera 193 is used to capture still images or video.
- the object is projected through the lens to generate an optical image onto the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
- the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
- the digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
- Video codecs are used to compress or decompress digital video.
- the electronic device 100 may support one or more video codecs.
- the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
- MPEG Moving Picture Experts Group
- MPEG2 moving picture experts group
- MPEG3 MPEG4
- MPEG4 Moving Picture Experts Group
- the NPU is a neural-network (NN) computing processor.
- NN neural-network
- Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
- 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 realize the data storage function. For example to save files like music, video etc in external memory card.
- Internal memory 121 may be used to store computer executable program code, which includes instructions.
- the internal memory 121 may include a storage program area and a storage data area.
- the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
- the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like.
- the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
- the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
- Touch sensor 180K also called “touch panel”.
- the touch sensor 180K may be disposed 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 a touch operation 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 touch operations may be provided through display screen 194 .
- the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
- 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.
- the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
- the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
- Motor 191 can generate vibrating cues.
- the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
- touch operations acting on different applications can correspond to different vibration feedback effects.
- the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
- Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
- the touch vibration feedback effect can also support customization.
- the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
- the SIM card interface 195 is used to connect a SIM card.
- the SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
- the electronic device 100 may 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 card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may 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 is also compatible with external memory cards.
- the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
- the electronic device 100 employs an eSIM, ie: an embedded SIM card.
- the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
- FIG. 3 is a schematic flowchart of an embodiment of a screen capture method provided by an embodiment of the present application, including:
- Step 101 the HID driving module 11 acquires the first touch screen data.
- the user can perform operations such as touch or slide on the current page.
- the user may perform operations such as touch or swipe on the display screen 194 of the electronic device 100 .
- the current page may include a web page and a PPT page of a browser, and it can be understood that the above-mentioned web page and PPT page of the browser are exemplary descriptions, and do not constitute a limitation to the embodiments of the present application.
- the user's sliding operation may include the user's multi-finger sliding operation.
- the sliding may include upward sliding, downward sliding, left sliding, and right sliding, etc., which is not limited in this embodiment of the present application.
- the multi-finger may include three-finger, four-finger and other gestures, and may also include other types of gestures, which are not particularly limited in this embodiment of the present application.
- FIG. 4 is a schematic diagram of three-finger sliding according to an embodiment of the present application.
- the touch sensor 180K in the electronic device 100 detects the user's operation, and the HID driving module 11 can generate corresponding first touch screen data based on the user's operation.
- the first touch screen data may include information such as the number of contacts and touch coordinates.
- the HID driving module 11 can obtain a first touch screen data S1, and the first touch screen data S1 corresponds to the user at the time t. The coordinates of the finger. As the user's finger slides, at another time t1, the HID driving module 11 will receive another first touch screen data S2, the first touch screen data S2 corresponding to the coordinates of the user's finger at this time t1. Therefore, each first touch screen data may also correspond to a moment, where the moment is used to represent the time when the first touch screen data is generated.
- the first touch screen data may be embodied in the form of a data packet.
- FIG. 5 is a schematic diagram of a data structure of the above-mentioned first touch screen data packet.
- the first touch screen data packet may include 34-bit data information.
- the 34-bit data information may include a data flag of 1-bit data information, a contact information of 30-bit data information, and 2-bit data information.
- the data flag can be used to identify whether it 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 contains 6-bit data information.
- the third to sixth bits of data information of each contact point information are used to identify the coordinates of the contact point.
- the third and fourth bits in each contact information may be the abscissa of the contact, and the fifth and sixth bits may be the ordinate of the contact; it can be understood that each contact
- the third and fourth bits in the information may be the ordinate of the contact point, and the fifth and sixth bits may be the abscissa of the contact point, which is not particularly limited in this embodiment of the present application.
- the touch point 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 swipes with three fingers, the number of contacts is 3.
- the touch screen data may contain more or less data bits, for example, more than the above 34-bit data information, or less than the above-mentioned 34-bit data information, which is not specifically limited in this application.
- Step 102 the HID driving module 11 sends the above-mentioned first touch screen data to the HID filter driving module 12 .
- the HID driving module 11 may sequentially send the plurality of first touch screen data to the HID filter driving module 12 in a chronological order. Further, the HID driving module 11 can send the time corresponding to the above-mentioned first touch screen data to the HID filter driving module 12.
- the HID driving module 11 detects the user's first touch screen data S1 at time t , then at the time t, the first touch screen data S1 and the corresponding time t can be sent to the HID filter driving module 12; at this time, if the user slides his finger on the display screen of the electronic device 100, the HID The driving module 11 detects the user's first touch screen data S2 at time t1, and can send the first touch screen data S2 and the corresponding time t1 to the HID filter driving module 12 at the time t1.
- the HID driving module 11 may also collect a plurality of first touch screen data within a preset time period, and send the plurality of first touch screen data to the HID filter driving module 12 at the same time.
- the driving 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 time t1 and t2, wherein both t1 and t2 are later than t, and t2 is later than
- the time period between t1, t2 and t is a preset time period, then the HID driving module 11 can simultaneously send S1, S2, S3 and the corresponding times t, t1 and t2 to the HID filter driving module 12.
- step 103 the HID filter driving module 12 reads the contact number flag in the first touch screen data, and modifies the contact number flag to obtain the second touch screen data.
- the HID filter driving module 12 when the HID filter driving module 12 receives the first touch screen data sent by the HID driving module 11, it can read the value in the contact number flag in the first touch screen data, and can judge based on the value.
- the value in the contact number flag can be compared with a preset value.
- the preset value may be the number of contacts of the preset screenshot gesture.
- the HID filter driving module 12 may consider that the user's gesture this time is a screenshot operation, and at this time, the first touch screen data may be The value in the contact number flag of is modified to 0, so that the second touch screen data can be obtained, and step 104B can be further performed.
- the above-mentioned numerical value 0 is an exemplary description, and does not constitute a limitation on the embodiments of the present application, and in some embodiments, it may also be other numerical values or characters. Exemplarily, if the three-finger swipe down is used as the preset screenshot gesture, the number of contacts corresponding to the screenshot gesture is 3, that is, the preset value of the number of contacts is 3.
- the number of contacts of the preset screen capture gesture is illustrative, and does not constitute a limitation to the embodiments of the present application. In some embodiments, the number of contacts of the preset screen capture gesture may also be other values.
- the second touch screen data is obtained by modifying the numerical value in the contact number flag in the above-mentioned first touch screen data to a special value (for example, the value is 0). Since the value in the contact number flag in the second touch screen data is a special value, the HID service 13 can no longer parse the second touch screen data, that is, the HID service considers that the second touch screen data contains If it does not contain user gestures, it will not be interpreted as a sliding operation, which can avoid misinterpreting it as a sliding operation.
- the first touch screen data 600 includes a data flag 601 , contact information 602 , a contact ID 603 and a contact number flag 604 .
- the value in the contact number flag 604 is 3.
- the HID filter driving module 12 reads the value in the contact number flag 604 since the value in the contact number flag 604 is consistent with the contact number of the preset screen capture gesture, at this time, the value in the contact number flag 604 can be modified as 0, thus the second touch screen data 610 can be obtained.
- the second touch screen data 610 includes a data flag 611 , contact information 612 , a contact ID 613 and a contact number flag 614 .
- the data flag 611 has the same value as the data flag 601
- the contact information 612 has the same information as the contact information 602
- the contact ID 613 has the same information as the contact ID 603
- the contact number flag 614 has different information from the contact number flag 604.
- the value in the number of contacts flag 614 is 0, while the value in the number of contacts flag 604 is 3.
- the HID filter driving module 12 may further perform step 104A.
- Step 104A the HID filter driving module 12 may send the above-mentioned first touch screen data to the HID service 13 .
- step 104A and step 104B are executed alternatively, that is, after step 104A is executed, step 104B is not executed.
- Step 104B the HID filter driving module 12 may send the above-mentioned second touch screen data to the HID service 13 .
- the HID filter driving module 12 may also send the time corresponding to the second touch screen data to the HID service 13 .
- the HID service 13 receives the touch screen data sent by the HID filter driver module 12, reads the contact number flag in the above touch screen data, and determines the second touch screen data based on the value of the contact number flag in the touch screen data.
- the HID service 13 receives touch screen data sent by the HID filter driving module 12 , and the touch screen data may include first touch screen data or second touch screen data. Next, the HID service 13 may read the value of the touch point number flag in the touch screen data, and may make judgment based on the value in the touch point number flag, and determine the second touch screen data based on the judgment result.
- the HID service 13 may consider the touch screen data to be the second touch screen data, because 0 or character is a special value. value, that is to say, the touch screen data this time does not have the number of contacts, therefore, 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 Procedure 14.
- a special value for example, 0 or a character
- the HID service 13 may regard the touch screen data as the first touch screen data, and then the HID service 13 may determine the touch screen data according to the first touch screen data.
- a coordinate in the touch screen data to obtain the user's action for example, if the user's action is to slide down, a scrolling operation is performed.
- Step 106 the HID service 13 sends the second touch screen data to the application 14 based on the request of the application 14 .
- the application 14 may be a screen capture application, for example, the screen capture application may provide a screen capture function.
- the application 14 may also be a gesture processing application.
- the gesture processing application may not include a screen capture function. After the gesture processing application is started, the screen capture function of the system may be invoked.
- the specific implementation form of the program 14 is not particularly limited.
- a preset configuration file may be stored in the application 14, and the configuration file may include preset screen capture gestures.
- 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, slide up, slide down, slide left or slide right) ).
- the information in the configuration file can be preset by the user or maintained by the user, for example, the user can change the contact number information and/or action information in the above configuration file.
- Table 1 exemplarily shows the information of the above configuration files.
- a touch screen data request may be sent to the HID service 13 , wherein the above touch screen data request is used to obtain the touch screen data received by the HID service 13 .
- This enables the HID service 13 to send the second touch screen data to the application 14 after receiving the second touch screen data sent by the HID filter driving module 12 .
- the HID service 13 may also send the time corresponding to the second touch screen data to the application 14 .
- Step 107 the application 14 receives the second touch screen data sent by the HID service 13, reads the contact information in the second touch screen data, and determines the number of touch points and the coordinates of the touch points in the second touch screen data.
- the application 14 can read all contact information in the second touch screen data.
- any second touch screen data may contain 5 pieces of contact information, and the application 14 may follow the arrangement order of the contact information in each second touch screen data (for example, according to the order shown in FIG. 6 ).
- the order of the second touch screen data 610) to read the contact information, or the contact information may be read in other ways, which is not particularly limited in this embodiment of the present application.
- the application 14 can obtain the data in the contact information by reading the contact information of each second touch screen data, thereby determining the number of contacts and the coordinates of the contacts contained in each second touch screen data . Exemplarily, if any contact information contains data other than all 0s, the data in the contact information is valid, that is, the contact information corresponds to one contact.
- the second touch screen data 700 includes first touch point information 701 , second touch point information 702 , third touch point information 703 , fourth touch point information 704 and fifth touch point information 701 .
- the first contact information 701 includes a pressing mark 7011, a contact ID 7012 and a contact coordinate 7013;
- the second contact information 702 includes a pressing mark 7021, a contact ID 7022 and a contact coordinate 7023;
- the third contact information 703 includes a pressing mark 7031 , contact ID 7032 and contact coordinates 7033;
- the fourth contact information 704 includes the pressing flag 7041, the contact ID 7042 and the contact coordinates 7043;
- the fifth contact information 705 includes the pressing flag 7051, the contact ID 7052 and the contact coordinates 7053.
- the data in the first contact information 701, the second contact information 702 and the third contact information 703 are not all 0 data, therefore, the first contact information 701, the second contact information 702 and the third contact information 703 is a valid contact point, then, the data in the contact coordinates 7013, 7023 and 7033 in the first contact information 701, the second contact information 702 and the third contact information 703 can be read respectively, thereby obtaining Coordinates of the first, second and third contacts.
- the data in the fourth contact information 704 and the fifth contact information 705 are all 0 data, therefore, the fourth contact information 704 and the fifth contact information 705 are invalid contacts.
- Step 108 the application 14 compares the coordinates of the second touch screen data to determine the action.
- the application program 14 may compare the coordinates of the plurality of second touch screen data, thereby determining the user's action.
- the application 14 can determine the time sequence of the two second touch screen data.
- the above-mentioned time sequence may be determined according to the sequence in which the application program 14 receives the above-mentioned second touch screen data.
- the above-mentioned time order may also be determined based on the time corresponding to the above-mentioned second touch screen data. No special restrictions are made.
- 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.
- the time of one second touch screen data S1 is: t
- the time of another second touch screen data S2 is t1.
- the above-mentioned two second touch screen data may be the two second touch screen data received earliest after the user's operation is detected, or may be the first two second touch screen data received after the user's operation is detected.
- the two second touch screen data are arbitrarily selected in this embodiment of the present application, which is not limited.
- the action can be determined according to the coordinates and time sequence of the two touch screen data. Exemplarily, assuming that the time of one second touch screen data S1 is t, the time of another second touch screen data S2 is t1, and t1 is later than t, if the coordinates of S2 are below S1, the action can be determined as: slip.
- the second touch screen data 800 at time t includes first contact information 801 , second contact information 802 and third contact information 803 , wherein the first contact
- the coordinates corresponding to the information 801 are (04, 05, 8c, 03), the coordinates corresponding to the second contact information 802 are (2e, 04, f5, 03), and the coordinates corresponding to the third contact information 803 are (28, 06 , 69, 04);
- the second touch screen data 810 at time t1 includes the first contact information 811, the second contact information 812 and the third contact information 813, wherein the coordinates corresponding to the first contact information 811 are ( 04, 05, 8d, 04), the coordinates corresponding to the second contact information 812 are (2e, 04, f6, 04), and the coordinates corresponding to the third contact information 813 are (28, 06, 70, 05).
- the coordinate changes of the first contact information 811 and the first contact information 801 the coordinate changes of the second contact information 812 and the second contact information 802 , and the third contact information 813
- the coordinates of the third contact information 803 change.
- the coordinates of the first contact information 811 are below the coordinates of the first contact information 801
- the coordinates of the second contact information 812 are below the coordinates of the second contact information 802
- the coordinates of the third touch point information 813 are below the coordinates of the third touch point information 803; thus, it can be determined that the current action of the user is sliding down.
- the coordinate change of the first contact point information 811 and the first contact point information 801, the second contact point information determines whether the current action of the user is sliding down.
- the application 14 may also select more second touch screen data for comparison, eg, 3 second touch screen data or more.
- Step 109 the application 14 determines the user gesture based on the motion and the number of touch points, compares the user gesture with the preset screen capture gesture, and performs a screen capture operation according to the comparison result.
- the application 14 can determine the user gesture based on the action and the number of touch points. For example, if the number of touch points is 3 and the action is slide down, the application program 14 can determine that the user's current gesture is three-finger slide down. Next, the application 14 may compare the user's current gesture with a preset screen capture gesture.
- the preset screen capture gesture can be obtained from the configuration file in step 106 . Exemplarily, if the preset screen capture gesture is three-finger slide down, that is, the number of contacts of the preset screen capture gesture is 3, and the action is slide down, the user's current gesture is consistent with the preset screen capture gesture, so that Application 14 performs a screen capture action.
- the screen capture application detects the user's three-finger swipe gesture, it can recognize that the three-finger swipe is a screenshot operation, so that the screen capture application can Take a screenshot of the current page. If the above user gesture is inconsistent with the preset screen capture gesture, the above screen capture operation cannot be performed.
- the application program 14 may further acquire the identity identifier of the application corresponding to the current page.
- the application corresponding to the drawing page is a drawing application (for example, it may be a drawing software).
- the application 14 may acquire the identity of the drawing application (for example, it may be the APP ID of the drawing application).
- the application 14 may match the identity of the drawing application with the identity of the preset application whitelist.
- the preset application whitelist may include identity identifiers of one or more applications, and the preset application whitelist may be stored in the application program 14 in advance.
- the application 14 can block the screen capture gesture, thereby preventing the screen capture action from conflicting with the user's current drawing action.
- 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 “Reject” ” button to reject the screenshot operation.
- the application 14 may further perform a screen capture operation.
- the touch screen data of the user is acquired, the touch screen data is filtered based on the number of touch points, so as to avoid misinterpreting the screen capture action of the user as another operation (for example, a scrolling operation), thereby improving the user's Screen capture efficiency to improve user experience.
- steps 101 to 109 are all optional steps, this application only provides a feasible embodiment, and may also include more or less steps than steps 101 to 109.
- the application is not limited.
- the above-mentioned embodiment is described by using the application program 14 to perform gesture recognition on the touch screen data as an example.
- the following describes the method of performing gesture recognition on the touch screen data in the HID filter driving module 12 as an example.
- FIG. 9 is a schematic flowchart of another embodiment of a screen capture method provided by an embodiment of the present application, including:
- Step 201 the HID driving module 11 acquires the first touch screen data.
- the user can perform operations such as touch or slide on the current page.
- the user may perform operations such as touch or swipe on the display screen 194 of the electronic device 100 .
- the current page may include a web page and a PPT page of a browser. It can be understood that the web page and PPT page of the browser described above are exemplary descriptions and do not constitute limitations to the embodiments of the present application.
- the user's sliding operation may include the user's multi-finger sliding operation.
- the sliding may include upward sliding, downward sliding, left sliding, and right sliding, etc., which is not limited in this embodiment of the present application.
- the multi-finger may include three-finger, four-finger and other gestures, and may also include other types of gestures, which are not particularly limited in this embodiment of the present application.
- FIG. 4 For a schematic diagram of a user sliding with multiple fingers, reference may be made to FIG. 4 , which will not be repeated here.
- the touch sensor 180K in the electronic device 100 detects the user's operation, and the HID driving module 11 can generate corresponding first touch screen data based on the user's operation.
- the first touch screen data may include information such as the number of contacts and touch coordinates.
- FIG. 5 For the data packet format of the first touch screen data, reference may be made to FIG. 5 , which will not be repeated here.
- the format of the above-mentioned first touch screen data packet is only an exemplary field format of the touch screen data.
- the touch screen data may contain more or less data bits, such as , which is larger than the above-mentioned 34-bit data information, or smaller than the above-mentioned 34-bit data information, which is not specially limited in this application.
- the HID driving module 11 may also record the time corresponding to each of the above-mentioned first touch screen data.
- Step 202 the HID driving module 11 sends the above-mentioned first touch screen data to the HID filter driving module 12 .
- the HID driving module 11 may sequentially send the plurality of first touch screen data to the HID filter driving module 12 in a chronological order. Further, the HID driving module 11 can send the time corresponding to the above-mentioned first touch screen data to the HID filter driving module 12.
- the HID driving module 11 detects the user's first touch screen data S1 at time t , then at the time t, the first touch screen data S1 and the corresponding time t can be sent to the HID filter driving module 12; at this time, if the user slides his finger on the display screen of the electronic device 100, the HID The driving module 11 detects the user's first touch screen data S2 at time t1, and can send the first touch screen data S2 and the corresponding time t1 to the HID filter driving module 12 at the time t1.
- the HID driving module 11 may also collect a plurality of first touch screen data within a preset time period, and send the plurality of first touch screen data to the HID filter driving module 12 at the same time.
- the driving 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 time t1 and t2, wherein both t1 and t2 are later than t, and t2 is later than
- the time period between t1, t2 and t is a preset time period, then the HID driving module 11 can simultaneously send S1, S2, S3 and the corresponding times t, t1 and t2 to the HID filter driving module 12.
- Step 203 the HID filter driving module 12 sends the first touch screen data to the HID service 13 .
- Step 204 the HID filter driving module 12 reads the contact number flag in the first touch screen data, and identifies the first touch screen data based on the contact number flag.
- the HID filter driving module 12 can also read the value of the contact number flag in the first touch screen data in chronological order, and can The value in the point mark is judged, for example, the value can be compared with a preset value, where the preset value can be the number of touch points of the preset screenshot gesture.
- Step 205 the HID filter driver module 12 sends a screenshot instruction to the application 14 based on the identification result.
- the HID filter driving module 12 may also acquire the contact information in the above-mentioned first touch screen data.
- the touch point information in the two first touch screen data can be compared, thereby determining the user's action, wherein the action can include sliding up, sliding down, sliding left, sliding right, and the like.
- the above-mentioned two first touch screen data may be two touch screen data received at the earliest when the value of the contact number flag is equal to the preset value.
- the above-mentioned two first touch screen data may also be one touch screen data received at the earliest 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 manner of the present application, and does not constitute a limitation to the embodiments of the present application.
- the HID filter driving module 12 receives the first touch screen data S1 and S2 at times t and t1 respectively, where t1 is later than t, and S1 is the first submitted data after the HID driving module 11 detects the user operation.
- Touch screen data that is, S1 is the first touch screen data received by the HID filter driving 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 driving module 12
- Received touch screen data in other words, S1 and S2 are the two earliest received touch screen data. If the contact numbers of S1 and S2 are both equal to the preset value (for example, the preset number of contacts of the screenshot gesture), at this time, the HID filter driving module 12 can compare the contact information of S1 and S2.
- the HID filter driving module 12 may compare a piece of contact information in S1 with the corresponding contact information in S2, thereby determining the user's action.
- S1 includes first contact information s11, second contact information s12 and third contact information s13
- S2 includes first contact information s21, second contact information s22 and third contact information s23
- the HID filter driving module 12 can compare the coordinates of s11 with the coordinates of the corresponding s21, or can compare the coordinates of s12 with the coordinates of the corresponding s22, or can compare the coordinates of s13 with the coordinates of the corresponding s23 A comparison is made, thereby determining the user's action (eg, whether it was a swipe).
- the HID filter driving module 12 may also compare the multiple contact information in S1 with the corresponding contact information in S2. It can be understood that the above method of comparing a piece of contact information in S1 with the corresponding contact information in S2 is a preferred manner of the embodiment of the present application, and does not constitute a limitation of the embodiment of the present application.
- step 109 For the specific process of determining the user action, reference may be made to step 109, which will not be repeated here.
- a plurality of first touch screen data will be generated. Suppose that 6 pieces of first touch screen data are generated during the sliding of the user's finger.
- the HID service 13 needs to judge the changes of the above 6 pieces of first touch screen data, so as to determine whether the user's gesture is sliding, and In this application, only the earliest two touch screen data needs to be judged, so that before the HID service 13 judges the sliding gesture, the HID filter driving module 12 has already determined that the user's current gesture is sliding, so that the user's current gesture can be identified more quickly. Gestures to avoid slippage misoperation caused by the HID service 13 recognizing the slippage gesture.
- the HID filter driving 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.
- the above-mentioned user actions and the number of contacts can be matched with the actions and the number of contacts of the preset screen capture gesture, wherein the information of the above-mentioned preset screen capture gesture can be pre-stored in the configuration file of the HID filter driver module 12, the For details of the content of the configuration file, please refer to Table 1, which will not be repeated here.
- the HID filter driving module 12 determines that the gesture of the current user is a screenshot gesture, it sends a screenshot instruction to the application 14 .
- Step 206 the application 14 receives the screenshot instruction sent by the HID filter driver module 12, and executes a corresponding screenshot operation.
- the user's gesture can be recognized more quickly, so that the screen capture operation can be triggered more quickly, and then the screen capture operation can be triggered more quickly. Screenshot operation and scroll operation conflict can be avoided.
- FIG. 10 is a schematic structural diagram of an embodiment of a screen capture device of the present application.
- the above screen capture device 1000 may include: an acquisition module 1010, an update module 1020, a parsing module 1030, and a screen capture module 1040; wherein,
- an obtaining module 1010 configured to obtain the first touch screen data of the user in response to the detected multi-finger sliding operation of the user
- an update module 1020 configured to parse the first touch screen data, update the first touch screen data based on the analysis result, and obtain the second touch screen data;
- the parsing module 1030 is configured to parse the second touch screen data, and determine whether the user gesture corresponding to the second touch screen data is a preset screen capture gesture;
- the screen capture module 1040 is configured to perform a screen capture operation if it is determined that the user gesture corresponding to the second touch screen data is a preset screen capture gesture.
- the first touch screen data includes the number of contacts
- the above-mentioned updating module 1020 is further configured to compare the number of contacts in the first touch screen data with a preset first value; if the first touch screen data If the number of contacts in the data is consistent with the preset first value, the number of contacts in the first touch screen data is updated to obtain second touch screen data, and the second touch screen data includes the number of contacts with the preset second value.
- the above-mentioned preset second value is a special value.
- the above-mentioned electronic device is installed with a first application program
- the above-mentioned first application program is used to take screenshots
- the above-mentioned parsing module 1030 is further configured to respond to the received data request of the first application program
- the second touch screen data is sent to the first application, so that the first application parses the second touch screen data.
- the above-mentioned electronic device is further installed with a second application program, and the above-mentioned second application program is used to display a page, and the above-mentioned apparatus 1000 further includes:
- 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 whitelist, the screen capture operation is prohibited, wherein the preset whitelist includes the identity of one or more applications. Identity.
- the above-mentioned electronic device is further installed with a second application program, and the above-mentioned second application program is used to display a page, and the above-mentioned apparatus 1000 further includes:
- the prompt module 1060 is configured to obtain the identity of the second application; if the identity of the second application is in the preset whitelist, send a screenshot prompt, which is used to prompt the user whether to take a screenshot.
- the second touch screen data includes a plurality of contact data, and each contact data includes contact coordinates
- the analysis module 1030 is further configured to read the contacts in the second touch screen data data, determine the total number of touch point data as the number of touch points; determine the user's action based on the change in the touch point coordinates of the touch point data in the second touch screen data; determine the user gesture corresponding to the second touch screen data based on the number of touch points and the user's action Whether it is a preset screenshot gesture, the preset screenshot gesture includes the preset number of contacts and preset actions.
- the screenshot device provided by the embodiment shown in FIG. 10 can be used to implement the technical solutions of the method embodiments shown in FIG. 1 to FIG. 9 of the present application.
- the implementation principle and technical effect reference may be made to the related descriptions in the method embodiments.
- FIG. 11 is a schematic structural diagram of another embodiment of the screen capture device of the present application.
- the above screen capture device 1000 may include: an acquisition module 1110, a parsing module 1120, and a screen capture module 1130; wherein,
- an obtaining module 1110 configured to obtain the first touch screen data of the user in response to the detected multi-finger sliding operation of the user
- the parsing module 1120 is configured to parse the first touch screen data, and determine whether the user gesture corresponding to the first touch screen data is a preset screen capture gesture;
- the screen capture module 1130 is configured to perform a screen capture operation if it is determined that the user gesture corresponding to the first touch screen data is a preset screen capture gesture.
- the first touch screen data includes a plurality of touch point data, and each touch point data includes contact coordinates.
- the analysis module 1120 is further configured to acquire two first touch screen data, and the first touch screen data.
- the number of touch points in the first touch screen data; the user's action is determined based on the change of the touch point coordinates of the touch point data in the two first touch screen data; the first touch screen data is determined based on the number of touch points in the first touch screen data and the user's action.
- the user gesture corresponding to the touch screen data is a preset screenshot gesture.
- the electronic device is installed with a first application, the first application is used to take screenshots, and the screenshot module 1130 is further configured to take a preset screenshot if the user gesture corresponding to the first touch screen data is determined gesture, send a screenshot instruction to the first application, where the screenshot instruction is used to instruct the first application to perform a screenshot operation.
- the screen capture device provided by the embodiment shown in FIG. 11 can be used to implement the technical solutions of the method embodiments shown in FIG. 1 to FIG. 9 of the present application, and the implementation principle and technical effect can be further referred to the related descriptions in the method embodiments.
- each module of the screenshot apparatus shown in FIG. 10 and FIG. 11 is only a division of logical functions, and may be fully or partially integrated into a physical entity in actual implementation, or may be physically separated.
- these modules can all be implemented in the form of software calling through processing elements; they can also all be implemented in hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in hardware.
- the detection module may be a separately established processing element, or may be integrated in a certain chip of the electronic device.
- the implementation of other modules is similar.
- all or part of these modules can be integrated together, and can also be implemented independently.
- each step of the above-mentioned method or each of the above-mentioned modules can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
- the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit; hereinafter referred to as: ASIC), or, one or more microprocessors Digital Signal Processor (hereinafter referred to as: DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array; hereinafter referred to as: FPGA), etc.
- ASIC Application Specific Integrated Circuit
- DSP Digital Signal Processor
- FPGA Field Programmable Gate Array
- these modules can be integrated together and implemented in the form of a system-on-a-chip (System-On-a-Chip; hereinafter referred to as: SOC).
- the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
- the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
- the above-mentioned electronic devices and the like include corresponding hardware structures and/or software modules for executing each function.
- the embodiments of the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Experts may use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of the embodiments of the present application.
- each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
- the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
- Each functional unit in each of the embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
- the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
- the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
- a computer-readable storage medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
- the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
用户手势 | 触点数 | 动作 |
截屏 | 3 | 下滑 |
Claims (22)
- 一种截屏方法,应用于电子设备,其特征在于,所述方法包括:响应于检测到的用户的多指滑动操作,获取所述用户的第一触屏数据;对所述第一触屏数据进行解析,基于解析结果更新所述第一触屏数据,得到第二触屏数据;对所述第二触屏数据进行解析,确定所述第二触屏数据对应的用户手势是否为预设截屏手势;若确定所述第二触屏数据对应的用户手势为预设截屏手势,则执行截屏操作。
- 根据权利要求1所述的方法,其特征在于,所述第一触屏数据包括触点数,所述基于解析结果更新所述第一触屏数据,得到第二触屏数据包括:将所述第一触屏数据中的触点数与预设第一数值进行比较;若所述第一触屏数据中的触点数与预设第一数值一致,则更新所述第一触屏数据中的触点数,得到第二触屏数据,所述第二触屏数据包含预设第二数值的触点数。
- 根据权利要求2所述的方法,其特征在于,所述预设第二数值为特殊数值。
- 根据权利要求1所述的方法,其特征在于,所述电子设备安装有第一应用程序,所述第一应用程序用于截屏,所述对所述第二触屏数据进行解析包括:响应于接收到的所述第一应用程序的数据请求,将所述第二触屏数据发送给所述第一应用程序,使得所述第一应用程序对所述第二触屏数据进行解析。
- 根据权利要求4所述的方法,其特征在于,所述电子设备还安装有第二应用程序,所述第二应用程序用于显示页面,所述方法还包括:获取所述第二应用程序的身份标识;若所述第二应用程序的身份标识在预置白名单内,则禁止执行所述截屏操作,其中,所述预置白名单包括一个或多个应用程序的身份标识。
- 根据权利要求4所述的方法,其特征在于,所述电子设备还安装有第二应用程序,所述第二应用程序用于显示页面,所述方法还包括:获取所述第二应用程序的身份标识;若所述第二应用程序的身份标识在预置白名单内,则发送截屏提示,所述截屏提示用于提示用户是否进行截屏。
- 根据权利要求1所述的方法,其特征在于,所述第二触屏数据包括多个触点数据,每个所述触点数据包括触点坐标,所述对所述第二触屏数据进行解析,确定所述第二触屏数据对应的用户手势是否为预设截屏手势包括:读取所述第二触屏数据中的触点数据,确定所述触点数据的总数为触点数;基于所述第二触屏数据中所述触点数据的触点坐标的变化确定用户的动作;基于所述触点数及所述用户的动作确定所述第二触屏数据对应的用户手势是否为预设截屏手势,所述预设截屏手势包括预设触点数及预设动作。
- 一种截屏方法,应用于电子设备,其特征在于,所述方法包括:响应于检测到的用户的多指滑动操作,获取所述用户的第一触屏数据;对所述第一触屏数据进行解析,确定所述第一触屏数据对应的用户手势是否为预设截屏手势;若确定所述第一触屏数据对应的用户手势为预设截屏手势,则执行截屏操作。
- 根据权利要求8所述的方法,其特征在于,所述第一触屏数据包括多个触点数据,每个所述触点数据包括触点坐标,所述对所述第一触屏数据进行解析,确定所述第一触屏数据对应的用户手势是否为预设截屏手势包括:获取两个第一触屏数据,以及所述第一触屏数据中的触点数;基于两个所述第一触屏数据中的触点数据的触点坐标的变化,确定用户的动作;基于所述第一触屏数据中的触点数及所述用户的动作确定所述第一触屏数据对应的用户手势是否为预设截屏手势。
- 根据权利要求8所述的方法,其特征在于,所述电子设备安装有第一应用程序,所述第一应用程序用于截屏,所述若确定所述第一触屏数据对应的用户手势为预设截屏手势,则执行截屏操作包括:若确定所述第一触屏数据对应的用户手势为预设截屏手势,则向所述第一应用程序发送截屏指示,所述截屏指示用于指示所述第一应用程序执行截屏操作。
- 一种电子设备,其特征在于,包括:存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括指令,当所述电子设备从所述存储器中读取所述指令,以使得所述电子设备执行以下步骤:响应于检测到的用户的多指滑动操作,获取所述用户的第一触屏数据;对所述第一触屏数据进行解析,基于解析结果更新所述第一触屏数据,得到第二触屏数据;对所述第二触屏数据进行解析,确定所述第二触屏数据对应的用户手势是否为预设截屏手势;若确定所述第二触屏数据对应的用户手势为预设截屏手势,则执行截屏操作。
- 根据权利要求11所述的电子设备,其特征在于,所述第一触屏数据包括触点数,所述指令被所述电子设备执行时,使得所述电子设备执行基于解析结果更新所述第一触屏数据,得到第二触屏数据的步骤包括:将所述第一触屏数据中的触点数与预设第一数值进行比较;若所述第一触屏数据中的触点数与预设第一数值一致,则更新所述第一触屏数据中的触点数,得到第二触屏数据,所述第二触屏数据包含预设第二数值的触点数。
- 根据权利要求12所述的电子设备,其特征在于,所述预设第二数值为特殊数值。
- 根据权利要求11所述的电子设备,其特征在于,所述电子设备安装有第一应用程序,所述第一应用程序用于截屏,所述指令被所述电子设备执行时,使得所述电子设备执行对所述第二触屏数据进行解析的步骤包括:响应于接收到的所述第一应用程序的数据请求,将所述第二触屏数据发送给所述第一应用程序,使得所述第一应用程序对所述第二触屏数据进行解析。
- 根据权利要求14所述的电子设备,其特征在于,所述电子设备还安装有第二应用程序,所述第二应用程序用于显示页面,所述指令被所述电子设备执行时,使得所述电子设备还执行以下步骤:获取所述第二应用程序的身份标识;若所述第二应用程序的身份标识在预置白名单内,则禁止执行所述截屏操作,其中,所述预置白名单包括一个或多个应用程序的身份标识。
- 根据权利要求14所述的电子设备,其特征在于,所述电子设备还安装有第二应用程序,所述第二应用程序用于显示页面,所述指令被所述电子设备执行时,使得所述电子设备还执行以下步骤:获取所述第二应用程序的身份标识;若所述第二应用程序的身份标识在预置白名单内,则发送截屏提示,所述截屏提示用于提示用户是否进行截屏。
- 根据权利要求11所述的电子设备,其特征在于,所述第二触屏数据包括多个触点数据,每个所述触点数据包括触点坐标,所述指令被所述电子设备执行时,使得所述电子设备执行对所述第二触屏数据进行解析,确定所述第二触屏数据对应的用户手势是否为预设截屏手势的步骤包括:读取所述第二触屏数据中的触点数据,确定所述触点数据的总数为触点数;基于所述第二触屏数据中所述触点数据的触点坐标的变化确定用户的动作;基于所述触点数及所述用户的动作确定所述第二触屏数据对应的用户手势是否为预设截屏手势。
- 一种电子设备,其特征在于,包括:存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括指令,当所述电子设备从所述存储器中读取所述指令,以使得所述电子设备执行以下步骤:响应于检测到的用户的多指滑动操作,获取所述用户的第一触屏数据;对所述第一触屏数据进行解析,确定所述第一触屏数据对应的用户手势是否为预设截屏手势;若确定所述第一触屏数据对应的用户手势为预设截屏手势,则执行截屏操作。
- 根据权利要求18所述的电子设备,其特征在于,所述第一触屏数据包括多个触点数据,每个所述触点数据包括触点坐标,所述指令被所述电子设备执行时,使得所述电子设备执行对所述第一触屏数据进行解析,确定所述第一触屏数据对应的用户手势是否为预设截屏手势的步骤包括:获取两个第一触屏数据,以及所述第一触屏数据中的触点数;基于两个所述第一触屏数据中的触点数据的触点坐标的变化,确定用户的动作;基于所述第一触屏数据中的触点数及所述用户的动作确定所述第一触屏数据对应的用户手势是否为预设截屏手势。
- 根据权利要求18所述的电子设备,其特征在于,所述电子设备安装有第一应用程序,所述第一应用程序用于截屏,所述指令被所述电子设备执行时,使得所述电子设备执行若确定所述第一触屏数据对应的用户手势为预设截屏手势,则执行截屏操作的步骤包括:若确定所述第一触屏数据对应的用户手势为预设截屏手势,则向所述第一应用程序发送截屏指示,所述截屏指示用于指示所述第一应用程序执行截屏操作。
- 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在所述电子设备上运行时,使得所述电子设备执行如权利要求1-10中任一项所述的 方法。
- 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-10中任一项所述的方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP22770362.6A EP4296839A4 (en) | 2021-03-18 | 2022-03-09 | SCREENSHOT METHOD, ELECTRONIC DEVICE AND STORAGE MEDIUM |
US18/551,148 US20240176480A1 (en) | 2021-03-18 | 2022-03-09 | Screenshot method, electronic device, and storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110292289.9 | 2021-03-18 | ||
CN202110292289.9A CN115167747A (zh) | 2021-03-18 | 2021-03-18 | 截屏方法、电子设备及存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022194007A1 true WO2022194007A1 (zh) | 2022-09-22 |
Family
ID=83321581
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/079955 WO2022194007A1 (zh) | 2021-03-18 | 2022-03-09 | 截屏方法、电子设备及存储介质 |
Country Status (4)
Country | Link |
---|---|
US (1) | US20240176480A1 (zh) |
EP (1) | EP4296839A4 (zh) |
CN (1) | CN115167747A (zh) |
WO (1) | WO2022194007A1 (zh) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140015809A1 (en) * | 2012-07-12 | 2014-01-16 | Texas Instruments Incorporated | Method, system and computer program product for operating a touchscreen |
CN103838485A (zh) * | 2014-03-10 | 2014-06-04 | 深圳市金立通信设备有限公司 | 一种触屏操作方法及终端 |
CN105700801A (zh) * | 2014-11-28 | 2016-06-22 | 腾讯科技(深圳)有限公司 | 一种界面截取方法和设备 |
CN108733297A (zh) * | 2018-05-06 | 2018-11-02 | 深圳市保千里电子有限公司 | 一种通过用户手势进行截屏的方法 |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014011589A (ja) * | 2012-06-28 | 2014-01-20 | Sharp Corp | 表示制御装置、表示制御方法、表示制御システム、表示制御プログラム、記録媒体 |
CN104978133A (zh) * | 2014-04-04 | 2015-10-14 | 阿里巴巴集团控股有限公司 | 一种用于智能终端的截屏方法和装置 |
CN106485170A (zh) * | 2015-09-02 | 2017-03-08 | 阿里巴巴集团控股有限公司 | 一种信息输入方法和装置 |
CN106791168A (zh) * | 2017-01-13 | 2017-05-31 | 北京奇虎科技有限公司 | 移动终端信息保护方法、装置和移动终端 |
CN107273005A (zh) * | 2017-04-19 | 2017-10-20 | 上海卓悠网络科技有限公司 | 一种截屏方法及装置 |
CN107273009B (zh) * | 2017-05-27 | 2024-04-16 | 陕西彦强卓越电子科技有限责任公司 | 一种移动终端快速截屏的方法及系统 |
CN111566631B (zh) * | 2018-10-15 | 2023-09-12 | 华为技术有限公司 | 一种信息显示方法及装置 |
CN109885237A (zh) * | 2019-02-28 | 2019-06-14 | 努比亚技术有限公司 | 防止指纹误触解锁的方法、移动终端及存储介质 |
CN110351424A (zh) * | 2019-05-30 | 2019-10-18 | 华为技术有限公司 | 手势交互方法和终端 |
CN110244845B (zh) * | 2019-06-11 | 2022-08-05 | Oppo广东移动通信有限公司 | 触觉反馈方法、装置、电子设备及存储介质 |
CN110597439B (zh) * | 2019-08-29 | 2021-06-15 | Oppo广东移动通信有限公司 | 截屏方法、装置、电子设备及计算机可读介质 |
CN110737386B (zh) * | 2019-09-06 | 2024-10-18 | 华为技术有限公司 | 一种屏幕截取方法及相关设备 |
-
2021
- 2021-03-18 CN CN202110292289.9A patent/CN115167747A/zh active Pending
-
2022
- 2022-03-09 EP EP22770362.6A patent/EP4296839A4/en active Pending
- 2022-03-09 US US18/551,148 patent/US20240176480A1/en active Pending
- 2022-03-09 WO PCT/CN2022/079955 patent/WO2022194007A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140015809A1 (en) * | 2012-07-12 | 2014-01-16 | Texas Instruments Incorporated | Method, system and computer program product for operating a touchscreen |
CN103838485A (zh) * | 2014-03-10 | 2014-06-04 | 深圳市金立通信设备有限公司 | 一种触屏操作方法及终端 |
CN105700801A (zh) * | 2014-11-28 | 2016-06-22 | 腾讯科技(深圳)有限公司 | 一种界面截取方法和设备 |
CN108733297A (zh) * | 2018-05-06 | 2018-11-02 | 深圳市保千里电子有限公司 | 一种通过用户手势进行截屏的方法 |
Non-Patent Citations (1)
Title |
---|
See also references of EP4296839A4 |
Also Published As
Publication number | Publication date |
---|---|
EP4296839A4 (en) | 2024-08-07 |
US20240176480A1 (en) | 2024-05-30 |
EP4296839A1 (en) | 2023-12-27 |
CN115167747A (zh) | 2022-10-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020238774A1 (zh) | 一种通知消息的预览方法及电子设备 | |
US12019864B2 (en) | Multimedia data playing method and electronic device | |
WO2021013158A1 (zh) | 显示方法及相关装置 | |
WO2021078284A1 (zh) | 一种内容接续方法及电子设备 | |
WO2021052290A1 (zh) | 一种音量调节方法及电子设备 | |
WO2020134869A1 (zh) | 电子设备的操作方法和电子设备 | |
WO2021017901A1 (zh) | 一种屏幕显示方法及电子设备 | |
WO2021063237A1 (zh) | 电子设备的控制方法及电子设备 | |
WO2021047567A1 (zh) | 一种回调流的处理方法及设备 | |
WO2020173370A1 (zh) | 一种应用图标的移动方法及电子设备 | |
WO2021052139A1 (zh) | 手势输入方法及电子设备 | |
CN113805797B (zh) | 网络资源的处理方法、电子设备及计算机可读存储介质 | |
WO2021218429A1 (zh) | 应用窗口的管理方法、终端设备及计算机可读存储介质 | |
CN112130788A (zh) | 一种内容分享方法及其装置 | |
WO2020107463A1 (zh) | 一种电子设备的控制方法及电子设备 | |
WO2021057699A1 (zh) | 具有柔性屏幕的电子设备的控制方法及电子设备 | |
US20230244507A1 (en) | Method and Apparatus for Processing Interaction Event | |
WO2022228065A1 (zh) | 功能跳转方法及电子设备 | |
WO2022037725A1 (zh) | 一种系统服务恢复方法、装置和电子设备 | |
WO2022042768A1 (zh) | 索引显示方法、电子设备及计算机可读存储介质 | |
WO2021082911A1 (zh) | 一种内容传输方法和终端设备 | |
WO2023071441A1 (zh) | 通信录字母的显示方法、装置和终端设备 | |
WO2023029916A1 (zh) | 批注展示方法、装置、终端设备及可读存储介质 | |
WO2023051094A1 (zh) | 内存回收方法、装置、电子设备及可读存储介质 | |
WO2022252812A1 (zh) | 信息保护方法及电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22770362 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 18551148 Country of ref document: US Ref document number: 2022770362 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 2022770362 Country of ref document: EP Effective date: 20230918 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |