CN115793920A - Screenshot method and screenshot device - Google Patents

Screenshot method and screenshot device Download PDF

Info

Publication number
CN115793920A
CN115793920A CN202211501011.9A CN202211501011A CN115793920A CN 115793920 A CN115793920 A CN 115793920A CN 202211501011 A CN202211501011 A CN 202211501011A CN 115793920 A CN115793920 A CN 115793920A
Authority
CN
China
Prior art keywords
pictures
input
screenshot
display interface
picture
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202211501011.9A
Other languages
Chinese (zh)
Inventor
朱然
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202211501011.9A priority Critical patent/CN115793920A/en
Publication of CN115793920A publication Critical patent/CN115793920A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a screenshot method and a screenshot device, and belongs to the field of electronic equipment. The screenshot method comprises the following steps: receiving a first input, wherein the first input is used for screen capture; responding to a first input, recording a display interface of the electronic equipment within a first duration to obtain M first pictures, wherein the number of the first pictures is associated with a screen refresh rate of the electronic equipment or a frame rate of display content in the display interface; and displaying N first pictures, wherein M, N are positive integers, and N is less than or equal to M.

Description

Screenshot method and screenshot device
Technical Field
The application belongs to the field of electronic equipment, and particularly relates to a screenshot method and a screenshot device.
Background
When a user views content of interest while using an electronic device, there is often a need for saving screenshots.
When the picture in the moving picture or video changes rapidly, the user is difficult to accurately capture the target picture, and the user needs to repeatedly capture the picture, which brings great inconvenience to the user.
Disclosure of Invention
The embodiment of the application aims to provide a screenshot method, a screenshot device, an electronic device and a readable storage medium, which can solve the problem that a user cannot accurately capture a target picture.
In a first aspect, an embodiment of the present application provides a screenshot method, which is used for an electronic device, and the method includes:
receiving a first input, wherein the first input is used for screen capture;
responding to a first input, recording a display interface of the electronic equipment within a first duration to obtain M first pictures, wherein the number of the first pictures is associated with a screen refresh rate of the electronic equipment or a frame rate of display content in the display interface;
and displaying N first pictures, wherein M, N are positive integers, and N is less than or equal to M.
In a second aspect, an embodiment of the present application provides a screenshot device for an electronic device, where the screenshot device includes:
the receiving module receives a first input, and the first input is used for screen capture;
the screen recording module is used for responding to a first input and recording a screen of a display interface of the electronic equipment within a first duration to obtain M first pictures, wherein the number of the first pictures is associated with a screen refresh rate of the electronic equipment or a frame rate of display contents in the display interface;
the display module displays N first pictures, wherein M, N are positive integers, and N is less than or equal to M.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, stored on a storage medium, for execution by at least one processor to implement a method as in the first aspect.
In the embodiment of the application, when a first input for screen capturing by a user is received, compared with a screen capturing mode in the related art, a plurality of pictures are reserved in the screen capturing mode, when a moving picture or a video exists in a display interface, the user can directly select a target screen capturing from the plurality of pictures, the problem that the user misses the content to be captured and needs to capture the picture frequently or adjust the progress of the video for multiple times and then capture the picture to obtain a satisfactory screen capturing picture is solved, and therefore the convenience for screen capturing of the user is improved.
Drawings
FIG. 1 is a flowchart of a screenshot method in an embodiment of the present application;
FIG. 2 is a schematic view of a display interface of an electronic device in an embodiment of the application;
FIG. 3 is a schematic block diagram of a screenshot device in an embodiment of the application;
FIG. 4 is one of the schematic block diagrams of an electronic device in an embodiment of the present application;
fig. 5 is a second schematic block diagram of an electronic device in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The screenshot method, the screenshot device, the electronic device and the readable storage medium provided by the embodiment of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
In some embodiments of the present application, a screenshot method is provided, where the screenshot method is used for an electronic device, and as shown in fig. 1, the screenshot method includes:
102, receiving a first input, wherein the first input is used for screen capture;
step 104, responding to a first input, recording a display interface of the electronic equipment within a first duration to obtain M first pictures, wherein the number of the first pictures is associated with a screen refresh rate of the electronic equipment or a frame rate of display contents in the display interface;
and 106, displaying N first pictures, wherein M, N are positive integers, and N is less than or equal to M.
It can be understood that, when the picture played by the electronic device is the content in which the user is interested, the user may trigger the first input of the screenshot, and in the case of receiving the first input, the electronic device performs screen recording on the display interface within the first time duration, that is, performs the screen recording function within the first time duration, so as to obtain the recorded M first pictures.
It will be appreciated that recording on the screen typically results in a video segment, and the video segment is composed of a plurality of video frames, so that the M first pictures are at least part of the plurality of video frames composing the video segment. Specifically, the number of first pictures is associated with a refresh rate of a screen of the electronic device, a frame rate of a motion picture, or a frame rate of a video.
Specifically, the higher the refresh rate of the screen is, the greater the number of video frames constituting a video segment is, and then the greater the value of M if M first pictures are all the video frames constituting a video segment at this time.
Illustratively, the refresh rate of the screen of the electronic device is 120HZ, that is, the video per second is composed of 120 video frames, if the first time length is 2s, the number of video frames obtained by recording the video with the time length of 2s is 240, and if the M first pictures are all video frames of the video, the number of the first pictures is 240.
Specifically, the higher the frame rate of the display content is, the greater the number of video frames constituting a segment of video is, and then the greater the value of M if M first pictures are all video frames constituting a segment of video at this time.
Illustratively, the frame rate of a moving picture or video is 60fps, and in 2s of videos obtained by screen recording, 60 first pictures are obtained.
In the case of recording M first pictures, there may be some pictures that cannot be used in the M pictures, for example, duplicate or blurred pictures, and therefore, the number of first pictures actually obtained is N, where N is less than or equal to M. Under the condition of obtaining the N first pictures, the user can select a target picture in the N first pictures and take the selected target picture as a target screenshot.
In the embodiment of the application, when first input of a user for screen capture is received, compared with a screen capture mode in the related art, a plurality of pictures are reserved in the screen capture mode, when a moving picture or a video exists in a display interface, the user can directly select a target screen capture from the plurality of pictures, the user is prevented from missing the content to be captured, the problem that the user needs to capture the picture frequently or adjust the progress of the video for multiple times and then capture the picture to obtain a satisfactory screen capture picture is solved to a certain extent, and therefore the convenience of screen capture of the user is improved.
In a possible application, the N first pictures can also be embodied in a video mode, that is, a video file is obtained by screen recording, and each frame of image in the video file is a first picture.
In a possible embodiment, after receiving the first input for screen capture by the user, the method further includes: and acquiring display content in the display interface. Responding to a first input, recording a display interface of the electronic equipment within a first time length to obtain M first pictures, and the method comprises the following steps: responding to the first input, and recording a screen of a display interface of the electronic equipment within a first time length under the condition that a motion picture or a video is identified to be contained in the display interface so as to obtain M first pictures.
When a first input used for screen capture by a user is received, whether a motion picture or a video is included in a display interface needs to be judged, and if the motion picture or the video is included in the current display interface, the step of recording the display interface is executed.
When a moving picture or a video is included in the display interface, because the picture in the display interface is changed rapidly, the user can not capture the satisfactory picture at one time according to the conventional screenshot, and the content in the display interface within a period of time is acquired in a screen recording mode, so that the user can select from a plurality of screenshots acquired within a period of time to rapidly select the satisfactory screenshot of the user.
In one possible application, after receiving input for screen capture by a user, if a dynamic picture or a video is not included in the display interface, the screen capture input is directly responded, and the image in the current display interface is subjected to screen capture to generate a screen capture.
It can be understood that if the current display interface does not contain a motion picture or a video, it indicates that the picture in the current display interface is unchanged without other operations of the user, and the screen capture operation is directly performed to obtain a single screenshot.
In this embodiment, under the condition that screenshot input of a user is received, whether a screen needs to be recorded to obtain multiple screenshots for the user to select can be determined by judging whether a dynamic image is included in a current display interface, so that different screenshot strategies can be determined according to different interface scenes, and the screenshot function is more intelligent.
In other embodiments, the accurate screenshot mode may be triggered when a first input for screenshot by the user is received, that is, a screen recording operation is performed first, and then a plurality of screenshots are provided for the user to select and obtain a required screenshot. And when receiving a second input for screenshot from the user, triggering a common screenshot mode, namely directly screenshot the current display interface to obtain a screenshot. It can be understood that the first input is different from the second input, for example, the first input is an input of double-clicking the screen with the joint, and the second input is an input of simultaneously pressing the power key and the volume down key. Therefore, the user can control the electronic equipment to execute different screenshot modes through different screenshot input modes.
In a possible embodiment, after obtaining the M first pictures, the method further includes: according to the similarity of any two first pictures, performing duplicate removal processing on the M first pictures to obtain N first pictures, wherein one first picture is removed under the condition that the similarity of any two first pictures exceeds a first threshold value; wherein the first threshold is inversely related to the value of M.
It can be understood that after the M pictures are obtained by screen recording, it is further determined whether the same or similar pictures exist in the M pictures, and the same or similar pictures are determined as duplicate pictures, so that, in order to save the time for the user to select the desired screenshot from the multiple pictures, a part of the duplicate pictures can be deleted, for example, if there are 3 identical or similar pictures in the M pictures, 2 of the M pictures are deleted, and only one of the 3 duplicate pictures is retained.
Under the condition that an active picture or a video exists in a display interface, the situation that the image of the active picture or the video does not change within a period of time exists, and therefore multiple repeated pictures may exist in the recorded M pictures, and therefore if the M pictures are directly displayed to a user for selection, the workload of the user for selection can be increased by the multiple repeated pictures.
When the M first pictures are removed, whether the two pictures are regarded as the repeated pictures is based on whether the similarity of the two pictures reaches a first threshold value, and the two pictures are regarded as the repeated pictures under the condition that the similarity of the two pictures reaches the first threshold value.
It will be appreciated that the first threshold is inversely related to the value of M, i.e. if the number of first pictures is larger (i.e. the value of M is larger), the first threshold is smaller, whereas the number of first pictures is smaller (i.e. the value of M is smaller), the first threshold is larger.
For example, if 50 first pictures are obtained by screen recording, the first threshold for performing deduplication on the 50 first pictures at this time may be 50%, that is, if the similarity of two pictures exceeds 50%, the pictures are regarded as duplicate pictures. If only 10 first pictures are obtained during screen recording, the first threshold for performing deduplication on the 10 first pictures at this time may be 90%, that is, only two pictures with similarity exceeding 90% are regarded as duplicate pictures.
In this embodiment, the first threshold may be associated with the value of M, so that when the value of M is larger, more pictures are removed, and when the value of M is smaller, fewer pictures are removed, thereby ensuring that the number of pictures obtained after the final deduplication process is not too large or too small.
In a possible embodiment, performing a deduplication process on M first pictures to obtain N first pictures includes: numbering the M pictures; comparing the current numbered picture with the next numbered picture; deleting the current-numbered picture based on the similarity between the current-numbered picture and the next-numbered picture being more than or equal to a first threshold value; based on the similarity between the current numbered picture and the next numbered picture being smaller than a first threshold value, saving the current numbered picture; and numbering the images subjected to the duplicate removal processing to obtain N images subjected to the duplicate removal processing.
Under the condition of obtaining M pictures, numbering the M pictures according to a recording time sequence, comparing the current numbered picture with the next numbered picture when duplicate removal processing is needed, if the similarity between the current numbered picture and the next numbered picture reaches a first threshold value, considering the current numbered picture and the next numbered picture as repeated pictures, and if the similarity between the current numbered picture and the next numbered picture does not reach the first threshold value, considering the current numbered picture and the next numbered picture as not repeated pictures.
And when the picture with the current number and the picture with the next number are repeated pictures, deleting the picture with the current number, and comparing the picture with the next number. If the current numbered picture and the next numbered picture are not repeated pictures, the current numbered picture is stored, and then the next numbered picture is compared with the next numbered picture until all pictures are compared.
In a possible embodiment, the M first pictures may not be deduplicated, but may be displayed directly, i.e. when N = M. Specifically, in the case where the value of M is small, the first picture may be selected not to be subjected to the deduplication processing. In a possible embodiment, after displaying N first pictures, the method further includes: receiving selection input of a user on a target picture in the N first pictures; and determining the target picture as a target screenshot, and deleting the other pictures except the target picture in the M first pictures.
As can be understood, the target picture is the screenshot which the user wants and which the user determines from the plurality of first pictures. Therefore, after the user selects the target picture, other pictures which are not selected in the first picture are deleted.
In the embodiment, by means of automatically deleting the useless pictures, the user does not need to delete the other pictures except the target picture in the N first pictures in sequence, and occupied spaces of the other pictures are reduced. And is favorable for improving the use convenience of the electronic equipment for users.
In a possible embodiment, after receiving the first input, the method further includes: displaying a time setting icon on a display interface; and determining the first time length based on the adjustment input of the user to the setting icon.
In the case where the first input is received, a time setting icon for setting a subsequent screen recording time period, as will be understood, may be displayed on the display interface.
Specifically, if no adjustment input for the setting icon is received, the electronic device records the screen with a default first duration, and if the adjustment input for the setting icon by the user is received, the electronic device records the screen with the adjusted first duration.
After the screen recording is started, the user can still operate the time setting icon by clicking, sliding and the like, so that the screen recording duration can be adjusted in real time in the screen recording process. Therefore, the time setting icon capable of adjusting the screen recording time is arranged, so that the user can adjust the screen recording time conveniently, the user can set the screen recording time according with the use habit of the user, or the screen recording time can be adjusted at any time in the recording process, and the screen capturing requirement of the user can be better met.
In a possible embodiment, during the screen recording process, a countdown of the screen recording can be further displayed on the display interface of the electronic device, that is, after the first duration is set, the user is prompted in a countdown manner how long the screen will be recorded.
In a possible embodiment, the step of displaying N first pictures comprises:
displaying a progress bar on an interface displaying the N first pictures, wherein the progress bar is associated with the sequence of the N first pictures; determining a progress value of the progress bar in response to a drag input to the progress bar; and determining the target screenshot according to the progress value.
After the display interface is recorded, displaying N first pictures and a progress bar on the display interface. The progress bar is associated with the sequence of the N first pictures, and each progress value in the progress bar corresponds to one first picture.
As shown in fig. 2, the interface includes 240 first pictures, and displays a progress bar 202, and the user may drag the progress bar 202 to quickly preview the 240 first pictures, and stop dragging when a certain picture is viewed, so as to select the picture as a target picture, and if the user stops the dragging operation at this time in this illustration, the 53 th first picture is determined as the target picture. Besides, in addition to the dragging operation mode, a virtual key of "forward" or "backward" may be displayed on the display interface, and the user may operate the virtual key to adjust the progress of the progress bar, for example, press "forward" once, jump to the next picture, or jump to the next frame image, thereby implementing switching of the target file 201.
In this embodiment, the user drags the progress bar to quickly preview the N first pictures according to the screenshot sequence, so that a satisfactory screenshot can be quickly selected, and convenience in user operation is improved.
According to the screenshot method provided by the embodiment of the application, the execution main body can be a screenshot device. In the embodiment of the present application, a screenshot device is taken as an example to execute a screenshot method, which illustrates the screenshot device provided in the embodiment of the present application.
As shown in fig. 3, in an embodiment of the present application, a screenshot device 500 is provided, where the screenshot device 500 is used for an electronic device, and the screenshot device 500 includes:
a receiving module 510, configured to receive a first input, where the first input is used for screen capture;
the recording module 520, in response to a first input, records a screen of a display interface of the electronic device within a first duration to obtain M first pictures, where the number of the first pictures is associated with a screen refresh rate of the electronic device or a frame rate of display content in the display interface;
the display module 530 displays N first pictures, wherein M, N are positive integers, and N is less than or equal to M.
Compared with a method of capturing one screenshot in the related art, when a first input for screenshot by a user is received, in the embodiment, a plurality of pictures are reserved in a screen recording manner, and when a moving picture or a video exists in a display interface, the user can directly select a target screenshot from the plurality of pictures, so that the problem that the user misses the content to be captured and needs to capture the screenshot frequently or capture the screenshot after adjusting the progress of the video for multiple times to obtain a satisfactory screenshot picture is solved, and convenience in screenshot of the user is improved.
In a possible embodiment, after receiving the first input, the screen recording module is specifically configured to: acquiring display content in a display interface; responding to the first input, recording a screen of the display interface of the electronic equipment within a first time length under the condition that the display interface is identified to contain a motion picture or a video so as to obtain M first pictures.
In a possible embodiment, after obtaining M first pictures, the receiving module is further configured to: receiving selection input of a user on a target picture in the M first pictures; and determining the target picture as a target screenshot, and deleting the other pictures except the target picture in the M first pictures.
In a possible embodiment, after receiving the first input, the display module is further configured to: displaying a time setting icon on a display interface; and determining the first time length based on the adjustment input of the user to the setting icon.
In a possible embodiment, the screenshot device further includes: a deduplication module; after obtaining M first pictures, the deduplication module is configured to: according to the similarity of any two first pictures, carrying out duplicate removal processing on the M first pictures to obtain N first pictures, wherein one first picture is removed under the condition that the similarity of any two first pictures exceeds a first threshold value; wherein the first threshold is inversely related to the value of M.
In a possible embodiment, the deduplication module is specifically configured to number M pictures; comparing the current numbered picture with the next numbered picture; deleting the current-numbered picture based on the similarity between the current-numbered picture and the next-numbered picture being more than or equal to a first threshold value; based on the similarity between the current numbered picture and the next numbered picture being smaller than a first threshold value, saving the current numbered picture; and numbering the images subjected to the duplicate removal processing to obtain N images subjected to the duplicate removal processing.
In a possible embodiment, after recording the display interface within the set duration, the display module is further configured to: displaying a progress bar on a display interface, wherein the progress bar is associated with the sequence of the N first pictures; the receiving module is further configured to: determining a progress value of the progress bar in response to a drag input to the progress bar; and selecting the target picture according to the progress value to determine a target screenshot.
The screenshot device in the embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (Network Attached Storage, NAS), a personal computer (NAS), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The screenshot device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The screenshot device provided by the embodiment of the application can implement each process implemented by the method embodiment, and is not repeated here to avoid repetition.
Optionally, as shown in fig. 4, an electronic device 600 is further provided in an embodiment of the present application, and includes a processor 601 and a memory 602, where a program or an instruction that can be executed on the processor 601 is stored in the memory 602, and when the program or the instruction is executed by the processor 601, the steps of the screenshot method embodiment are implemented, and the same technical effect can be achieved, and are not described again here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic device and the non-mobile electronic device described above.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing the embodiment of the present application.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
Those skilled in the art will appreciate that the electronic device 700 may further comprise a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 710 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
A user input unit 707 configured to receive a first input for screen capture by a user;
the processor 710 receives a first input, where the first input is used for screen capture, and records a screen of a display interface of the electronic device within a first duration in response to the first input to obtain M first pictures, where the number of the first pictures is associated with a screen refresh rate of the electronic device or a frame rate of display content in the display interface;
the display unit 706 displays N first pictures, wherein M, N are positive integers, and N is less than or equal to M.
The user can directly select the target screenshot from the multiple pictures, so that the problem that the user misses the content to be captured and needs to capture the screenshot frequently or obtain a satisfactory screenshot picture after adjusting the progress of the video for multiple times is solved, and the convenience of screenshot of the user is improved.
Optionally, the processor 710 is further configured to obtain display content in the display interface; responding to the first input, recording a screen of the display interface of the electronic equipment within a first time length under the condition that the display interface is identified to contain a motion picture or a video so as to obtain M first pictures.
Optionally, after obtaining M first pictures; the processor 710 is further configured to receive a selection input of a user for a target picture in the M first pictures; and determining the target picture as a target screenshot, and deleting the other pictures except the target picture in the M first pictures.
Optionally, after receiving the first input, the display unit 706 is further configured to: displaying a time setting icon on a display interface; and determining the first time length based on the adjustment input of the user to the setting icon.
After obtaining M first pictures, the processor 710 is further configured to: according to the similarity of any two first pictures, performing duplicate removal processing on the M first pictures to obtain N first pictures, wherein one first picture is removed under the condition that the similarity of any two first pictures exceeds a first threshold value; wherein the first threshold is inversely related to the value of M.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics Processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, application programs or instructions required for at least one function (such as a sound playing function, an image playing function, and the like), and the like. Further, the memory 709 may include volatile memory or nonvolatile memory, or the memory 709 may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 709 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor, which primarily handles operations related to the operating system, user interface, and applications, and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the screenshot method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read only memory ROM, a random access memory RAM, a magnetic or optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the screenshot method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes in the screenshot method embodiments, and achieve the same technical effects, and in order to avoid repetition, details are not described here again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A screenshot method for an electronic device, the screenshot method comprising:
receiving a first input, wherein the first input is used for screen capture;
responding to the first input, recording a display interface of the electronic equipment within a first duration to obtain M first pictures, wherein the number of the first pictures is associated with a screen refresh rate of the electronic equipment or a frame rate of display content in the display interface;
and displaying N first pictures, wherein M, N are positive integers, and N is less than or equal to M.
2. The method for screenshot according to claim 1,
after the receiving the first input, the method further comprises:
acquiring display content in the display interface;
the responding to the first input, recording a display interface of the electronic equipment within a first time length to obtain M first pictures, and the method comprises the following steps:
and responding to the first input, and recording a screen of the display interface of the electronic equipment within a first time length under the condition that the display interface contains a motion picture or a video so as to obtain M first pictures.
3. The screenshot method according to claim 1 or 2,
after the displaying of the N first pictures, the method further includes:
receiving selection input of a user on a target picture in the N first pictures;
and determining the target picture as a target screenshot, and deleting other pictures except the target picture in the N first pictures.
4. The screenshot method according to claim 1 or 2,
after the receiving the first input, the method further comprises:
displaying a time setting icon on the display interface;
and determining the first time length based on the adjustment input of the user to the setting icon.
5. The screenshot method according to claim 1 or 2,
after obtaining the M first pictures, the method further includes:
according to the similarity of any two first pictures, performing duplicate removal processing on the M first pictures to obtain the N first pictures, wherein one first picture is removed under the condition that the similarity of any two first pictures exceeds a first threshold value;
wherein the first threshold is inversely related to the value of M.
6. A screenshot device for an electronic device, the screenshot device comprising:
the receiving module receives a first input, and the first input is used for screen capture;
the screen recording module is used for responding to the first input and recording a screen of a display interface of the electronic equipment within a first duration to obtain M first pictures, wherein the number of the first pictures is associated with a screen refresh rate of the electronic equipment or a frame rate of display contents in the display interface;
the display module displays N first pictures, wherein M, N are positive integers, and N is less than or equal to M.
7. The screenshot device of claim 6,
the screen recording module is specifically configured to:
acquiring display content in the display interface;
and responding to the first input, and recording a screen of the display interface of the electronic equipment within a first time length under the condition that the display interface contains a motion picture or a video so as to obtain M first pictures.
8. The apparatus according to claim 6 or 7,
the receiving module is further configured to:
receiving selection input of a user on a target picture in the N first pictures;
and determining the target picture as a target screenshot, and deleting other pictures except the target picture in the N first pictures.
9. The apparatus according to claim 6 or 7,
the display module is further configured to:
displaying a time setting icon on the display interface;
and determining the first time length based on the adjustment input of the user to the setting icon.
10. The apparatus according to claim 6 or 7,
the screenshot device further comprises: a duplicate removal module;
the de-duplication module is to:
according to the similarity of any two first pictures, performing duplicate removal processing on the M first pictures to obtain the N first pictures, wherein one first picture is removed under the condition that the similarity of any two first pictures exceeds a first threshold value;
wherein the first threshold is inversely related to the value of M.
CN202211501011.9A 2022-11-28 2022-11-28 Screenshot method and screenshot device Pending CN115793920A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211501011.9A CN115793920A (en) 2022-11-28 2022-11-28 Screenshot method and screenshot device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211501011.9A CN115793920A (en) 2022-11-28 2022-11-28 Screenshot method and screenshot device

