CN111338728A - Screen capturing method and device and computer readable storage medium - Google Patents

Screen capturing method and device and computer readable storage medium Download PDF

Info

Publication number
CN111338728A
CN111338728A CN202010102056.3A CN202010102056A CN111338728A CN 111338728 A CN111338728 A CN 111338728A CN 202010102056 A CN202010102056 A CN 202010102056A CN 111338728 A CN111338728 A CN 111338728A
Authority
CN
China
Prior art keywords
interface
screen capture
moving
screenshot
screen
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
CN202010102056.3A
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.)
Shenzhen Microphone Holdings Co Ltd
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Microphone Holdings 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 Shenzhen Microphone Holdings Co Ltd filed Critical Shenzhen Microphone Holdings Co Ltd
Priority to CN202010102056.3A priority Critical patent/CN111338728A/en
Publication of CN111338728A publication Critical patent/CN111338728A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Abstract

The invention relates to the technical field of image processing, and discloses a screen capturing method, a screen capturing device and a computer readable storage medium. The method comprises the following steps: detecting a screen capturing instruction, and acquiring a first screen capturing interface for the content of the display interface based on the screen capturing instruction; when a first moving instruction is detected on a display interface, performing a second screen capture interface according to the display interface; and generating a target screenshot based on the first screenshot interface and the second screenshot interface. The invention simplifies the operation steps of screen capturing the overlong information, and effectively improves the screen capturing efficiency of the overlong information; the screen capture of partial content of the overlong information is realized under the control of the user, and the user experience of screen capture of the overlong information is improved.

Description

