WO2022194007A1 - 截屏方法、电子设备及存储介质 - Google Patents

截屏方法、电子设备及存储介质 Download PDF

Info

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
Application number
PCT/CN2022/079955
Other languages
English (en)
French (fr)
Inventor
罗浩
陈刚
孟庆彬
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP22770362.6A priority Critical patent/EP4296839A4/en
Priority to US18/551,148 priority patent/US20240176480A1/en
Publication of WO2022194007A1 publication Critical patent/WO2022194007A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/04845Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04808Several 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

截屏方法、电子设备及存储介质
本申请要求于2021年3月18日提交中国专利局、申请号为202110292289.9、申请名称为“截屏方法、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及计算机领域,尤其涉及一种截屏方法、电子设备及存储介质。
背景技术
随着电子技术的不断发展,具有显示屏的电子设备(例如,手机、平板、笔记本等)大多都具有触屏功能,给用户的操作带来了方便。此外,用户可以通过多指操作实现屏幕的截屏,例如,用户可以通过三指下滑手势进行截屏。
在实际应用中,如果某个应用程序的当前页面的显示内容超出了电子设备的显示屏的显示区域,则当前页面可以包含滚动条,由此用户可以通过作用于该滚动条的操作,来浏览超出上述显示区域的内容。例如,用户可以通过手势(例如,双指下滑手势)对当前页面进行操作,使得当前页面可以滚动,以便用户可以浏览未显示的内容。
当用户期望通过截屏手势(例如,三指下滑)进行截屏时,由于三指下滑手势同时会被电子设备解析成双指下滑手势,由此可能同时触发截屏和页面滚动,导致用户截取不到期望的页面(即不发生滚动的当前页面),降低了用户的体验。
发明内容
本申请实施例提供了一种截屏方法、电子设备及存储介质,以提供一种在页面中进行截屏的方式,以避免发生页面滚动及截屏同时发生的情形。
第一方面,本申请实施例提供了一种截屏方法,应用于电子设备,包括:
响应于检测到的用户的多指滑动操作,获取用户的第一触屏数据;具体地,该第一触屏数据可以根据上述用户的多指滑动操作创建。该第一触屏数据可以包括用户的触点数及触点信息。
对第一触屏数据进行解析,基于解析结果更新第一触屏数据,得到第二触屏数据;具体地,该第二触屏数据可以和第一触屏数据包含相同的字段,第二触屏数据的字段中的数值与第一触屏数据的字段中的数值可以不相同。
对第二触屏数据进行解析,确定第二触屏数据对应的用户手势是否为预设截屏手势;若确定第二触屏数据对应的用户手势为预设截屏手势,则执行截屏操作。
本申请实施例中,通过对触屏数据的过滤,可以避免将用户的截屏动作误解为滚动操作,由此可以提高用户的截屏效率,提高用户的体验。
其中一种可能的实现方式中,第一触屏数据包括触点数,基于解析结果更新第一触屏数据,得到第二触屏数据包括:
将第一触屏数据中的触点数与预设第一数值进行比较;
若第一触屏数据中的触点数与预设第一数值一致,则更新第一触屏数据中的触点数,得到第二触屏数据,第二触屏数据包含预设第二数值的触点数。
本申请实施例中,通过改变触屏数据中的触点数的数值,实现对触屏数据的过滤,可以提高过滤的效率。
为了有效识别第二触屏数据,提高过滤的效率,其中一种可能的实现方式中,预设第二数值为特殊数值。
其中一种可能的实现方式中,电子设备安装有第一应用程序,第一应用程序用于截屏,对第二触屏数据进行解析包括:
响应于接收到的第一应用程序的数据请求,将第二触屏数据发送给第一应用程序,使得第一应用程序对第二触屏数据进行解析。
本申请实施例中,通过应用程序主动获取第二触屏数据,可以提高手势识别的效率。
其中一种可能的实现方式中,电子设备还安装有第二应用程序,第二应用程序用于显示页面,还包括:
获取第二应用程序的身份标识;
若第二应用程序的身份标识在预置白名单内,则禁止执行截屏操作,其中,预置白名单包括一个或多个应用程序的身份标识。
本申请实施例中,通过对第二应用程序的识别,以确定是否禁止执行截屏操作。由此可以避免在第二应用程序中误截屏。
其中一种可能的实现方式中,电子设备还安装有第二应用程序,第二应用程序用于显示页面,还包括:
获取第二应用程序的身份标识;
若第二应用程序的身份标识在预置白名单内,则发送截屏提示,截屏提示用于提示用户是否进行截屏。
本申请实施例中,通过发送提示,让用户决定是否进行截屏,由此可以提高截屏的灵活性,进而可以提高用户的体验。
其中一种可能的实现方式中,第二触屏数据包括多个触点数据,每个触点数据包括触点坐标,对第二触屏数据进行解析,确定第二触屏数据对应的用户手势是否为预设截屏手势包括:
读取第二触屏数据中的触点数据,确定触点数据的总数为触点数;
基于第二触屏数据中触点数据的触点坐标的变化确定用户的动作;
基于触点数及用户的动作确定第二触屏数据对应的用户手势是否为预设截屏手势,预设截屏手势包括预设触点数及预设动作。
本申请实施例中,通过触点数及动作判定用户的手势是否为预设截屏手势,可以提高手势识别的效率。
本申请实施例还提供了一种截屏方法,应用于电子设备,包括:
响应于检测到的用户的多指滑动操作,获取用户的第一触屏数据;对第一触屏数据进行解析,确定第一触屏数据对应的用户手势是否为预设截屏手势;若确定第一触屏数据对应的用户手势为预设截屏手势,则执行截屏操作。
本申请实施例中,通过对触屏数据的识别,可以识别出用户的截屏手势,由此可以避免截屏操作与页面滚动操作的同时发生,进而可以提高用户的体验。
其中一种可能的实现方式中,第一触屏数据包括多个触点数据,每个触点数据包括触点坐标,对第一触屏数据进行解析,确定第一触屏数据对应的用户手势是否为预设截屏手势包括:
获取两个第一触屏数据,以及第一触屏数据中的触点数;
基于两个第一触屏数据中的触点数据的触点坐标的变化,确定用户的动作;
基于第一触屏数据中的触点数及用户的动作确定第一触屏数据对应的用户手势是否为预设截屏手势。
本申请实施例中,通过对两个第一触屏数据进行识别,以确定用户的手势,可以加快识别速度,由此可以在识别出页面滚动操作之前,识别出截屏操作,进而可以避免页面滚动操作与截屏操作的同时发生。
为了提高截屏效率,其中一种可能的实现方式中,电子设备安装有第一应用程序,第一应用程序用于截屏,若确定所述第一触屏数据对应的用户手势为预设截屏手势,则执行截屏操作包括:
若确定第一触屏数据对应的用户手势为预设截屏手势,则向第一应用程序发送截屏指示,截屏指示用于指示第一应用程序执行截屏操作。
第二方面,本申请实施例提供一种截屏装置,应用于电子设备,包括:
获取模块,用于响应于检测到的用户的多指滑动操作,获取用户的第一触屏数据;
更新模块,用于对第一触屏数据进行解析,基于解析结果更新第一触屏数据,得到第二触屏数据;
解析模块,用于对第二触屏数据进行解析,确定第二触屏数据对应的用户手势是否为预设截屏手势;
截屏模块,用于若确定第二触屏数据对应的用户手势为预设截屏手势,则执行截屏操作。
其中一种可能的实现方式中,第一触屏数据包括触点数,上述更新模块还用于将第一触屏数据中的触点数与预设第一数值进行比较;若第一触屏数据中的触点数与预设第一数值一致,则更新第一触屏数据中的触点数,得到第二触屏数据,第二触屏数据包含预设第二数值的触点数。
其中一种可能的实现方式中,上述预设第二数值为特殊数值。
其中一种可能的实现方式中,上述电子设备安装有第一应用程序,上述第一应用程序用于截屏,上述解析模块还用于响应于接收到的第一应用程序的数据请求,将第二触屏数据发送给第一应用程序,使得第一应用程序对第二触屏数据进行解析。
其中一种可能的实现方式中,上述电子设备还安装有第二应用程序,上述第二应用程序用于显示页面,上述装置还包括:
禁止模块,用于获取第二应用程序的身份标识;若第二应用程序的身份标识在预置白名单内,则禁止执行截屏操作,其中,预置白名单包括一个或多个应用程序的身份标识。
其中一种可能的实现方式中,上述电子设备还安装有第二应用程序,上述第二应 用程序用于显示页面,上述装置还包括:
提示模块,用于获取第二应用程序的身份标识;若第二应用程序的身份标识在预置白名单内,则发送截屏提示,截屏提示用于提示用户是否进行截屏。
其中一种可能的实现方式中,上述第二触屏数据包括多个触点数据,每个触点数据包括触点坐标,上述解析模块还用于读取第二触屏数据中的触点数据,确定触点数据的总数为触点数;基于第二触屏数据中触点数据的触点坐标的变化确定用户的动作;基于触点数及用户的动作确定第二触屏数据对应的用户手势是否为预设截屏手势,预设截屏手势包括预设触点数及预设动作。
本申请实施例还提供一种截屏装置,应用于电子设备,包括:
获取模块,用于响应于检测到的用户的多指滑动操作,获取用户的第一触屏数据;
解析模块,用于对第一触屏数据进行解析,确定第一触屏数据对应的用户手势是否为预设截屏手势;
截屏模块,用于若确定第一触屏数据对应的用户手势为预设截屏手势,则执行截屏操作。
其中一种可能的实现方式中,上述第一触屏数据包括多个触点数据,每个触点数据包括触点坐标,上述解析模块还用于获取两个第一触屏数据,以及第一触屏数据中的触点数;基于两个第一触屏数据中的触点数据的触点坐标的变化,确定用户的动作;基于第一触屏数据中的触点数及用户的动作确定第一触屏数据对应的用户手势是否为预设截屏手势。
其中一种可能的实现方式中,上述电子设备安装有第一应用程序,上述第一应用程序用于截屏,上述截屏模块还用于若确定第一触屏数据对应的用户手势为预设截屏手势,则向第一应用程序发送截屏指示,截屏指示用于指示第一应用程序执行截屏操作。
第三方面,本申请实施例提供一种电子设备,包括:
存储器,上述存储器用于存储计算机程序代码,上述计算机程序代码包括指令,当上述电子设备从上述存储器中读取上述指令,以使得上述电子设备执行以下步骤:
响应于检测到的用户的多指滑动操作,获取用户的第一触屏数据;
对第一触屏数据进行解析,基于解析结果更新第一触屏数据,得到第二触屏数据;
对第二触屏数据进行解析,确定第二触屏数据对应的用户手势是否为预设截屏手势;
若确定第二触屏数据对应的用户手势为预设截屏手势,则执行截屏操作。
其中一种可能的实现方式中,上述第一触屏数据包括触点数,上述指令被上述电子设备执行时,使得上述电子设备执行基于解析结果更新第一触屏数据,得到第二触屏数据的步骤包括:
将第一触屏数据中的触点数与预设第一数值进行比较;
若第一触屏数据中的触点数与预设第一数值一致,则更新第一触屏数据中的触点数,得到第二触屏数据,第二触屏数据包含预设第二数值的触点数。
其中一种可能的实现方式中,上述预设第二数值为特殊数值。
其中一种可能的实现方式中,上述电子设备安装有第一应用程序,上述第一应用 程序用于截屏,上述指令被上述电子设备执行时,使得上述电子设备执行对第二触屏数据进行解析的步骤包括:
响应于接收到的第一应用程序的数据请求,将第二触屏数据发送给第一应用程序,使得第一应用程序对第二触屏数据进行解析。
其中一种可能的实现方式中,上述电子设备还安装有第二应用程序,上述第二应用程序用于显示页面,上述指令被上述电子设备执行时,使得上述电子设备还执行以下步骤:
获取第二应用程序的身份标识;
若第二应用程序的身份标识在预置白名单内,则禁止执行截屏操作,其中,预置白名单包括一个或多个应用程序的身份标识。
其中一种可能的实现方式中,上述电子设备还安装有第二应用程序,上述第二应用程序用于显示页面,上述指令被上述电子设备执行时,使得上述电子设备还执行以下步骤:
获取第二应用程序的身份标识;
若第二应用程序的身份标识在预置白名单内,则发送截屏提示,截屏提示用于提示用户是否进行截屏。
其中一种可能的实现方式中,上述第二触屏数据包括多个触点数据,每个触点数据包括触点坐标,上述指令被上述电子设备执行时,使得上述电子设备执行对第二触屏数据进行解析,确定第二触屏数据对应的用户手势是否为预设截屏手势的步骤包括:
读取第二触屏数据中的触点数据,确定触点数据的总数为触点数;
基于第二触屏数据中触点数据的触点坐标的变化确定用户的动作;
基于触点数及用户的动作确定第二触屏数据对应的用户手势是否为预设截屏手势。
本申请实施例还提供一种电子设备,包括:
存储器,上述存储器用于存储计算机程序代码,上述计算机程序代码包括指令,当上述电子设备从上述存储器中读取上述指令,以使得上述电子设备执行以下步骤:
响应于检测到的用户的多指滑动操作,获取用户的第一触屏数据;
对第一触屏数据进行解析,确定第一触屏数据对应的用户手势是否为预设截屏手势;
若确定第一触屏数据对应的用户手势为预设截屏手势,则执行截屏操作。
其中一种可能的实现方式中,上述第一触屏数据包括多个触点数据,每个触点数据包括触点坐标,上述指令被上述电子设备执行时,使得上述电子设备执行对第一触屏数据进行解析,确定第一触屏数据对应的用户手势是否为预设截屏手势的步骤包括:
获取两个第一触屏数据,以及第一触屏数据中的触点数;
基于两个第一触屏数据中的触点数据的触点坐标的变化,确定用户的动作;
基于第一触屏数据中的触点数及用户的动作确定第一触屏数据对应的用户手势是否为预设截屏手势。
其中一种可能的实现方式中,上述电子设备安装有第一应用程序,上述第一应用程序用于截屏,上述指令被上述电子设备执行时,使得上述电子设备执行若确定第一触屏数据对应的用户手势为预设截屏手势,则执行截屏操作的步骤包括:
若确定第一触屏数据对应的用户手势为预设截屏手势,则向第一应用程序发送截屏指示,截屏指示用于指示第一应用程序执行截屏操作。
第四方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如第一方面所述的方法。
第五方面,本申请实施例提供一种计算机程序,当上述计算机程序被计算机执行时,用于执行第一方面所述的方法。
在一种可能的设计中,第五方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上
附图说明
图1为本申请实施例提供的电子设备的软件架构示意图;
图2为本申请实施例提供电子设备的硬件结构示意图;
图3为本申请提供的截屏方法一个实施例的流程示意图;
图4为本申请实施例提供的用户手势示意图;
图5-图7为本申请实施例提供的触屏数据示意图;
图8为本申请实施例提供的手势识别示意图;
图9为本申请提供的截屏方法另一个实施例的流程示意图;
图10为本申请提供的截屏装置一个实施例的结构示意图;
图11为本申请提供的截屏装置另一个实施例的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
目前,当用户在电子设备的显示屏上通过触屏手势进行操作时,电子设备可以获取到用户的触屏数据。以笔记本电脑为例,该笔记本电脑可以通过windows中的人机接口设备(Human Interface Devices,HID)驱动程序获取到用户的触屏数据。接着,该HID驱动程序可以将该触屏数据发送给HID服务。而HID服务接收到该触屏数据后,可以对该触屏数据进行解析。
通常,用户可以通过截屏手势(例如,三指下滑)对当前页面的内容进行截屏。然而,在实际应用中,上述下滑手势同时也会触发滚屏操作,由此会同时触发截屏和滚动操作,导致用户截取不到期望的内容(即不发生滚动的当前页面),降低了用户的体验。
基于上述问题,本申请实施例提出了一种截屏方法,应用于电子设备。其中,该 电子设备可以是手机、平板及笔记本电脑等具有显示屏的显示设备。本申请实施例对该电子设备的具体形式不作特殊限定。通过本申请的方法,可以有效避免用户在截屏过程中页面滚动的情形,提升用户体验。
现以笔记本电脑为例,结合图1-图7对本申请实施例提供的截屏方法进行说明,图1为笔记本电脑10的软件架构图,如图1所示,笔记本电脑10包括HID驱动模块11、HID过滤驱动模块12、HID服务13及应用程序14。
HID驱动模块11,用于获取触屏数据,并将该触屏数据发送给HID过滤驱动模块12。其中,该触屏数据可以基于用户的手势生成。
HID过滤驱动模块12,用于接收上述HID驱动模块11发送的触屏数据,对触屏数据中的触点数字段的数值进行读取,将该触点数字段的数值与预设截屏手势的触点数进行匹配,若该触点数字段的数值与预设截屏手势的触点数匹配,则对该触点数字段的数值进行修改,将修改后的触屏数据发送给HID服务13。
可选地,HID过滤驱动模块12也可以接收上述HID驱动模块11发送的触屏数据,对触屏数据进行识别,以获得对应的用户手势,若该用户手势与预设的截屏手势匹配,则可以将该截屏手势直接发送给应用程序14。
HID服务13,用于接收HID过滤驱动模块12发送的触屏数据,对触屏数据中的触点信息判断,确定是否存在下滑手势,若不存在下滑手势,则基于应用程序14的请求将该触屏数据发送给应用程序14。
应用程序14,用于向HID服务13发送触屏数据请求,以获得触屏数据。该应用程序14还可以用于接收HID服务13发送的触屏数据,获取触屏数据中的触点数及坐标,基于该触点数及坐标进行识别,获得对应的用户手势,将该用户手势与预设的截屏手势进行匹配,若该用户手势与预设的截屏手势匹配,则执行对应的截屏操作。
可选地,应用程序14还可以用于接收HID过滤驱动模块12发送的截屏指示,基于该截屏指示执行对应的截屏操作。
下面结合图2首先介绍本申请以下实施例中提供的示例性电子设备。图2示出了电子设备100的结构示意图,该电子设备100可以是手机、平板及笔记本电脑等具有显示屏的显示设备。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软 件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
本申请实施例提供的截屏方法的执行可以由处理器110来控制或调用其他部件来完成,比如调用内部存储器121中存储的本申请实施例的处理程序,以实现用户的截屏操作,提升用户的体验。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其它电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其它功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其它设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其它数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。 存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
本申请实施例中,通过该触摸传感器180K可以获取用户的触屏数据,并可以将该触屏数据发送至处理器110进行处理。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
图3为本申请实施例提供的截屏方法一个实施例的流程示意图,包括:
步骤101,HID驱动模块11获取第一触屏数据。
具体地,用户可以在当前页面中进行触模或滑动等操作。例如,用户可以在电子设备100的显示屏194上进行触摸或滑动等操作。其中,该当前页面可以包括浏览器 的网页及PPT页面,可以理解的是,上述浏览器的网页及PPT页面为示例性说明,并不构成对本申请实施例的限定。
需要说明的是,用户的滑动操作可以包括用户的多指滑动操作。示例性的,该滑动可以包括上滑、下滑、左滑及右滑等,本申请实施例对此不作限定。该多指可以包括三指、四指等手势,也可以包括其他类型的手势,本申请实施例对此不作特殊限定。图4为本申请实施例提供的三指下滑的示意图。
电子设备100中的触摸传感器180K检测到用户的操作,可以由HID驱动模块11基于该用户操作生成对应的第一触屏数据。其中,该第一触屏数据可以包括触点数及触摸坐标等信息。
可以理解的是,用户的触屏滑动操作是一个连续的动作,在某一个时刻t,HID驱动模块11可以获得一个第一触屏数据S1,该第一触屏数据S1对应该时刻t的用户手指的坐标。随着用户的手指的滑动,在另一个时刻t1,HID驱动模块11会收到另一个第一触屏数据S2,该第一触屏数据S2对应该时刻t1的用户手指的坐标。因此,每个第一触屏数据也可以对应一个时刻,其中,该时刻用于表征生成该第一触屏数据的时间。
其中,该第一触屏数据可以以数据包的形式体现。图5为上述第一触屏数据包的数据结构示意图。如图5所示,该第一触屏数据包可以包括34位数据信息,示例性的,该34位数据信息可以包含1位数据信息的数据标志、30位数据信息的触点信息、2位数据信息的触点ID及1位数据信息的触点数标志。其中,该数据标志可以用于识别是否是触摸屏数据,示例性的,若数据标志=01,则该数据为触摸屏数据。该触点信息中可以包括5个触点信息,也就是说,该触点信息可以包含5个触点的信息。其中,每个触点信息包含6位数据信息。而每个触点信息的第一位数据信息用于识别用户是否按下,示例性的,若该第一位数据信息=01,则表示用户手指按下,若该第一位数据信息=00,则表示用户手指抬起。每个触点信息的第二位数据信息用于识别该触点的ID号,示例性的,若ID=00,则该触点为第一个触点,若ID=01,则该触点为第二个触点,以此类推。每个触点信息的第三至第六位数据信息用于标识该触点的坐标。示例性的,每个触点信息中的第三和第四位可以是该触点的横坐标,第五和第六位可以是该触点的纵坐标;可以理解的是,每个触点信息中的第三和第四位可以是该触点的纵坐标,第五和第六位可以是该触点的横坐标,本申请实施例对此不作特殊限定。该触点ID可以用于标识触摸的累计次数。该触点数标志用于识别当前HID驱动程序检测到的触点数目。示例性的,若用户通过三根手指进行手指滑动,则触点数为3。
可以理解的是,上述图5只是示例性的示出了触屏数据的字段格式,在一些实施例中,该触屏数据可以包含更多或更少的数据位,例如,大于上述34位数据信息,或小于上述34位数据信息,本申请对此不作特殊限定。
步骤102,HID驱动模块11将上述第一触屏数据发送给HID过滤驱动模块12。
具体地,HID驱动模块11可以依次按照时间先后顺序将上述多个第一触屏数据发送给HID过滤驱动模块12。进一步地,HID驱动模块11与可以将与上述第一触屏数据对应的时刻发送给HID过滤驱动模块12,示例性的,若HID驱动模块11在t时刻检测到用户的第一触屏数据S1,则在该t时刻可以将将该第一触屏数据S1及对应的 时刻t发送给HID过滤驱动模块12;此时,若用户通过手指在电子设备100的显示屏上进行滑动,由此HID驱动模块11在t1时刻检测到用户的第一触屏数据S2,则在该t1时刻可以将将该第一触屏数据S2及对应的时刻t1发送给HID过滤驱动模块12。
可选地,HID驱动模块11也可以收集预设时间段内的多个第一触屏数据,并将该多个第一触屏数据同时发送给HID过滤驱动模块12,示例性的,若HID驱动模块11在t时刻检测到用户的第一触屏数据S1,并接着在t1及t2时刻检测到用户的第一触屏数据S2及S3,其中,t1及t2都晚于t,t2晚于t1,t2与t之间的时间段为预设时间段,则HID驱动模块11可以同时将S1、S2、S3及对应的时刻t、t1及t2发送给HID过滤驱动模块12。可以理解的是,上述发送多个第一触屏数据及对应时刻的方式只是示例性说明,并不构成对本申请实施例的限定。
步骤103,HID过滤驱动模块12读取上述第一触屏数据中的触点数标志,对触点数标志进行修改,得到第二触屏数据。
具体地,当HID过滤驱动模块12收到HID驱动模块11发送的第一触屏数据后,可以读取该第一触屏数据中的触点数标志中的数值,并可以基于该数值进行判断。在具体实现时,可以将该触点数标志中的数值与预设数值进行比较。其中,该预设数值可以是预设截屏手势的触点数。
若上述第一触屏数据中的触点数标志中的数值与预设数值一致,则HID过滤驱动模块12可以认为用户本次的手势为截屏操作,此时,可以将上述第一触屏数据中的触点数标志中的数值修改为0,由此可以得到第二触屏数据,并可以进一步执行步骤104B。可以理解的是,上述数值0为示例性说明,并不构成对本申请实施例的限定,在一些实施例中,也可以是其他数值或字符。示例性的,若三指下滑动作为预设截屏手势,则该截屏手势对应的触点数为3,也就是说,该触点数的预设数值为3。可以理解的是,上述预设截屏手势的触点数为示例性说明,并不构成对本申请实施例的限定,在一些实施例中,上述预设截屏手势的触点数也可以为其他数值。通过将上述第一触屏数据中的触点数标志中的数值修改为特殊值(例如,数值为0),得到第二触屏数据。由于上述第二触屏数据中的触点数标志中的数值为特殊值,由此可以使得HID服务13不再解析上述第二触屏数据,也就是说,HID服务认为该第二触屏数据中不包含用户手势,也就不会解析为下滑操作,由此可以避免误解析为下滑操作。
现结合图6进行说明,如图6所示,第一触屏数据600包含数据标志601、触点信息602、触点ID603及触点数标志604。其中,触点数标志604中数值为3。HID过滤驱动模块12读取该触点数标志604中的数值后,由于该触点数标志604中数值与预设截屏手势的触点数一致,此时,可以将该触点数标志604中的数值修改为0,由此可以得到第二触屏数据610。第二触屏数据610包含数据标志611、触点信息612、触点ID613及触点数标志614。其中,数据标志611与数据标志601的数值相同,触点信息612与触点信息602的信息相同,触点ID613与触点ID603的信息相同,触点数标志614与触点数标志604的信息不同,触点数标志614中的数值为0,而触点数标志604中的数值为3。
若该数值与预设数值不一致,则HID过滤驱动模块12可以进一步执行步骤104A。
步骤104A,HID过滤驱动模块12可以将上述第一触屏数据发送给HID服务13。
需要说明的是,本步骤104A与步骤104B为择一执行,也就是说,在执行步骤104A之后,不再执行步骤104B。
步骤104B,HID过滤驱动模块12可以将上述第二触屏数据发送给HID服务13。
可选地,HID过滤驱动模块12也可以将与上述第二触屏数据对应的时刻发送给HID服务13。
步骤105,HID服务13接收HID过滤驱动模块12发送的触屏数据,读取上述触屏数据中的触点数标志,基于该触屏数据中的触点数标志的数值确定第二触屏数据。
具体地,HID服务13接收HID过滤驱动模块12发送的触屏数据,该触屏数据可以包括第一触屏数据或第二触屏数据。接着,HID服务13可以读取触屏数据中的触点数标志的数值,并可以基于该触点数标志中的数值进行判断,基于判断结果确定第二触屏数据。
示例性的,若任一触屏数据的触点数标志的数值为特殊数值(例如,0或字符),则HID服务13可以认为该触屏数据为第二触屏数据,由于0或字符为特殊值,也就是说,本次的触屏数据没有触点数,因此,HID服务13不会触发其他操作(例如,滚动操作),此时,HID服务13可以将该第二触屏数据发送给应用程序14。
若任一触屏数据的触点数标志的数值为正常数值(例如,非0且非字符),则HID服务13可以认为该触屏数据为第一触屏数据,接着,HID服务13可以根据第一触屏数据中的坐标获取用户的动作,例如,若用户的动作是下滑,则执行滚动操作。
步骤106,HID服务13基于应用程序14的请求,将第二触屏数据发送给应用程序14。
具体地,该应用程序14可以是截屏应用,例如,该截屏应用可以提供截屏功能。可选地,该应用程序14也可以是一个手势处理应用,例如,该手势处理应用可以不包含截屏功能,当启动该手势处理应用后,可以调用系统的截屏功能,本申请实施例对上述应用程序14的具体实现形式不作特殊限定。此外,该应用程序14中可以存储有预设的配置文件,该配置文件可以包括预设的截屏手势。其中,该截屏手势可以包括触点数信息及动作信息,该触点数信息可以用于标识触点的数目,该动作信息可以用于标识用户的动作(例如,上滑、下滑、左滑或右滑)。可以理解的是,该配置文件中的信息可以由用户预先设置,也可以由用户进行维护,例如,用户可以更改上述配置文件中的触点数信息和/或动作信息。表1示例性的示出了上述配置文件的信息。
表1
用户手势 触点数 动作
截屏 3 下滑
可以理解的是,当上述应用程序14启动之后,可以向HID服务13发送触屏数据请求,其中,上述触屏数据请求用于获取HID服务13接收到的触屏数据。由此可以使得HID服务13在接收到HID过滤驱动模块12发送的第二触屏数据后,可以将上述第二触屏数据发送给应用程序14。可选地,HID服务13也可以将与上述第二触屏数据对应的时刻发送给应用程序14。
步骤107,应用程序14接收HID服务13发送的第二触屏数据,读取第二触屏数据中的触点信息,确定第二触屏数据中的触点数及触点坐标。
具体地,应用程序14可以读取第二触屏数据中的所有触点信息。示例性的,任一个第二触屏数据中可以包含5个触点信息,应用程序14可以依次按触点信息在每个第二触屏数据中的排列顺序(例如,可以按照图6所示的第二触屏数据610的顺序)对触点信息进行读取,也可以按照其他方式对触点信息进行读取,本申请实施例对此不作特殊限定。
应用程序14通过对每个第二触屏数据的触点信息的读取,可以获取触点信息中的数据,由此可以确定每个第二触屏数据中包含触点的数目及触点坐标。示例性的,若任一触点信息中包含非全0的数据,则该触点信息中的数据为有效,也就是说,该触点信息对应一个触点。
现结合图7进行说明,如图7所示,第二触屏数据700包含第一触点信息701、第二触点信息702、第三触点信息703、第四触点信息704及第五触点信息705。第一触点信息701包含按压标志7011、触点ID7012及触点坐标7013;第二触点信息702包含按压标志7021、触点ID7022及触点坐标7023;第三触点信息703包含按压标志7031、触点ID7032及触点坐标7033;第四触点信息704包含按压标志7041、触点ID7042及触点坐标7043;第五触点信息705包含按压标志7051、触点ID7052及触点坐标7053。第一触点信息701、第二触点信息702及第三触点信息703中的数据为非全0数据,因此,第一触点信息701、第二触点信息702及第三触点信息703为有效触点,接着,可以分别读取第一触点信息701、第二触点信息702及第三触点信息703中的触点坐标7013、7023及7033中的数据,由此可以获得第一触点、第二触点及第三触点的坐标。而第四触点信息704及第五触点信息705中的数据为全0数据,因此,第四触点信息704及第五触点信息705为无效触点。通过对上述第二触屏数据700中5个触点信息的读取,可以确定该第二触屏数据700中的触点数为3,也就是,分别为第一触点信息701、第二触点信息702及第三触点信息703。
步骤108,应用程序14将第二触屏数据的坐标进行比较,确定动作。
具体地,应用程序14获取到多个第二触屏数据的坐标后,可以将上述多个第二触屏数据的坐标进行比较,由此可以确定用户的动作。在具体实现时,应用程序14可以确定两个第二触屏数据的时间顺序。其中,上述时间顺序可以按照应用程序14接收上述第二触屏数据的先后顺序确定,可选地,上述时间顺序也可以基于与上述第二触屏数据对应的时刻确定,本申请实施例对此不作特殊限定。接着,应用程序14可以将两个第二触屏数据中的触点信息的坐标进行比较,上述两个第二触屏数据对应的时间顺序不同,例如,一个第二触屏数据S1的时刻为t,另一个第二触屏数据S2的时刻为t1。其中,上述两个第二触屏数据可以是当检测到用户的操作后最早收到的两个第二触屏数据,也可以是当检测到用户的操作后,在多个第二触屏数据中任意选取的两个第二触屏数据,本申请实施例对此不作限定。
当确定两个第二触屏数据及对应的时间顺序后,可以根据两个触屏数据的坐标及时间顺序确定动作。示例性的,假设一个第二触屏数据S1的时刻为t,另一个第二触屏数据S2的时刻为t1,且t1晚于t,若S2的坐标在S1的下方,则可以确定动作为下滑。
现结合图8进行说明,如图8所示,t时刻的第二触屏数据800包含第一触点信息 801、第二触点信息802及第三触点信息803,其中,第一触点信息801对应的坐标是(04,05,8c,03),第二触点信息802对应的坐标是(2e,04,f5,03),第三触点信息803对应的坐标是(28,06,69,04);t1时刻的第二触屏数据810包含第一触点信息811、第二触点信息812及第三触点信息813,其中,第一触点信息811对应的坐标是(04,05,8d,04),第二触点信息812对应的坐标是(2e,04,f6,04),第三触点信息813对应的坐标是(28,06,70,05)。假设t1时刻晚于t时刻,则根据第一触点信息811与第一触点信息801的坐标变化、第二触点信息812与第二触点信息802的坐标变化及第三触点信息813与第三触点信息803的坐标变化,例如,第一触点信息811的坐标在第一触点信息801的坐标的下方,第二触点信息812的坐标在第二触点信息802的坐标的下方,第三触点信息813的坐标在第三触点信息803的坐标的下方;由此可以确定用户当前的动作是下滑。
可选地,在确定用户的动作时,也可以只判断一个触点的变化,示例性的,可以根据上述第一触点信息811与第一触点信息801的坐标变化、第二触点信息812与第二触点信息802的坐标变化或第三触点信息813与第三触点信息803的坐标变化中的任一触点的变化确定用户当前的动作是否是下滑。
可以理解的是,上述示例仅示例性的示出了通过比较两个第二触屏数据确定动作的方式,上述选取的第二触屏数据的数目并不构成对本申请实施例的限定。在一些实施例中,应用程序14也可以选取更多的第二触屏数据进行比较,例如,3个第二触屏数据或更多。具体比较的过程可以参考图8所示的实施例,在此不再赘述。
步骤109,应用程序14基于动作及触点数确定用户手势,将该用户手势与预设截屏手势进行比较,并根据比较结果执行截屏操作。
具体地,应用程序14确定动作后,可以基于该动作和触点数确定用户手势,例如,若触点数为3,且动作为下滑,则应用程序14可以确定用户当前的手势为三指下滑。接着,应用程序14可以将用户当前的手势和预设截屏手势进行比较。该预设截屏手势可以从步骤106中的配置文件中获取。示例性的,若预设截屏手势为三指下滑,也就是说,该预设截屏手势的触点数为3,且动作是下滑,则用户当前的手势与预设截屏手势一致,由此可以使得应用程序14执行截屏动作。举例来说,用户在网页中进行浏览,并在当前页面中通过三指下滑进行操作,截屏应用检测到用户三指下滑的手势后,可以识别出该三指下滑为截屏操作,由此可以在当前页面执行截屏操作。若上述用户手势与预设截屏手势不一致,则无法执行上述截屏操作。
可选地,应用程序14在确定用户手势为截屏手势后,还可以获取与当前页面对应的应用的身份标识。例如,假设用户在一个画图页面中进行操作,则该画图页面对应的应用为画图应用(例如,可以是一个画图软件)。此时,应用程序14可以获取该画图应用的身份标识(例如,可以是该画图应用的APP ID)。接着,应用程序14可以将该画图应用的身份标识与预设应用白名单中的身份标识进行匹配。其中,该预设应用白名单可以包括一个或多个应用的身份标识,该预设应用白名单可以预先存储在应用程序14中。
若当前画图应用的身份标识在所述预设应用白名单之内,则应用程序14可以屏蔽该截屏手势,由此可以避免该截屏动作与用户当前的画图动作产生冲突。优选地,应 用程序14也可以发送截屏提示,例如,该提示信息可以是文字提示,“您是否要进行截屏”,用户可以点击“确认”按键,以执行截屏操作,或者用户也可以点击“拒绝”按键,以拒绝截屏操作。
若当前画图应用的身份标识不在所述预设应用白名单之内,则应用程序14可以进一步执行截屏操作。
本实施例中,在获取到用户的触屏数据后,基于触点数对触屏数据进行过滤,由此可以避免将用户的截屏动作误解为其他操作(例如,滚动操作),进而可以提高用户的截屏效率,提高用户的体验。
可以理解的是,上面实施例中,步骤101-步骤109均为可选步骤,本申请只提供一种可行的实施例,还可以包括比步骤101-步骤109更多或更少的步骤,本申请对此不做限定。
上述实施例通过在应用程序14对触屏数据进行手势识别的方式进行了举例说明,接着,下文以在HID过滤驱动模块12对触屏数据进行手势识别的方式为例进行说明。
图9为本申请实施例提供的截屏方法另一个实施例的流程示意图,包括:
步骤201,HID驱动模块11获取第一触屏数据。
具体地,用户可以在当前页面中进行触模或滑动等操作。例如,用户可以在电子设备100的显示屏194上进行触摸或滑动等操作。其中,该当前页面可以包括浏览器的网页及PPT页面,可以理解的是,上述浏览器的网页及PPT页面为示例性说明,并不构成对本申请实施例的限定。
需要说明的是,用户的滑动操作可以包括用户的多指滑动操作。示例性的,该滑动可以包括上滑、下滑、左滑及右滑等,本申请实施例对此不作限定。该多指可以包括三指、四指等手势,也可以包括其他类型的手势,本申请实施例对此不作特殊限定。用户多指下滑的示意图可以参考图4,在此不再赘述。
电子设备100中的触摸传感器180K检测到用户的操作,可以由HID驱动模块11基于该用户操作生成对应的第一触屏数据。其中,该第一触屏数据可以包括触点数及触摸坐标等信息。第一触屏数据的数据包格式可以参考图5,在此不再赘述。
可以理解的是,上述第一触屏数据包的格式只是示例性的示出了触屏数据的字段格式,在一些实施例中,该触屏数据可以包含更多或更少的数据位,例如,大于上述34位数据信息,或小于上述34位数据信息,本申请对此不作特殊限定。
此外,HID驱动模块11还可以记录与上述每个第一触屏数据对应的时刻。
步骤202,HID驱动模块11将上述第一触屏数据发送给HID过滤驱动模块12。
具体地,HID驱动模块11可以依次按照时间先后顺序将上述多个第一触屏数据发送给HID过滤驱动模块12。进一步地,HID驱动模块11与可以将与上述第一触屏数据对应的时刻发送给HID过滤驱动模块12,示例性的,若HID驱动模块11在t时刻检测到用户的第一触屏数据S1,则在该t时刻可以将将该第一触屏数据S1及对应的时刻t发送给HID过滤驱动模块12;此时,若用户通过手指在电子设备100的显示屏上进行滑动,由此HID驱动模块11在t1时刻检测到用户的第一触屏数据S2,则在该t1时刻可以将将该第一触屏数据S2及对应的时刻t1发送给HID过滤驱动模块12。
可选地,HID驱动模块11也可以收集预设时间段内的多个第一触屏数据,并将该 多个第一触屏数据同时发送给HID过滤驱动模块12,示例性的,若HID驱动模块11在t时刻检测到用户的第一触屏数据S1,并接着在t1及t2时刻检测到用户的第一触屏数据S2及S3,其中,t1及t2都晚于t,t2晚于t1,t2与t之间的时间段为预设时间段,则HID驱动模块11可以同时将S1、S2、S3及对应的时刻t、t1及t2发送给HID过滤驱动模块12。可以理解的是,上述发送多个第一触屏数据及对应时刻的方式只是示例性说明,并不构成对本申请实施例的限定。
步骤203,HID过滤驱动模块12将第一触屏数据发送给HID服务13。
步骤204,HID过滤驱动模块12读取上述第一触屏数据中的触点数标志,基于触点数标志对第一触屏数据进行识别。
具体地,HID过滤驱动模块12接收到HID驱动模块11发送的第一触屏数据后,还可以按照时间先后顺序读取该第一触屏数据中的触点数标志的数值,并可以基于该触点标志中的数值进行判断,例如,可以将该数值与预设数值进行比较,其中,该预设数值可以是预设截屏手势的触点数。
步骤205,HID过滤驱动模块12基于识别结果向应用程序14发送截屏指示。
具体地,HID过滤驱动模块12还可以获取上述第一触屏数据中的触点信息。接着,可以比较两个第一触屏数据中的触点信息,由此可以确定用户的动作,其中,该动作可以包括上滑、下滑、左滑及右滑等。上述两个第一触屏数据可以是触点数标志数值与预设数值相等,且最早接收的两个触屏数据。可选地,上述两个第一触屏数据也可以是最早接收的一个触屏数据及另一个触屏数据,例如,第一个接收的触屏数据及第二个接收的触屏数据。可以理解的是,上述选取最早的两个触屏数据进行比较为本申请的优选方式,并不构成对本申请实施例的限定。
举例来说,假设HID过滤驱动模块12分别在t及t1时刻收到第一触屏数据S1及S2,其中,t1晚于t,S1为HID驱动模块11检测到用户操作后第一个提交的触屏数据,也就是说,S1为HID过滤驱动模块12第一个接收到的触屏数据;t与t1之间未产生其他触屏数据,也就是说,S2为HID过滤驱动模块12第二个接收到的触屏数据,换句话说,S1和S2为最早接收到的两个触屏数据。若S1及S2的触点数均与预设数值(例如,预设截屏手势的触点数数值)相等,此时,HID过滤驱动模块12可以将S1和S2的触点信息进行比较。
在具体实现时,HID过滤驱动模块12可以将S1中的一个触点信息与S2中对应的触点信息进行比较,由此可以确定用户的动作。示例性的,假设S1包含第一触点信息s11、第二触点信息s12及第三触点信息s13,S2包含第一触点信息s21、第二触点信息s22及第三触点信息s23,此时,HID过滤驱动模块12可以将s11的坐标与对应的s21的坐标进行比较,或可以将s12的坐标与对应的s22的坐标进行比较,或可以将s13的坐标与对应的s23的坐标进行比较,由此确定用户的动作(例如,是否是下滑)。
可选地,HID过滤驱动模块12也可以将S1的多个触点信息与S2中对应的触点信息进行比较。可以理解的是,上述将S1中的一个触点信息与S2中对应的触点信息进行比较的方式为本申请实施例的优选方式,并不构成本申请实施例的限定。其中,确定用户动作的具体过程可以参考步骤109,在此不再赘述。由于在确定滚屏手势的过程中(例如,在用户进行手指滑动的过程中)会产生多个第一触屏数据。假设在用户 手指滑动的过程中产生了6个第一触屏数据,此时,HID服务13需要判断上述6个第一触屏数据的变化情况,由此可以确定用户的手势是否是下滑,而本申请中只需判断最早的两个触屏数据,由此可以在HID服务13判断出下滑手势之前,HID过滤驱动模块12已经确定用户当前的手势为下滑,进而可以更快的识别出用户的手势,避免HID服务13识别出下滑手势导致的下滑误操作。
接着,当HID过滤驱动模块12确定用户动作后,可以基于上述用户动作及触点数判断是否是截屏手势。在具体实现时,可以将上述用户动作及触点数与预设截屏手势的动作及触点数进行匹配,其中,上述预设截屏手势的信息可以预先存储在HID过滤驱动模块12的配置文件中,该配置文件的内容具体可以参考表1,在此不再赘述。
若HID过滤驱动模块12判断当前用户的手势为截屏手势,则向应用程序14发送截屏指示。
步骤206,应用程序14接收HID过滤驱动模块12发送的截屏指示,执行对应的截屏操作。
本实施例中,通过在HID过滤驱动模块12中基于最早的几个第一触屏数据对用户的手势进行识别,可以更快的识别用户的手势,由此可以更快的触发截屏操作,进而可以避免截屏操作和滚动操作冲突。
图10为本申请截屏装置一个实施例的结构示意图,如图10所示,上述截屏装置1000可以包括:获取模块1010、更新模块1020、解析模块1030及截屏模块1040;其中,
获取模块1010,用于响应于检测到的用户的多指滑动操作,获取用户的第一触屏数据;
更新模块1020,用于对第一触屏数据进行解析,基于解析结果更新第一触屏数据,得到第二触屏数据;
解析模块1030,用于对第二触屏数据进行解析,确定第二触屏数据对应的用户手势是否为预设截屏手势;
截屏模块1040,用于若确定第二触屏数据对应的用户手势为预设截屏手势,则执行截屏操作。
其中一种可能的实现方式中,第一触屏数据包括触点数,上述更新模块1020还用于将第一触屏数据中的触点数与预设第一数值进行比较;若第一触屏数据中的触点数与预设第一数值一致,则更新第一触屏数据中的触点数,得到第二触屏数据,第二触屏数据包含预设第二数值的触点数。
其中一种可能的实现方式中,上述预设第二数值为特殊数值。
其中一种可能的实现方式中,上述电子设备安装有第一应用程序,上述第一应用程序用于截屏,上述解析模块1030还用于响应于接收到的第一应用程序的数据请求,将第二触屏数据发送给第一应用程序,使得第一应用程序对第二触屏数据进行解析。
其中一种可能的实现方式中,上述电子设备还安装有第二应用程序,上述第二应用程序用于显示页面,上述装置1000还包括:
禁止模块1050,用于获取第二应用程序的身份标识;若第二应用程序的身份标识在预置白名单内,则禁止执行截屏操作,其中,预置白名单包括一个或多个应用程序 的身份标识。
其中一种可能的实现方式中,上述电子设备还安装有第二应用程序,上述第二应用程序用于显示页面,上述装置1000还包括:
提示模块1060,用于获取第二应用程序的身份标识;若第二应用程序的身份标识在预置白名单内,则发送截屏提示,截屏提示用于提示用户是否进行截屏。
其中一种可能的实现方式中,上述第二触屏数据包括多个触点数据,每个触点数据包括触点坐标,上述解析模块1030还用于读取第二触屏数据中的触点数据,确定触点数据的总数为触点数;基于第二触屏数据中触点数据的触点坐标的变化确定用户的动作;基于触点数及用户的动作确定第二触屏数据对应的用户手势是否为预设截屏手势,预设截屏手势包括预设触点数及预设动作。
图10所示实施例提供的截屏装置可用于执行本申请图1-图9所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。
图11为本申请截屏装置另一个实施例的结构示意图,如图11所示,上述截屏装置1000可以包括:获取模块1110、解析模块1120及截屏模块1130;其中,
获取模块1110,用于响应于检测到的用户的多指滑动操作,获取用户的第一触屏数据;
解析模块1120,用于对第一触屏数据进行解析,确定第一触屏数据对应的用户手势是否为预设截屏手势;
截屏模块1130,用于若确定第一触屏数据对应的用户手势为预设截屏手势,则执行截屏操作。
其中一种可能的实现方式中,上述第一触屏数据包括多个触点数据,每个触点数据包括触点坐标,上述解析模块1120还用于获取两个第一触屏数据,以及第一触屏数据中的触点数;基于两个第一触屏数据中的触点数据的触点坐标的变化,确定用户的动作;基于第一触屏数据中的触点数及用户的动作确定第一触屏数据对应的用户手势是否为预设截屏手势。
其中一种可能的实现方式中,上述电子设备安装有第一应用程序,上述第一应用程序用于截屏,上述截屏模块1130还用于若确定第一触屏数据对应的用户手势为预设截屏手势,则向第一应用程序发送截屏指示,截屏指示用于指示第一应用程序执行截屏操作。
图11所示实施例提供的截屏装置可用于执行本申请图1-图9所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。
应理解以上图10和图11所示的截屏装置的各个模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分模块以软件通过处理元件调用的形式实现,部分模块通过硬件的形式实现。例如,检测模块可以为单独设立的处理元件,也可以集成在电子设备的某一个芯片中实现。其它模块的实现与之类似。此外这些模块全部或部分可以集成在一起,也可以独立实现。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。
例如,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit;以下简称:ASIC),或,一个或多个微处理器(Digital Signal Processor;以下简称:DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array;以下简称:FPGA)等。再如,这些模块可以集成在一起,以片上系统(System-On-a-Chip;以下简称:SOC)的形式实现。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
可以理解的是,上述电子设备等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。
本申请实施例可以根据上述方法示例对上述电子设备等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (22)

  1. 一种截屏方法,应用于电子设备,其特征在于,所述方法包括:
    响应于检测到的用户的多指滑动操作,获取所述用户的第一触屏数据;
    对所述第一触屏数据进行解析,基于解析结果更新所述第一触屏数据,得到第二触屏数据;
    对所述第二触屏数据进行解析,确定所述第二触屏数据对应的用户手势是否为预设截屏手势;
    若确定所述第二触屏数据对应的用户手势为预设截屏手势,则执行截屏操作。
  2. 根据权利要求1所述的方法,其特征在于,所述第一触屏数据包括触点数,所述基于解析结果更新所述第一触屏数据,得到第二触屏数据包括:
    将所述第一触屏数据中的触点数与预设第一数值进行比较;
    若所述第一触屏数据中的触点数与预设第一数值一致,则更新所述第一触屏数据中的触点数,得到第二触屏数据,所述第二触屏数据包含预设第二数值的触点数。
  3. 根据权利要求2所述的方法,其特征在于,所述预设第二数值为特殊数值。
  4. 根据权利要求1所述的方法,其特征在于,所述电子设备安装有第一应用程序,所述第一应用程序用于截屏,所述对所述第二触屏数据进行解析包括:
    响应于接收到的所述第一应用程序的数据请求,将所述第二触屏数据发送给所述第一应用程序,使得所述第一应用程序对所述第二触屏数据进行解析。
  5. 根据权利要求4所述的方法,其特征在于,所述电子设备还安装有第二应用程序,所述第二应用程序用于显示页面,所述方法还包括:
    获取所述第二应用程序的身份标识;
    若所述第二应用程序的身份标识在预置白名单内,则禁止执行所述截屏操作,其中,所述预置白名单包括一个或多个应用程序的身份标识。
  6. 根据权利要求4所述的方法,其特征在于,所述电子设备还安装有第二应用程序,所述第二应用程序用于显示页面,所述方法还包括:
    获取所述第二应用程序的身份标识;
    若所述第二应用程序的身份标识在预置白名单内,则发送截屏提示,所述截屏提示用于提示用户是否进行截屏。
  7. 根据权利要求1所述的方法,其特征在于,所述第二触屏数据包括多个触点数据,每个所述触点数据包括触点坐标,所述对所述第二触屏数据进行解析,确定所述第二触屏数据对应的用户手势是否为预设截屏手势包括:
    读取所述第二触屏数据中的触点数据,确定所述触点数据的总数为触点数;
    基于所述第二触屏数据中所述触点数据的触点坐标的变化确定用户的动作;
    基于所述触点数及所述用户的动作确定所述第二触屏数据对应的用户手势是否为预设截屏手势,所述预设截屏手势包括预设触点数及预设动作。
  8. 一种截屏方法,应用于电子设备,其特征在于,所述方法包括:
    响应于检测到的用户的多指滑动操作,获取所述用户的第一触屏数据;
    对所述第一触屏数据进行解析,确定所述第一触屏数据对应的用户手势是否为预设截屏手势;
    若确定所述第一触屏数据对应的用户手势为预设截屏手势,则执行截屏操作。
  9. 根据权利要求8所述的方法,其特征在于,所述第一触屏数据包括多个触点数据,每个所述触点数据包括触点坐标,所述对所述第一触屏数据进行解析,确定所述第一触屏数据对应的用户手势是否为预设截屏手势包括:
    获取两个第一触屏数据,以及所述第一触屏数据中的触点数;
    基于两个所述第一触屏数据中的触点数据的触点坐标的变化,确定用户的动作;
    基于所述第一触屏数据中的触点数及所述用户的动作确定所述第一触屏数据对应的用户手势是否为预设截屏手势。
  10. 根据权利要求8所述的方法,其特征在于,所述电子设备安装有第一应用程序,所述第一应用程序用于截屏,所述若确定所述第一触屏数据对应的用户手势为预设截屏手势,则执行截屏操作包括:
    若确定所述第一触屏数据对应的用户手势为预设截屏手势,则向所述第一应用程序发送截屏指示,所述截屏指示用于指示所述第一应用程序执行截屏操作。
  11. 一种电子设备,其特征在于,包括:存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括指令,当所述电子设备从所述存储器中读取所述指令,以使得所述电子设备执行以下步骤:
    响应于检测到的用户的多指滑动操作,获取所述用户的第一触屏数据;
    对所述第一触屏数据进行解析,基于解析结果更新所述第一触屏数据,得到第二触屏数据;
    对所述第二触屏数据进行解析,确定所述第二触屏数据对应的用户手势是否为预设截屏手势;
    若确定所述第二触屏数据对应的用户手势为预设截屏手势,则执行截屏操作。
  12. 根据权利要求11所述的电子设备,其特征在于,所述第一触屏数据包括触点数,所述指令被所述电子设备执行时,使得所述电子设备执行基于解析结果更新所述第一触屏数据,得到第二触屏数据的步骤包括:
    将所述第一触屏数据中的触点数与预设第一数值进行比较;
    若所述第一触屏数据中的触点数与预设第一数值一致,则更新所述第一触屏数据中的触点数,得到第二触屏数据,所述第二触屏数据包含预设第二数值的触点数。
  13. 根据权利要求12所述的电子设备,其特征在于,所述预设第二数值为特殊数值。
  14. 根据权利要求11所述的电子设备,其特征在于,所述电子设备安装有第一应用程序,所述第一应用程序用于截屏,所述指令被所述电子设备执行时,使得所述电子设备执行对所述第二触屏数据进行解析的步骤包括:
    响应于接收到的所述第一应用程序的数据请求,将所述第二触屏数据发送给所述第一应用程序,使得所述第一应用程序对所述第二触屏数据进行解析。
  15. 根据权利要求14所述的电子设备,其特征在于,所述电子设备还安装有第二应用程序,所述第二应用程序用于显示页面,所述指令被所述电子设备执行时,使得所述电子设备还执行以下步骤:
    获取所述第二应用程序的身份标识;
    若所述第二应用程序的身份标识在预置白名单内,则禁止执行所述截屏操作,其中,所述预置白名单包括一个或多个应用程序的身份标识。
  16. 根据权利要求14所述的电子设备,其特征在于,所述电子设备还安装有第二应用程序,所述第二应用程序用于显示页面,所述指令被所述电子设备执行时,使得所述电子设备还执行以下步骤:
    获取所述第二应用程序的身份标识;
    若所述第二应用程序的身份标识在预置白名单内,则发送截屏提示,所述截屏提示用于提示用户是否进行截屏。
  17. 根据权利要求11所述的电子设备,其特征在于,所述第二触屏数据包括多个触点数据,每个所述触点数据包括触点坐标,所述指令被所述电子设备执行时,使得所述电子设备执行对所述第二触屏数据进行解析,确定所述第二触屏数据对应的用户手势是否为预设截屏手势的步骤包括:
    读取所述第二触屏数据中的触点数据,确定所述触点数据的总数为触点数;
    基于所述第二触屏数据中所述触点数据的触点坐标的变化确定用户的动作;
    基于所述触点数及所述用户的动作确定所述第二触屏数据对应的用户手势是否为预设截屏手势。
  18. 一种电子设备,其特征在于,包括:存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括指令,当所述电子设备从所述存储器中读取所述指令,以使得所述电子设备执行以下步骤:
    响应于检测到的用户的多指滑动操作,获取所述用户的第一触屏数据;
    对所述第一触屏数据进行解析,确定所述第一触屏数据对应的用户手势是否为预设截屏手势;
    若确定所述第一触屏数据对应的用户手势为预设截屏手势,则执行截屏操作。
  19. 根据权利要求18所述的电子设备,其特征在于,所述第一触屏数据包括多个触点数据,每个所述触点数据包括触点坐标,所述指令被所述电子设备执行时,使得所述电子设备执行对所述第一触屏数据进行解析,确定所述第一触屏数据对应的用户手势是否为预设截屏手势的步骤包括:
    获取两个第一触屏数据,以及所述第一触屏数据中的触点数;
    基于两个所述第一触屏数据中的触点数据的触点坐标的变化,确定用户的动作;
    基于所述第一触屏数据中的触点数及所述用户的动作确定所述第一触屏数据对应的用户手势是否为预设截屏手势。
  20. 根据权利要求18所述的电子设备,其特征在于,所述电子设备安装有第一应用程序,所述第一应用程序用于截屏,所述指令被所述电子设备执行时,使得所述电子设备执行若确定所述第一触屏数据对应的用户手势为预设截屏手势,则执行截屏操作的步骤包括:
    若确定所述第一触屏数据对应的用户手势为预设截屏手势,则向所述第一应用程序发送截屏指示,所述截屏指示用于指示所述第一应用程序执行截屏操作。
  21. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在所述电子设备上运行时,使得所述电子设备执行如权利要求1-10中任一项所述的 方法。
  22. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-10中任一项所述的方法。
PCT/CN2022/079955 2021-03-18 2022-03-09 截屏方法、电子设备及存储介质 WO2022194007A1 (zh)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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 华为技术有限公司 一种屏幕截取方法及相关设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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