Screen capture method and device, electronic equipment and storage medium
Through the remote screenshot function of the stylus, the initial and target positions are obtained for remote screenshots, which solves the problem of difficulty and poor screenshots in large-screen terminal devices, and accurately captures in any area, improving user experience.
Patent Information
- Application Number
- CN202310696116.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-12
- Publication Date
- 2024-12-13
AI Technical Summary
In large-screen terminal devices, it is difficult for users to realize screenshots in any remote area through traditional methods, resulting in poor screenshot effects and inability to highlight the key content that users pay attention to, reducing the user experience.
Through the remote screenshot function of the stylus, you can obtain the initial position and target position, and perform remote screenshots in response to the screenshot instructions to realize screenshots in any area, reducing operation difficulty and highlighting key content.
It improves the convenience and effect of screen capture operation of large-screen terminal devices, ensures that users can accurately capture the content of the screen area of interest, and improves the user experience.
Smart Images

Figure CN119127051A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic devices, and in particular to a screenshot method, device, electronic device and storage medium. Background Art
[0002] Currently, users are increasingly accustomed to playing games and entertainment on large-screen terminal devices (such as tablets, foldable screen mobile phones, and notebooks) to enjoy a clearer and wider display experience. Large-screen terminal devices can make users more immersed, but they bring a lot of inconvenience in controlling characters. Usually, in some application scenarios of large-screen terminal devices, the device and the user are far away, and the user is often only interested in part of the content on the screen. At this time, capturing the entire screen cannot highlight the key content that the user is concerned about, which ultimately leads to poor screenshot effects and reduces the user experience. Summary of the invention
[0003] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.
[0004] To this end, the first purpose of the present invention is to propose a screenshot method to realize remote screenshot of any area through a stylus, thereby reducing the difficulty of screenshot operations on large-screen terminal devices, while avoiding the problem that capturing the entire screen cannot highlight the key content that the user is concerned about, thereby improving the user's screenshot experience.
[0005] The second objective of the present disclosure is to provide a screenshot device.
[0006] A third objective of the present disclosure is to provide an electronic device.
[0007] A fourth object of the present disclosure is to provide a non-transitory computer-readable storage medium.
[0008] A fifth object of the present disclosure is to provide a computer program product.
[0009] To achieve the above-mentioned purpose, an embodiment of the first aspect of the present disclosure proposes a screenshot method, comprising: in response to an instruction to start a remote screenshot function, obtaining an initial position indicated by the stylus in the screen of the terminal device at a first moment; obtaining a target position indicated by the stylus in the screen at at least one second moment after the first moment; and in response to a screenshot instruction, remotely taking a screenshot of the screen content corresponding to the initial position and the target position at at least one second moment to obtain a screenshot.
[0010] The screenshot method of the disclosed embodiment obtains, in response to an instruction to start a remote screenshot function, an initial position indicated by the stylus pen in the screen of the terminal device at a first moment; obtains a target position indicated by the stylus pen in the screen at at least one second moment after the first moment; and in response to the screenshot instruction, remotely screenshots the screen content corresponding to the initial position and the target position at at least one second moment to obtain a screenshot. Thus, by remotely screenshotting the screen content corresponding to the initial position of the stylus pen in the screen at a first moment and the target position of the screen at at least one second moment after the first moment, remote screenshots of any area can be achieved through the stylus, thereby reducing the difficulty of screenshot operations on large-screen terminal devices and avoiding the problem that capturing the entire screen fails to highlight the key content that the user is concerned about, thereby improving the user's screenshot experience.
[0011] To achieve the above-mentioned purpose, the second aspect of the present disclosure proposes a screenshot device, including: a first acquisition module, used to respond to an instruction to start a remote screenshot function, to obtain the initial position indicated by the stylus in the screen at a first moment; a second acquisition module, used to obtain the target position indicated by the stylus in the screen at at least one second moment after the first moment; a screenshot module, used to respond to a screenshot instruction, to remotely screenshot the screen content corresponding to the initial position and the target position at at least one second moment, so as to obtain a screenshot.
[0012] To achieve the above-mentioned purpose, the third aspect embodiment of the present disclosure proposes an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the screenshot method described in the first aspect embodiment of the present disclosure.
[0013] In order to achieve the above-mentioned objectives, the fourth aspect embodiment of the present disclosure proposes a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute the screenshot method described in the first aspect embodiment of the present disclosure.
[0014] In order to achieve the above-mentioned purpose, the fifth aspect of the present disclosure proposes a computer program product. When the instruction processor in the computer program product is executed, the screenshot method described in the first aspect of the present disclosure is executed.
[0015] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0017] Figure 1 A flowchart of a screenshot method provided by an embodiment of the present disclosure;
[0018] Figure 2 A schematic diagram of the structure of a stylus provided in an embodiment of the present disclosure;
[0019] Figure 3 A flowchart of another screenshot method provided by an embodiment of the present disclosure;
[0020] Figure 4 A flowchart of another screenshot method provided by an embodiment of the present disclosure;
[0021] Figure 5 A flowchart of another screenshot method provided by an embodiment of the present disclosure;
[0022] Figure 6 A schematic diagram of the structure of a screen capture device provided by an embodiment of the present disclosure;
[0023] Figure 7 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0024] Embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.
[0025] At present, large-screen terminal devices such as foldable screen mobile phones and tablets can give users a more immersive experience, and have advantages that small-screen terminal devices cannot match in some applications. However, a larger screen also means that it will bring huge challenges to the user's control experience. For example, for screenshot operations, mobile phones can use the power button and the volume down button to achieve shortcut key screenshots, but as the screen size increases, the difficulty of using shortcut keys to take screenshots also increases. In related technologies, knuckle swiping is used to take screenshots. This method is simple and convenient, and can capture any area of the screen, but requires the device to be within the reach of the user. For tablet devices, they are often equipped with a stylus, and users can also use the buttons in the stylus to achieve the screenshot function. This method can achieve long-distance non-contact screenshots, but it is impossible to accurately control the screenshot area and cannot capture part of the screen that is of interest. For some ultra-large-screen terminal devices, when users use the ultra-large-screen terminal device as a demonstration device in learning or meetings, if they need to take screenshots of any area at a distance, the operation is extremely inconvenient.
[0026] Therefore, in order to solve the above problems, the present disclosure proposes a screenshot method, device, electronic device and storage medium.
[0027] The following describes the screenshot method, device, electronic device and storage medium of the embodiments of the present disclosure with reference to the accompanying drawings.
[0028] Figure 1 A flowchart of a screenshot method provided in an embodiment of the present disclosure.
[0029] like Figure 1 As shown, the screenshot method includes the following steps:
[0030] Step 101, in response to an instruction to start a remote screenshot function, obtaining an initial position indicated by a stylus on a screen of a terminal device at a first moment.
[0031] There is a distance between the stylus pen and the screen of the terminal device.
[0032] Among them, the first moment may be the moment when the stylus pen first appears on the screen of the terminal device after the remote screenshot function is turned on, or the first moment may be the moment when the remote screenshot function is turned on, or the first moment may be any moment within a set time period after the remote screenshot function is turned on, wherein the stylus pen does not move on the screen of the terminal device within the set time period.
[0033] In the embodiment of the present disclosure, when there is a distance between the stylus pen and the screen of the terminal device and the remote screenshot function of the terminal device is turned on, the initial position indicated by the stylus pen on the screen of the terminal device at the first moment can be obtained.
[0034] Among them, the activation of the remote screenshot function may include but is not limited to activation through the first setting control of the stylus, activation by a physical button or a virtual button on the terminal device, and activation by voice.
[0035] As an example, the remote screenshot function activation instruction is generated when the first setting control in the stylus is detected to be triggered, that is, the remote screenshot function of the terminal device is activated by triggering the first setting control of the stylus. There may be at least one first setting control.
[0036] For example, since the stylus itself has two buttons, the screenshot function of the terminal device can be remotely enabled through these two buttons. Figure 2 As shown, the screenshot function of the terminal device can be enabled by setting the method of first pressing the shorthand key and then pressing the screenshot key. In addition, a new button can be added, and the new button can be used to enable the remote screenshot function of the terminal device.
[0037] Among them, it should be noted that before determining to enable the remote screenshot function of the terminal device through the first setting control of the stylus pen, it is necessary to first determine that the stylus pen and the terminal device have established a communication connection. For example, taking the terminal device as a tablet device, when the user does not need to use the stylus pen, the stylus pen can be adsorbed on the tablet device; when the user uses the stylus pen, the tablet device can be turned on to search for available devices, and pairing and connection between the tablet device and the stylus pen can be established.
[0038] The initial position may be a pre-set position, the initial position may be located in the middle of the screen, or the initial position may be other positions on the screen, and the present disclosure does not impose any specific limitation thereto.
[0039] Step 102: Acquire a target position pointed to by the stylus on the screen at at least one second moment after the first moment.
[0040] In the embodiment of the present disclosure, the target position pointed by the stylus on the screen at at least one second moment can be obtained. It should be understood that since the stylus includes a gyroscope and an accelerometer, the target position pointed by the stylus on the screen at at least one second moment can be calculated by the accelerometer and the gyroscope.
[0041] Step 103: In response to the screenshot instruction, remotely screenshot the screen content corresponding to the initial position and at least one target position at a second moment to obtain a screenshot.
[0042] As an example, when a user triggers the second setting control in the stylus, the stylus can generate a screenshot instruction and send the screenshot instruction to the terminal device. The terminal device can receive the screenshot instruction and, in response to the screenshot instruction, remotely capture the screen content corresponding to the initial position and the target position at at least one second moment to obtain a screenshot.
[0043] As another example, the user triggers the second setting control in the stylus, the second setting control can generate instruction information, and send the instruction information to the terminal device, the terminal device generates a screenshot instruction according to the instruction information, and in response to the screenshot instruction, remotely captures the screen content corresponding to the initial position and at least one target position at a second moment to obtain a screenshot.
[0044] As another example, a screenshot instruction is generated based on voice control, and in response to the screenshot instruction, a remote screenshot is taken of screen content corresponding to the initial position and at least one target position at a second moment to obtain a screenshot.
[0045] As another example, a physical button or virtual button on the terminal device is triggered, or a screenshot instruction is generated when it is detected that the stylus stays at a certain position for a time period greater than or equal to a set time threshold. In response to the screenshot instruction, a remote screenshot is taken of the screen content corresponding to the initial position and at least one target position at a second moment to obtain a screenshot.
[0046] It should be noted that, in order to facilitate user viewing, the terminal device can be controlled to save and / or display the screenshot.
[0047] In summary, by responding to the start instruction of the remote screenshot function, the initial position pointed to by the stylus on the screen of the terminal device at the first moment is obtained; the target position pointed to by the stylus on the screen at at least one second moment after the first moment is obtained; in response to the screenshot instruction, the screen content corresponding to the initial position and the target position at at least one second moment is remotely screenshoted to obtain a screenshot. Therefore, by remotely screenshotting the screen content corresponding to the initial position of the stylus on the screen at the first moment and the target position of the screen at at least one second moment after the first moment, it is possible to remotely screenshot any area of the screen through the stylus, thereby reducing the difficulty of screenshot operation of large-screen terminal devices and avoiding the problem that capturing the entire screen fails to highlight the key content that the user is concerned about, thereby improving the user's screenshot experience.
[0048] In order to clearly illustrate how to remotely capture the screen content corresponding to the initial position and at least one target position at a second moment in response to the capture instruction in the above embodiment to obtain the screenshot, the present disclosure proposes another screenshot method.
[0049] Figure 3 A flowchart of another screenshot method provided by an embodiment of the present disclosure.
[0050] like Figure 3 As shown, the screenshot method includes the following steps:
[0051] Step 301, in response to an instruction to start a remote screenshot function, obtaining an initial position pointed to by a stylus on the screen of a terminal device at a first moment.
[0052] Step 302: Acquire a target position pointed to by the stylus on the screen at at least one second moment after the first moment.
[0053] Step 303 : In response to the screenshot instruction, based on the initial position and the target position at least at the second moment, determine the movement track of the stylus on the screen at at least one second moment.
[0054] As an example, according to the target position pointed by the stylus at at least one second moment on the screen, the moving track of the stylus at at least one second moment on the screen can be determined. For example, the moving track of the stylus at at least one second moment on the screen can be determined by connecting the initial position and the target position at at least one second moment.
[0055] As another example, based on the initial position and at least one target position at the second moment, a screenshot area of a set shape is generated, and the screen content in the screenshot area is remotely screenshotted. For example, the target position farthest from the initial position is determined from the target position at the at least one second moment, and a screenshot area of a set shape (such as a circle, rectangle or ellipse) is generated according to the target position farthest from the initial position and the initial position, wherein the target position farthest from the initial position and the initial position are on the boundary of the screenshot area. Step 304, control the terminal device to display the movement trajectory on the screen.
[0056] Furthermore, the terminal device can be controlled to display the movement trajectory on the screen.
[0057] Step 305: remotely capture the screen content in the screenshot area that matches the movement trajectory to obtain a screenshot.
[0058] It should be noted that the execution process of steps 301 to 302 and step 305 can be implemented in any way in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0059] In summary, the movement trajectory of the stylus pen in the screen at at least one second moment is determined based on the initial position and the target position at at least one second moment; the terminal device is controlled to display the movement trajectory on the screen; and the screen content in the screenshot area matching the movement trajectory is captured. Thus, by determining the movement trajectory of the stylus pen in the screen of the terminal device at at least one second moment, the screen content in the screenshot area matching the movement trajectory is remotely captured, thereby accurately realizing remote screenshots of any area through the stylus pen, reducing the difficulty of screenshot operations on large-screen terminal devices, and avoiding the problem that capturing the entire screen fails to highlight the key content that the user is concerned about, thereby improving the user's screenshot experience.
[0060] In order to clearly explain how to obtain the target position pointed by the stylus on the screen at at least one second moment after the first moment in the above embodiment, the present disclosure proposes another screenshot method.
[0061] Figure 4 A flowchart of another screenshot method provided by an embodiment of the present disclosure.
[0062] like Figure 4 As shown, the screenshot method includes the following steps:
[0063] Step 401, in response to an instruction to start the remote screenshot function, obtaining an initial position pointed to by the stylus on the screen of the terminal device at a first moment.
[0064] Step 402: Acquire a first relative position between the stylus and the screen at at least one second moment after the first moment.
[0065] As an example, the relative position between the stylus and the screen and the posture information of the stylus at at least one second moment are obtained; the relative position between the stylus and the screen and the posture information of the stylus at at least one second moment are used as the first relative position and posture between the stylus and the screen of the terminal device at at least one second moment.
[0066] That is to say, for each second moment in at least one second moment, the first relative posture of each second moment includes the relative position between the stylus and the screen and the posture information of the stylus. In the embodiment of the present disclosure, since the stylus includes a gyroscope and an accelerometer, the relative position (distance) between the stylus and the screen at at least one second moment can be calculated by the accelerometer. At the same time, the posture information of the stylus in the spatial rectangular coordinate system can be calculated by the gyroscope. Therefore, according to the relative position and posture information between the stylus and the screen at at least one second moment, the relative posture between the stylus and the screen at at least one second moment can be determined, and the relative posture between the stylus and the screen at at least one second moment is used as the first relative posture.
[0067] Step 403: Determine a target position pointed to by the stylus on the screen at at least one second moment based on the initial position and at least one first relative position at a second moment.
[0068] As an example, a second relative posture between the stylus and the screen at a first moment is determined, and a spatial mapping relationship between the initial position and the second relative posture is established; for any second moment in at least one second moment, based on the first relative posture and the spatial mapping relationship between the stylus and the screen at any second moment, the target position pointed to by the stylus on the screen at any second moment is determined.
[0069] That is to say, since the stylus contains a gyroscope and an accelerometer, the stylus can be usually attached to both sides of the terminal device. When the user removes the stylus from one side of the terminal device and moves it, the accelerometer can be used to calculate the relative position relationship between the stylus and the terminal device. At the same time, the posture information of the stylus in the spatial rectangular coordinate system can be calculated by the gyroscope. Furthermore, the second relative posture between the stylus and the screen at the first moment can be determined according to the relative position between the stylus and the screen and the posture information of the stylus at the first moment. Then, a spatial mapping relationship between the initial position and the second relative posture is established according to the spatial geometry algorithm. Therefore, at any second moment in at least one second moment, the target position pointed to by the stylus on the screen at any second moment can be determined according to the first relative posture between the stylus and the screen at the first second moment and the spatial mapping relationship.
[0070] As another example, determine the second relative posture between the stylus and the screen at a first moment; for any second moment in at least one second moment, determine the difference between the first relative posture and the second relative posture between the stylus and the screen at any second moment, and determine the difference between the target position and the initial position indicated by the stylus on the screen at any second moment based on the set mapping relationship and the difference between the first relative posture and the second relative posture at any second moment; determine the target position indicated by the stylus on the screen at any second moment based on the difference between the target position and the initial position and the initial position.
[0071] That is, the relative position relationship between the stylus and the terminal device is calculated using the accelerometer in the stylus, and the posture information of the stylus in the spatial rectangular coordinate system can be calculated by the gyroscope in the stylus. Then, the second relative posture between the stylus and the screen at the first moment can be determined according to the relative position between the stylus and the screen at the first moment and the posture information of the stylus. The second relative posture between the stylus and the screen at the first moment can be determined according to the relative position between the stylus and the screen at the first moment and the posture information of the stylus. Then, the difference between the first relative posture and the second relative posture between the stylus and the screen at any second moment can be determined. According to the set mapping relationship and the difference between the first relative posture and the second relative posture at any second moment, the difference between the target position indicated by the stylus on the screen at any second moment and the initial position can be calculated. Therefore, the target position indicated by the stylus on the screen at any second moment can be obtained by adding the initial position and the difference between the target position indicated by the stylus on the screen at any second moment and the initial position.
[0072] Step 404: in response to the screenshot instruction, remotely screenshot the screen content corresponding to the initial position and at least one target position at a second moment to obtain a screenshot.
[0073] It should be noted that the execution process of step 401 and step 404 can be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0074] In summary, by acquiring the first relative posture between the stylus and the screen at at least one second moment after the first moment; based on the initial position and the first relative posture at at least one second moment, determining the target position pointed by the stylus on the screen at at least one second moment, thereby, the target position pointed by the stylus on the screen at at least one second moment can be accurately determined.
[0075] In order to clearly explain how to remotely capture the screen content in the capture area matching the movement trajectory in the above embodiment, the present disclosure proposes another screenshot method.
[0076] Figure 5 A flowchart of another screenshot method provided by an embodiment of the present disclosure.
[0077] like Figure 5 As shown, the screenshot method includes the following steps:
[0078] Step 501, in response to an instruction to start a remote screenshot function, obtaining an initial position pointed to by the stylus on the screen of the terminal device at a first moment.
[0079] Step 502: Acquire a target position pointed to by the stylus on the screen at at least one second moment after the first moment.
[0080] Step 503: Determine a moving track of the stylus on the screen at at least one second moment based on the initial position and at least one target position at the second moment.
[0081] Step 504: Control the terminal device to display the movement track on the screen.
[0082] Step 505: determine the enclosed area of the moving track on the screen.
[0083] As an example, when the movement trajectory is a closed trajectory, the area enclosed by the movement trajectory may be determined, and the area enclosed by the movement trajectory may be used as the enclosed area.
[0084] As another example, when the moving trajectory is a non-closed trajectory, the moving trajectory may be completed to obtain a closed trajectory, so that the area enclosed by the closed trajectory may be used as the enclosed area of the moving trajectory on the screen.
[0085] Step 506: Determine the screenshot area selected by the stylus on the screen according to the enclosed area of the movement track.
[0086] Furthermore, the enclosed area corresponding to the moving track is used as the screenshot area selected by the stylus on the screen.
[0087] Step 507: remotely capture the screen content in the capture area to obtain a screenshot.
[0088] Thus, the screen content in the screenshot area can be remotely screenshotted to obtain a screenshot.
[0089] It should be noted that the execution process of step 501 to step 504 can be implemented in any way in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0090] In summary, the enclosed area of the moving trajectory in the screen is determined; according to the enclosed area of the moving trajectory, the screenshot area selected by the stylus in the screen is determined; the screen content in the screenshot area is remotely screenshotted to obtain a screenshot. Therefore, the screenshot area selected by the stylus in the screen can be effectively determined according to the moving trajectory, so that the screen content in the screenshot area can be remotely screenshotted, and remote screenshot of any area can be achieved, which reduces the difficulty of screenshot operation on large-screen terminal devices, and at the same time avoids the problem that capturing the entire screen cannot highlight the key content that the user is concerned about, thereby improving the user's screenshot experience.
[0091] In order to implement the above embodiment, the present disclosure proposes a screenshot device.
[0092] Figure 6 A schematic diagram of the structure of a screen capture device provided in an embodiment of the present disclosure.
[0093] like Figure 6 As shown, the screen capture device 600 includes: a first acquisition module 610 , a second acquisition module 620 and a capture module 630 .
[0094] Among them, the first acquisition module 610 is used to respond to the start instruction of the remote screenshot function and obtain the initial position indicated by the stylus on the screen of the terminal device at a first moment; the second acquisition module 620 is used to obtain the target position indicated by the stylus on the screen at at least one second moment after the first moment; the screenshot module 630 is used to respond to the screenshot instruction and remotely screenshot the screen content corresponding to the initial position and the target position at at least one second moment to obtain a screenshot.
[0095] As a possible implementation method of the embodiment of the present disclosure, the screenshot module 630 is specifically used to: respond to a screenshot instruction, determine the movement trajectory of the stylus in the screen at the at least one second moment based on the initial position and the target position of the at least one second moment; control the terminal device to display the movement trajectory on the screen; and remotely screenshot the screen content in the screenshot area matching the movement trajectory to obtain a screenshot.
[0096] As a possible implementation method of the embodiment of the present disclosure, the second acquisition module 620 is specifically used to: obtain a first relative posture between the stylus and the screen at at least one second moment after the first moment; based on the initial position and the first relative posture at at least one second moment, determine the target position pointed to by the stylus on the screen at at least one second moment.
[0097] As a possible implementation method of the embodiment of the present disclosure, the second acquisition module 620 is further used to: determine the second relative posture between the stylus and the screen at the first moment, and establish a spatial mapping relationship between the initial position and the second relative posture; for any second moment in at least one second moment, determine the target position pointed to by the stylus on the screen at any second moment according to the first relative posture between the stylus and the screen at any second moment and the spatial mapping relationship.
[0098] As a possible implementation method of the embodiment of the present disclosure, the second acquisition module 620 is further used to: obtain the relative position between the stylus and the screen and the posture information of the stylus at at least one second moment; use the relative position between the stylus and the screen and the posture information of the stylus at at least one second moment as the first relative position and posture between the stylus and the screen at at least one second moment.
[0099] As a possible implementation method of the embodiment of the present disclosure, the screenshot module 630 is also used to: determine the enclosed area of the movement trajectory in the screen; determine the screenshot area selected by the stylus in the screen according to the enclosed area of the movement trajectory; and remotely screenshot the screen content in the screenshot area to obtain a screenshot.
[0100] As a possible implementation manner of the embodiment of the present disclosure, the activation instruction of the remote screenshot function is generated when the triggering of the first setting control in the stylus is detected.
[0101] As a possible implementation manner of the embodiment of the present disclosure, the screenshot instruction is generated when it is detected that the second setting control in the stylus is triggered.
[0102] As a possible implementation manner of the embodiment of the present disclosure, the screenshot device 600 further includes: a determination module.
[0103] The determination module is used to determine whether a communication connection is established between the stylus pen and the terminal device.
[0104] As a possible implementation of the embodiment of the present disclosure, the screenshot device 600 further includes: a control module.
[0105] Among them, the control module is used to control the terminal device to save and / or display the screenshot.
[0106] The screenshot device of the disclosed embodiment obtains the initial position indicated by the stylus pen on the screen of the terminal device at a first moment by responding to an instruction to start the remote screenshot function; obtains the target position indicated by the stylus pen on the screen at at least one second moment after the first moment; and remotely captures the screen content corresponding to the initial position and the target position at at least one second moment in response to the screenshot instruction to obtain a screenshot. Thus, by remotely capturing the screen content corresponding to the initial position of the stylus pen on the screen at a first moment and the target position of the stylus pen on the screen at at least one second moment after the first moment, it is possible to remotely capture the screenshot of any area through the stylus pen, thereby reducing the difficulty of screenshot operation on large-screen terminal devices and avoiding the problem that the key content of the user's concern cannot be highlighted when capturing the entire screen, thereby improving the user's screenshot experience.
[0107] It should be noted that the above explanation of the screenshot method embodiment is also applicable to the screenshot device of this embodiment, and will not be repeated here.
[0108] In order to implement the above embodiments, the present disclosure also proposes an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the screenshot method described in the above embodiments.
[0109] In order to implement the above embodiments, the present disclosure further proposes a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to enable the computer to execute the screenshot method described in the above embodiments.
[0110] In order to implement the above embodiments, the present disclosure further proposes a computer program product. When an instruction processor in the computer program product is executed, the screenshot method described in the above embodiments is implemented.
[0111] Figure 7 7 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0112] Reference Figure 7 , the electronic device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .
[0113] The processing component 702 generally controls the overall operation of the electronic device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.
[0114] The memory 704 is configured to store various types of data to support operations on the electronic device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0115] The power component 706 provides power to the various components of the electronic device 700. The power component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 700.
[0116] The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the electronic device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0117] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the electronic device 700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.
[0118] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0119] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 can detect the open / closed state of the electronic device 700, the relative positioning of components, such as the display and keypad of the electronic device 700, and the sensor assembly 714 can also detect the position change of the electronic device 700 or a component of the electronic device 700, the presence or absence of user contact with the electronic device 700, the orientation or acceleration / deceleration of the electronic device 700, and the temperature change of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0120] The communication component 716 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0121] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0122] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, and the instructions can be executed by a processor 720 of an electronic device 700 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0123] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0124] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0125] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present disclosure belong.
[0126] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0127] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0128] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0129] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0130] The storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present disclosure. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present disclosure.
Claims
1. A screen capture method, characterized in that: include: In response to an instruction to start a remote screenshot function, acquiring an initial position indicated by the stylus on the screen of the terminal device at a first moment; Acquire a target position pointed by the stylus on the screen at at least one second moment after the first moment; In response to the screenshot instruction, a remote screenshot is taken of the screen content corresponding to the initial position and the target position at the at least one second moment to obtain a screenshot.
2. The method according to claim 1, characterized in that In response to the screenshot instruction, remotely screenshotting the screen content corresponding to the initial position and the at least one target position at the second moment to obtain a screenshot, comprising: In response to the screenshot instruction, determining a moving track of the stylus on the screen at the at least one second moment based on the initial position and the at least one target position at the second moment; Controlling the terminal device to display the movement track on the screen; The screen content in the screenshot area matching the movement track is remotely captured to obtain a screenshot.
3. The method according to claim 1, characterized in that: The acquiring the target position pointed to by the stylus on the screen at at least one second moment after the first moment includes: Acquire a first relative position between the stylus and the screen at at least one second moment after the first moment; Based on the initial position and the first relative position at the at least one second moment, a target position pointed to by the stylus on the screen at the at least one second moment is determined.
4. The method according to claim 3, characterized in that The determining, based on the initial position and the first relative position at the at least one second moment, a target position pointed to by the stylus on the screen at the at least one second moment includes: Determine a second relative position and posture between the stylus and the screen at the first moment, and establish a spatial mapping relationship between the initial position and the second relative position and posture; For any second moment among the at least one second moment, a target position pointed to by the stylus on the screen at any second moment is determined according to the first relative posture between the stylus and the screen at any second moment and the spatial mapping relationship.
5. The method according to claim 3, characterized in that: The acquiring a first relative position between the stylus and the screen at at least one second moment after the first moment includes: Acquire the relative position between the stylus pen and the screen and the posture information of the stylus pen at the at least one second moment; The relative position between the stylus pen and the screen at the at least one second moment and the posture information of the stylus pen are used as the first relative position and posture between the stylus pen and the screen at the at least one second moment.
6. The method according to claim 2, characterized in that The remotely capturing the screen content in the screenshot area matching the movement trajectory to obtain the screenshot includes: Determine an enclosed area of the movement track on the screen; Determining a screenshot area selected by the stylus on the screen according to an enclosed area of the movement track; The screen content in the screenshot area is remotely screenshotted to obtain a screenshot.
7. The method according to claim 1, characterized in that The remote screenshot function activation instruction is generated when the triggering of the first setting control in the stylus is detected.
8. The method according to claim 1, characterized in that The screenshot instruction is generated when it is detected that the second setting control in the stylus is triggered.
9. The method according to any one of claims 1 to 8, characterized in that Before determining to remotely enable the screenshot function of the terminal device through the first setting control of the stylus, the method further includes: Determine that a communication connection is established between the stylus pen and the terminal device.
10. The method according to any one of claims 1 to 8, characterized in that After the method responds to the screenshot instruction and remotely captures the screen content corresponding to the initial position and the at least one target position at the second moment to obtain the screenshot, the method further includes: Control the terminal device to save and / or display the screenshot.
11. A screen capture device, characterized in that: include: A first acquisition module, configured to acquire an initial position of the stylus on the screen at a first moment in response to an instruction to start the remote screenshot function; A second acquisition module, used for acquiring a target position pointed by the stylus on the screen at at least one second moment after the first moment; The screenshot module is used to remotely screenshot the screen content corresponding to the initial position and the target position at the at least one second moment in response to the screenshot instruction to obtain a screenshot.
12. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 10.
13. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 10.