Screen capturing method and device and computer readable storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a screen capture method, an apparatus, and a computer-readable storage medium.
Background
When browsing the display interface of the terminal, the user usually captures and stores the information of interest and information with storage value for subsequent viewing or sharing. However, sometimes the information that is desired to be saved by screen capture is not only the content in the current display interface, but may also include the content that does not enter the current display interface.
At present, in the existing screen capture method for long information, all contents of a page are generally captured from the top position to the bottom position, but part of contents of overlong information cannot be captured, so that the screen capture contents are inflexible, and the user experience is not high.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a screen capturing method, a screen capturing device and a computer readable storage medium, and aims to solve the technical problems that the screen capturing content is not flexible and the user experience degree is not high in the conventional screen capturing mode.
In order to achieve the above object, the present invention provides a screen capture method, including the steps of:
detecting a screen capturing instruction, and acquiring a first screen capturing interface for the content of the display interface based on the screen capturing instruction;
when a first moving instruction is detected on a display interface, performing a second screen capture interface according to the display interface;
and generating a target screenshot based on the first screenshot interface and the second screenshot interface.
Preferably, the second screen capture according to the display interface includes:
and acquiring a moving distance of a moving operation corresponding to the first moving instruction, and generating the second screen capture interface based on the moving distance.
Preferably, the relationship between the moving distance of the content displayed on the display interface and the moving distance corresponding to the moving operation includes at least one of:
in the same proportion;
different proportions;
multiple;
the distance is preset.
Preferably, when the moving distance of the content displayed on the display interface is not in proportion to the moving distance corresponding to the moving operation, the moving distance of the content displayed on the display interface is greater than the moving distance corresponding to the moving operation.
Preferably, the first screenshot interface and the second screenshot interface are spliced into the target screenshot.
Preferably, the first screenshot interface and the second screenshot interface have overlapping contents, and the target screenshot is generated after the overlapping contents are processed.
Preferably, when a third screenshot interface exists, at least two of the first screenshot interface, the second screenshot interface and the third screenshot interface are selected to generate the target screenshot.
Preferably, the first moving instruction moves to the bottom of the display interface corresponding to the moving operation or stops the moving operation, and the screenshot operation is stopped.
Preferably, when the first movement instruction moves to the edge of the display interface corresponding to the movement operation, if the movement operation is not stopped yet, the second screen capture interface continues to be generated.
Preferably, the second screen capture of the display interface according to the first movement instruction includes:
and intercepting the second screen capture interface when the duration of the movement operation corresponding to the first movement instruction after the execution of the movement operation is finished reaches a first preset duration.
Preferably, the step of intercepting the second screen capture interface when the duration of the movement operation corresponding to the first movement instruction after the execution of the movement operation is completed reaches a first preset duration includes:
determining whether a second moving instruction corresponding to the current display interface is detected within a first preset time after the moving operation is executed;
and if the second moving instruction corresponding to the current display interface is not detected within a first preset time length after the moving operation is executed, intercepting the second screen capture interface.
Preferably, after the step of determining whether a second movement instruction corresponding to the current display interface is detected within a first preset time period after the moving operation is completed, the method further includes:
if a second moving instruction corresponding to the current display interface is detected within a first preset time after the moving operation is executed, taking the second moving instruction as the first moving instruction, and executing the moving operation corresponding to the first moving instruction;
and continuing to execute the step of determining whether a second moving instruction corresponding to the current display interface is detected within a first preset time after the moving operation is completed.
Preferably, before the step of generating a target screenshot based on the first screenshot interface and the second screenshot interface, the method further includes:
determining whether a third moving instruction corresponding to the current display interface is detected within a second preset time length after the second screen capture interface is captured;
and if the third moving instruction corresponding to the current display interface is not detected, executing a step of generating a target screenshot based on the first screenshot interface and the second screenshot interface.
In addition, to achieve the above object, the present invention also provides a screen capture apparatus, including: the screen capturing device comprises a memory, a processor and a screen capturing program which is stored on the memory and can run on the processor, wherein the screen capturing program realizes the steps of the screen capturing method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium having a screen capture program stored thereon, where the screen capture program, when executed by a processor, implements the steps of the screen capture method.
According to the method, a screen capturing instruction is detected, and a first screen capturing interface for the content of a display interface is acquired based on the screen capturing instruction; then, when a first moving instruction is detected on the display interface, a second screen capture interface is carried out according to the display interface; and then generating a target screenshot based on the first screenshot interface and the second screenshot interface. In the screen capturing process, the operation steps of screen capturing the overlong information are simplified, and the screen capturing efficiency of the overlong information is effectively improved; the screen capture of partial content of the overlong information is realized under the control of the user, and the user experience of screen capture of the overlong information is improved.
Drawings
FIG. 1 is a schematic structural diagram of a screen capture device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a screen capture method according to a first embodiment of the present invention;
FIG. 3 is a schematic view of a first screenshot interface according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a second exemplary screenshot according to an embodiment of the present invention;
FIG. 5 is a schematic view of a display interface according to an embodiment of the present invention;
FIG. 6 is a schematic view of a display interface according to another embodiment of the present invention;
fig. 7 is a schematic view of a scene of a display interface according to another embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a screen capture device in a hardware operating environment according to an embodiment of the present invention.
The screen capturing device can be a PC, and can also be a terminal device with a screen capturing function, such as a smart phone, a tablet computer, an electronic book reader and the like.
As shown in fig. 1, the screen capture apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the screen capture device may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. In particular, the light sensor may include an ambient light sensor that adjusts the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that turns off the display screen and/or the backlight when the screen capture device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the motion sensor is stationary, and can be used for applications of recognizing the gesture of the screen capture device (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; of course, the screen capture device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, which are not described herein again.
It will be appreciated by those skilled in the art that the configuration of the screen capture device shown in fig. 1 does not constitute a limitation of the screen capture device and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a screen capture program.
In the screen capture device shown in fig. 1, the network interface 1004 is mainly used for connecting with a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be used to invoke a screen capture program stored in the memory 1005.
In this embodiment, the screen capture device includes: the system comprises a memory 1005, a processor 1001 and a screen capture program stored on the memory 1005 and capable of running on the processor 1001, wherein when the processor 1001 calls the screen capture program stored in the memory 1005, the operation of the screen capture method in each embodiment described below is performed.
The invention provides a screen capture method, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the screen capture method of the invention.
The screen capture method comprises the following steps:
step S100, detecting a screen capturing instruction, and acquiring a first screen capturing interface for the content of the display interface based on the screen capturing instruction;
in the embodiment of the invention, an operation event input by a user is detected, the operation event is matched with a preset trigger condition, if the operation event is successfully matched with the preset trigger condition, a screen capture instruction is triggered, and a first screen capture interface for the content of a display interface is acquired based on the screen capture instruction, for example, the first screen capture interface corresponding to the current display interface is captured. The first screenshot interface corresponding to the current display interface may be a full-screen interface of the current display interface, or may be a part of an interface corresponding to the current display interface, and may be flexibly set according to a situation, for example: the first screenshot interface can be the whole interface of the current display interface, including an immovable part, or a movable interface part in the current display interface, or a specific interface part selected by a user. The preset trigger condition may be a certain gesture, or a hardware button or a software button. Such as: when the terminal displays the browser interface or the text interface, and detects that the volume increasing key and the power on/off key are pressed simultaneously, the screen capture instruction is triggered, or when the terminal displays the browser interface or the text interface, and detects that the screen is double-clicked, the screen capture instruction is triggered.
Step S200, when a first moving instruction is detected on a display interface, performing a second screen capture interface according to the display interface;
in the embodiment of the present invention, the movement instruction may be in various manners, and may be a physical key that is preset to start movement, for example, a volume increase key of a smartphone is pressed, and the smartphone enters a movement mode to move upwards. The pressure index on the current screen can be detected within a preset time range, and the current screen can move for a certain distance in a fixed direction according to the pressure index. The relationship between the pressure index and the moving distance can be flexibly set within a preset time range, for example, the pressure index and the moving distance are positively correlated and proportional within the preset time range, and the larger the pressure index is, the larger the moving distance is.
In the embodiment of the invention, when a first moving instruction is detected on a display interface, a second screen capture interface is carried out according to the display interface; specifically, after a first moving instruction corresponding to the current display interface is detected and the current display interface is moved for a certain distance in the fixed moving direction of the current display interface, the moved current display interface is captured as a second screen capture interface, wherein the capturing mode of the second screen capture interface is similar to that of the first screen capture interface, and is not repeated here.
Step S300, generating a target screenshot based on the first screenshot interface and the second screenshot interface:
in the embodiment of the invention, the current display interface is intercepted as the first screen-intercepting interface when the screen-intercepting instruction is detected, then the movement instruction is detected to move for a certain distance in the fixed movement direction, the current display interface after the movement is intercepted as the second screen-intercepting interface, and finally the target screen-intercepting is generated according to the obtained first screen-intercepting interface and the second screen-intercepting interface.
The specific generation process is specifically analyzed according to the screen capture condition and the user requirement, for example, if the first screen capture interface and the second screen capture interface do not have a superposition part, the first screen capture interface and the second screen capture interface only need to be spliced directly; if the first screenshot interface and the second screenshot interface have the overlapped part, the overlapped part in the screenshot interface needs to be removed, and then the target screenshot is generated through splicing.
If the current display interface includes a fixed display area of an immovable portion, for example, the current display interface includes a first fixed display area located at the top and a second fixed display area located at the bottom, when the target screenshot is generated, the second fixed display area in the first screenshot interface and the first fixed display area where the second screenshot interface is located are deleted, and then the deleted first screenshot interface and the deleted second screenshot interface are spliced to obtain the target screenshot. It should be noted that, if the first screenshot interface includes a plurality of screenshot sub-interfaces, the second fixed display area of the screenshot sub-interface with the earliest screenshot time in the first screenshot interface, and the first fixed display area and the second fixed display area of the other screenshot sub-interfaces except the screenshot sub-interface with the earliest screenshot time in the first screenshot interface are deleted, and then the first screenshot interface and the second screenshot sub-interface are spliced to obtain the target screenshot.
Further, in an embodiment, after the step S200, the method further includes: and when the first screenshot interface is inconsistent with the second screenshot interface and the second screenshot interface is detected to be positioned at one end of the to-be-screenshot interface corresponding to the current display interface, executing a step of generating a target screenshot based on the first screenshot interface and the second screenshot interface.
In this embodiment, when the interface to be screenshot is vertically movable, if it is detected that the second screenshot interface is located at the bottom/top of the interface to be screenshot, and the first screenshot interface is inconsistent (the same as) the second screenshot interface, that is, the interface to be screenshot cannot move again in the moving direction corresponding to the first moving instruction, the target screenshot is generated based on the first screenshot interface and the second screenshot interface.
Further, in another embodiment, after step S200, the method further includes: and when a pause instruction/stop instruction corresponding to the current display interface is detected, executing a step of generating a target screenshot based on the first screenshot interface and the second screenshot interface.
In this embodiment, the user may trigger a pause instruction/stop instruction based on the current display interface to stop continuing to capture the screen, and generate a target screenshot based on the first screenshot interface and the second screenshot interface when the pause instruction/stop instruction is detected.
Further, the first screenshot interface and the second screenshot interface are spliced into the target screenshot.
In this embodiment, when the target screenshot is generated, the first screenshot interface and the second screenshot interface may be directly spliced to obtain the target screenshot.
Further, the first screenshot interface and the second screenshot interface have overlapped contents, and the target screenshot is generated after the overlapped contents are processed.
In this embodiment, if there is overlapping content between the content of the first screenshot interface and the content of the second screenshot interface, the overlapping content is processed, and then the target screenshot is generated, for example, the overlapping content in the content of the first screenshot interface is deleted to obtain a new first screenshot interface, the new first screenshot interface and the second screenshot interface are spliced to obtain the target screenshot, or the overlapping content in the content of the second screenshot interface is deleted to obtain a new second screenshot interface, and the new second screenshot interface and the first screenshot interface are spliced to obtain the target screenshot.
For example, taking a mobile terminal as an example, refer to fig. 3 and fig. 4, wherein fig. 3 is a schematic view of a first screen cut-off interface according to an embodiment of the present invention, fig. 4 is a schematic view of a second screenshot, in which the arrow direction is the moving direction of the moving operation corresponding to the first moving instruction, the content a, the content B, and the content C are partial contents of the contents displayed on the display interface, the content of the first screenshot in fig. 3 includes content a through content B, the content of the second screenshot in fig. 4 includes content B through content C, and there is a coincidence content B between the first screenshot and the second screenshot, when splicing is carried out, the content B in a screenshot interface is removed and then splicing is carried out, the obtained target screenshot comprises the content A, the content B, the content C and the content among the content A, the content B, the content C and the content C, and repeated content in the target screenshot is avoided.
Further, when a third screenshot interface exists, at least two of the first screenshot interface, the second screenshot interface and the third screenshot interface are selected to generate the target screenshot.
In this embodiment, at least two of the first screenshot interface, the second screenshot interface, and the third screenshot interface may be selected to be spliced to generate the target screenshot when a third screenshot interface exists, and of course, if other screenshot interfaces exist, at least two of all the screenshot interfaces may be selected to be spliced to generate the target screenshot.
Further, the first moving instruction moves to the bottom of the display interface corresponding to the moving operation or the moving operation stops, and the screenshot operation stops.
In this embodiment, when the user needs to give up the screenshot, the screenshot may be triggered by the first movement instruction, for example, to control the movement operation that triggers the first movement instruction to move to the bottom of the display interface or stop the movement operation, that is, when it is detected that the movement operation corresponding to the first movement instruction moves to the bottom of the display interface or the movement operation stops, the screenshot operation is stopped.
For example, taking a mobile terminal as an example, referring to fig. 5, where fig. 5 is a schematic view of a scene of a display interface in an embodiment of the present invention, an arrow direction is a moving direction of a moving operation corresponding to a first moving instruction, and since the moving operation moves to the bottom of the display interface, the screenshot operation is stopped.
Further, when the first moving instruction moves to the edge of the display interface corresponding to the moving operation, if the moving operation is still not stopped, the second screen capture interface continues to be generated.
In this embodiment, the display interface may not be displayed in a full screen, and at this time, the operation of the user may exceed the display area of the display interface, so that when the first moving instruction moves to the edge of the display interface corresponding to the moving operation, if the moving operation is not yet stopped, the second screen capture interface is continuously generated.
For example, taking a mobile terminal as an example, refer to fig. 6 and fig. 7, where fig. 6 is a scene schematic diagram of a display interface in another embodiment of the present invention, fig. 7 is a scene schematic diagram of a display interface in another embodiment of the present invention, where an arrow direction is a moving direction of a moving operation corresponding to a first moving instruction, the moving operation in fig. 6 exceeds the bottom of the display interface, the moving operation in fig. 7 exceeds a side of the display interface, but the moving operation in the two figures is still not stopped, that is, the user does not end the screen capture operation, so that the second screen capture interface is continuously generated,
in the embodiment of the invention, a screen capturing instruction is detected, and a first screen capturing interface for the content of a display interface is acquired based on the screen capturing instruction; then, when a first moving instruction is detected on the display interface, a second screen capture interface is carried out according to the display interface; and then, a target screenshot is generated based on the first screenshot interface and the second screenshot interface, the screenshot of the long information can be realized according to the screenshot instruction and the moving instruction, meanwhile, the user can select the content to be intercepted through moving operation, the selective screenshot of the long information is realized, the splicing process of the multi-screenshot is greatly simplified, meanwhile, the jumping long screenshot effect can be realized, the flexibility of the screenshot of the long information is improved, and further the user experience is improved.
Based on the first embodiment, a second embodiment of the method of the present invention is provided, in this embodiment, step S200 includes:
step S210, obtaining a moving distance of the first moving instruction corresponding to the moving operation, and generating the second screen capture interface based on the moving distance.
In the embodiment of the invention, after the first screen capture interface is obtained, the first moving instruction is detected, the current display interface is captured as the second screen capture interface after the first screen capture interface moves for a certain distance, and finally the second screen capture interface is generated according to the moving distance.
For example, a coordinate system is established on the current display interface, the center point of the first screen interface is used as an origin, the horizontal direction of the current display interface is used as an abscissa, and the vertical direction of the current display interface is used as an ordinate. And taking the first screen interface center element as a reference point, and when the interface moves, changing the coordinate of the first screen interface center element, and changing and displacing the coordinate of the first screen interface center element in the moving direction into a moving distance. It should be noted that the origin may be any point in the first screenshot interface.
Further, the relationship between the moving distance of the content displayed on the display interface and the moving distance corresponding to the moving operation includes at least one of the following:
in the same proportion;
different proportions;
multiple;
the distance is preset.
In this embodiment, the moving direction of the moving operation may be the up-down direction and/or the width direction of the display interface.
When the relation is the same scale, the moving distance of the content displayed on the display interface is the same as the moving distance corresponding to the moving operation.
When the relationship is different, the ratio may be a preset value, the moving distance of the content displayed on the display interface is a product of the moving distance corresponding to the moving operation and the preset value, and the ratio may be greater than 1, or smaller than 1, or certainly equal to 1.
When the relationship is a multiple relationship, the moving distance of the content displayed on the display interface is the product of the moving distance corresponding to the moving operation and the multiple, for example, when the moving operation moves to a certain position in the middle of the display plane, the content displayed on the display interface may be the bottom of the content (the bottom of the currently displayed file), or the content displayed on the display interface may be the side of the content (the side of the currently displayed file).
And when the relation is a preset distance, the moving distance of the content displayed on the display interface is irrelevant to the moving distance corresponding to the moving operation, and the content displayed on the display interface only moves by the preset distance.
Further, when the moving distance of the content displayed on the display interface is not in proportion to the moving distance corresponding to the moving operation, the moving distance of the content displayed on the display interface is greater than the moving distance corresponding to the moving operation.
In the embodiment of the invention, the accuracy of the second screen capture interface is improved through the moving distance by acquiring the moving distance corresponding to the moving operation and generating the second screen capture interface based on the moving distance, so that the accuracy of long information screen capture is improved, and the user experience is further improved.
Based on the second embodiment, a third embodiment of the method of the present invention is provided, in this embodiment, step S200 further includes:
step S210, when the duration of the movement operation corresponding to the first movement instruction after the execution is completed reaches a first preset duration, intercepting the second screen capture interface.
In the embodiment of the present invention, taking the horizontal direction as an example, detecting that a screen capture instruction captures a current display interface as a first screen capture interface, then detecting that a first movement instruction moves a distance S in the horizontal movement direction, and then the duration of the movement operation after the execution of the movement operation is completed reaches a first preset duration t1Intercepting the duration of the execution of the moving operation corresponding to the first moving instruction and reaching a first preset duration t1Taking the current display interface as a second screen capture interface, wherein the first movement instruction refers to a first movement instruction after the screen capture instruction is detected, and the first preset time length t1The specific duration setting for the duration after the execution of the move operation corresponding to the first move instruction is completed may be flexibly set, for example, 5 s.
In the embodiment of the invention, the second screen capture interface is captured when the duration time after the execution of the moving operation corresponding to the first moving instruction is finished reaches the first preset time, and the second screen capture interface is captured after the moving operation is stopped for the first preset time, so that the problem that the second screen capture interface is not the screen capture interface required by the user due to the fact that the second screen capture interface is captured in the process of continuous moving operation of the user is avoided, the accuracy of capturing the second screen capture interface is further ensured, and the accuracy of long-message screen capture is further improved.
Based on the third embodiment, a fourth embodiment of the method of the present invention is provided, in this embodiment, step S210 further includes:
step S211, determining whether a second moving instruction corresponding to the current display interface is detected within a first preset time length after the moving operation is completed;
in step S212, if the second moving instruction corresponding to the current display interface is not detected within the first preset time after the moving operation is completed, the second screen capture interface is captured.
In the embodiment of the invention, taking the horizontal direction as an example, the current display interface is intercepted as the first screen-intercepting interface when the screen-intercepting instruction is detected, then the movement instruction is detected to move for a certain distance S in the horizontal movement direction, and then the first preset time t after the execution of the movement operation is finished is set1And finally, intercepting the current display interface as a second screen capture interface if a second moving instruction corresponding to the current display interface is not detected. The second moving instruction refers to a moving instruction after the moving operation corresponding to the first moving instruction is executed.
In the embodiment of the invention, whether a second moving instruction corresponding to the current display interface is detected within a first preset time after the mobile operation is executed is determined, then if the second moving instruction corresponding to the current display interface is not detected within the first preset time after the mobile operation is executed, a second screen capture interface is captured, and the second screen capture interface is captured only after the second moving instruction is not detected within the first preset time after the mobile operation is executed, so that the problem that the second screen capture interface is not a screen capture interface required by a user due to the fact that the second screen capture interface is captured in the continuous mobile operation process of the user is avoided, the accuracy of capturing the second screen capture interface is further ensured, and the accuracy of long-message screen capture is further improved.
Based on the fourth embodiment, a fifth embodiment of the method of the present invention is provided, where after step S211, the method further includes:
step S213, if a second moving instruction corresponding to the current display interface is detected within a first preset time length after the moving operation is completed, taking the second moving instruction as a first moving instruction, and executing the moving operation corresponding to the first moving instruction;
step S214, continuing to execute the step of determining whether a second moving instruction corresponding to the current display interface is detected within a first preset time after the moving operation is completed.
In the embodiment of the present invention, taking the horizontal direction as an example, detecting that a screen capture instruction captures a current display interface as a first screen capture interface, then detecting that a movement instruction moves a distance S in the horizontal movement direction, and then after the movement operation is completed, a first preset time period t is set1If the second moving instruction corresponding to the current display interface is detected, it can be understood that the corresponding current display interface is not the display interface required by the user after the moving operation of the first moving instruction is executed, and the user continues to move the current display interface.
Detecting a first moving instruction corresponding to the current display interface, moving the current display interface by a distance S in the movable direction, and then judging a first preset time t after the execution of the moving operation corresponding to the first moving instruction is finished1Whether the second moving instruction corresponding to the current display interface is detected and the subsequent operation is executed, which is the same as the operation corresponding to the above step S212 and step S213, is not described herein again.
In the embodiment of the invention, the second moving instruction corresponding to the current display interface is detected within the first preset time after the moving operation is completed, then the second moving instruction is used as the first moving instruction, the moving operation corresponding to the first moving instruction is executed, and the step of determining whether the second moving instruction corresponding to the current display interface is detected within the first preset time after the moving operation is completed is continuously executed, so that the moving operation instruction is more accurately determined and the moving operation corresponding to the moving operation instruction is executed through a cycle operation, the accuracy of long information screenshot is improved, and the user experience is further improved.
Based on the foregoing embodiments, a sixth embodiment of the method of the present invention is provided, where in this embodiment, before step S300, the method further includes:
step S400, determining whether a third moving instruction corresponding to the current display interface is detected within a second preset time length after the second screen capture interface is captured;
step S500, if the third moving instruction corresponding to the current display interface is not detected, the target screenshot is generated based on the first screenshot interface and the second screenshot interface.
In the embodiment of the invention, the second preset time t after the second screen capture interface is captured is set2And if the third moving instruction corresponding to the second screen capture interface is not detected, it can be understood that the user does not need to continue to capture the screen at this time, and then the target screenshot is generated through the first screen capture interface and the second screen capture interface. Wherein the second preset time period t2Setting the first preset time t1The setting of (2) can be flexibly set, such as 3 s.
In the embodiment of the invention, whether the third moving instruction corresponding to the current display interface is detected or not is determined within the second preset time after the second screen capture interface is captured, and if the third moving instruction corresponding to the current display interface is not detected, the first screen capture interface and the second screen capture interface are executed to generate the target screen capture, so that the condition that the terminal is still in the screen capture state mode when the user captures the interface required by the user and does not need to capture the screen is avoided, and the user experience is improved.
Based on the sixth embodiment, a seventh embodiment of the method of the present invention is proposed, in this embodiment, before step S300, further comprising:
step S330, if a third moving instruction corresponding to the current display interface is detected, taking the third moving instruction as the first moving instruction, and taking the first screen capture interface and the second screen capture interface as the first screen capture interface;
step S331, executing the step of obtaining a second screen capture interface corresponding to the current display interface when the operation corresponding to the first moving instruction is completed.
A second preset time t after the second screen capture interface is captured2In this case, the third moving instruction corresponding to the second screen capture interface is detected, it can be understood that the user needs to continue to capture the screen at this time, and it can be understood that the third moving instruction corresponding to the current display interface can be regarded as the third moving instruction corresponding to the current display interfaceAnd the first moving instruction, the splicing interface of the first screen capturing interface and the second screen capturing interface serves as the first screen capturing interface, and the operation corresponding to the step S200 is continuously repeated.
In the embodiment of the invention, the step of acquiring the second screen capture interface corresponding to the current display interface when the operation execution corresponding to the first moving instruction is finished is executed finally by detecting the third moving instruction corresponding to the current display interface as the first moving instruction and using the first screen capture interface and the second screen capture interface as the first screen capture interface, so that the problem that the user needs to continue to capture the second screen capture interface when capturing the second screen capture interface but stops capturing in the subsequent continuous moving operation process is avoided, the accuracy of the target interface is further ensured, and the experience degree of the user is further improved.
Based on the foregoing embodiment, an eighth embodiment of the method of the present invention is provided, where after step S300, the method further includes:
step S340, displaying a target screenshot, and if the area selection operation corresponding to the currently displayed target screenshot is detected, determining an area selection frame corresponding to the area selection operation;
step S341, delete the target area corresponding to the area selection box in the target screenshot to obtain the target image.
After the screenshot command is detected to be completed, the target screenshot is displayed on a current display interface, a user can browse the target screenshot to confirm whether all the target screenshot is required by the user, if the target screenshot comprises a part which is not required by the user, the user can select a region which is not required in a frame in the screen, when the region selection operation is detected, a target region in a region selection frame corresponding to the region selection operation is determined, the target region is deleted, and the deleted part is spliced to generate a target image.
The region selection operation mode may be flexibly set, for example, a rectangular stretchable region selection frame is provided on the current display interface, and the user selects the undesired region through the region selection frame, or the user may circle the undesired region in the target screenshot of the current display interface with the finger. The process of deleting the target area and splicing is flexibly set according to the area selection operation mode, for example, when the user finger circles out an unnecessary area in the target screenshot of the current display interface, the area selection frame can be an irregular part, a coordinate system is established in the irregular part during splicing, the center of gravity of the irregular part is used as the origin of coordinates, and the pole of the irregular part on a coordinate axis, such as x, is determined in the coordinate system1,x2,y1,y2And determining a rectangular region selection frame by the four poles, deleting the target region corresponding to the rectangular region selection frame, and splicing the deleted part to generate a target image.
In the embodiment of the invention, the target image is obtained by displaying the target screenshot, then detecting the area selection operation corresponding to the currently displayed target screenshot, determining the area selection frame corresponding to the area selection operation, and finally deleting the target area corresponding to the area selection frame in the target screenshot. The problem that an area which is not needed by a user exists in the target screenshot is avoided, the accuracy of the target screenshot is guaranteed, the screen capturing flexibility is improved, and then the user experience is improved.
The following explains the implementation process of the above embodiment by taking a scene of a user when browsing a web page as an example.
For example, when a user browses a webpage through a mobile terminal such as a mobile phone, the area of a to-be-displayed area of the currently browsed webpage is larger than the display area corresponding to a display interface, and an advertisement is inserted in the middle of the webpage, the webpage can move longitudinally, when the user needs to obtain a browsed webpage without the inserted advertisement, a screen capture instruction can be triggered, the mobile terminal obtains a first screen capture interface corresponding to the current display interface, the first screen capture interface is the webpage interface currently displayed by the mobile terminal, then the user can trigger a first mobile instruction through the mobile terminal based on the current display interface, if the first mobile instruction is detected, the mobile terminal executes a mobile operation to movably display the webpage, and when the mobile operation is completed, namely the webpage is stationary, a second screen capture interface corresponding to the current display interface is captured, if the mobile terminal does not detect other mobile instructions subsequently, and generating a target screenshot based on the first screenshot interface and the second screenshot interface so as to obtain the browsed webpage without the inserted advertisement. And then displaying the target screenshot for a user to check and confirm, if the target screenshot still comprises part of inserted advertisements, triggering a region selection operation corresponding to the target screenshot by the user through the mobile terminal, when the region selection operation is detected, determining a region selection frame corresponding to the region selection operation by the mobile terminal, and deleting a target region corresponding to the region selection frame in the target screenshot to obtain a target image, namely removing the browsed webpage with the inserted advertisements.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a screen capture program is stored on the computer-readable storage medium, and when executed by a processor, the screen capture program implements the steps of the screen capture method described above.
The method implemented when the screen capture program running on the processor is executed may refer to each embodiment of the screen capture method of the present invention, and details are not described here.
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 system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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 solution of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (e.g. ROM/RAM) as described above and includes instructions for enabling a terminal device (e.g. a mobile phone, a computer, or any other terminal device with a screen capture function) to execute the method according to the embodiments of the present invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (15)

1. A screen capture method, comprising the steps of:
detecting a screen capturing instruction, and acquiring a first screen capturing interface for the content of the display interface based on the screen capturing instruction;
when a first moving instruction is detected on a display interface, performing a second screen capture interface according to the display interface;
and generating a target screenshot based on the first screenshot interface and the second screenshot interface.
2. The screen capture method of claim 1, wherein performing a second screen capture interface in accordance with the display interface comprises:
and acquiring a moving distance of a moving operation corresponding to the first moving instruction, and generating the second screen capture interface based on the moving distance.
3. The screen capture method of claim 2, wherein the relationship between the movement distance of the content displayed by the display interface and the movement distance corresponding to the movement operation comprises at least one of:
in the same proportion;
different proportions;
multiple;
the distance is preset.
4. The screen capture method of claim 3, wherein when a movement distance of the content displayed on the display interface is not in proportion to a movement distance corresponding to the movement operation, the movement distance of the content displayed on the display interface is greater than the movement distance corresponding to the movement operation.
5. The screen capture method of claim 1, wherein the first screen capture interface and the second screen capture interface are spliced into the target screen capture.
6. The screen capture method of claim 1, wherein the first screen capture interface and the second screen capture interface have overlapping content, and wherein the target screen capture is generated after processing the overlapping content.
7. The screen capture method of claim 1, wherein when a third screen capture interface exists, at least two of the first screen capture interface, the second screen capture interface, and the third screen capture interface are selected to generate the target screen capture.
8. The screen capture method of claim 1, wherein the first movement instruction corresponds to movement operation moving to the bottom of a display interface or movement operation stopping and screen capture operation stopping.
9. The screen capture method of claim 1, wherein when the first movement instruction corresponds to a movement operation moving to an edge of a display interface, if the movement operation is not stopped yet, the second screen capture interface continues to be generated.
10. The screen capture method of claim 1, wherein the second screen capture of the display interface according to the first movement instruction comprises:
and intercepting the second screen capture interface when the duration of the movement operation corresponding to the first movement instruction after the execution of the movement operation is finished reaches a first preset duration.
11. The screen capturing method of claim 10, wherein the step of capturing the second screen capturing interface when the duration of the execution of the movement operation corresponding to the first movement instruction reaches a first preset duration comprises:
determining whether a second moving instruction corresponding to the current display interface is detected within a first preset time after the moving operation is executed;
and if the second moving instruction corresponding to the current display interface is not detected within a first preset time length after the moving operation is executed, intercepting the second screen capture interface.
12. The screen capturing method of claim 11, wherein after the step of determining whether a second movement instruction corresponding to a current display interface is detected within a first preset time period after the moving operation is completed, the method further comprises:
if a second moving instruction corresponding to the current display interface is detected within a first preset time after the moving operation is executed, taking the second moving instruction as the first moving instruction, and executing the moving operation corresponding to the first moving instruction;
and continuing to execute the step of determining whether a second moving instruction corresponding to the current display interface is detected within a first preset time after the moving operation is completed.
13. The screen capture method of any of claims 1-12, wherein prior to the step of generating a target screenshot based on the first screen capture interface and the second screen capture interface, further comprising:
determining whether a third moving instruction corresponding to the current display interface is detected within a second preset time length after the second screen capture interface is captured;
and if the third moving instruction corresponding to the current display interface is not detected, executing a step of generating a target screenshot based on the first screenshot interface and the second screenshot interface.
14. A screen capture device, the screen capture device comprising: memory, a processor and a screen capture program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the screen capture method of any one of claims 1 to 13.
15. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a screen capture program which, when executed by a processor, implements the steps of the screen capture method of any one of claims 1 to 13.
CN202010102056.3A 2020-02-17 2020-02-17 Screen capturing method and device and computer readable storage medium Pending CN111338728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010102056.3A CN111338728A (en) 2020-02-17 2020-02-17 Screen capturing method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010102056.3A CN111338728A (en) 2020-02-17 2020-02-17 Screen capturing method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111338728A true CN111338728A (en) 2020-06-26

Family

ID=71183972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010102056.3A Pending CN111338728A (en) 2020-02-17 2020-02-17 Screen capturing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111338728A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112150361A (en) * 2020-09-17 2020-12-29 珠海格力电器股份有限公司 Rolling screen capture method, device, equipment and medium
CN112579230A (en) * 2020-12-10 2021-03-30 珠海格力电器股份有限公司 Screen capturing method and device of industrial touch screen and industrial touch screen

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955604A (en) * 2016-04-20 2016-09-21 乐视控股(北京)有限公司 Method and device for screen capture
CN106251290A (en) * 2016-07-26 2016-12-21 成都风来科技有限公司 A kind of multi-screen screenshot method and man-machine interaction mode thereof continuously
CN107229402A (en) * 2017-05-22 2017-10-03 努比亚技术有限公司 Dynamic screenshotss method, device and the readable storage medium storing program for executing of terminal
CN107635065A (en) * 2017-08-29 2018-01-26 努比亚技术有限公司 A kind of screenshotss method, mobile terminal and computer-readable recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955604A (en) * 2016-04-20 2016-09-21 乐视控股(北京)有限公司 Method and device for screen capture
CN106251290A (en) * 2016-07-26 2016-12-21 成都风来科技有限公司 A kind of multi-screen screenshot method and man-machine interaction mode thereof continuously
CN107229402A (en) * 2017-05-22 2017-10-03 努比亚技术有限公司 Dynamic screenshotss method, device and the readable storage medium storing program for executing of terminal
CN107635065A (en) * 2017-08-29 2018-01-26 努比亚技术有限公司 A kind of screenshotss method, mobile terminal and computer-readable recording medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112150361A (en) * 2020-09-17 2020-12-29 珠海格力电器股份有限公司 Rolling screen capture method, device, equipment and medium
CN112579230A (en) * 2020-12-10 2021-03-30 珠海格力电器股份有限公司 Screen capturing method and device of industrial touch screen and industrial touch screen

Similar Documents

Publication Publication Date Title
CN108416825B (en) Dynamic graph generation device, method and computer readable storage medium
EP2924591A1 (en) Method and device for controlling page rollback
EP2819388A1 (en) Method and apparatus for generating image file
EP3128411A1 (en) Interface display method and device
KR20160138279A (en) Method and device for operating target application on corresponding equipment
US9430989B2 (en) Image display control apparatus, image display apparatus, non-transitory computer readable medium, and image display method for displaying images on a divided display
WO2014206055A1 (en) A method and system for generating a user interface
CN107957841B (en) Rolling screen capture method and device
CN111338728A (en) Screen capturing method and device and computer readable storage medium
CN108401173B (en) Mobile live broadcast interactive terminal, method and computer readable storage medium
CN107918509B (en) Software shortcut prompt setting method and device and readable storage medium
CN107045546B (en) Webpage processing method and device and intelligent terminal
CN111813305A (en) Application program starting method and device
CN109740014B (en) Screenshot management method, terminal device and storage medium
CN108920266B (en) Program switching method, intelligent terminal and computer readable storage medium
CN108108417B (en) Cross-platform adaptive control interaction method, system, equipment and storage medium
CN109388737B (en) Method and device for sending exposure data of content item and storage medium
CN111143731B (en) Display method and device for webpage interface zooming and terminal equipment
CN112667212A (en) Buried point data visualization method and device, terminal and storage medium
CN112508020A (en) Labeling method and device, electronic equipment and storage medium
CN112698775A (en) Image display method and device and electronic equipment
CN112385199B (en) Display control method and related product
CN107862728B (en) Picture label adding method and device and computer readable storage medium
CN108572985B (en) Page display method and device
CN106302821B (en) Data request method and equipment thereof

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