Publications (1)

Publication Number Publication Date
CN115793920A true CN115793920A (en) 2023-03-14

Family

ID=85442161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211501011.9A Pending CN115793920A (en) 2022-11-28 2022-11-28 Screenshot method and screenshot device

Country Status (1)

Country Link
CN (1) CN115793920A (en)

Similar Documents

Publication Publication Date Title
CN112887802A (en) Video access method and device
CN112836086B (en) Video processing method and device and electronic equipment
CN111669495B (en) Photographing method, photographing device and electronic equipment
CN113259743A (en) Video playing method and device and electronic equipment
CN111954076A (en) Resource display method and device and electronic equipment
CN115756275A (en) Screen capture method, screen capture device, electronic equipment and readable storage medium
CN115202524B (en) Display method and device
CN115793920A (en) Screenshot method and screenshot device
CN115543137A (en) Video playing method and device
CN115550741A (en) Video management method and device, electronic equipment and readable storage medium
CN114564134A (en) Application icon display method and device
CN114245017A (en) Shooting method and device and electronic equipment
CN114025237A (en) Video generation method and device and electronic equipment
CN113473012A (en) Virtualization processing method and device and electronic equipment
CN113641286A (en) Screen capturing method, electronic equipment and computer storage medium
CN113271378A (en) Image processing method and device and electronic equipment
CN112764648A (en) Screen capturing method and device, electronic equipment and storage medium
CN113726953B (en) Display content acquisition method and device
CN114915730B (en) Shooting method and shooting device
CN117395462A (en) Method and device for generating media content, electronic equipment and readable storage medium
CN117640819A (en) Image display method and device, electronic equipment and readable storage medium
CN115580774A (en) Method and electronic equipment for shooting video
CN117395460A (en) Video processing method, video processing device, electronic apparatus, and storage medium
CN115334242A (en) Video recording method, video recording device, electronic equipment and medium
CN115328367A (en) Screen capturing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination