Screen capture method and device
By performing screenshot operations on N interfaces in electronic devices and generating video files, the continuity problem of users when sending multiple screenshots is solved, and a simpler and more efficient screenshot sending process is achieved.
Patent Information
- Application Number
- CN202110931140.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-13
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2041-08-13
AI Technical Summary
When users send multiple screenshots, they are prone to missed selection, failed sending or inconsistent sending order, resulting in poor continuity of sending multiple screenshots by electronic devices.
By implementing the screenshot method in an electronic device, the user can perform screenshot operations on N interfaces, obtain N screenshots, and directly generate a video file based on these pictures and send it in video form.
This solution avoids the miss selection of screenshots, failure to send and disordered sending sequences, simplifies user operations, improves the continuity and flexibility of sending multiple screenshots by electronic devices, and improves the human-computer interaction experience.
Smart Images

Figure CN113778300B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a screenshot method and device. Background Art
[0002] Currently, when a user shares the specific operation process of an application with other users, he can take a screenshot every time he performs a specific operation in the application, so as to take a screenshot of the application page during each operation, thereby obtaining multiple screenshots; then the user can send the multiple screenshots to other users in turn, so that other users can determine the specific operation process of the application based on these screenshots.
[0003] However, when a user needs to send a large number of screenshots, the user may miss some screenshots when selecting them, or when the network condition of the electronic device is poor, some screenshots may fail to be sent, which will cause the continuity of the electronic device sending multiple screenshots to be poor. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a screenshot method and device that can solve the problem of poor continuity of multiple screenshot images sent by an electronic device.
[0005] In order to solve the above technical problems, this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a screenshot method, which includes: based on the user's screenshot input, performing a screenshot operation on N interfaces in an electronic device to obtain N screenshot pictures, each screenshot picture corresponding to one of the N interfaces, and N is an integer greater than 1; based on the N screenshot pictures, outputting a target video.
[0007] In a second aspect, an embodiment of the present application provides a screenshot device, which includes: a screenshot module and an output module. The screenshot module is used to perform a screenshot operation on N interfaces in an electronic device based on a screenshot input of a user, and obtain N screenshot images, each screenshot image corresponding to one of the N interfaces, where N is an integer greater than 1. The output module is used to output a target video based on the N screenshot images obtained by the screenshot module.
[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0011] In an embodiment of the present application, the electronic device can perform a screenshot operation on N interfaces according to the screenshot input of the user, obtain N screenshot images, and output a target video based on the N screenshot images. After obtaining the N screenshot images, the electronic device can directly generate a video file (i.e., the target video) based on the N screenshot images, thereby sending multiple screenshot images to other users in the form of a video file, without the user having to select each screenshot image in turn to send these screenshot images one by one. Therefore, the solution of the present application avoids the problems of missing screenshot images, sending failures, and disordered sending order, thereby simplifying user operations, improving the continuity and flexibility of the electronic device sending multiple screenshot images, and improving the human-computer interaction experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 This is one of the flowcharts of a screenshot method provided in an embodiment of the present application;
[0013] Figure 2 This is one of the example schematic diagrams of a mobile phone interface provided in an embodiment of the present application;
[0014] Figure 3 This is a second example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;
[0015] Figure 4 This is a third example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;
[0016] Figure 5 This is a fourth example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;
[0017] Figure 6 This is a fifth example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;
[0018] Figure 7 This is the second flowchart of a screenshot method provided in an embodiment of the present application;
[0019] Figure 8 This is a sixth example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;
[0020] Fig. 9 This is the seventh example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;
[0021] Fig.10 is a structural schematic diagram of a screen capture device provided in an embodiment of the present application;
[0022] Fig.11 This is one of the hardware structure diagrams of an electronic device provided in an embodiment of the present application;
[0023] Fig.12 This is the second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0026] The screenshot method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0027] Usually, when a user sends multiple screenshots to other users (for example, screenshots corresponding to the specific operation process of a certain application), the user needs to select multiple screenshots from the album application in turn. However, when there are many screenshots, the user may miss the screenshots that need to be sent, resulting in the screenshots sent by the user being unable to fully display the specific operation process of the application to other users; or, when the network condition of the electronic device is not good, some screenshots may fail to be sent, or the sending order of multiple screenshots may be disordered, resulting in the screenshots sent by the user being unable to fully and accurately display the specific operation process of the application to other users; in this way, the continuity of the electronic device sending multiple screenshots is poor.
[0028] In order to solve the above technical problems, in an embodiment of the present application, when the electronic device is in a target screenshot mode, the user can input a screenshot of the screen of the electronic device so that the electronic device can perform a screenshot operation on multiple interfaces and obtain multiple screenshot pictures. Then the electronic device can generate and output a target video based on the multiple screenshot pictures.
[0029] In one embodiment of the present application, a user can perform N screenshot inputs, that is, each time the electronic device displays an interface, the user performs a screenshot input for the interface, so that after each screenshot input by the user, the electronic device performs a screenshot operation on the interface corresponding to the screenshot input, thereby performing N screenshot operations on N interfaces.
[0030] In another embodiment of the present application, for each of the N interfaces, the electronic device can record the content of the interface each time it displays an interface, so that the user can perform a screenshot input, that is, after the electronic device displays N interfaces, the user performs a screenshot input, so that the electronic device performs N screenshot operations based on the content record of the N interfaces.
[0031] In this solution, after the user triggers the electronic device to obtain multiple screenshots through screenshot input, the user does not need to select each screenshot image in turn. Instead, a target video is directly generated based on the multiple screenshot images. That is, the solution of the present application sends multiple screenshot images to other users in the form of videos. Therefore, the problems of missing screenshot images, failure to send some screenshot images, and disordered sending order of screenshot images can be avoided, thereby simplifying user operations, improving the continuity and flexibility of the electronic device in sending multiple screenshot images, and improving the human-computer interaction experience.
[0032] The present application embodiment provides a screenshot method. Figure 1 FIG. 1 is a flowchart of a screenshot method provided by an embodiment of the present application. Figure 1 As shown, the screenshot method provided in the embodiment of the present application may include the following steps 201 and 202.
[0033] Step 201: The electronic device performs a screenshot operation on N interfaces in the electronic device based on the screenshot input of the user to obtain N screenshot images.
[0034] In an embodiment of the present application, each of the above-mentioned N screenshots corresponds to one interface among N interfaces, where N is an integer greater than 1.
[0035] In an embodiment of the present application, when in a target screenshot mode, the electronic device can perform a screenshot operation on N interfaces in the electronic device based on the user's screenshot input.
[0036] In an embodiment of the present application, when the electronic device displays a desktop or application interface, the user can trigger the electronic device to be in a target screenshot mode, and then the user can perform a screenshot input so that the electronic device can perform a screenshot operation on N interfaces and output the N screenshot images obtained by the screenshot operation in the form of a video.
[0037] It should be noted that the above-mentioned target screenshot mode can be understood as: in this target screenshot mode, the electronic device can generate a corresponding video based on the screenshot picture obtained by the screenshot operation, that is, the screenshot picture obtained by the screenshot operation is output in the form of a video.
[0038] Optionally, in an embodiment of the present application, a user may input a screenshot video control in a settings application to put the electronic device in a target screenshot mode; or, the electronic device may display a floating window on the screen of the electronic device, the floating window including a screenshot video control, and the user may input a screenshot video control in the floating window to put the electronic device in a target screenshot mode.
[0039] For example, the electronic device is a mobile phone. Figure 2 As shown, a floating window is displayed on the screen of the mobile phone, and the floating window includes a screenshot video control 10 and other controls (such as a screen recording control, etc.). The user can input the screenshot video control 10 to put the mobile phone in a target screenshot mode, so that the user can input the screenshot.
[0040] Optionally, in the embodiment of the present application, the above-mentioned N interfaces may include at least one of the following: the desktop of the electronic device (e.g., different pages in the desktop), the interface of the application of the electronic device (e.g., the interface of different application programs or different interfaces of the same application program). The specific interface may be determined according to actual use requirements, and the embodiment of the present application does not limit it.
[0041] Optionally, in an embodiment of the present application, the above-mentioned N interfaces can be interfaces that are displayed in sequence when the user triggers N inputs (one input among the N inputs corresponds to one interface), or can be interfaces that are played autonomously or displayed in sequence by the electronic device.
[0042] Optionally, in an embodiment of the present application, the above-mentioned screenshot input can be N screenshot inputs, that is, each time the electronic device displays an interface, the user performs a screenshot input for the interface.
[0043] Optionally, in the embodiment of the present application, the above step 201 can be specifically implemented by the following steps 201a and 201b.
[0044] Step 201a: When in the target screenshot mode, during the process of switching between M interfaces, the electronic device receives N screenshot inputs from the user.
[0045] In the embodiment of the present application, the above-mentioned N screenshot inputs correspond one-to-one to N interfaces among the M interfaces, and M is an integer greater than or equal to N.
[0046] It can be understood that each time the electronic device switches to an interface, the user can take a screenshot for that interface, or may not take a screenshot for that interface. That is, for the M interfaces of the electronic device, the user can take a screenshot for some or all of the M interfaces.
[0047] Optionally, in the embodiment of the present application, the above-mentioned screenshot input can be specifically a user pressing input on a physical button or a combination of physical buttons of the electronic device to trigger the electronic device to perform a screenshot operation; or, the above-mentioned screenshot input can be a user input to a screenshot control (such as a click input or a long press input, etc.) to trigger the electronic device to perform a screenshot operation; or, the above-mentioned screenshot input can be a user's voice input to the electronic device to trigger the electronic device to perform a screenshot operation. The specific operation can be determined according to actual use requirements, and the embodiment of the present application does not limit it.
[0048] Step 201b: For each screenshot input among the N screenshot inputs, the electronic device performs a screenshot operation on one interface among the N interfaces in response to the screenshot input to obtain N screenshot images.
[0049] It can be understood that, in the case where the above-mentioned screenshot input is N screenshot inputs, the electronic device can perform a screenshot operation on the interface corresponding to the screenshot input after each screenshot input by the user, so as to perform N screenshot operations on the N interfaces. That is, for the N interfaces in the process of switching M interfaces, when the first interface is displayed, the electronic device can receive the user's first screenshot input, and the first interface is one of the N interfaces; the electronic device can respond to the first screenshot input and perform a screenshot operation on the first interface to obtain the first screenshot picture; when switching from the first interface to the second interface, the electronic device can receive the user's second screenshot input, and the second interface is one of the N interfaces; the electronic device can respond to the second screenshot input and perform a screenshot operation on the second interface to obtain the second screenshot picture; and so on, until the electronic device receives the user's Nth screenshot input, and responds to the Nth screenshot input, performs a screenshot operation on an interface to obtain the Nth screenshot picture, so as to obtain N screenshot pictures.
[0050] Optionally, in an embodiment of the present application, the above-mentioned screenshot input may also be a one-time screenshot input, that is, after the electronic device displays N interfaces, the user performs a screenshot input.
[0051] Optionally, in an embodiment of the present application, when the above-mentioned screenshot input is a single screenshot input, the electronic device may perform N screenshot operations on the N interfaces according to the content of each interface recorded when the electronic device displays the N interfaces.
[0052] Optionally, in an embodiment of the present application, after obtaining a screenshot, the electronic device may display a window on the screen, and display the obtained screenshot in the window in the form of a thumbnail; or, the electronic device may display a first control on the screen, and after obtaining each screenshot, the electronic device may save the screenshot through the first control in descending order of image size.
[0053] For example, Figure 3 As shown, a first control 11 is displayed on the screen of the mobile phone. After the user takes a screenshot of an interface (such as XX's chat interface), the mobile phone can save the screenshot image corresponding to the interface through the first control 11 in descending order of image size.
[0054] In an embodiment of the present application, after the user inputs N screenshots to cause the electronic device to perform N screenshot operations on N interfaces and obtain N screenshot pictures, the electronic device can directly generate a video based on the N screenshot pictures, so as to send multiple screenshot pictures to other users in the form of video, without the user having to select each screenshot picture in turn to send the screenshot pictures in turn. This simplifies user operations and improves the continuity and flexibility of the electronic device in sending multiple screenshot pictures.
[0055] Step 202: The electronic device outputs a target video based on the N screenshot images.
[0056] In an embodiment of the present application, in one case, the electronic device can generate a target video based on all the screenshots in N screenshots. Specifically, the electronic device can directly generate the target video from all the screenshots; or, the electronic device can generate the target video from all the screenshots that have been edited (for example, image modification of the screenshots); or, the electronic device can generate the target video from a portion of the screenshots that have been edited and another portion of the screenshots that have not been edited. In another case, the electronic device can generate the target video based on some of the screenshots in N screenshots (for example, the screenshots remaining after deleting some of the screenshots in N screenshots).
[0057] Optionally, in an embodiment of the present application, after generating the target video, the electronic device can display the image of the target video on the screen, that is, play the target video, or can store the target video in the electronic device; or can send the target video to other devices through an application in the electronic device (for example, an application corresponding to N interfaces).
[0058] Optionally, in an embodiment of the present application, after the electronic device sends the target video to other devices, it may save the target video in the electronic device or delete the target video.
[0059] Optionally, in the embodiment of the present application, the above step 202 can be specifically implemented by the following step 202a or step 202b.
[0060] Step 202a: The electronic device uses the N screenshots as N video frames in a first order to generate and output a target video.
[0061] In an embodiment of the present application, each of the above-mentioned N video frames corresponds to a screenshot image among the N screenshot images, and the above-mentioned first order includes any of the following items: the order of N interface screenshots, the default display order of N screenshot images, and the display order of N screenshot images adjusted by the user.
[0062] In the embodiment of the present application, the electronic device can use N screenshots as N video frames, and each screenshot is maintained for a preset duration (e.g., 2 seconds) to record a video file to obtain a target video. It is understood that when playing the target video, the duration of each video frame in the target video is a preset duration (i.e., one video frame is displayed for each preset duration).
[0063] Optionally, in an embodiment of the present application, the electronic device may display a screenshot after obtaining each screenshot, or after obtaining N screenshots, the electronic device may display the N screenshots according to the memory size occupied by the screenshots or the content relevance of the screenshots.
[0064] Optionally, in an embodiment of the present application, after the electronic device obtains N screenshots, the user can adjust the display order of the N screenshots so that the electronic device uses the N screenshots after the adjusted display order as N video frames in sequence.
[0065] Step 202b: The electronic device synthesizes the N screenshot images in the first order to obtain a target image, generates a dynamic image based on the target image, and obtains and outputs a target video.
[0066] It can be understood that the above-mentioned target image can be understood as a long screenshot image, and the electronic device can play the target image in the form of a dynamic image, that is, when the electronic device plays the target video, the target image is fully displayed in the form of interface scrolling (for example, scrolling up and down or scrolling left and right).
[0067] Optionally, in an embodiment of the present application, after obtaining the target video, the electronic device may directly export the target video; or, after obtaining the target video, the electronic device may display a video export control on the screen, and the user may input the video export control to trigger the electronic device to export the target video.
[0068] Optionally, in an embodiment of the present application, when exporting a target video, the electronic device may display a progress bar on the screen to prompt the user of the progress of the video export.
[0069] For example, Figure 4 As shown, when the mobile phone is exporting the target video, a progress bar 12 may be displayed on the screen to prompt the user of the progress of the video export.
[0070] Optionally, in an embodiment of the present application, while playing the target video, the electronic device can display the user's operation process on N interfaces in an animated form (for example, a sliding operation process or a clicking operation process, or a long press operation process, a text prompt that it is a long press operation).
[0071] For example, Figure 5 As shown, when the mobile phone is playing the target video, the operation process of the user on each interface can be displayed in the form of animation. For example, if the user long presses an icon (such as a payment icon) in the interface of the application, the mobile phone can display a prompt message, and the content of the prompt message is: the user long presses the payment icon.
[0072] In an embodiment of the present application, the electronic device can generate a target video from N screenshot images in a first order to send it to other users. This can avoid the problem of disordered sending order of multiple screenshot images when the network condition of the electronic device is poor, thereby improving the continuity and accuracy of the electronic device sending multiple screenshot images.
[0073] Optionally, in an embodiment of the present application, before the above step 202, the screenshot method provided in the embodiment of the present application further includes the following steps 301 to 303.
[0074] Step 301: The electronic device displays a first control on the screen of the electronic device.
[0075] In the embodiment of the present application, the first control is used to display N screenshots.
[0076] Step 302: The electronic device receives a first input from a user to a first control.
[0077] Optionally, in an embodiment of the present application, the first input may be any possible form of input such as a click input or a long press input of the first control by the user, which may be determined based on actual usage requirements and is not limited by the embodiment of the present application.
[0078] Step 303: The electronic device displays N screenshots on the screen of the electronic device in response to the first input.
[0079] Optionally, in an embodiment of the present application, the electronic device may display N screenshots in sequence on the screen in the original size of the screenshots; or, the electronic device may display N screenshots in the form of thumbnails.
[0080] Optionally, in an embodiment of the present application, the electronic device may display N screenshots on the screen in a first order.
[0081] For example, Figure 6 As shown, the mobile phone displays a first control 11 on the screen, and the user can make a first input to the first control so that the mobile phone can display N screenshots in the form of thumbnails, that is, the thumbnails are arranged horizontally in sequence on the screen of the electronic device, and the user can swipe left or right to view all thumbnails.
[0082] In an embodiment of the present application, the electronic device can display a first control so that the user can directly trigger the electronic device to quickly display N screenshots through the first control, so that the user can view or edit the N screenshots.
[0083] The embodiment of the present application provides a screenshot method. When in the target screenshot mode, the electronic device can perform a screenshot operation on N interfaces according to the screenshot input of the user, obtain N screenshot images, and output a target video based on the N screenshot images. In this solution, after obtaining N screenshot images, the electronic device can directly generate a video file (i.e., the target video) based on the N screenshot images, thereby sending multiple screenshot images to other users in the form of a video file, without the user having to select each screenshot image in turn to send these screenshot images one by one. Therefore, the solution of the present application avoids the problems of missing screenshot images, sending failures, and disordered sending order, thereby simplifying user operations, improving the continuity and flexibility of the electronic device sending multiple screenshot images, and improving the human-computer interaction experience.
[0084] Optionally, in the embodiment of the present application, combined with Figure 1 ,like Figure 7As shown, before the above step 202, the screenshot method provided in the embodiment of the present application also includes the following steps 401 and 402, and the above step 202 can be specifically implemented by the following step 202c.
[0085] Step 401: The electronic device receives a second input from a user regarding a first screenshot among N screenshots.
[0086] In the embodiment of the present application, after the user triggers the electronic device to display N screenshots, the user can use the second input to make the electronic device edit any of the N screenshots. It should be noted that the electronic device performs editing operations in different ways depending on the input characteristics of the second input.
[0087] Optionally, in an embodiment of the present application, the second input may be a click input, a long press input, a sliding input or a drag input of the first screenshot by the user, etc. The specific input may be determined according to actual usage requirements and is not limited by the embodiment of the present application.
[0088] Step 402: The electronic device performs an editing operation on the first screenshot in response to a second input.
[0089] In the embodiment of the present application, the electronic device can perform a deletion operation, a replacement operation, a sorting operation, an image modification operation, etc. on the first screenshot image according to the second input.
[0090] Optionally, in an embodiment of the present application, the user can first make an input (such as a long press input) on the first screenshot to trigger the electronic device to display an editing control, which editing control includes at least one of the following: an image modification control, a replacement control, a deletion control, a sorting control, etc., so that the user can make a second input to the editing control to enable the electronic device to perform an editing operation corresponding to the editing control on the first screenshot.
[0091] For example, Figure 8 As shown, after the user long presses the first screenshot image, the mobile phone can display editing controls (such as image modification controls, replacement controls, deletion controls, and sorting controls, etc.) through a floating window, and then the user can make a second input to any of these controls so that the mobile phone uses the editing method of any control to edit the first screenshot image.
[0092] Optionally, in the embodiment of the present application, the above step 402 can be specifically implemented by any one of the following steps 402a to 402d.
[0093] Step 402a: The electronic device executes a deletion operation on the first screenshot in response to the second input.
[0094] Optionally, in an embodiment of the present application, the second input may be a user's dragging input of the first screenshot (for example, dragging the first screenshot to the edge area of the screen) to trigger the electronic device to delete the first screenshot; or, the second input may be a user's click input of the delete control to trigger the electronic device to delete the first screenshot.
[0095] Optionally, in an embodiment of the present application, after the electronic device deletes the first screenshot image, the electronic device may adjust the display positions of other screenshot images, for example, by sequentially moving the remaining screenshot images (i.e., screenshot images other than the first screenshot image) forward.
[0096] Step 402b: The electronic device replaces the first screenshot image with the second screenshot image in response to the second input.
[0097] Optionally, in an embodiment of the present application, the second input may be a long press input of the user on the first screenshot image, so as to trigger the electronic device to replace the first screenshot image with a preset screenshot image (e.g., the second screenshot image); or, the second input may be a click input of the user on the replacement control, so as to trigger the electronic device to replace the first screenshot image with a preset screenshot image.
[0098] Optionally, in an embodiment of the present application, the second input may include a first sub-input and a second sub-input, wherein the first sub-input is a user's long press input on the first screenshot image, or a click input on the replacement control, to trigger the electronic device to display at least one stored screenshot image; the second sub-input is a user's selection input of a second screenshot image in at least one screenshot image, to trigger the electronic device to replace the first screenshot image with the second screenshot image.
[0099] Optionally, in an embodiment of the present application, the second input may include a first sub-input and a second sub-input. The first sub-input is a user's long press input on the first screenshot image, or a click input on the replacement control, to trigger the electronic device to re-enter the target screenshot mode; the second sub-input is a user's screenshot input on an interface, to trigger the electronic device to take a screenshot of the interface, obtain a screenshot image, and replace the first screenshot image with the screenshot image.
[0100] Optionally, in an embodiment of the present application, the electronic device performs a screenshot operation on an interface according to the second sub-input. After obtaining a screenshot image, a prompt message can be displayed on the screen to prompt the user whether to replace the first screenshot image with the screenshot image, and when the user triggers the replacement, the first screenshot image is replaced with the screenshot image.
[0101] Optionally, in an embodiment of the present application, the electronic device performs a screenshot operation on an interface according to the second sub-input, and after obtaining a screenshot image, all obtained screenshot images (ie, N screenshot images and the one screenshot image) can be displayed on the screen.
[0102] Step 402c: The electronic device performs a sequence adjustment operation on the first screenshot image in response to the second input.
[0103] Optionally, in an embodiment of the present application, the second input may be a user's dragging input of the first screenshot image (for example, dragging the first screenshot image to the location of a certain screenshot image) to trigger the electronic device to adjust the display order of the first screenshot image; or, the second input may be a user's click input of the sorting control to trigger the electronic device to adjust the display order of the first screenshot image.
[0104] It can be understood that when the electronic device adjusts the display order of the first screenshot pictures, the display order of some or all of the other screenshot pictures is also adjusted.
[0105] Optionally, in the embodiment of the present application, after the electronic device adjusts the display position of the first screenshot image, the electronic device may sequentially move other screenshot images forward or backward to fill in the positions.
[0106] Step 402d: The electronic device performs an image modification operation on the first screenshot image in response to the second input.
[0107] Optionally, in an embodiment of the present application, the second input may include a first sub-input and a second sub-input. The first sub-input is a user's long press input on the first screenshot image, or a click input on an image modification control, to trigger the electronic device to display an image modification interface, the image modification interface includes at least one modification control, each modification control corresponds to a type of image modification method; the second sub-input is a user's click input on any modification control in at least one modification control, to trigger the electronic device to use the image modification method corresponding to the arbitrary modification control to perform an image modification operation on the first screenshot image.
[0108] Optionally, in an embodiment of the present application, the above-mentioned image modification method may include at least one of the following: a text adding method, an image beautification method (for example, a filter adding method, an image parameter (for example, brightness, contrast, white balance, etc.) adjustment method, an image mosaic, an image graffiti method, etc.), an image cropping method, etc.
[0109] For example, in combination Figure 8 ,like Fig. 9As shown, after the user clicks and inputs the image modification control, the mobile phone can display the image modification interface 13, which includes at least one modification control (such as "text addition" control, "graffiti" control, "crop" control and "filter" control, etc.), and the user can input any modification control (such as "graffiti" control) in the at least one modification control, so that the mobile phone can use the image modification method corresponding to the arbitrary modification control to perform an image modification operation on the first screenshot image. The user can modify or cover the private information content in the screenshot image by image mosaic or graffiti, etc., to avoid the leakage of the user's privacy.
[0110] In an embodiment of the present application, the electronic device generates an instruction video by taking screenshots of the execution process of the operating application. The user can adjust the order of the screenshot images, replace images, delete images and / or modify images. While ensuring the continuity of the entire operation guidance process, the convenience of user operation and the flexibility and diversity of outputting the target video are guaranteed.
[0111] Step 202c: The electronic device outputs the target video based on the L screenshots obtained after the editing operation.
[0112] Wherein, L is a positive integer less than or equal to N.
[0113] Optionally, in an embodiment of the present application, when executing the above step 402a, the above L screenshot pictures are pictures other than the first screenshot picture in the N screenshot pictures.
[0114] Optionally, in an embodiment of the present application, when executing the above step 402b, the above L screenshot pictures include the second screenshot picture and pictures of the N screenshot pictures except the first screenshot picture.
[0115] Optionally, in an embodiment of the present application, when executing the above step 402c, the above L screenshot images are N screenshot images after the sequence is adjusted.
[0116] Optionally, in an embodiment of the present application, when executing the above step 402d, the above L screenshot images are N screenshot images after the images are modified.
[0117] In an embodiment of the present application, the electronic device can first flexibly edit any screenshot among N screenshots according to the user's second input, and then output the target video based on the screenshot obtained after the editing operation, thereby improving the flexibility and diversity of the electronic device in outputting the target video.
[0118] It should be noted that the screenshot method provided in the embodiment of the present application can be executed by a screenshot device, or an electronic device, or a control module in the screenshot device for executing the screenshot method. In the embodiment of the present application, the screenshot device provided in the embodiment of the present application is described by taking the screenshot method executed by the screenshot device as an example.
[0119] Fig.10 A possible structural diagram of a screenshot device involved in an embodiment of the present application is shown. Fig.10 As shown, the screen capture device 70 may include: a screen capture module 71 and an output module 72.
[0120] The screenshot module 71 is used to perform a screenshot operation on N interfaces in the electronic device based on the screenshot input of the user, and obtain N screenshot images, each of which corresponds to one of the N interfaces, where N is an integer greater than 1. The output module 72 is used to output the target video based on the N screenshot images obtained by the screenshot module.
[0121] In one possible implementation, the above-mentioned screenshot module 71 is specifically used to receive N screenshot inputs from the user during the process of executing M interface switching, the N screenshot inputs correspond one-to-one to N interfaces among the M interfaces, and M is an integer greater than or equal to N; and for each screenshot input among the N screenshot inputs, in response to one screenshot input, a screenshot operation is performed on one interface among the N interfaces to obtain N screenshot pictures.
[0122] In one possible implementation, the output module 72 is specifically used to generate and output a target video by taking N screenshots as N video frames in a first order, where each video frame corresponds to a screenshot; or, in accordance with the first order, synthesize the N screenshots to obtain a target image, and generate a dynamic image based on the target image to obtain and output the target video; wherein the first order includes any one of the following items: the order of taking screenshots of N interfaces, the default display order of N screenshots, and the display order of N screenshots adjusted by the user.
[0123] In a possible implementation, the screenshot device 70 provided in the embodiment of the present application further includes: a display module and a receiving module. The display module is used to display a first control on the screen of the electronic device before the output module 72 outputs the target video based on the N screenshot images, and the first control is used to display the N screenshot images. The receiving module is used to receive a first input from a user to the first control displayed by the display module. The display module is also used to display the N screenshot images on the screen of the electronic device in response to the first input received by the receiving module.
[0124] In a possible implementation, the screenshot device 70 provided in the embodiment of the present application further includes: a receiving module and an editing module. The receiving module is used to receive a second input from a user on a first screenshot image among N screenshot images before the output module 72 outputs the target video based on the N screenshot images. The editing module is used to perform an editing operation on the first screenshot image in response to the second input received by the receiving module. The above-mentioned output module is specifically used to output the target video based on the L screenshot images obtained after the editing operation of the editing module, where L is a positive integer less than or equal to N.
[0125] An embodiment of the present application provides a screenshot device. After obtaining N screenshot images, the screenshot device can directly generate a video file (i.e., a target video) based on the N screenshot images, thereby sending multiple screenshot images to other users in the form of a video file, without the need for the user to select each screenshot image in turn to send these screenshot images one by one. Therefore, the solution of the present application avoids the problems of missed screenshot images, sending failures, and disordered sending order, thereby simplifying user operations, improving the continuity and flexibility of the screenshot device in sending multiple screenshot images, and improving the human-computer interaction experience.
[0126] The screenshot device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in an electronic device. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0127] The screenshot device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0128] The screenshot device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.
[0129] Alternatively, if Fig.11As shown, an embodiment of the present application also provides an electronic device 90, including a processor 91, a memory 92, and a program or instruction stored in the memory 92 and executable on the processor 91. When the program or instruction is executed by the processor 91, each process of the above-mentioned method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0130] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0131] Fig.12 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0132] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
[0133] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.12 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0134] Among them, the processor 110 is used to perform a screenshot operation on N interfaces in the electronic device based on the user's screenshot input, obtain N screenshot images, each screenshot image corresponds to one of the N interfaces, and N is an integer greater than 1; and output the target video based on the N screenshot images.
[0135] The embodiment of the present application provides an electronic device. After obtaining N screenshots, the electronic device can directly generate a video file (i.e., a target video) based on the N screenshots, thereby sending multiple screenshots to other users in the form of a video file without the user having to select each screenshot in turn to send these screenshots one by one. Therefore, the solution of the present application avoids the problems of missed selection of screenshots, sending failures, and disordered sending order, thereby simplifying user operations, improving the continuity and flexibility of the electronic device in sending multiple screenshots, and improving the human-computer interaction experience
[0136] Optionally, in an embodiment of the present application, the processor 110 is specifically used to perform a screenshot operation on N interfaces in the electronic device based on the user's screenshot input to obtain N screenshot images, and in the process of switching M interfaces, receive N screenshot inputs from the user, the N screenshot inputs correspond one-to-one to N interfaces among the M interfaces, and M is an integer greater than or equal to N; for each screenshot input among the N screenshot inputs, in response to one screenshot input, perform a screenshot operation on one interface among the N interfaces to obtain N screenshot images.
[0137] Optionally, in an embodiment of the present application, the processor 110 is specifically used to output a target video based on N screenshots, and in a first order, use the N screenshots as N video frames to generate and output the target video, where each video frame corresponds to a screenshot; or, in a first order, synthesize the N screenshots to obtain a target image, and generate a dynamic image based on the target image to obtain and output the target video; wherein the first order includes any of the following items: the order of screenshots of N interfaces, the default display order of N screenshots, and the display order of N screenshots adjusted by the user.
[0138] Optionally, in an embodiment of the present application, the display unit 106 is used to display a first control on the screen of the electronic device, where the first control is used to display N screenshots. The user input unit 107 is used to receive a first input from a user to the first control. The display unit 106 is also used to display N screenshots on the screen of the electronic device in response to the first input.
[0139] Optionally, in the embodiment of the present application, the user input unit 107 is further configured to receive a second input from a user on a first screenshot image among the N screenshot images before the processor 110 outputs the target video based on the N screenshot images. The processor 110 is further configured to perform an editing operation on the first screenshot image in response to the second input. The processor 110 is specifically configured to output the target video based on the L screenshot images obtained after the editing operation, where L is a positive integer less than or equal to N.
[0140] Optionally, in an embodiment of the present application, processor 110 is specifically used to perform a deletion operation on the first screenshot picture, wherein the L screenshot pictures are pictures in the N screenshot pictures excluding the first screenshot picture; or, replace the first screenshot picture with the second screenshot picture, wherein the L screenshot pictures include the second screenshot picture and pictures in the N screenshot pictures excluding the first screenshot picture; or, perform a sequence adjustment operation on the first screenshot picture, wherein the L screenshot pictures are the N screenshot pictures after the sequence adjustment; or, perform a picture modification operation on the first screenshot picture, wherein the L screenshot pictures are the N screenshot pictures after the picture modification.
[0141] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.
[0142] The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, they will not be described again here.
[0143] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 109 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 110 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.
[0144] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0145] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0146] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0147] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0148] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0149] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0150] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A screenshot method, characterized in that: The method comprises: Based on the screenshot input of the user, a screenshot operation is performed on N interfaces of the electronic device to obtain N screenshot images, each of which corresponds to one interface of the N interfaces, where N is an integer greater than 1; Based on the N screenshots, output a target video; Before outputting the target video based on the N screenshots, the method further includes: Receiving a second input from a user regarding a first screenshot image among the N screenshot images; In response to the second input, performing an editing operation on the first screenshot; The outputting a target video based on the N screenshot images includes: Based on the L screenshots obtained after the editing operation, output the target video, where L is a positive integer less than or equal to N; The editing operation includes at least one of the following: sequence adjustment, picture replacement, picture deletion or picture modification.
2. The method according to claim 1, characterized in that The method of performing a screenshot operation on N interfaces in the electronic device based on the screenshot input of the user to obtain N screenshot images includes: In the process of executing the switching of the M interfaces, receiving N screenshot inputs from the user, wherein the N screenshot inputs correspond one-to-one to N interfaces among the M interfaces, and M is an integer greater than or equal to N; For each of the N screenshot inputs, in response to one screenshot input, a screenshot operation is performed on one of the N interfaces to obtain the N screenshot images.
3. The method according to claim 1 or 2, characterized in that: The outputting a target video based on the N screenshot images includes: According to the first order, the N screenshots are used as N video frames to generate and output the target video, each of the video frames corresponding to a screenshot; or, According to the first order, the N screenshot images are synthesized to obtain a target image, and a dynamic image is generated based on the target image to obtain and output the target video; Among them, the first order includes any one of the following items: the order of taking screenshots of the N interfaces, the default display order of the N screenshot images, and the display order of the N screenshot images adjusted by the user.
4. The method according to claim 1, characterized in that: Before outputting the target video based on the N screenshots, the method further includes: Displaying a first control on the screen of the electronic device, where the first control is used to display the N screenshots; Receiving a first input from a user to the first control; In response to the first input, the N screenshots are displayed on the screen of the electronic device.
5. The method according to claim 1, characterized in that The performing an editing operation on the first screenshot picture includes: Performing a deleting operation on the first screenshot picture, wherein the L screenshot pictures are pictures among the N screenshot pictures except the first screenshot picture; or, replacing the first screenshot picture with a second screenshot picture, wherein the L screenshot pictures include the second screenshot picture and pictures of the N screenshot pictures except the first screenshot picture; or, Performing a sequence adjustment operation on the first screenshot pictures, wherein the L screenshot pictures are the N screenshot pictures after the sequence adjustment; or, A picture modification operation is performed on the first screenshot picture, wherein the L screenshot pictures are the N screenshot pictures after the picture modification.
6. A screen capture device, characterized in that: The device comprises: a screen capture module, an output module, a receiving module and an editing module; The screenshot module is used to perform a screenshot operation on N interfaces in the electronic device based on the screenshot input of the user, and obtain N screenshot pictures, each of which corresponds to one interface among the N interfaces, where N is an integer greater than 1; The output module is used to output the target video based on the N screenshot pictures obtained by the screenshot module; The receiving module is configured to receive a second input from a user on a first screenshot image among the N screenshot images before the output module outputs the target video based on the N screenshot images; The editing module is configured to perform an editing operation on the first screenshot image in response to the second input received by the receiving module; The output module is specifically used to output the target video based on L screenshots obtained after the editing operation of the editing module, where L is a positive integer less than or equal to N; The editing operation includes at least one of the following: sequence adjustment, picture replacement, picture deletion or picture modification.
7. The device according to claim 6, characterized in that The screenshot module is specifically used to receive N screenshot inputs from the user during the process of switching between the M interfaces, wherein the N screenshot inputs correspond one-to-one to N interfaces among the M interfaces, and M is an integer greater than or equal to N; And for each screenshot input of the N screenshot inputs, in response to one screenshot input, a screenshot operation is performed on one interface of the N interfaces to obtain the N screenshot images.
8. The device according to claim 6 or 7, characterized in that The output module is specifically used to use the N screenshots as N video frames in a first order to generate and output the target video, each of the video frames corresponding to a screenshot; or, in a first order, synthesize the N screenshots to obtain a target picture, generate a dynamic picture based on the target picture, and obtain and output the target video; Among them, the first order includes any one of the following items: the order of taking screenshots of the N interfaces, the default display order of the N screenshot images, and the display order of the N screenshot images adjusted by the user.
9. The device according to claim 6, characterized in that The device also includes: a display module and a receiving module; The display module is used to display a first control on the screen of the electronic device before the output module outputs the target video based on the N screenshot pictures, wherein the first control is used to display the N screenshot pictures; The receiving module is used to receive a first input from a user on the first control displayed by the display module; The display module is further used to display the N screenshots on the screen of the electronic device in response to the first input received by the receiving module.
10. The device according to claim 6, characterized in that The editing module is specifically used for: Performing a deleting operation on the first screenshot picture, wherein the L screenshot pictures are pictures among the N screenshot pictures except the first screenshot picture; or, replacing the first screenshot picture with a second screenshot picture, wherein the L screenshot pictures include the second screenshot picture and pictures of the N screenshot pictures except the first screenshot picture; or, Performing a sequence adjustment operation on the first screenshot pictures, wherein the L screenshot pictures are the N screenshot pictures after the sequence adjustment; or, A picture modification operation is performed on the first screenshot picture, wherein the L screenshot pictures are the N screenshot pictures after the picture modification.
Citation Information
Patent Citations
Method and device for generating demo file of mobile terminal based on screen capture
CN105045823A
Screen capture method and terminal equipment
CN110658971A