WO2023016476A1 - Screen capture method and device - Google Patents

Screen capture method and device Download PDF

Info

Publication number
WO2023016476A1
WO2023016476A1 PCT/CN2022/111323 CN2022111323W WO2023016476A1 WO 2023016476 A1 WO2023016476 A1 WO 2023016476A1 CN 2022111323 W CN2022111323 W CN 2022111323W WO 2023016476 A1 WO2023016476 A1 WO 2023016476A1
Authority
WO
WIPO (PCT)
Prior art keywords
screenshots
screen capture
screenshot
input
electronic device
Prior art date
Application number
PCT/CN2022/111323
Other languages
French (fr)
Chinese (zh)
Inventor
吴家风
Original Assignee
维沃移动通信(杭州)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信(杭州)有限公司 filed Critical 维沃移动通信(杭州)有限公司
Publication of WO2023016476A1 publication Critical patent/WO2023016476A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/74Browsing; Visualisation therefor

Definitions

  • the present application belongs to the technical field of communications, and in particular relates to a screen capture method and device.
  • a user shares the specific operation process of an application with other users, he can perform a screenshot operation every time a specific operation is performed in the application, so as to screenshot the page of the application during each operation, so as to obtain Multiple screenshots; then the user can send the multiple screenshots to other users in sequence, so that other users can determine the specific operation process of the application according to these screenshots.
  • the purpose of the embodiments of the present application is to provide a screen capture method and device, which can solve the problem of poor continuity of multiple screen capture pictures sent by an electronic device.
  • the embodiment of the present application provides a screen capture method, the screen capture method includes: based on the user's screen capture input, perform screen capture operations on N interfaces in the electronic device to obtain N screen capture pictures, and each screen capture picture corresponds to One of the N interfaces, where N is an integer greater than 1; based on the N screenshots, a target video is output.
  • the embodiment of the present application provides a screen capture device, the screen capture device includes: a screen capture module and an output module; the screen capture module is used to perform screen capture operations on N interfaces in the electronic device based on the user's screen capture input, and obtain N screenshots, each of which corresponds to one of the N interfaces, where N is an integer greater than 1; an output module configured to output a target video based on the N screenshots obtained by the screenshot module.
  • an embodiment of the present application provides a readable storage medium, on which a program or an 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 .
  • Fig. 2 is one of the example schematic diagrams of the interface of a mobile phone provided by the embodiment of the present application;
  • Fig. 3 is the second schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application.
  • Fig. 4 is the third schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application.
  • Fig. 5 is the fourth schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application.
  • Fig. 7 is the second flowchart of a screenshot method provided by the embodiment of the present application.
  • Fig. 8 is the sixth schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application.
  • Fig. 9 is the seventh schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a screen capture device provided in an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the user when the electronic device is in the target screen capture mode, the user can input a screen capture of the screen of the electronic device, so that the electronic device can perform screen capture operations on multiple interfaces, and obtain multiple screen capture pictures, and then the electronic device can generate and output a target video based on the multiple screen capture pictures.
  • the user can perform N times of screen capture input, that is, each time the electronic device displays an interface, the user performs a screen capture input on the interface, so that the electronic device will be displayed on the screen every time the user performs a screen capture input.
  • the interface corresponding to the one screen capture input performs a screen capture operation, so as to perform N times of screen capture operations on 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, the electronic device After the N interfaces are displayed, the user performs screen capture input, so that the electronic device performs N times of screen capture operations according to the content records of the N interfaces.
  • FIG. 1 shows a flow chart of the screen capture method provided in the embodiment of the present application.
  • the screenshot method provided in the embodiment of the present application may include the following steps 201 and 202 .
  • each of the above N screenshots corresponds to one of the N interfaces, and N is an integer greater than 1.
  • the electronic device when in the target screen capture mode, may perform screen capture operations on N interfaces in the electronic device based on the user's screen capture input.
  • the user when the electronic device displays the desktop or the interface of the application program, the user can trigger the electronic device to be in the target screen capture mode, and then the user can perform screen capture input, so that the electronic device can perform screen capture operations on N interfaces, And output the N screen capture pictures obtained by the screen capture operation in the form of video.
  • the above-mentioned target screen capture mode can be understood as: in the target screen capture mode, the electronic device can generate a corresponding video according to the screen capture picture obtained by the screen capture operation, that is, output the screen capture picture obtained by the screen capture operation in the form of a video.
  • the electronic device is a mobile phone as an example for description.
  • a floating window is displayed on the screen of the mobile phone, including a screenshot video control 10 and other controls (such as a screen recording control, etc.), and the user can input the screenshot video control 10 so that the mobile phone is in the Target screenshot mode Target screenshot mode so that the user can take a screenshot input.
  • the above-mentioned N interfaces may include at least one of the following: the desktop of the electronic device (such as different pages in the desktop), the interface of the application program of the electronic device (such as the interface of different application programs or the same different interfaces of an application). Specifically, it may be determined according to actual usage requirements, and is not limited in this embodiment of the application.
  • the above screen capture input may be N times of screen capture input, that is, each time the electronic device displays an interface, the user performs a screen capture input on the interface once.
  • the above N times of screenshot input correspond one-to-one to N interfaces among the M interfaces, and M is an integer greater than or equal to N.
  • Step 201b For each screen capture input in the N times of screen capture input, the electronic device performs a screen capture operation on one of the N interfaces in response to one screen capture input, so as to obtain N screen capture pictures.
  • the electronic device may perform a screen capture operation on the interface corresponding to the screen capture input every time the user performs a screen capture input, so as to perform N times of screen capture on N interfaces operate.
  • 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 For the first screen capture input, the screen capture operation is performed on the first interface to obtain the first screen capture picture; in the case of switching from the first interface to the second interface, the electronic device can receive the user's second screen capture input, and the second The interface is one of the N interfaces; the electronic device may respond to the second screen capture input and perform a screen capture operation on the second interface to obtain a second screen capture picture; and so on until the electronic device receives the user's Nth screen capture input, and in response to the Nth screen capture input, perform a screen capture operation on an interface to obtain the Nth screen capture picture, so as to obtain N screen capture pictures.
  • the electronic device may perform N times of screen capture on N interfaces according to the content of each interface recorded by the electronic device when displaying N interfaces operate.
  • 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 The first control is displayed on the screen, and each time the electronic device obtains a screenshot, it can save the screenshot through the first control in a manner of decreasing the size of the picture.
  • the electronic device can directly generate a video based on the N screen captures, as follows: Send multiple screenshots to other users in the form of video, without the need for the user to select each screenshot in turn to send the screenshots in turn, thus simplifying user operations and improving the continuity and reliability of electronic devices sending multiple screenshots flexibility.
  • Step 202 the electronic device outputs the target video based on the N screenshots.
  • the electronic device after the electronic device generates the target video, it can display the target video on the screen, that is, play the target video, or store the target video in the electronic device;
  • An application program in the device (for example, an application program corresponding to the N interfaces) sends the target video to other devices.
  • the electronic device 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.
  • step 202 may be specifically implemented through the following step 202a or step 202b.
  • step 202a the electronic device generates and outputs the target video by taking the N screenshots as N video frames according to the first sequence.
  • each of the above-mentioned N video frames corresponds to one of the N screenshots
  • the above-mentioned first order includes any of the following items: the sequence of the N interface screenshots, the N screenshots The default display order of pictures, and the display order of N screenshot pictures adjusted by the user.
  • the electronic device may take N screenshots as N video frames, and maintain each screenshot for a preset duration (for example, 2 seconds) to record a video file to obtain a target video.
  • a preset duration for example, 2 seconds
  • the duration of each video frame in the target video is a preset duration (that is, one video frame is displayed for each preset duration).
  • the electronic device may display a screenshot after each screenshot is obtained, or after the electronic device obtains N screenshots, it may The content relevance of the screenshot pictures, etc., and display the N screenshot pictures.
  • the user can adjust the display order of the N screenshots, so that the electronic device uses the adjusted display sequence of the N screenshots in turn as N video frames.
  • Step 202b The electronic device synthesizes the N screenshots according to the first sequence to obtain a target picture, and generates a moving picture based on the target picture, and obtains and outputs the target video.
  • the electronic device after the electronic device obtains the target video, it can directly export the target video; or, after the electronic device obtains the target video, it can display a video export control on the screen, and the user can export the video Controls are input to trigger the electronic device to export the target video.
  • a progress bar may be displayed on the screen to remind the user of the progress of the video export.
  • the electronic device while the electronic device is playing the target video, it can display the user's operation process on the N interfaces in animation (for example, a sliding operation process or a click operation process, or a long press operation process). , prompting in text form that it is a long press operation).
  • animation for example, a sliding operation process or a click operation process, or a long press operation process.
  • the operation process of the user's operation on each interface can be displayed in the form of animation, for example, the user's operation on an identification in the interface of the application program (such as payment logo), the mobile phone may display prompt information, the content of which is: the user has long pressed and input the payment logo.
  • the screen capture method provided in the embodiment of the present application further includes the following steps 301 to 303.
  • Step 301 the electronic device displays a first control on a screen of the electronic device.
  • the above-mentioned first control is used to display N screenshots.
  • Step 302 the electronic device receives a first input from a user on a first control.
  • the above-mentioned first input may be input in any possible form such as the user's click control input or long press input on the first control, which may be determined according to actual usage requirements, and the embodiment of this application does not limit.
  • Step 303 the electronic device responds to the first input, and displays N screenshots on the screen of the electronic device.
  • the electronic device may sequentially display the N screenshots on the screen with the original size of the screenshots; or, the electronic device may display the N screenshots in the form of thumbnails.
  • the mobile phone displays a first control 11 on the screen, and the user can perform a first input to the first control, so that the mobile phone can display N screenshots in the form of thumbnails, that is, in the electronic
  • the thumbnails are arranged horizontally on the screen of the device, and the user can swipe left or right to view all the thumbnails.
  • An embodiment of the present application provides a screen capture method.
  • the electronic device can perform screen capture operations on N interfaces according to the user's screen capture input to obtain N screen capture pictures, and based on the N screen capture pictures, Output the target video.
  • the electronic device can directly generate a video file (i.e. target video) based on the N screenshots, so as to send multiple screenshots to other users in the form of video files without The user sequentially selects each screenshot to send these screenshots one by one. Therefore, the solution of this application avoids the problems of missed selection of screenshots, failure to send, and disordered sending order, thereby simplifying user operations and improving electronic equipment.
  • the continuity and flexibility of the screenshots improves the human-computer interaction experience.
  • the screenshot method provided by the embodiment of this application further includes the following steps 401 and 402, and the above step 202 specifically It can be realized through the following step 202c.
  • step 401 the electronic device receives a second input from a user on a first screenshot among N screenshots.
  • the user may pass a second input, so that the electronic device can edit any of the N screenshots. It should be noted that, the input features of the second input are different, and the manners of the electronic device to perform the editing operation are different.
  • the above-mentioned second input may be the user's click input, long press input, slide input, or drag input on the first screenshot, which may be determined according to actual usage requirements. No restrictions.
  • step 402 the electronic device performs an editing operation on the first screenshot in response to the second input.
  • the electronic device may perform a deletion operation, a replacement operation, a sorting operation, a picture modification operation, and the like on the first screenshot according to the second input.
  • the user may first perform an input (such as a long press input) on the first screenshot to trigger the electronic device to display an editing control
  • the editing control includes at least one of the following: picture modification control, replacement control, delete control, sorting control, etc., so that the user can make a second input to the editing control, so that the electronic device performs an editing operation corresponding to the editing control on the first screenshot.
  • the mobile phone may display editing controls (such as picture modification controls, replacement controls, deletion controls, and sorting controls, etc.) through a floating window, and then the user A second input can be made to any of these controls, so that the mobile phone can edit the first screenshot in the same way as the arbitrary control.
  • editing controls such as picture modification controls, replacement controls, deletion controls, and sorting controls, etc.
  • the foregoing step 402 may be specifically implemented through any one of the following steps 402a to 402d.
  • step 402a the electronic device performs a deletion operation on the first screenshot in response to the second input.
  • the above-mentioned second input may be a user's drag input on the first screenshot (for example, dragging the first screenshot to the edge area of the screen), so as to trigger the electronic device to delete the first screenshot.
  • a picture; or, the above-mentioned second input may be a user's click input on the delete control, so as to trigger the electronic device to delete the first screenshot picture.
  • the electronic device can adjust the display positions of other screenshots, for example, the remaining screenshots (that is, screenshots other than the first screenshot) Fill forward.
  • Step 402b the electronic device replaces the first screenshot with the second screenshot in response to the second input.
  • the second input may include a first sub-input and a second sub-input.
  • the first sub-input is the user's long-press input on the first screenshot, or the click input on the replacement control, so as to trigger the electronic device to display at least one stored screenshot;
  • the second sub-input is the user's input of at least one screenshot.
  • a selection input of the second screen capture in the trigger to trigger the electronic device to replace the first screen capture with the second screen capture.
  • the second input may include a first sub-input and a second sub-input.
  • the first sub-input is the user's long-press input on the first screen capture picture, or the click input on the replacement control, so as to trigger the electronic device to re-enter the target screen capture mode;
  • the second sub-input is the user's screen capture input on an interface, with The electronic device is triggered to perform a screen capture operation on the interface to obtain a screen capture picture, and replace the first screen capture picture with the screen capture picture.
  • the electronic device performs a screenshot operation on an interface according to the second sub-input, and after obtaining a screenshot, it may display prompt information on the screen to prompt the user whether to replace the first screenshot For the one screenshot, and when the user triggers the replacement, replace the first screenshot with the one screenshot.
  • the electronic device performs a screenshot operation on an interface according to the second sub-input, and after obtaining a screenshot, all obtained screenshots (that is, the N screenshots and the one screenshot ) are displayed on the screen.
  • step 402c the electronic device performs an order adjustment operation on the first screenshot in response to the second input.
  • the above-mentioned second input may be a drag input of the user on the first screenshot (for example, dragging the first screenshot to the location of a certain screenshot), so as to trigger the adjustment of the electronic device.
  • the electronic device adjusts the display order of the first screenshot, it also adjusts the display order of some or all of the other screenshots.
  • step 402d the electronic device performs a picture modification operation on the first screenshot in response to the second input.
  • the second input may include a first sub-input and a second sub-input.
  • the first sub-input is the user's long-press input on the first screen capture picture, or a click input on the picture modification control to trigger the electronic device to display the picture modification interface.
  • the picture modification interface includes at least one modification control, and each modification The controls respectively correspond to a picture modification method; the second sub-input is the user's click input on any modification control in at least one modification control, so as to trigger the electronic device to adopt the picture modification method corresponding to the arbitrary modification control, and the first screenshot image Perform image modification operations.
  • the above-mentioned image modification methods may include at least one of the following: text adding methods, image beautification methods (such as adding filters, image parameters (such as brightness, contrast, white balance, etc.) adjustment methods, image mosaic, image graffiti, etc.), image cropping, etc.
  • the mobile phone can display a picture modification interface 13, which includes at least one modification control (such as "text addition” control, "graffiti” control, “cutting” control and “filter” control, etc.), 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 Modify the image modification method corresponding to the control arbitrarily to perform an image modification operation on the first screenshot image.
  • modification control such as "text addition” control, "graffiti” control, "cutting” control and “filter” control, etc.
  • 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 Modify the image modification method corresponding to the control arbitrarily to perform an image modification operation on the first screenshot image.
  • Users can modify or cover the private information content in the screenshots by means of picture mosaic or graffiti, etc., to avoid leakage of user privacy.
  • the electronic device generates a guide video by taking a screenshot of the execution process of the operating application program.
  • the user can perform operations such as sequence adjustment, picture replacement, picture deletion, and/or picture modification on the screenshots to ensure that the entire operation While guiding the continuity of the process, it ensures the convenience of user operation and the flexibility and diversity of the output target video.
  • Step 202c the electronic device outputs the target video based on the L screenshots obtained after the editing operation.
  • L is a positive integer less than or equal to N.
  • the above L screenshots are pictures except the first screenshot among the N screenshots.
  • the above L screenshots include the second screenshot and pictures other than the first screenshot among the N screenshots.
  • the above L screenshots are N screenshots after picture modification.
  • the electronic device can flexibly edit any of the N screenshots according to the user's second input, and then output the target video based on the screenshot obtained after the editing operation. It improves the flexibility and diversity of the output target video of the electronic equipment.
  • the screen capture method provided in the embodiment of the present application may be executed by a screen capture device, or an electronic device, or a control module in the screen capture device for executing the screen capture method.
  • the screen capture device provided in the embodiment of the present application is described by taking the screen capture device executing the screen capture method as an example.
  • FIG. 10 shows a possible structural schematic diagram of a screen capture device involved in an embodiment of the present application.
  • the screen capture device 70 may include: a screen capture module 71 and an output module 72 .
  • the screen capture module 71 is configured to perform screen capture operations on N interfaces in the electronic device based on the user's screen capture input, to obtain N screen capture pictures, each screen capture picture corresponds to one of the N interfaces, and N is greater than 1 an integer of .
  • the output module 72 is configured to output the target video based on the N screenshots obtained by the screenshot module.
  • the screen capture module 71 is specifically configured to receive N times of screen capture input from the user during the process of switching between M interfaces, and the N times of screen capture input and the N interfaces of the M interfaces are one by one
  • M is an integer greater than or equal to N; and for each of the N screen capture inputs, in response to one screen capture input, perform a screen capture operation on one of the N interfaces to obtain N screen capture images.
  • the above-mentioned output module 72 is specifically configured to use N screen capture pictures as N video frames according to the first sequence, generate and output the target video, and each video frame corresponds to a screen capture picture; Or, according to the first order, N pieces of screenshots are synthesized to obtain a target picture, and an animation picture is generated based on the target picture, and the target video is obtained and output; wherein, the first order includes any of the following: for N The sequence of screenshots of the interface, the default display sequence of N screenshots, and the display sequence of N screenshots adjusted by the user.
  • the screen capture device 70 provided in the embodiment of the present application further includes: a display module and a receiving module.
  • the display module is configured 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 screenshots, and the first control is used to display the N screenshots.
  • the receiving module is configured to receive the user's first input to the first control displayed by the display module.
  • the display module is further configured to display N screenshots on the screen of the electronic device in response to the first input received by the receiving module.
  • the screen capture device 70 provided in the embodiment of the present application further includes: a receiving module and an editing module.
  • the receiving module is configured to receive the user's second input on the first screenshot in the N screenshots before the output module 72 outputs the target video based on the N screenshots.
  • the editing module is configured to perform an editing operation on the first screenshot in response to the second input received by the receiving module.
  • the above output module is specifically used to output the target video based on the L screenshots obtained after the editing operation of the editing module, where L is a positive integer less than or equal to N.
  • An embodiment of the present application provides a screen capture device. After the screen capture device obtains N screen capture pictures, it can directly generate a video file (ie, the target video) based on the N screen capture pictures, so as to send multiple screen capture pictures in the form of video files. To other users, without the need for the user to select each screenshot in turn to send these screenshots one by one, so the solution of the present application avoids the problems of missed selection of screenshots, failure to send, and disordered sending order, thereby simplifying user operations. Improve the continuity and flexibility of the screenshot device sending multiple screenshots, and improve the human-computer interaction experience.
  • the screen capture device in this embodiment of the present application may be a device with 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 this embodiment of the present application.
  • the screen capture device provided in the embodiment of the present application can implement the various processes implemented in the above method embodiments, and can achieve the same technical effect. To avoid repetition, details are not repeated here.
  • the embodiment of the present application also provides an electronic device 90, including a processor 91, a memory 92, and programs or instructions stored in the memory 92 and operable on the processor 91,
  • the program or instruction is executed by the processor 91, the various processes of the above-mentioned method embodiments can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 12 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 100 includes but is not limited to: 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, etc. part.
  • the electronic device 100 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 110 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 12 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, and details will not be repeated here. .
  • the processor 110 is configured to perform screen capture operations on N interfaces in the electronic device based on the user's screen capture input to obtain N screen capture pictures, each screen capture picture corresponds to one of the N interfaces, and N is greater than 1 is an integer; and output the target video based on the N screenshots.
  • An embodiment of the present application provides an electronic device. After the electronic device obtains N screenshots, it can directly generate a video file (that is, the target video) based on the N screenshots, so as to send multiple screenshots in the form of video files. To other users, without the need for the user to select each screenshot in turn to send these screenshots one by one, so the solution of the present application avoids the problems of missed selection of screenshots, failure to send, and disordered sending order, thereby simplifying user operations. Improve the continuity and flexibility of electronic devices sending multiple screenshots, and improve the human-computer interaction experience
  • the processor 110 is specifically configured to perform a screen capture operation on N interfaces in the electronic device based on the user's screen capture input to obtain N screen capture pictures.
  • N times of screen capture input corresponds to N interfaces in M interfaces one by one, and M is an integer greater than or equal to N; for each screen capture input in N times of screen capture input, respond to one Screen capture input, perform a screen capture operation on one of the N interfaces to obtain N screen capture pictures.
  • the processor 110 is specifically configured to output the target video based on the N screenshots, and according to the first order, use the N screenshots as N video frames to generate and output the target video, and each The video frames respectively correspond to a screen shot; or, according to the first sequence, the N screen shots are synthesized to obtain a target picture, and a moving picture is generated based on the target picture, and the target video is obtained and output; wherein, the first A sequence includes any of the following items: the sequence of taking N screenshots of the interface, the default display sequence of the N screenshots, and the display sequence of the N screenshots adjusted by the user.
  • the display unit 106 is configured to display a first control on a screen of the electronic device, and the first control is used to display N screenshots.
  • the user input unit 107 is configured to receive a first input from the user on the first control.
  • the display unit 106 is further configured to display N screenshots on the screen of the electronic device in response to the first input.
  • the processor 110 is specifically configured to perform a deletion operation on the first screenshot, where the L screenshots are pictures other than the first screenshot among the N screenshots; or, Replace the first screenshot with the second screenshot, where the L screenshots include the second screenshot and N screenshots except the first screenshot; or, perform an order adjustment operation on the first screenshot , wherein, the L screenshots are N screenshots after sequence adjustment; or, perform a picture modification operation on the first screenshot, wherein the L screenshots are N screenshots after picture modification.
  • the electronic device provided by the embodiment of the present application can realize each process realized by the above method embodiment, and can achieve the same technical effect, and to avoid repetition, details are not repeated here.
  • the input unit 104 may include a graphics processing unit (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processing unit 1041 is used by the image capturing device (such as the image data of the still picture or video obtained by the camera) for processing.
  • 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, or the like.
  • 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, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 109 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 110.
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned method embodiment is realized, and the same technology can be achieved. Effect, in order to avoid repetition, will not repeat them here.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, 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 method embodiments , and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in various embodiments of the present application.
  • a terminal which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Abstract

Disclosed in the present application are a screen capture method and device. The method comprises: performing a screen capture operation on N interfaces in an electronic device on the basis of screen capture input of a user, to obtain N screen capture pictures, each screen capture picture corresponding to one of the N interfaces, and N being an integer greater than 1; and outputting a target video on the basis of the N screen capture pictures.

Description

截屏方法及装置Screen capture method and device
本申请要求在2021年08月13日提交中国专利局、申请号为202110931140.0、发明名称为“截屏方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110931140.0 and the invention title "screen capture method and device" submitted to the China Patent Office on August 13, 2021, the entire contents of which are incorporated in this application by reference.
技术领域technical field
本申请属于通信技术领域,具体涉及一种截屏方法及装置。The present application belongs to the technical field of communications, and in particular relates to a screen capture method and device.
背景技术Background technique
目前,用户在向其他用户分享某个应用程序的具体操作流程时,可以在该应用程序中每进行一步具体操作时,进行截屏操作,以对每次操作时应用程序的页面进行截屏,从而得到多张截屏图片;然后用户可以将该多张截屏图片依次发送给其他用户,以使得其他用户可以根据这些截屏图片,来确定该应用程序的具体操作流程。At present, when a user shares the specific operation process of an application with other users, he can perform a screenshot operation every time a specific operation is performed in the application, so as to screenshot the page of the application during each operation, so as to obtain Multiple screenshots; then the user can send the multiple screenshots to other users in sequence, so that other users can determine the specific operation process of the application according to these screenshots.
然而,由于用户需要发送的截屏图片较多时,用户选择截屏图片可能会出现漏选的情况,或者在电子设备的网络情况不佳时,出现某些截屏图片发送失败的情况,因此会导致电子设备发送多张截屏图片的连续性较差。However, when the user needs to send a large number of screen capture pictures, the user may miss the selection of the screen capture pictures, or when the network condition of the electronic device is not good, some screen capture pictures fail to be sent, which will cause the electronic device to Poor continuity in sending multiple screenshots.
发明内容Contents of the invention
本申请实施例的目的是提供一种截屏方法及装置,能够解决电子设备发送多张截屏图片的连续性较差的问题。The purpose of the embodiments of the present application is to provide a screen capture method and device, which can solve the problem of poor continuity of multiple screen capture pictures sent by an electronic device.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above-mentioned technical problems, the application is implemented as follows:
第一方面,本申请实施例提供了一种截屏方法,该截屏方法包括:基于用户的截屏输入,对电子设备中的N个界面执行截屏操作,得到N张截屏图片,每张截屏图片分别对应N个界面中的一个界面,N为大于1的整数;基于所述N张截屏图片,输出目标视频。In the first aspect, the embodiment of the present application provides a screen capture method, the screen capture method includes: based on the user's screen capture input, perform screen capture operations on N interfaces in the electronic device to obtain N screen capture pictures, and each screen capture picture corresponds to One of the N interfaces, where N is an integer greater than 1; based on the N screenshots, a target video is output.
第二方面,本申请实施例提供了一种截屏装置,该截屏装置包括:截屏模块和输出模块;截屏模块,用于基于用户的截屏输入,对电子设备中的N个界面执行截屏操作,得到N张截屏图片,每张截屏图片分别对应N个界面中的一个界面,N为大于1的整数;输出模块,用于基于截 屏模块得到的所述N张截屏图片,输出目标视频。In the second aspect, the embodiment of the present application provides a screen capture device, the screen capture device includes: a screen capture module and an output module; the screen capture module is used to perform screen capture operations on N interfaces in the electronic device based on the user's screen capture input, and obtain N screenshots, each of which corresponds to one of the N interfaces, where N is an integer greater than 1; an output module configured to output a target video based on the N screenshots obtained by the screenshot module.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or an 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 .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
本申请实施例中,电子设备可以根据用户的截屏输入,对N个界面执行截屏操作,得到N张截屏图片,并基于该N张截屏图片,输出目标视频。电子设备在得到N张截屏图片之后,可以基于该N张截屏图片直接生成一个视频文件(即目标视频),从而以视频文件的形式将多张截屏图片发送至其他用户,而无需用户依次对每张截屏图片进行选取操作以逐一发送这些截屏图片,因此本申请的方案避免了截屏图片漏选、发送失败以及发送顺序错乱的问题,从而简化了用户操作,提升了电子设备发送多张截屏图片的连续性和灵活性,提升了人机交互体验。In the embodiment of the present application, the electronic device may perform screen capture operations on N interfaces according to the user's screen capture input, obtain N screen capture pictures, and output a target video based on the N screen capture pictures. After the electronic device obtains the N screenshots, it can directly generate a video file (i.e. the target video) based on the N screenshots, so as to send multiple screenshots to other users in the form of a video file, without requiring the user to sequentially edit each Screenshots are selected to send these screenshots one by one. Therefore, the solution of the present application avoids the problems of missed selection of screenshots, failure of sending, and disordered sending order, thereby simplifying user operations and improving the efficiency of electronic devices to send multiple screenshots. Continuity and flexibility enhance the human-computer interaction experience.
附图说明Description of drawings
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings that need to be used in the descriptions of the embodiments or related technologies. Obviously, the drawings in the following description are the For some embodiments of the application, those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本申请实施例提供的一种截屏方法的流程图之一;FIG. 1 is one of the flow charts of a screenshot method provided in an embodiment of the present application;
图2是本申请实施例提供的一种手机的界面的实例示意图之一;Fig. 2 is one of the example schematic diagrams of the interface of a mobile phone provided by the embodiment of the present application;
图3是本申请实施例提供的一种手机的界面的实例示意图之二;Fig. 3 is the second schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application;
图4是本申请实施例提供的一种手机的界面的实例示意图之三;Fig. 4 is the third schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application;
图5是本申请实施例提供的一种手机的界面的实例示意图之四;Fig. 5 is the fourth schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application;
图6是本申请实施例提供的一种手机的界面的实例示意图之五;Fig. 6 is the fifth schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application;
图7是本申请实施例提供的一种截屏方法的流程图之二;Fig. 7 is the second flowchart of a screenshot method provided by the embodiment of the present application;
图8是本申请实施例提供的一种手机的界面的实例示意图之六;Fig. 8 is the sixth schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application;
图9是本申请实施例提供的一种手机的界面的实例示意图之七;Fig. 9 is the seventh schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application;
图10是本申请实施例提供的一种截屏装置的结构示意图;FIG. 10 is a schematic structural diagram of a screen capture device provided in an embodiment of the present application;
图11为本申请实施例提供的一种电子设备的结构示意图;FIG. 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图12为本申请实施例提供的另一种电子设备的结构示意图。FIG. 12 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
具体实施例specific embodiment
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的截屏方法进行详细地说明。The screen capture method provided by the embodiment of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
通常,用户在向其他用户发送多张截屏图片(例如某个应用程序的具体操作流程对应的截屏图片)时,需要依次从相册应用程序中选择多张截屏图片,然而截屏图片较多时,用户可能会对需要发送的截屏图片漏选,因此导致用户发送的截屏图片无法完整地向其他用户展示应用程序的具体操作流程;或者,当电子设备的网络情况不佳时,可能会出现部分截屏图片发送失败,或者出现多张截屏图片发送顺序错乱,因此导致用户发送的截屏图片无法完整、准确地向其他用户展示应用程序的具体操作流程;如此,电子设备发送多张截屏图片的连续性较差。Usually, when a user sends multiple screenshots to other users (for example, a screenshot corresponding to the specific operation process of an application), he needs to select multiple screenshots from the photo album in turn. However, when there are many screenshots, the user may The screenshots that need to be sent will be missed, so the screenshots sent by the user cannot completely show 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 be sent Failed, or multiple screenshots were sent out of order, so that the screenshots sent by the user could not completely and accurately show the specific operation process of the application to other users; thus, the continuity of multiple screenshots sent by the electronic device is poor.
为了解决上述技术问题,本申请实施例中,在电子设备处于目标截 屏模式的情况下,用户可以对电子设备的屏幕进行截屏输入,以使得电子设备可以对多个界面执行截屏操作,得到多张截屏图片,然后电子设备可以基于该多张截屏图片,生成并输出目标视频。In order to solve the above technical problems, in the embodiment of the present application, when the electronic device is in the target screen capture mode, the user can input a screen capture of the screen of the electronic device, so that the electronic device can perform screen capture operations on multiple interfaces, and obtain multiple screen capture pictures, and then the electronic device can generate and output a target video based on the multiple screen capture pictures.
本申请实施例的一种方式中,用户可以进行N次截屏输入,即电子设备每显示一个界面,用户对该一个界面进行一次截屏输入,以使得电子设备在用户每进行一次截屏输入之后,对该一次截屏输入对应的界面执行截屏操作,以对N个界面执行N次截屏操作。In one mode of the embodiment of the present application, the user can perform N times of screen capture input, that is, each time the electronic device displays an interface, the user performs a screen capture input on the interface, so that the electronic device will be displayed on the screen every time the user performs a screen capture input. The interface corresponding to the one screen capture input performs a screen capture operation, so as to perform N times of screen capture operations on N interfaces.
本申请实施例的另一种方式中,针对N个界面中的每个界面,电子设备在每显示一个界面时,可以对该一个界面进行内容记录,从而用户可以进行一次截屏输入,即电子设备在显示N个界面之后,用户进行截屏输入,以使得电子设备根据对N个界面的内容记录,执行N次截屏操作。In another mode of the 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, the electronic device After the N interfaces are displayed, the user performs screen capture input, so that the electronic device performs N times of screen capture operations according to the content records of the N interfaces.
本方案中,用户通过截屏输入,触发电子设备得到多张截屏图片之后,无需用户依次对每张截屏图片进行选取操作,而是基于该多张截屏图片直接生成一个目标视频,即本申请的方案以视频形式将多张截屏图片发送至其他用户,因此可以避免截屏图片漏选、部分截屏图片发送失败以及截屏图片发送顺序错乱的问题,从而简化了用户操作,提升了电子设备发送多张截屏图片的连续性和灵活性,提升了人机交互体验。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 in turn, but directly generates a target video based on the multiple screenshots, which is the solution of this application Send multiple screenshots to other users in the form of video, so you can avoid the problems of missed selection of screenshots, failure to send some screenshots, and disorderly sending of screenshots, thereby simplifying user operations and improving the efficiency of electronic devices to send multiple screenshots The continuity and flexibility of the system enhance the human-computer interaction experience.
本申请实施例提供一种截屏方法,图1示出了本申请实施例提供的一种截屏方法的流程图。如图1所示,本申请实施例提供的截屏方法可以包括下述的步骤201和步骤202。An embodiment of the present application provides a screen capture method, and FIG. 1 shows a flow chart of the screen capture method provided in the embodiment of the present application. As shown in FIG. 1 , the screenshot method provided in the embodiment of the present application may include the following steps 201 and 202 .
步骤201、电子设备基于用户的截屏输入,对电子设备中的N个界面执行截屏操作,得到N张截屏图片。 Step 201 , based on the user's screen capture input, the electronic device performs screen capture operations on N interfaces in the electronic device to obtain N screen capture pictures.
本申请实施例中,上述N张截屏图片中的每张截屏图片分别对应N个界面中的一个界面,N为大于1的整数。In the embodiment of the present application, each of the above N screenshots corresponds to one of the N interfaces, and N is an integer greater than 1.
本申请实施例中,在处于目标截屏模式的情况下,电子设备可以基于用户的截屏输入,对电子设备中的N个界面执行截屏操作。In the embodiment of the present application, when in the target screen capture mode, the electronic device may perform screen capture operations on N interfaces in the electronic device based on the user's screen capture input.
本申请实施例中,在电子设备显示桌面或者应用程序的界面的情况下,用户可以触发电子设备处于目标截屏模式,然后用户可以进行截屏 输入,以使得电子设备可以对N个界面执行截屏操作,并以视频形式输出截屏操作得到的N张截屏图片。In the embodiment of the present application, when the electronic device displays the desktop or the interface of the application program, the user can trigger the electronic device to be in the target screen capture mode, and then the user can perform screen capture input, so that the electronic device can perform screen capture operations on N interfaces, And output the N screen capture pictures obtained by the screen capture operation in the form of video.
需要说明的是,上述目标截屏模式可以理解为:在该目标截屏模式下,电子设备可以根据截屏操作得到的截屏图片生成对应的视频,即将截屏操作得到的截屏图片,以视频形式输出。It should be noted that the above-mentioned target screen capture mode can be understood as: in the target screen capture mode, the electronic device can generate a corresponding video according to the screen capture picture obtained by the screen capture operation, that is, output the screen capture picture obtained by the screen capture operation in the form of a video.
可选地,本申请实施例中,用户可以在设置应用程序中,对截图视频控件进行输入,以使得电子设备处于目标截屏模式;或者,电子设备可以在电子设备的屏幕上显示一个悬浮窗口,该悬浮窗口中包括截图视频控件,用户可以对悬浮窗口中的截图视频控件进行输入,以使得电子设备处于目标截屏模式。Optionally, in the embodiment of the present application, the user can input the screenshot video control in the setting application program, so that the electronic device is in the target screenshot mode; or, the electronic device can display a floating window on the screen of the electronic device, The floating window includes a screenshot video control, and the user can input the screenshot video control in the floating window, so that the electronic device is in a target screen capture mode.
示例性地,以电子设备为手机为例进行说明。如图2所示,手机的屏幕上显示有悬浮窗口,该悬浮窗口中包括截图视频控件10和其他控件(例如屏幕录制控件等),用户可以对该截图视频控件10进行输入,以使得手机处于目标截屏模式目标截屏模式,从而用户可以进行截屏输入。Exemplarily, the electronic device is a mobile phone as an example for description. As shown in Figure 2, a floating window is displayed on the screen of the mobile phone, including a screenshot video control 10 and other controls (such as a screen recording control, etc.), and the user can input the screenshot video control 10 so that the mobile phone is in the Target screenshot mode Target screenshot mode so that the user can take a screenshot input.
可选地,本申请实施例中,上述N个界面可以包括以下至少一项:电子设备的桌面(例如桌面中的不同页面)、电子设备的应用程序的界面(例如不同应用程序的界面或同一个应用程序的不同界面)。具体可以根据实际使用需求确定,本申请实施例不作限制。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 (such as different pages in the desktop), the interface of the application program of the electronic device (such as the interface of different application programs or the same different interfaces of an application). Specifically, it may be determined according to actual usage requirements, and is not limited in this embodiment of the application.
可选地,本申请实施例中,上述N个界面可以为用户通过N个输入触发依次显示的界面(N个输入中的一个输入对应一个界面),或者可以为电子设备自主播放或依次显示的界面。Optionally, in the embodiment of the present application, the above-mentioned N interfaces may be sequentially displayed interfaces triggered by the user through N inputs (one of the N inputs corresponds to one interface), or may be independently played or sequentially displayed by the electronic device. interface.
可选地,本申请实施例中,上述截屏输入可以为N次截屏输入,即电子设备每显示一个界面,用户对该一个界面进行一次截屏输入。Optionally, in the embodiment of the present application, the above screen capture input may be N times of screen capture input, that is, each time the electronic device displays an interface, the user performs a screen capture input on the interface once.
可选地,本申请实施例中,上述步骤201具体可以通过下述的步骤201a和步骤201b实现。Optionally, in the embodiment of the present application, the foregoing step 201 may be specifically implemented through the following steps 201a and 201b.
步骤201a、在处于目标截屏模式的情况下,在执行M个界面切换的过程中,电子设备接收用户的N次截屏输入。Step 201a. In the case of the target screen capture mode, the electronic device receives N screen capture inputs from the user during the process of switching M interfaces.
本申请实施例中,上述N次截屏输入与M个界面中的N个界面一一对应,M为大于或等于N的整数。In the embodiment of the present application, the above N times of screenshot input correspond one-to-one to N interfaces among the M interfaces, and M is an integer greater than or equal to N.
可以理解,在电子设备每切换至一个界面后,用户可以针对该一个界面进行截屏输入,也可以针对该一个界面不进行截屏输入,即对于电子设备的M个界面,用户可以针对M个界面中的部分界面或所有界面进行截屏输入。It can be understood that after each interface of the electronic device is switched to, the user can perform screen capture input for the interface, or not perform screen capture input for the interface, that is, for the M interfaces of the electronic device, the user can perform screenshot input for the M interfaces. Screenshot input of part or all of the interfaces.
可选地,本申请实施例中,上述截屏输入具体可以为用户对电子设备的物理按键或物理按键组合的按压输入,以触发电子设备进行截屏操作;或者,上述截屏输入可以为用户对截屏控件的输入(例如点击输入或长按输入等),,以触发电子设备进行截屏操作;或者,上述截屏输入可以为用户对电子设备的语音输入,以触发电子设备进行截屏操作。具体可以根据实际使用需求确定,本申请实施例不做限制。Optionally, in the embodiment of the present application, the above-mentioned screen capture input may specifically be the user’s press input on a physical button or a combination of physical buttons on the electronic device to trigger the electronic device to perform a screen capture operation; or, the above-mentioned screen capture input may be the user’s control of the screen capture input (such as click input or long press input, etc.) to trigger the electronic device to perform a screen capture operation; or, the above screen capture input may be a user's voice input to the electronic device to trigger the electronic device to perform a screen capture operation. Specifically, it may be determined according to actual usage requirements, and is not limited in this embodiment of the application.
步骤201b、针对N次截屏输入中的每次截屏输入,电子设备响应于一次截屏输入,对N个界面中的一个界面执行截屏操作,以得到N张截屏图片。Step 201b: For each screen capture input in the N times of screen capture input, the electronic device performs a screen capture operation on one of the N interfaces in response to one screen capture input, so as to obtain N screen capture pictures.
可以理解,在上述截屏输入为N次截屏输入的情况下,电子设备可以在用户每进行一次截屏输入之后,对该一次截屏输入对应的界面执行一次截屏操作,以对N个界面执行N次截屏操作。即针对M个界面切换过程中的N个界面,在显示第一界面的情况下,电子设备可以接收用户的第一次截屏输入,第一界面为N个界面中的一个界面;电子设备可以响应于第一次截屏输入,对第一界面进行截屏操作,得到第一张截屏图片;在从第一界面切换至第二界面的情况下,电子设备可以接收用户的第二次截屏输入,第二界面为N个界面中的一个界面;电子设备可以响应于第二次截屏输入,对第二界面进行截屏操作,得到第二张截屏图片;以此类推,直至电子设备接收用户的第N次截屏输入,并响应于第N次截屏输入,对一个界面进行截屏操作得到第N张截屏图片,以得到N张截屏图片。It can be understood that, in the case that the above-mentioned screen capture input is N times of screen capture input, the electronic device may perform a screen capture operation on the interface corresponding to the screen capture input every time the user performs a screen capture input, so as to perform N times of screen capture on N interfaces operate. That is, for the N interfaces in the switching process of the 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 For the first screen capture input, the screen capture operation is performed on the first interface to obtain the first screen capture picture; in the case of switching from the first interface to the second interface, the electronic device can receive the user's second screen capture input, and the second The interface is one of the N interfaces; the electronic device may respond to the second screen capture input and perform a screen capture operation on the second interface to obtain a second screen capture picture; and so on until the electronic device receives the user's Nth screen capture input, and in response to the Nth screen capture input, perform a screen capture operation on an interface to obtain the Nth screen capture picture, so as to obtain N screen capture pictures.
可选地,本申请实施例中,上述截屏输入也可以为一次截屏输入,即电子设备在显示N个界面之后,用户进行截屏输入。Optionally, in the embodiment of the present application, the above screen capture input may also be one screen capture input, that is, after the electronic device displays N interfaces, the user performs a screen capture input.
可选地,本申请实施例中,在上述截屏输入为一次截屏输入的情况下,电子设备可以根据电子设备在显示N个界面时记录的每个界面的内 容,对N个界面执行N次截屏操作。Optionally, in the embodiment of the present application, in the case that the above screen capture input is one screen capture input, the electronic device may perform N times of screen capture on N interfaces according to the content of each interface recorded by the electronic device when displaying N interfaces operate.
可选地,本申请实施例中,电子设备在得到截屏图片之后,可以在屏幕上显示一个窗口,并将得到的截屏图片通过缩略图的方式,显示在该一个窗口中;或者,电子设备可以在屏幕上显示第一控件,电子设备在每得到一张截屏图片之后,均可以按照图片尺寸递减方式,通过第一控件保存截屏图片。Optionally, in this embodiment of the application, after obtaining the 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 The first control is displayed on the screen, and each time the electronic device obtains a screenshot, it can save the screenshot through the first control in a manner of decreasing the size of the picture.
示例性地,如图3所示,手机的屏幕上显示有第一控件11,用户在对一个界面(例如XX的聊天界面)进行截屏输入之后,手机可以将该一个界面对应的截屏图片,按照图片尺寸递减方式通过第一控件11保存该截屏图片。Exemplarily, as shown in FIG. 3 , a first control 11 is displayed on the screen of the mobile phone. After the user performs screenshot input on an interface (such as the chat interface of XX), the mobile phone can take the screenshot corresponding to the interface according to The screen shot is saved through the first control 11 in a manner of decreasing picture size.
本申请实施例中,用户在通过N次截屏输入,以使得电子设备针对N个界面进行N次截屏操作,以N张截屏图片之后,电子设备可以基于该N张截屏图片直接生成一个视频,以通过视频形式将多张截屏图片发送至其他用户,而无需用户依次对每张截屏图片进行选取操作来依次发送截屏图片,因此简化了用户操作,提升了电子设备发送多张截屏图片的连续性和灵活性。In the embodiment of the present application, after the user enters N times of screen captures, so that the electronic device performs N times of screen capture operations on N interfaces, and after taking N screen captures, the electronic device can directly generate a video based on the N screen captures, as follows: Send multiple screenshots to other users in the form of video, without the need for the user to select each screenshot in turn to send the screenshots in turn, thus simplifying user operations and improving the continuity and reliability of electronic devices sending multiple screenshots flexibility.
步骤202、电子设备基于N张截屏图片,输出目标视频。 Step 202, the electronic device outputs the target video based on the N screenshots.
本申请实施例中,一种情况,电子设备可以根据N张截屏图片中的所有截屏图片,生成目标视频。具体的,电子设备可以直接将所有截屏图片生成目标视频;或者,电子设备可以将编辑处理(例如对截屏图片进行图片修改)后的所有截屏图片生成目标视频;或者,电子设备可以将所有截屏图片中的一部分编辑处理后的截屏图片和另一部分未编辑处理的截屏图片生成目标视频。另一种情况,电子设备可以根据N张截屏图片中的部分截屏图片(例如删除N张截屏图片中的某些截屏图片后剩余的截屏图片),生成目标视频。In the embodiment of the present application, in one case, the electronic device may generate the target video according to all the screenshots in the N screenshots. Specifically, the electronic device may directly generate a target video from all screen captures; or, the electronic device may generate a target video from all screen captures after editing (such as modifying the screen capture); or, the electronic device may generate a target video from all screen captures A part of the edited screenshots and another part of the unedited screenshots are used to generate a target video. In another case, the electronic device may generate the target video according to some of the N screenshots (for example, the remaining screenshots after deleting some of the N screenshots).
可选地,本申请实施例中,电子设备在生成目标视频之后,可以在屏幕上显示目标视频的画面,即播放该目标视频,或者可以将该目标视频存储至电子设备中;或者可以通过电子设备中的某个应用程序(例如N个界面所对应的应用程序)将目标视频发送至其他设备。Optionally, in this embodiment of the application, after the electronic device generates the target video, it can display the target video on the screen, that is, play the target video, or store the target video in the electronic device; An application program in the device (for example, an application program corresponding to the N interfaces) sends the target video to other devices.
可选地,本申请实施例中,电子设备在将目标视频发送至其他设备之后,可以将该目标视频保存至电子设备中,也可以将该目标视频删除。Optionally, in this 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.
可选地,本申请实施例中,上述步骤202具体可以通过下述的步骤202a或步骤202b实现。Optionally, in the embodiment of the present application, the above step 202 may be specifically implemented through the following step 202a or step 202b.
步骤202a、电子设备按照第一顺序,将N张截屏图片作为N个视频帧,生成并输出目标视频。In step 202a, the electronic device generates and outputs the target video by taking the N screenshots as N video frames according to the first sequence.
本申请实施例中,上述N个视频帧中的每个视频帧分别对应N张截屏图片中的一张截屏图片,上述第一顺序包括以下任一项:N个界面截屏的顺序、N张截屏图片的默认显示顺序、用户调整后的N张截屏图片的显示顺序。In the embodiment of the present application, each of the above-mentioned N video frames corresponds to one of the N screenshots, and the above-mentioned first order includes any of the following items: the sequence of the N interface screenshots, the N screenshots The default display order of pictures, and the display order of N screenshot pictures adjusted by the user.
本申请实施例中,电子设备可以将N张截屏图片作为N个视频帧,并将每张截屏图片分别维持一个预设时长(例如2秒),以录制一个视频文件,得到目标视频。可以理解,在播放目标视频时,该目标视频中的每个视频帧的持续时长为一个预设时长(即每个一个预设时长显示一个视频帧画面)。In the embodiment of the present application, the electronic device may take N screenshots as N video frames, and maintain each screenshot for a preset duration (for example, 2 seconds) to record a video file to obtain a target video. It can be understood that when the target video is played, the duration of each video frame in the target video is a preset duration (that is, one video frame is displayed for each preset duration).
可选地,本申请实施例中,电子设备可以在每得到一张截屏图片后,显示该一张截屏图片,或者电子设备在得到N张截屏图片后,可以按照截屏图片的所占内存大小或截屏图片的内容关联性等,显示该N张截屏图片。Optionally, in this embodiment of the present application, the electronic device may display a screenshot after each screenshot is obtained, or after the electronic device obtains N screenshots, it may The content relevance of the screenshot pictures, etc., and display the N screenshot pictures.
可选地,本申请实施例中,在电子设备得到N张截屏图片之后,用户可以对该N张截屏图片的显示顺序进行调整,以使得电子设备将调整显示顺序后的N张截屏图片依次作为N个视频帧。Optionally, in this embodiment of the present application, after the electronic device obtains the N screenshots, the user can adjust the display order of the N screenshots, so that the electronic device uses the adjusted display sequence of the N screenshots in turn as N video frames.
步骤202b、电子设备按照第一顺序,将N张截屏图片进行合成处理,得到一张目标图片,并基于目标图片生成动图画面,得到并输出目标视频。Step 202b: The electronic device synthesizes the N screenshots according to the first sequence to obtain a target picture, and generates a moving picture based on the target picture, and obtains and outputs the target video.
可以理解,上述目标图片可以理解为一张长截图图片,电子设备可以以动图画面的方式播放该目标图片,即电子设备在播放目标视频时,以界面滚动(例如上下滚动或左右滚动)形式将目标图片完整地展示出来。It can be understood that the above-mentioned target picture can be understood as a long screenshot picture, and the electronic device can play the target picture in the form of a moving picture, that is, when the electronic device plays the target video, it will scroll in the form of interface scrolling (such as scrolling up and down or scrolling left and right) Show the target image completely.
可选地,本申请实施例中,电子设备在得到目标视频后,可以直接导出该目标视频;或者,电子设备在得到目标视频后,可以在屏幕上显示视频导出控件,用户可以对该视频导出控件进行输入,以触发电子设备导出目标视频。Optionally, in this embodiment of the application, after the electronic device obtains the target video, it can directly export the target video; or, after the electronic device obtains the target video, it can display a video export control on the screen, and the user can export the video Controls are input to trigger the electronic device to export the target video.
可选地,本申请实施例中,电子设备在导出目标视频时,可以在屏幕上显示进度条,以向用户提示视频导出的进度。Optionally, in this embodiment of the present application, when the electronic device is exporting the target video, a progress bar may be displayed on the screen to remind the user of the progress of the video export.
示例性地,如图4所示,手机在导出目标视频时,可以在屏幕上显示进度条12,以向用户提示视频导出的进度。Exemplarily, as shown in FIG. 4 , when the mobile phone is exporting the target video, a progress bar 12 may be displayed on the screen to remind the user of the progress of the video export.
可选地,本申请实施例中,电子设备在播放目标视频的同时,可以以动画形式展示用户对N个界面的操作过程(例如为滑动操作过程或者点击操作过程,或者为长按操作过程时,以文字形式提示是长按操作)。Optionally, in this embodiment of the application, while the electronic device is playing the target video, it can display the user's operation process on the N interfaces in animation (for example, a sliding operation process or a click operation process, or a long press operation process). , prompting in text form that it is a long press operation).
示例性地,如图5所示,手机在播放目标视频时,可以将用户对每个界面进行操作的操作过程,以动画形式展示出来,例如用户对应用程序的界面中的一个标识(例如支付标识)进行了长按输入,则手机可以显示提示信息,该提示信息的内容为:用户对支付标识进行了长按输入。Exemplarily, as shown in Figure 5, when the mobile phone is playing the target video, the operation process of the user's operation on each interface can be displayed in the form of animation, for example, the user's operation on an identification in the interface of the application program (such as payment logo), the mobile phone may display prompt information, the content of which is: the user has long pressed and input the payment logo.
本申请实施例中,电子设备可以按照第一顺序,将N张截屏图片生成目标视频,以发送至其他用户,因此可以避免电子设备的网络情况不佳时,出现多张截屏图片发送顺序错乱的问题,提升了电子设备发送多张截屏图片的连续性和准确性。In the embodiment of the present application, the electronic device can generate target videos from N screenshots according to the first order, so as to send them to other users, so that when the network condition of the electronic device is not good, the sending order of multiple screenshots can be avoided. Issues, improved the continuity and accuracy of electronic devices sending multiple screenshots.
可选地,本申请实施例中,在上述步骤202之前,本申请实施例提供的截屏方法还包括下述的步骤301至步骤303。Optionally, in the embodiment of the present application, before the above step 202, the screen capture method provided in the embodiment of the present application further includes the following steps 301 to 303.
步骤301、电子设备在电子设备的屏幕上显示第一控件。Step 301, the electronic device displays a first control on a screen of the electronic device.
本申请实施例中,上述第一控件用于显示N张截屏图片。In the embodiment of the present application, the above-mentioned first control is used to display N screenshots.
步骤302、电子设备接收用户对第一控件的第一输入。Step 302, the electronic device receives a first input from a user on a first control.
可选地,本申请实施例中,上述第一输入可以为用户对第一控件的点击控输入或长按输入等任意可能形式的输入,具体可以根据实际使用需求确定,本申请实施例不做限制。Optionally, in this embodiment of the application, the above-mentioned first input may be input in any possible form such as the user's click control input or long press input on the first control, which may be determined according to actual usage requirements, and the embodiment of this application does not limit.
步骤303、电子设备响应于第一输入,在电子设备的屏幕上显示N张截屏图片。Step 303, the electronic device responds to the first input, and displays N screenshots on the screen of the electronic device.
可选地,本申请实施例中,电子设备可以在屏幕上以截屏图片的原始尺寸,依次显示N张截屏图片;或者,电子设备可以以缩略图的形式显示N张截屏图片。Optionally, in this embodiment of the present application, the electronic device may sequentially display the N screenshots on the screen with the original size of the screenshots; or, the electronic device may display the N screenshots in the form of thumbnails.
可选地,本申请实施例中,电子设备可以以第一顺序,在屏幕上显示N张截屏图片。Optionally, in this embodiment of the present application, the electronic device may display N screenshots on the screen in a first order.
示例性地,如图6所示,手机在屏幕上显示第一控件11,用户可以对该第一控件进行第一输入,以使得手机可以以缩略图的形式显示N张截屏图片,即在电子设备的屏幕上依次横向排列缩略图,用户可以进行左滑输入或右滑输入以对所有缩略图进行查看。Exemplarily, as shown in FIG. 6, the mobile phone displays a first control 11 on the screen, and the user can perform a first input to the first control, so that the mobile phone can display N screenshots in the form of thumbnails, that is, in the electronic The thumbnails are arranged horizontally on the screen of the device, and the user can swipe left or right to view all the thumbnails.
本申请实施例中,电子设备可以显示第一控件,以使得用户可以直接通过第一控件,触发电子设备快速地显示N张截屏图片,以便于用户对N张截屏图片进行查看或编辑等操作。In the embodiment of the present application, the electronic device can display the 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.
本申请实施例提供一种截屏方法,在处于目标截屏模式的情况下,电子设备可以根据用户的截屏输入,对N个界面执行截屏操作,得到N张截屏图片,并基于该N张截屏图片,输出目标视频。本方案中,电子设备在得到N张截屏图片之后,可以基于该N张截屏图片直接生成一个视频文件(即目标视频),从而以视频文件的形式将多张截屏图片发送至其他用户,而无需用户依次对每张截屏图片进行选取操作以逐一发送这些截屏图片,因此本申请的方案避免了截屏图片漏选、发送失败以及发送顺序错乱的问题,从而简化了用户操作,提升了电子设备发送多张截屏图片的连续性和灵活性,提升了人机交互体验。An embodiment of the present application provides a screen capture method. In the case of the target screen capture mode, the electronic device can perform screen capture operations on N interfaces according to the user's screen capture input to obtain N screen capture pictures, and based on the N screen capture pictures, Output the target video. In this solution, after the electronic device obtains N screenshots, it can directly generate a video file (i.e. target video) based on the N screenshots, so as to send multiple screenshots to other users in the form of video files without The user sequentially selects each screenshot to send these screenshots one by one. Therefore, the solution of this application avoids the problems of missed selection of screenshots, failure to send, and disordered sending order, thereby simplifying user operations and improving electronic equipment. The continuity and flexibility of the screenshots improves the human-computer interaction experience.
可选地,本申请实施例中,结合图1,如图7所示,在上述步骤202之前,本申请实施例提供的截屏方法还包括下述的步骤401和步骤402,并且上述步骤202具体可以通过下述的步骤202c实现。Optionally, in this embodiment of the application, referring to FIG. 1 , as shown in FIG. 7 , before the above step 202, the screenshot method provided by the embodiment of this application further includes the following steps 401 and 402, and the above step 202 specifically It can be realized through the following step 202c.
步骤401、电子设备接收用户对N张截屏图片中的第一截屏图片的第二输入。In step 401, the electronic device receives a second input from a user on a first screenshot among N screenshots.
本申请实施例中,用户在触发电子设备显示N张截屏图片之后,可以通过第二输入,以使得电子设备对该N张截屏图片中的任意截屏图片进行编辑操作。需要说明的是,第二输入的输入特征不同,电子设备进 行编辑操作的方式不同。In the embodiment of the present application, after the user triggers the electronic device to display N screenshots, the user may pass a second input, so that the electronic device can edit any of the N screenshots. It should be noted that, the input features of the second input are different, and the manners of the electronic device to perform the editing operation are different.
可选地,本申请实施例中,上述第二输入可以为用户对第一截屏图片的点击输入、长按输入、滑动输入或拖动输入等,具体可以根据实际使用需求确定,本申请实施例不做限制。Optionally, in this embodiment of the application, the above-mentioned second input may be the user's click input, long press input, slide input, or drag input on the first screenshot, which may be determined according to actual usage requirements. No restrictions.
步骤402、电子设备响应于第二输入,对第一截屏图片执行编辑操作。In step 402, the electronic device performs an editing operation on the first screenshot in response to the second input.
本申请实施例中,电子设备可以根据第二输入,对第一截屏图片执行删除操作、替换操作、排序操作、图片修改操作等。In this embodiment of the present application, the electronic device may perform a deletion operation, a replacement operation, a sorting operation, a picture modification operation, and the like on the first screenshot according to the second input.
可选地,本申请实施例中,用户可以先对第一截屏图片进行一个输入(例如长按输入),以触发电子设备显示编辑控件,该编辑控件包括以下至少一项:图片修改控件、替换控件、删除控件、排序控件等,从而用户可以通过对编辑控件进行第二输入,以使得电子设备对第一截屏图片执行与编辑控件对应的编辑操作。Optionally, in this embodiment of the application, the user may first perform an input (such as a long press input) on the first screenshot to trigger the electronic device to display an editing control, and the editing control includes at least one of the following: picture modification control, replacement control, delete control, sorting control, etc., so that the user can make a second input to the editing control, so that the electronic device performs an editing operation corresponding to the editing control on the first screenshot.
示例性地,如图8所示,用户在对第一截屏图片进行长按输入之后,手机可以通过悬浮窗口显示编辑控件(例如图片修改控件、替换控件、删除控件和排序控件等),然后用户可以对这些控件中的任意控件进行第二输入,以使得手机采用与该任意控件的编辑方式对第一截屏图片进行编辑操作。Exemplarily, as shown in FIG. 8, after the user performs a long-press input on the first screenshot, the mobile phone may display editing controls (such as picture modification controls, replacement controls, deletion controls, and sorting controls, etc.) through a floating window, and then the user A second input can be made to any of these controls, so that the mobile phone can edit the first screenshot in the same way as the arbitrary control.
可选地,本申请实施例中,上述步骤402具体可以通过下述的步骤402a至步骤402d中的任一项实现。Optionally, in this embodiment of the present application, the foregoing step 402 may be specifically implemented through any one of the following steps 402a to 402d.
步骤402a、电子设备响应于第二输入,对第一截屏图片执行删除操作。In step 402a, the electronic device performs a deletion operation on the first screenshot in response to the second input.
可选地,本申请实施例中,上述第二输入可以为用户对第一截屏图片的拖动输入(例如将第一截屏图片拖动至屏幕的边缘区域),以触发电子设备删除第一截屏图片;或者,上述第二输入可以为用户对删除控件的点击输入,以触发电子设备删除第一截屏图片。Optionally, in this embodiment of the present application, the above-mentioned second input may be a user's drag input on the first screenshot (for example, dragging the first screenshot to the edge area of the screen), so as to trigger the electronic device to delete the first screenshot. A picture; or, the above-mentioned second input may be a user's click input on the delete control, so as to trigger the electronic device to delete the first screenshot picture.
可选地,本申请实施例中,在电子设备删除第一截屏图片之后,电子设备可以调整其他截屏图片的显示位置,例如依次将剩余截屏图片(即除第一截屏图片之外的截屏图片)向前补位。Optionally, in this embodiment of the present application, after the electronic device deletes the first screenshot, the electronic device can adjust the display positions of other screenshots, for example, the remaining screenshots (that is, screenshots other than the first screenshot) Fill forward.
步骤402b、电子设备响应于第二输入,将第一截屏图片替换为第二 截屏图片。Step 402b, the electronic device replaces the first screenshot with the second screenshot in response to the second input.
可选地,本申请实施例中,上述第二输入可以为用户对第一截屏图片的长按输入,以触发电子设备将第一截屏图片替换为预设的截屏图片(例如第二截屏图片);或者,上述第二输入可以为用户对替换控件的点击输入,以触发电子设备将第一截屏图片替换为预设的截屏图片。Optionally, in the embodiment of the present application, the above-mentioned second input may be a user's long press input on the first screenshot, so as to trigger the electronic device to replace the first screenshot with a preset screenshot (such as the second screenshot) or, the above-mentioned second input may be the user's click input on the replacement control, so as to trigger the electronic device to replace the first screenshot picture with a preset screenshot picture.
可选地,本申请实施例中,上述第二输入可以包括第一子输入和第二子输入。其中,第一子输入为用户对第一截屏图片的长按输入,或对替换控件的点击输入,以触发电子设备显示已存的至少一个截屏图片;第二子输入为用户对至少一个截屏图片中的第二截屏图片的选择输入,以触发电子设备将第一截屏图片替换为第二截屏图片。Optionally, in this 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 the user's long-press input on the first screenshot, or the click input on the replacement control, so as to trigger the electronic device to display at least one stored screenshot; the second sub-input is the user's input of at least one screenshot. A selection input of the second screen capture in the trigger to trigger the electronic device to replace the first screen capture with the second screen capture.
可选地,本申请实施例中,上述第二输入可以包括第一子输入和第二子输入。其中,第一子输入为用户对第一截屏图片的长按输入,或对替换控件的点击输入,以触发电子设备重新进入目标截屏模式;第二子输入为用户对一个界面的截屏输入,以触发电子设备对该一个界面进行截屏操作,得到一张截屏图片,并将第一截屏图片替换为该一张截屏图片。Optionally, in this 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 the user's long-press input on the first screen capture picture, or the click input on the replacement control, so as to trigger the electronic device to re-enter the target screen capture mode; the second sub-input is the user's screen capture input on an interface, with The electronic device is triggered to perform a screen capture operation on the interface to obtain a screen capture picture, and replace the first screen capture picture with the screen capture picture.
可选地,本申请实施例中,电子设备根据第二子输入对一个界面进行截屏操作,得到一张截屏图片之后,可以在屏幕上显示提示信息,以向用户提示是否将第一截屏图片替换为该一张截屏图片,并在用户触发替换的情况下,将第一截屏图片替换为该一张截屏图片。Optionally, in this embodiment of the application, the electronic device performs a screenshot operation on an interface according to the second sub-input, and after obtaining a screenshot, it may display prompt information on the screen to prompt the user whether to replace the first screenshot For the one screenshot, and when the user triggers the replacement, replace the first screenshot with the one screenshot.
可选地,本申请实施例中,电子设备根据第二子输入对一个界面进行截屏操作,得到一张截屏图片之后,可以将得到的所有截屏图片(即N个截屏图片和该一张截屏图片)均显示在屏幕上。Optionally, in the 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, all obtained screenshots (that is, the N screenshots and the one screenshot ) are displayed on the screen.
步骤402c、电子设备响应于第二输入,对第一截屏图片执行顺序调整操作。In step 402c, the electronic device performs an order adjustment operation on the first screenshot in response to the second input.
可选地,本申请实施例中,上述第二输入可以为用户对第一截屏图片的拖动输入(例如将第一截屏图片拖动至某张截屏图片所在的位置),以触发电子设备调整第一截屏图片的显示顺序;或者,上述第二输入可以为用户对排序控件的点击输入,以触发电子设备调整第一截屏图片的 显示顺序。Optionally, in this embodiment of the present application, the above-mentioned second input may be a drag input of the user on the first screenshot (for example, dragging the first screenshot to the location of a certain screenshot), so as to trigger the adjustment of the electronic device. The display order of the first screenshots; alternatively, the above-mentioned second input may be a click input by the user on the sorting control, so as to trigger the electronic device to adjust the display order of the first screenshots.
可以理解,在电子设备调整第一截屏图片的显示顺序时,也调整了其他截屏图片中的部分截屏图片或全部截屏图片的显示顺序。It can be understood that when the electronic device adjusts the display order of the first screenshot, it also adjusts the display order of some or all of the other screenshots.
可选地,本申请实施例中,在电子设备调整第一截屏图片的显示位置之后,电子设备可以依次将其他截屏图片向前或向后补位。Optionally, in this embodiment of the present application, after the electronic device adjusts the display position of the first screenshot, the electronic device may sequentially make up for other screenshots forward or backward.
步骤402d、电子设备响应于第二输入,对第一截屏图片执行图片修改操作。In step 402d, the electronic device performs a picture modification operation on the first screenshot in response to the second input.
可选地,本申请实施例中,上述第二输入可以包括第一子输入和第二子输入。其中,第一子输入为用户对第一截屏图片的长按输入,或对图片修改控件的点击输入,以触发电子设备显示图片修改界面,该图片修改界面中包括至少一个修改控件,每个修改控件分别对应一种图片修改方式;第二子输入为用户对至少一个修改控件中的任意修改控件的点击输入,以触发电子设备采用与该任意修改控件对应的图片修改方式,对第一截屏图片执行图片修改操作。Optionally, in this 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 the user's long-press input on the first screen capture picture, or a click input on the picture modification control to trigger the electronic device to display the picture modification interface. The picture modification interface includes at least one modification control, and each modification The controls respectively correspond to a picture modification method; the second sub-input is the user's click input on any modification control in at least one modification control, so as to trigger the electronic device to adopt the picture modification method corresponding to the arbitrary modification control, and the first screenshot image Perform image modification operations.
可选地,本申请实施例中,上述图片修改方式可以包括以下至少一项:文字添加方式、图片美化方式(例如添加滤镜方式、图片参数(例如亮度、对比度、白平衡等)调整方式、图片马赛克、图片涂鸦方式等)、图片裁切方式等。Optionally, in the embodiment of the present application, the above-mentioned image modification methods may include at least one of the following: text adding methods, image beautification methods (such as adding filters, image parameters (such as brightness, contrast, white balance, etc.) adjustment methods, image mosaic, image graffiti, etc.), image cropping, etc.
示例性地,结合图8,如图9所示,用户在对图片修改控件进行点击输入之后,手机可以显示图片修改界面13,该图片修改界面13中包括至少一个修改控件(例如“文字添加”控件、“涂鸦”控件、“裁切”控件和“滤镜”控件等),用户可以对该至少一个修改控件中的任意修改控件(例如“涂鸦”控件)进行输入,以使得手机可以采用该任意修改控件对应的图片修改方式对第一截屏图片进行图片修改操作。用户可以通过图片马赛克或涂鸦方式等,修改或遮盖截屏图片中的隐私信息内容,以避免用户的隐私泄露。Exemplarily, with reference to FIG. 8 , as shown in FIG. 9 , after the user clicks on the picture modification control, the mobile phone can display a picture modification interface 13, which includes at least one modification control (such as "text addition" control, "graffiti" control, "cutting" control and "filter" control, etc.), 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 Modify the image modification method corresponding to the control arbitrarily to perform an image modification operation on the first screenshot image. Users can modify or cover the private information content in the screenshots by means of picture mosaic or graffiti, etc., to avoid leakage of user privacy.
本申请实施例中,电子设备通过对操作应用程序的执行过程截屏,来生成指导视频,用户可以对截图图片进行顺序调整、图片替换、图片删除和/或图片修改等操作,在保证整个的操作指导流程的连续性的同 时,保证了用户操作的便捷性和输出目标视频的灵活性和多样性。In this embodiment of the application, the electronic device generates a guide video by taking a screenshot of the execution process of the operating application program. The user can perform operations such as sequence adjustment, picture replacement, picture deletion, and/or picture modification on the screenshots to ensure that the entire operation While guiding the continuity of the process, it ensures the convenience of user operation and the flexibility and diversity of the output target video.
步骤202c、电子设备基于编辑操作后得到的L张截屏图片,输出目标视频。 Step 202c, the electronic device outputs the target video based on the L screenshots obtained after the editing operation.
其中,L为小于或等于N的正整数。Wherein, L is a positive integer less than or equal to N.
可选地,本申请实施例中,在执行上述步骤402a的情况下,上述L张截屏图片为N张截屏图片中除第一截屏图片之外的图片。Optionally, in the embodiment of the present application, when the above step 402a is performed, the above L screenshots are pictures except the first screenshot among the N screenshots.
可选地,本申请实施例中,在执行上述步骤402b的情况下,上述L张截屏图片包括第二截屏图片和N张截屏图片中除第一截屏图片之外的图片。Optionally, in this embodiment of the present application, when the above step 402b is performed, the above L screenshots include the second screenshot and pictures other than the first screenshot among the N screenshots.
可选地,本申请实施例中,在执行上述步骤402c的情况下,上述L张截屏图片为顺序调整后的N张截屏图片。Optionally, in the embodiment of the present application, when the above step 402c is performed, the above L screenshots are N screenshots after sequence adjustment.
可选地,本申请实施例中,在执行上述步骤402d的情况下,上述L张截屏图片为图片修改后的N张截屏图片。Optionally, in the embodiment of the present application, when the above step 402d is performed, the above L screenshots are N screenshots after picture modification.
本申请实施例中,电子设备可以先根据用户的第二输入,灵活地对N个截屏图片中的任意截屏图片进行编辑操作,然后再基于编辑操作后得到的截屏图片,输出目标视频,如此提升了电子设备输出目标视频的灵活性和多样性。In the embodiment of the present application, the electronic device can flexibly edit any of the N screenshots according to the user's second input, and then output the target video based on the screenshot obtained after the editing operation. It improves the flexibility and diversity of the output target video of the electronic equipment.
需要说明的是,本申请实施例提供的截屏方法,执行主体可以为截屏装置,或者电子设备,或者该截屏装置中的用于执行截屏方法的控制模块。本申请实施例中以截屏装置执行截屏方法为例,说明本申请实施例提供的截屏装置。It should be noted that, the screen capture method provided in the embodiment of the present application may be executed by a screen capture device, or an electronic device, or a control module in the screen capture device for executing the screen capture method. In the embodiment of the present application, the screen capture device provided in the embodiment of the present application is described by taking the screen capture device executing the screen capture method as an example.
图10示出了本申请实施例中涉及的截屏装置的一种可能的结构示意图。如图10所示,该截屏装置70可以包括:截屏模块71和输出模块72。FIG. 10 shows a possible structural schematic diagram of a screen capture device involved in an embodiment of the present application. As shown in FIG. 10 , the screen capture device 70 may include: a screen capture module 71 and an output module 72 .
其中,截屏模块71,用于基于用户的截屏输入,对电子设备中的N个界面执行截屏操作,得到N张截屏图片,每张截屏图片分别对应N个界面中的一个界面,N为大于1的整数。输出模块72,用于基于截屏模块得到的所述N张截屏图片,输出目标视频。Wherein, the screen capture module 71 is configured to perform screen capture operations on N interfaces in the electronic device based on the user's screen capture input, to obtain N screen capture pictures, each screen capture picture corresponds to one of the N interfaces, and N is greater than 1 an integer of . The output module 72 is configured to output the target video based on the N screenshots obtained by the screenshot module.
在一种可能的实现方式中,上述截屏模块71,具体用于在执行M个界面切换的过程中,接收用户的N次截屏输入,N次截屏输入与M个界面 中的N个界面一一对应,M为大于或等于N的整数;并针对N次截屏输入中的每次截屏输入,响应于一次截屏输入,对N个界面中的一个界面执行截屏操作,以得到N张截屏图片。In a possible implementation manner, the screen capture module 71 is specifically configured to receive N times of screen capture input from the user during the process of switching between M interfaces, and the N times of screen capture input and the N interfaces of the M interfaces are one by one Correspondingly, M is an integer greater than or equal to N; and for each of the N screen capture inputs, in response to one screen capture input, perform a screen capture operation on one of the N interfaces to obtain N screen capture images.
在一种可能的实现方式中,上述输出模块72,具体用于按照第一顺序,将N张截屏图片作为N个视频帧,生成并输出目标视频,每个视频帧分别对应一张截屏图片;或者,按照第一顺序,将N张截屏图片进行合成处理,得到一张目标图片,并基于目标图片生成动图画面,得到并输出目标视频;其中,第一顺序包括以下任一项:对N个界面截屏的顺序、N张截屏图片的默认显示顺序、用户调整后的N张截屏图片的显示顺序。In a possible implementation manner, the above-mentioned output module 72 is specifically configured to use N screen capture pictures as N video frames according to the first sequence, generate and output the target video, and each video frame corresponds to a screen capture picture; Or, according to the first order, N pieces of screenshots are synthesized to obtain a target picture, and an animation picture is generated based on the target picture, and the target video is obtained and output; wherein, the first order includes any of the following: for N The sequence of screenshots of the interface, the default display sequence of N screenshots, and the display sequence of N screenshots adjusted by the user.
在一种可能的实现方式中,本申请实施例提供的截屏装置70还包括:显示模块和接收模块。其中,显示模块,用于在输出模块72基于N张截屏图片,输出目标视频之前,在电子设备的屏幕上显示第一控件,该第一控件用于显示N张截屏图片。接收模块,用于接收用户对显示模块显示的第一控件的第一输入。显示模块,还用于响应于接收模块接收的第一输入,在电子设备的屏幕上显示N张截屏图片。In a possible implementation manner, the screen capture device 70 provided in the embodiment of the present application further includes: a display module and a receiving module. Wherein, the display module is configured 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 screenshots, and the first control is used to display the N screenshots. The receiving module is configured to receive the user's first input to the first control displayed by the display module. The display module is further configured to display N screenshots on the screen of the electronic device in response to the first input received by the receiving module.
在一种可能的实现方式中,本申请实施例提供的截屏装置70还包括:接收模块和编辑模块。其中,接收模块,用于在输出模块72基于N张截屏图片,输出目标视频之前,接收用户对N张截屏图片中的第一截屏图片的第二输入。编辑模块,用于响应于接收模块接收的第二输入,对第一截屏图片执行编辑操作。上述输出模块,具体用于基于编辑模块编辑操作后得到的L张截屏图片,输出目标视频,L为小于或等于N的正整数。In a possible implementation manner, the screen capture device 70 provided in the embodiment of the present application further includes: a receiving module and an editing module. Wherein, the receiving module is configured to receive the user's second input on the first screenshot in the N screenshots before the output module 72 outputs the target video based on the N screenshots. The editing module is configured to perform an editing operation on the first screenshot in response to the second input received by the receiving module. The above output module is specifically used to output the target video based on the L screenshots obtained after the editing operation of the editing module, where L is a positive integer less than or equal to N.
本申请实施例提供一种截屏装置,截屏装置在得到N张截屏图片之后,可以基于该N张截屏图片直接生成一个视频文件(即目标视频),从而以视频文件的形式将多张截屏图片发送至其他用户,而无需用户依次对每张截屏图片进行选取操作以逐一发送这些截屏图片,因此本申请的方案避免了截屏图片漏选、发送失败以及发送顺序错乱的问题,从而简化了用户操作,提升了截屏装置发送多张截屏图片的连续性和灵活性,提升了人机交互体验。An embodiment of the present application provides a screen capture device. After the screen capture device obtains N screen capture pictures, it can directly generate a video file (ie, the target video) based on the N screen capture pictures, so as to send multiple screen capture pictures in the form of video files. To other users, without the need for the user to select each screenshot in turn to send these screenshots one by one, so the solution of the present application avoids the problems of missed selection of screenshots, failure to send, and disordered sending order, thereby simplifying user operations. Improve the continuity and flexibility of the screenshot device sending multiple screenshots, and improve the human-computer interaction experience.
本申请实施例中的截屏装置可以是装置,也可以是电子设备中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性地,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The screen capture device in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in an electronic device. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, tablet computer, notebook computer, palmtop computer, vehicle electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的截屏装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The screen capture device in this embodiment of the present application may be a device with 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 this embodiment of the present application.
本申请实施例提供的截屏装置能够实现上述方法实施例实现的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The screen capture device provided in the embodiment of the present application can implement the various processes implemented in the above method embodiments, and can achieve the same technical effect. To avoid repetition, details are not repeated here.
可选地,如图11所示,本申请实施例还提供一种电子设备90,包括处理器91,存储器92,存储在存储器92上并可在所述处理器91上运行的程序或指令,该程序或指令被处理器91执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 11 , the embodiment of the present application also provides an electronic device 90, including a processor 91, a memory 92, and programs or instructions stored in the memory 92 and operable on the processor 91, When the program or instruction is executed by the processor 91, the various processes of the above-mentioned method embodiments can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图12为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 12 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The electronic device 100 includes but is not limited to: 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, etc. part.
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图12中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部 件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 100 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 110 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions. The structure of the electronic device shown in FIG. 12 does not constitute a limitation to the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, and details will not be repeated here. .
其中,处理器110,用于基于用户的截屏输入,对电子设备中的N个界面执行截屏操作,得到N张截屏图片,每张截屏图片分别对应N个界面中的一个界面,N为大于1的整数;并基于N张截屏图片,输出目标视频。Wherein, the processor 110 is configured to perform screen capture operations on N interfaces in the electronic device based on the user's screen capture input to obtain N screen capture pictures, each screen capture picture corresponds to one of the N interfaces, and N is greater than 1 is an integer; and output the target video based on the N screenshots.
本申请实施例提供一种电子设备,电子设备在得到N张截屏图片之后,可以基于该N张截屏图片直接生成一个视频文件(即目标视频),从而以视频文件的形式将多张截屏图片发送至其他用户,而无需用户依次对每张截屏图片进行选取操作以逐一发送这些截屏图片,因此本申请的方案避免了截屏图片漏选、发送失败以及发送顺序错乱的问题,从而简化了用户操作,提升了电子设备发送多张截屏图片的连续性和灵活性,提升了人机交互体验An embodiment of the present application provides an electronic device. After the electronic device obtains N screenshots, it can directly generate a video file (that is, the target video) based on the N screenshots, so as to send multiple screenshots in the form of video files. To other users, without the need for the user to select each screenshot in turn to send these screenshots one by one, so the solution of the present application avoids the problems of missed selection of screenshots, failure to send, and disordered sending order, thereby simplifying user operations. Improve the continuity and flexibility of electronic devices sending multiple screenshots, and improve the human-computer interaction experience
可选地,本申请实施例中,处理器110,具体用于基于用户的截屏输入,对电子设备中的N个界面执行截屏操作,得到N张截屏图片,在执行M个界面切换的过程中,接收用户的N次截屏输入,N次截屏输入与M个界面中的N个界面一一对应,M为大于或等于N的整数;针对N次截屏输入中的每次截屏输入,响应于一次截屏输入,对N个界面中的一个界面执行截屏操作,以得到N张截屏图片。Optionally, in the embodiment of the present application, the processor 110 is specifically configured to perform a screen capture operation on N interfaces in the electronic device based on the user's screen capture input to obtain N screen capture pictures. During the process of switching between the M interfaces, , to receive N times of screen capture input from the user, and N times of screen capture input corresponds to N interfaces in M interfaces one by one, and M is an integer greater than or equal to N; for each screen capture input in N times of screen capture input, respond to one Screen capture input, perform a screen capture operation on one of the N interfaces to obtain N screen capture pictures.
可选地,本申请实施例中,处理器110,具体用于基于N张截屏图片,输出目标视频,按照第一顺序,将N张截屏图片作为N个视频帧,生成并输出目标视频,每个视频帧分别对应一张截屏图片;或者,按照第一顺序,将N张截屏图片进行合成处理,得到一张目标图片,并基于目标图片生成动图画面,得到并输出目标视频;其中,第一顺序包括以下任一项:对N个界面截屏的顺序、N张截屏图片的默认显示顺序、用户调整后的N张截屏图片的显示顺序。Optionally, in the embodiment of the present application, the processor 110 is specifically configured to output the target video based on the N screenshots, and according to the first order, use the N screenshots as N video frames to generate and output the target video, and each The video frames respectively correspond to a screen shot; or, according to the first sequence, the N screen shots are synthesized to obtain a target picture, and a moving picture is generated based on the target picture, and the target video is obtained and output; wherein, the first A sequence includes any of the following items: the sequence of taking N screenshots of the interface, the default display sequence of the N screenshots, and the display sequence of the N screenshots adjusted by the user.
可选地,本申请实施例中,显示单元106,用于在电子设备的屏幕上显示第一控件,第一控件用于显示N张截屏图片。用户输入单元107,用于接收用户对第一控件的第一输入。显示单元106,还用于响应于第一输入,在电子设备的屏幕上显示N张截屏图片。Optionally, in this embodiment of the present application, the display unit 106 is configured to display a first control on a screen of the electronic device, and the first control is used to display N screenshots. The user input unit 107 is configured to receive a first input from the user on the first control. The display unit 106 is further configured to display N screenshots on the screen of the electronic device in response to the first input.
可选地,本申请实施例中,用户输入单元107,还用于在处理器110基于N张截屏图片,输出目标视频之前,接收用户对N张截屏图片中的第一截屏图片的第二输入。处理器110,还用于响应于第二输入,对第一截屏图片执行编辑操作。处理器110,具体用于在基于编辑操作后得到的L张截屏图片,输出目标视频,L为小于或等于N的正整数。Optionally, in this embodiment of the present application, the user input unit 107 is further configured to receive a second input from the user on the first screen capture among the N screen captures before the processor 110 outputs the target video based on the N screen captures. . The processor 110 is further configured to, in response to the second input, perform an editing operation on the first screenshot. The processor 110 is specifically configured to output the target video based on the L screenshots obtained after the editing operation, where L is a positive integer less than or equal to N.
可选地,本申请实施例中,处理器110,具体用于对第一截屏图片执行删除操作,其中,L张截屏图片为N张截屏图片中除第一截屏图片之外的图片;或者,将第一截屏图片替换为第二截屏图片,其中,L张截屏图片包括第二截屏图片和N张截屏图片中除第一截屏图片之外的图片;或者,对第一截屏图片执行顺序调整操作,其中,L张截屏图片为顺序调整后的N张截屏图片;或者,对第一截屏图片执行图片修改操作,其中,L张截屏图片为图片修改后的N张截屏图片。Optionally, in the embodiment of the present application, the processor 110 is specifically configured to perform a deletion operation on the first screenshot, where the L screenshots are pictures other than the first screenshot among the N screenshots; or, Replace the first screenshot with the second screenshot, where the L screenshots include the second screenshot and N screenshots except the first screenshot; or, perform an order adjustment operation on the first screenshot , wherein, the L screenshots are N screenshots after sequence adjustment; or, perform a picture modification operation on the first screenshot, wherein the L screenshots are N screenshots after picture modification.
本申请实施例提供的电子设备能够实现上述方法实施例实现的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The electronic device provided by the embodiment of the present application can realize each process realized by the above method embodiment, and can achieve the same technical effect, and to avoid repetition, details are not repeated here.
本实施例中各种实现方式具有的有益效果具体可以参见上述方法实施例中相应实现方式所具有的有益效果,为避免重复,此处不再赘述。For the beneficial effects of the various implementations in this embodiment, refer to the beneficial effects of the corresponding implementations in the foregoing method embodiments. To avoid repetition, details are not repeated here.
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理 器也可以不集成到处理器110中。It should be understood that, in the embodiment of the present application, the input unit 104 may include a graphics processing unit (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processing unit 1041 is used by the image capturing device ( Such as the image data of the still picture or video obtained by the camera) for processing. 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, or the like. 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, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 109 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 110.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned method embodiment is realized, and the same technology can be achieved. Effect, in order to avoid repetition, will not repeat them here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, 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 method embodiments , and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that 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. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以 软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (15)

  1. 一种截屏方法,其中,所述方法包括:A screen capture method, wherein the method includes:
    基于用户的截屏输入,对电子设备中的N个界面执行截屏操作,得到N张截屏图片,每张所述截屏图片分别对应所述N个界面中的一个界面,N为大于1的整数;Based on the user's screen capture input, perform a screen capture operation on N interfaces in the electronic device to obtain N screen capture pictures, each of the screen capture pictures corresponds to one of the N interfaces, and N is an integer greater than 1;
    基于所述N张截屏图片,输出目标视频。Outputting a target video based on the N screenshots.
  2. 根据权利要求1所述的方法,其中,所述基于用户的截屏输入,对电子设备中的N个界面执行截屏操作,得到N张截屏图片,包括:The method according to claim 1, wherein, based on the user's screen capture input, the screen capture operation is performed on N interfaces in the electronic device to obtain N screen capture pictures, including:
    在执行M个界面切换的过程中,接收用户的N次截屏输入,所述N次截屏输入与所述M个界面中的N个界面一一对应,M为大于或等于N的整数;During the process of switching between M interfaces, N screen capture inputs from the user are received, and the N screen capture inputs are in one-to-one correspondence with N interfaces in the M interfaces, and M is an integer greater than or equal to N;
    针对所述N次截屏输入中的每次截屏输入,响应于一次截屏输入,对所述N个界面中的一个界面执行截屏操作,以得到所述N张截屏图片。For each of the N screen capture inputs, in response to one screen capture input, a screen capture operation is performed on one of the N interfaces to obtain the N screen capture pictures.
  3. 根据权利要求1或2所述的方法,其中,所述基于所述N张截屏图片,输出目标视频,包括:The method according to claim 1 or 2, wherein said outputting a target video based on said N screenshots includes:
    按照第一顺序,将所述N张截屏图片作为N个视频帧,生成并输出所述目标视频,每个所述视频帧分别对应一张截屏图片;According to the first sequence, using the N screen captures as N video frames, generating and outputting the target video, each of the video frames corresponds to a screen capture;
    或者,or,
    按照第一顺序,将所述N张截屏图片进行合成处理,得到一张目标图片,并基于所述目标图片生成动图画面,得到并输出所述目标视频;According to the first sequence, the N screenshots are synthesized to obtain a target picture, and a moving picture is generated based on the target picture, and the target video is obtained and output;
    其中,所述第一顺序包括以下任一项:对所述N个界面截屏的顺序、所述N张截屏图片的默认显示顺序、用户调整后的所述N张截屏图片的显示顺序。Wherein, the first order includes any of the following: an order of taking screenshots of the N interfaces, a default display order of the N screenshots, and a display order of the N screenshots adjusted by the user.
  4. 根据权利要求1所述的方法,其中,所述基于所述N张截屏图片,输出目标视频之前,所述方法还包括:The method according to claim 1, wherein, before outputting the target video based on the N screenshots, the method further comprises:
    在所述电子设备的屏幕上显示第一控件,所述第一控件用于显示所述N张截屏图片;Displaying a first control on the screen of the electronic device, the first control is used to display the N screenshots;
    接收用户对所述第一控件的第一输入;receiving a user's first input on the first control;
    响应于所述第一输入,在所述电子设备的屏幕上显示所述N张截屏图片。In response to the first input, the N screenshots are displayed on the screen of the electronic device.
  5. 根据权利要求1或4所述的方法,其中,所述基于所述N张截屏图片,输出目标视频之前,所述方法还包括:The method according to claim 1 or 4, wherein, before outputting the target video based on the N screenshots, the method further comprises:
    接收用户对所述N张截屏图片中的第一截屏图片的第二输入;receiving a second input from the user on the first screenshot in the N screenshots;
    响应于所述第二输入,对所述第一截屏图片执行编辑操作;performing an editing operation on the first screenshot in response to the second input;
    所述基于所述N张截屏图片,输出目标视频,包括:The output target video based on the N screenshots includes:
    基于编辑操作后得到的L张截屏图片,输出所述目标视频,L为小于或等于N的正整数。Output the target video based on the L screenshots obtained after the editing operation, where L is a positive integer less than or equal to N.
  6. 根据权利要求5所述的方法,其中,所述对所述第一截屏图片执行编辑操作,包括:The method according to claim 5, wherein the performing an editing operation on the first screenshot comprises:
    对所述第一截屏图片执行删除操作,其中,所述L张截屏图片为所述N张截屏图片中除所述第一截屏图片之外的图片;Performing a deletion operation on the first screenshot, wherein the L screenshots are pictures other than the first screenshot among the N screenshots;
    或者,or,
    将所述第一截屏图片替换为第二截屏图片,其中,所述L张截屏图片包括所述第二截屏图片和所述N张截屏图片中除所述第一截屏图片之外的图片;replacing the first screenshot with a second screenshot, wherein the L screenshots include the second screenshot and pictures other than the first screenshot in the N screenshots;
    或者,or,
    对所述第一截屏图片执行顺序调整操作,其中,所述L张截屏图片为顺序调整后的所述N张截屏图片;Performing an order adjustment operation on the first screenshot, wherein the L screenshots are the N screenshots after sequence adjustment;
    或者,or,
    对所述第一截屏图片执行图片修改操作,其中,所述L张截屏图片为图片修改后的所述N张截屏图片。A picture modification operation is performed on the first screenshot, wherein the L screenshots are the N screenshots after picture modification.
  7. 一种截屏装置,其中,所述装置包括:截屏模块和输出模块;A screen capture device, wherein the device includes: a screen capture module and an output module;
    所述截屏模块,用于基于用户的截屏输入,对电子设备中的N个界面执行截屏操作,得到N张截屏图片,每张所述截屏图片分别对应所述N个界面中的一个界面,N为大于1的整数;The screen capture module is configured to perform a screen capture operation on N interfaces in the electronic device based on the user's screen capture input to obtain N screen capture pictures, each of which corresponds to one of the N interfaces, N is an integer greater than 1;
    所述输出模块,用于基于所述截屏模块得到的所述N张截屏图片,输出目标视频。The output module is configured to output the target video based on the N screenshots obtained by the screen capture module.
  8. 根据权利要求7所述的装置,其中,所述截屏模块,具体用于在执行M个界面切换的过程中,接收用户的N次截屏输入,所述N次截屏输入与所述M个界面中的N个界面一一对应,M为大于或等于N的整数;并针对所述N次截屏输入中的每次截屏输入,响应于一次截屏输入,对所述N个界面中的一个界面执行截屏操作,以得到所述N张截屏图片。The device according to claim 7, wherein the screen capture module is specifically configured to receive N times of screen capture input from the user during the process of switching between M interfaces, and the N times of screen capture input is consistent with the M interfaces. The N interfaces correspond one-to-one, and M is an integer greater than or equal to N; and for each screen capture input in the N times of screen capture input, in response to a screen capture input, perform a screen capture on one of the N interfaces operation to obtain the N screenshots.
  9. 根据权利要求7或8所述的装置,其中,所述输出模块,具体用于按照第一顺序,将所述N张截屏图片作为N个视频帧,以生成并输出所述目标视频,每个所述视频帧分别对应一张截屏图片;或者,按照第一顺序,将所述N张截屏图片进行合成处理,得到一张目标图片,并基于所述目标图片生成动图画面,得到并输出所述目标视频;The device according to claim 7 or 8, wherein the output module is specifically configured to use the N screenshots as N video frames in a first order to generate and output the target video, each The video frames respectively correspond to a screen capture picture; or, according to the first order, the N screen capture pictures are synthesized to obtain a target picture, and a moving picture is generated based on the target picture, and the obtained and outputted target video;
    其中,所述第一顺序包括以下任一项:对所述N个界面截屏的顺序、所述N张截屏图片的默认显示顺序、用户调整后的所述N张截屏图片的显示顺序。Wherein, the first order includes any of the following: an order of taking screenshots of the N interfaces, a default display order of the N screenshots, and a display order of the N screenshots adjusted by the user.
  10. 根据权利要求7所述的装置,其中,所述装置还包括:显示模块和接收模块;The device according to claim 7, wherein the device further comprises: a display module and a receiving module;
    所述显示模块,用于在所述输出模块基于所述N张截屏图片,输出所述目标视频之前,在所述电子设备的屏幕上显示第一控件,所述第一控件用于显示所述N张截屏图片;The display module is configured to display a first control on the screen of the electronic device before the output module outputs the target video based on the N screenshots, and the first control is used to display the N screenshots;
    所述接收模块,用于接收用户对所述显示模块显示的所述第一控件的第一输入;The receiving module is configured to receive a user's first input to the first control displayed by the display module;
    所述显示模块,还用于响应于所述接收模块接收的所述第一输入,在所述电子设备的屏幕上显示所述N张截屏图片。The display module is further configured to display the N screenshots on the screen of the electronic device in response to the first input received by the receiving module.
  11. 根据权利要求7或10所述的装置,其中,所述装置还包括:接收模块和编辑模块;The device according to claim 7 or 10, wherein the device further comprises: a receiving module and an editing module;
    所述接收模块,用于在所述输出模块基于所述N张截屏图片,输出所述目标视频之前,接收用户对所述N张截屏图片中的第一截屏图片的第二输入;The receiving module is configured to, before the output module outputs the target video based on the N screen captures, receive a user's second input to the first screen capture in the N screen captures;
    所述编辑模块,用于响应于所述接收模块接收的所述第二输入,对所述第一截屏图片执行编辑操作;The editing module is configured to perform an editing operation on the first screenshot in response to the second input received by the receiving module;
    所述输出模块,具体用于基于所述编辑模块编辑操作后得到的L张截屏图片,输出所述目标视频,L为小于或等于N的正整数。The output module is specifically configured to output the target video based on the L screenshots obtained after the editing operation of the editing module, where L is a positive integer less than or equal to N.
  12. 根据权利要求11所述的装置,其中,所述编辑模块,具体用于:The device according to claim 11, wherein the editing module is specifically used for:
    对所述第一截屏图片执行删除操作,其中,所述L张截屏图片为所述N张截屏图片中除所述第一截屏图片之外的图片;Performing a deletion operation on the first screenshot, wherein the L screenshots are pictures other than the first screenshot among the N screenshots;
    或者,or,
    将所述第一截屏图片替换为第二截屏图片,其中,所述L张截屏图片包括所述第二截屏图片和所述N张截屏图片中除所述第一截屏图片之外的图片;replacing the first screenshot with a second screenshot, wherein the L screenshots include the second screenshot and pictures other than the first screenshot in the N screenshots;
    或者,or,
    对所述第一截屏图片执行顺序调整操作,其中,所述L张截屏图片为顺序调整后的所述N张截屏图片;Performing an order adjustment operation on the first screenshot, wherein the L screenshots are the N screenshots after sequence adjustment;
    或者,or,
    对所述第一截屏图片执行图片修改操作,其中,所述L张截屏图片为图片修改后的所述N张截屏图片。A picture modification operation is performed on the first screenshot, wherein the L screenshots are the N screenshots after picture modification.
  13. 一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现权利要求1-6中任一项所述的截屏方法的步骤。An electronic device comprising a processor, a memory, and a program or instruction stored on the memory and operable on the processor, when the program or instruction is executed by the processor, claim 1 is realized -The steps of the screenshot method described in any one of 6.
  14. 一种计算处理设备,其中,包括:A computing processing device, comprising:
    存储器,其中存储有计算机可读代码;a memory having computer readable code stored therein;
    一个或多个处理器,当所述计算机可读代码被所述一个或多个处理器执行时,所述计算处理设备执行如权利要求1-6中任一项所述的截屏方法。One or more processors, when the computer readable code is executed by the one or more processors, the computing processing device executes the screenshot method according to any one of claims 1-6.
  15. 一种芯片,其中,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如如权利要求1-6中任一项所述的方法。A chip, wherein the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or an instruction to implement the process described in any one of claims 1-6. described method.
PCT/CN2022/111323 2021-08-13 2022-08-10 Screen capture method and device WO2023016476A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110931140.0A CN113778300A (en) 2021-08-13 2021-08-13 Screen capturing method and device
CN202110931140.0 2021-08-13

Publications (1)

Publication Number Publication Date
WO2023016476A1 true WO2023016476A1 (en) 2023-02-16

Family

ID=78837614

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/111323 WO2023016476A1 (en) 2021-08-13 2022-08-10 Screen capture method and device

Country Status (2)

Country Link
CN (1) CN113778300A (en)
WO (1) WO2023016476A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113778300A (en) * 2021-08-13 2021-12-10 维沃移动通信(杭州)有限公司 Screen capturing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488371A (en) * 2012-06-11 2014-01-01 中兴通讯股份有限公司 Method for making animation on mobile terminal and mobile terminal
CN103927095A (en) * 2014-04-16 2014-07-16 广东欧珀移动通信有限公司 Method and device for achieving screen video recording
CN104035684A (en) * 2013-03-06 2014-09-10 腾讯科技(深圳)有限公司 Dynamic screen capture method and system applicable to mobile terminal
US20190147026A1 (en) * 2017-05-16 2019-05-16 Apple Inc. Device, Method, and Graphical User Interface for Editing Screenshot Images
CN113778300A (en) * 2021-08-13 2021-12-10 维沃移动通信(杭州)有限公司 Screen capturing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045823B (en) * 2015-06-26 2019-02-01 上海卓易科技股份有限公司 A kind of generation method and device of the mobile terminal demonstration document based on screenshot
CN105260674A (en) * 2015-09-30 2016-01-20 深圳天珑无线科技有限公司 Screen capture processing method and apparatus and intelligent terminal
CN106020608A (en) * 2016-05-20 2016-10-12 北京小米移动软件有限公司 Screenshot control method and device
CN110658971B (en) * 2019-08-26 2021-04-23 维沃移动通信有限公司 Screen capturing method and terminal equipment
CN111638849A (en) * 2020-05-29 2020-09-08 维沃移动通信有限公司 Screenshot method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488371A (en) * 2012-06-11 2014-01-01 中兴通讯股份有限公司 Method for making animation on mobile terminal and mobile terminal
CN104035684A (en) * 2013-03-06 2014-09-10 腾讯科技(深圳)有限公司 Dynamic screen capture method and system applicable to mobile terminal
CN103927095A (en) * 2014-04-16 2014-07-16 广东欧珀移动通信有限公司 Method and device for achieving screen video recording
US20190147026A1 (en) * 2017-05-16 2019-05-16 Apple Inc. Device, Method, and Graphical User Interface for Editing Screenshot Images
CN113778300A (en) * 2021-08-13 2021-12-10 维沃移动通信(杭州)有限公司 Screen capturing method and device

Also Published As

Publication number Publication date
CN113778300A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
US8799775B2 (en) Device, method, and graphical user interface for displaying emphasis animations for an electronic document in a presentation mode
US11580155B2 (en) Display device for displaying related digital images
US20240031668A1 (en) Photographing interface display method and apparatus, electronic device, and medium
KR20100028344A (en) Method and apparatus for editing image of portable terminal
WO2023030306A1 (en) Method and apparatus for video editing, and electronic device
CN112672061B (en) Video shooting method and device, electronic equipment and medium
WO2023005920A1 (en) Screen splitting method and apparatus, and electronic device
WO2023061414A1 (en) File generation method and apparatus, and electronic device
WO2024037418A1 (en) Display method and apparatus, electronic device, and readable storage medium
CN102799384A (en) Method, client and system for outdoor scene screenshot
WO2023143531A1 (en) Photographing method and apparatus, and electronic device
WO2023046068A1 (en) File processing method and apparatus
WO2023016476A1 (en) Screen capture method and device
CN103699621A (en) Method for recording graphic and text information on materials recorded by mobile device
WO2022068803A1 (en) File processing method and apparatus, and electronic device
CN112887794B (en) Video editing method and device
KR20230061519A (en) Screen capture methods, devices and electronics
WO2023155858A1 (en) Document editing method and apparatus
WO2023143529A1 (en) Photographing method and apparatus, and electronic device
WO2023284639A1 (en) Display control method and apparatus
WO2023284640A1 (en) Picture processing method and electronic device
CN113810538B (en) Video editing method and video editing device
CN112399238B (en) Video playing method and device and electronic equipment
CN113139367A (en) Document generation method and device and electronic equipment
CN113393372A (en) Desktop wallpaper setting method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22855457

Country of ref document: EP

Kind code of ref document: A1