CN110764852A - Screenshot method, terminal and computer readable storage medium - Google Patents

Screenshot method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN110764852A
CN110764852A CN201910798471.4A CN201910798471A CN110764852A CN 110764852 A CN110764852 A CN 110764852A CN 201910798471 A CN201910798471 A CN 201910798471A CN 110764852 A CN110764852 A CN 110764852A
Authority
CN
China
Prior art keywords
screenshot
target
content
screenshots
splicing
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.)
Granted
Application number
CN201910798471.4A
Other languages
Chinese (zh)
Other versions
CN110764852B (en
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910798471.4A priority Critical patent/CN110764852B/en
Publication of CN110764852A publication Critical patent/CN110764852A/en
Application granted granted Critical
Publication of CN110764852B publication Critical patent/CN110764852B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4038Scaling the whole image or part thereof for image mosaicing, i.e. plane images composed of plane sub-images
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a screenshot method, a terminal and a computer-readable storage medium, and aims to solve the technical problems of inaccurate splicing of multi-page screenshots and low user experience in the prior art. The judgment of adding the background and the generation time is realized, so that the splicing of the multi-page screenshot is more accurate, and the user experience is improved.

Description

Screenshot method, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a screenshot method, a terminal, and a computer-readable storage medium.
Background
The screenshot can effectively improve the user communication efficiency, facilitates the user to quickly share the interested content, and becomes a necessary function of the mobile terminal. Such as: the user can present the contents to be expressed to the opposite side in a way of pictures and texts by sending a screenshot to the opposite side. In addition, the user can share the interesting content seen by the friend circle to the friends of the user only by one screenshot.
The current screenshot technology aims to solve the problems that only screenshot can be performed on content in the current screen display range, when screenshot is required on a webpage, due to the fact that the content of the webpage is large, the current screen is difficult to completely display the content of the webpage, the content of the webpage needs to be acquired through means of page turning and the like, and multiple screenshots need to be performed, and then long screenshots appear.
The long screenshot is mainly implemented by scrolling and page changing after screenshot starts, then performing screenshot on each page, then determining overlapped contents through similarity comparison of the contents, finding a splicing point, and then splicing to finish the long screenshot.
Although the purpose of long screenshot can be achieved, the overlapped content is determined through content similarity comparison, the splicing point is found, and then the splicing point cannot be found when the content to be screenshot is the same or the content similarity near the splicing point is high, the position of the splicing point is found wrongly, the problem that the spliced content has more or fewer lines is solved, the splicing of the multiple pages is inaccurate, and the user experience is low.
Disclosure of Invention
The technical problems to be solved by the invention are that in the prior art, aiming at the technical problems of inaccurate splicing of multi-page screenshots and low user experience in the prior art, a screenshot method, a terminal and a computer-readable storage medium are provided.
In order to solve the technical problem, the invention provides a screenshot method, which comprises the following steps:
determining the content to be subjected to screenshot according to the screenshot command;
performing background superposition on the content to be captured, wherein the background comprises a preset change rule, and the preset change rule changes according to the adjustment direction of the content to be captured;
acquiring at least two target screenshots aiming at the content to be subjected to screenshot;
and splicing the target screenshot according to the background of the target screenshot.
Optionally, the content to be captured includes at least one of:
the current display content of the display screen;
the display screen currently does not display content, which includes content displayed on the display screen after the display screen currently displays content during the screenshot operation.
Optionally, the splicing the target screenshot according to the background of the target screenshot includes:
acquiring the generation time of the target cutting chart;
and splicing the target screenshot according to the generation time of the target screenshot and the background of the target screenshot.
Optionally, the splicing the target screenshot according to the generation time of the target screenshot and the background of the target screenshot includes:
if the backgrounds of the two target screenshots adjacent to the generation time are not overlapped, splicing the two target screenshots adjacent to the generation time according to the time sequence of the generation time;
and if the backgrounds of the two target screenshots adjacent to the generation time are overlapped, splicing the two target screenshots adjacent to the generation time according to the time sequence of the generation time, and then only displaying one overlapped part.
Optionally, the splicing the target screenshot according to the background of the target screenshot includes:
sequencing the target screenshots according to a preset change rule of the background of the target screenshots to obtain a first splicing sequence;
if the backgrounds of two adjacent target screenshots of the first splicing sequence are not overlapped, splicing the target screenshots according to the sequence of the first splicing sequence;
and if the backgrounds of two adjacent target screenshots of the first splicing sequence are overlapped, only the overlapped part of the backgrounds of one target screenshot is displayed after the two target screenshots are spliced.
Optionally, the obtaining at least two target screenshots for the content to be screenshots includes at least one of:
performing continuous screenshot operation at least twice on the content to be screenshot according to the screenshot instruction to obtain at least two target screenshots;
and carrying out intermittent screenshot operation in the screenshot operation on the content to be screenshot according to the screenshot instruction to obtain at least two target screenshots.
Optionally, after the target screenshot is spliced according to the background of the target screenshot and before the long screenshot picture is obtained, the method further includes: and deleting the background.
Optionally, the preset change rule of the background includes at least one of: a color change rule; pattern change rules.
Furthermore, the invention also provides a terminal, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing one or more programs stored in the memory to realize the steps of the screenshot method.
Further, the present invention also provides a computer-readable storage medium having one or more programs, which are executable by one or more processors to implement the steps of the above screenshot method.
Advantageous effects
The invention provides a screenshot method, a terminal and a computer-readable storage medium, aiming at the technical problems of inaccurate splicing of multi-page screenshots and low user experience in the prior art, the content to be screenshot is determined according to a screenshot instruction, the content to be screenshot is subjected to background superposition, the background comprises a preset change rule of the change of the adjustment direction of the content to be screenshot, at least two target screenshots aiming at the content to be screenshot are obtained, the target screenshots are spliced according to the background of the target screenshots to obtain a long screenshot picture, and the technical problems of inaccurate splicing of the multi-page screenshots and low user experience in the prior art are solved. The judgment of adding the background and the generation time is realized, so that the splicing of the multi-page screenshot is more accurate, and the user experience is improved.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
FIG. 3 is a basic flowchart of a screenshot method according to a first embodiment of the present invention;
FIG. 4 is a schematic diagram of an interface selectable by a display screen of a terminal according to the screenshot method provided by the first embodiment of the present invention;
FIG. 5 is a schematic diagram of two target screenshots generated where there is overlap between adjacent times according to the first embodiment of the invention;
FIG. 6 is a schematic diagram of two target screenshots at a position where the first splicing sequence provided by the first embodiment of the invention is adjacent to and overlapped;
FIG. 7 is a schematic diagram illustrating a continuous screenshot operation according to a first embodiment of the present invention;
FIG. 8 is a schematic diagram of another continuous screenshot operation provided in the first embodiment of the present invention;
FIG. 9 is a schematic diagram illustrating an intermittent screenshot operation according to a first embodiment of the present invention;
FIG. 10 is a schematic diagram illustrating an operation of another intermittent screenshot provided in the first embodiment of the present invention;
FIG. 11 is a schematic drawing in background of a first embodiment of the present invention;
FIG. 12 is a schematic flow chart diagram illustrating a first embodiment of the present invention;
fig. 13 is a schematic structural diagram of a terminal according to a second embodiment of the present invention.
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.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), and TDD-LTE (Time Division duplex-Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving GateWay) 2034, a PGW (PDN GateWay) 2035, and a PCRF (Policy and charging functions Entity) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
First embodiment
Fig. 3 is a basic flowchart of a screenshot method provided in this embodiment, where the screenshot method includes:
s301, determining the content to be subjected to screenshot according to the screenshot command;
s302, performing background superposition on the content to be captured;
s303, acquiring at least two target screenshots aiming at the content to be subjected to screenshot;
s304, splicing the target screenshot according to the background of the target screenshot;
and S305, obtaining a long screenshot picture.
It should be noted that the screenshot method provided by the embodiment of the present invention may be applied to various terminals, including but not limited to a PC, a mobile phone, a wearable device, a tablet, and the like.
In some embodiments, before determining the content to be subjected to screenshot according to the screenshot instruction, the method further includes: the method comprises the steps of presetting a triggering condition for starting a screenshot function, wherein the triggering condition can be a physical key, a screen sliding pattern, a virtual key and the like, detecting whether the triggering condition is met, and if so, generating a screenshot instruction. The triggering condition can be that a screenshot command is sent by pressing a power key and a volume key down, or a screenshot mode is selected to be entered through a shortcut menu, and the like.
It should be noted that the screenshot instruction may be sent by the user of the terminal, may also be sent to the terminal by another terminal or a server, and may also be a screenshot instruction automatically generated by invoking some functions of some applications of the terminal, which is not limited herein.
It should be noted that the background includes a preset change rule, and the preset change rule changes according to the adjustment direction of the content to be captured.
In some embodiments, the content to be captured includes, but is not limited to, the current display content of the display screen; the display screen currently does not display content, which includes content displayed on the display screen after the display screen currently displays content during the screenshot operation.
It should be noted that the display content of the display screen may be various images such as pictures, videos, texts, moving pictures, and the like, and is not limited herein.
In some embodiments, the current display content of the display screen may be content of the same application, or may be all content displayed by the display screen in a split-screen display state, that is, in a state where the same display screen displays two pieces of content, or content displayed by a user or a preset part of the display screen. Fig. 4 is a specific embodiment of a split-screen display state, as shown in fig. 4, a display interface of a current display screen of a terminal is divided into two parts, i.e., a part a and a part B, and at this time, the current display content of the display screen may be only the content of the display screen a or only the content of the display screen B according to a rule preset by a user or a system, or may be the content of the entire display screen (a + B).
In some embodiments, the terminal has multiple display screens, and if the screen capture instruction is directed to the display contents of the multiple display screens at the same time, the display contents of the multiple display screens may be respectively background-superimposed, the target screen captures acquired by the multiple display screens are respectively spliced, or after the target screen captures acquired by the multiple display screens are respectively spliced in the vertical direction, the direct screen captures of the display screens are horizontally spliced again, and the splicing manner determined by other users or systems is used.
In some embodiments, the content to be captured may be the content of the same application or may be the content of a plurality of different applications. For example, when a user screenshot instruction is sent, the content of an application a is currently displayed on the display screen, during screenshot, the user switches to an application B, before the screenshot is finished, the content displayed on the display screen is the content of an application C, and the user respectively intercepts at least one target screenshot from the display content of the application A, B, C, and then splices the target screenshots according to the background of each target screenshot.
It should be noted that the preset change rule may be understood as that the user adjusts the display content in the display screen through a series of operations, such as dragging, sliding, clicking a physical key or a virtual key, according to the change of the adjustment direction of the content to be captured. When the content to be captured is adjusted downwards, the preset change rule of the background is also the change rule from top to bottom; when the content to be captured is adjusted to the right, the preset change rule of the background is also the change rule from left to right; correspondingly, the adjusting direction of the content to be captured directly influences the preset change rule of the background.
In some embodiments, the content to be captured can still be clearly read after the background superposition is performed on the content to be captured, and the selection of the content to be captured by a user and the content reading of subsequent long-shot pictures are not affected.
In some embodiments, stitching the target screenshots according to their backgrounds comprises:
and acquiring the generation time of the target screenshot, and splicing the target screenshot according to the generation time of the target screenshot and the background of the target screenshot.
In some embodiments, the splicing the target screenshot according to the generation time of the target screenshot and the background of the target screenshot further includes:
if the backgrounds of the two target screenshots adjacent in generation time are not overlapped, splicing the two target screenshots adjacent in generation time according to the time sequence of the generation time;
and if the backgrounds of the two target screenshots adjacent in generation time are overlapped, splicing the two target screenshots adjacent in generation time and then only displaying one overlapped part.
Fig. 5 provides a stitching example for generating a place where the backgrounds of two target screenshots adjacent in time overlap, as shown in fig. 5, when a place 503 where a first target screenshot 501 and a second target screenshot 502 adjacent in time overlap is generated, a picture obtained by stitching the two target screenshots only displays the place 503 where the backgrounds overlap. That is, the overlapping portions are not repeatedly displayed in the stitched picture 504.
In some embodiments, the splicing the target screenshot according to the generation time of the target screenshot and the background of the target screenshot further includes:
sequencing the target screenshots according to a preset change rule of the background of the target screenshots to obtain a first splicing sequence;
if the backgrounds of two adjacent target screenshots of the first splicing sequence are not overlapped, splicing the target screenshots according to the sequence of the first splicing sequence;
and if the backgrounds of the two adjacent target screenshots of the first splicing sequence are overlapped, only the overlapped part of the background of one target screenshot is displayed after the two adjacent target screenshots of the first splicing sequence are spliced.
Fig. 6 provides a splicing example of a place where the backgrounds of two adjacent target screenshots in the first splicing sequence coincide with each other, as shown in fig. 6, if a place 603 where a target screenshot 601 and a target screenshot 602 adjacent to the first splicing sequence coincide with each other exists, a picture obtained by splicing the two target screenshots only displays one place 603 where the backgrounds of the two target screenshots coincide with each other. That is, the overlapped part is not repeatedly displayed in the spliced picture. Therefore, the screenshot effect of the long screenshot picture obtained by the screenshot method is better and more accurate, and the user experience is effectively improved.
In some embodiments, obtaining at least two target screenshots for the content to be screenshots includes at least one of:
carrying out continuous screenshot operation at least twice on the content to be screenshot according to the screenshot command to obtain at least two target screenshots;
and performing intermittent screenshot operation in the screenshot operation on the content to be screenshot according to the screenshot instruction to obtain at least two target screenshots.
In some embodiments, at least two consecutive screenshot operations are performed on the content to be screenshot according to the screenshot instruction, so that the screenshot content of the target screenshot obtained by the consecutive screenshot operations can be understood as the consecutive screenshot content in the content to be screenshot. For example, as shown in fig. 7, the adjustment direction of the current content to be captured is from top to bottom, and the adjustment manner of the content to be captured is sliding adjustment, the content to be captured includes a first display content 701 already displayed on the current display interface and an undisplayed content 702 not yet displayed on the display interface, a first target capture 703 is obtained by capturing the first display content 701 in the current display interface, and the first target capture 703 is obtained by sliding down for a distance, at this time, at least a part of the second display content 704 in the display interface is the same as at least a part of the first display content 702 in the first target capture 703, and a second target capture 705 is obtained by capturing the second display content again. This may be understood as a continuous screenshot operation. Or, as shown in fig. 8, the adjustment direction of the current content to be screenshot is from top to bottom, the adjustment mode of the content to be screenshot is sliding adjustment, the content to be screenshot includes the first display content 801 already displayed on the current display interface and the non-display content 802 not yet displayed on the display interface, a first target screenshot 803 is obtained by screenshot of the first display content 801 in the current display interface, the first target screenshot 803 is slid downwards for a certain distance, at this time, the second display content 804 in the display interface is different from the first display content 801 in the first target screenshot 803, but the second display content 804 in the content to be screenshot accepts the first display content 801, and at this time, a second target screenshot 805 is obtained by screenshot again. This can also be understood as a continuous screenshot operation.
It should be noted that the continuous screenshot operation may have a place where two target screenshots of the continuous screenshot overlap, and also may have a place where two target screenshots of the continuous screenshot do not overlap.
In some embodiments, there is an intermittent screenshot operation in the screenshot operation performed on the content to be screenshot according to the screenshot instruction, which may be understood that the screenshot content of the target screenshot obtained by the intermittent screenshot operation is discontinuous screenshot content in the content to be screenshot. For example, as shown in fig. 9, the adjustment direction of the current content to be captured is from left to right, the adjustment mode of the content to be captured is sliding adjustment, the content to be captured includes a first display content 901 already displayed on the current display interface and an undisplayed content 902 not yet displayed on the display interface, a first target capture 903 is obtained by capturing a capture of the first display content 901 in the current display interface, the first target capture 903 is slid to the right for a certain distance, and at this time, when no arbitrary portion of the second display content 904 in the display interface is the same as the first display content 902 in the first target capture 903, a second target capture 905 is obtained by capturing a capture again. This can be understood as a discontinuous screenshot operation. Or, as shown in fig. 10, the adjustment direction of the current content to be screenshot is from left to right, the adjustment mode of the content to be screenshot is a switching application, the content to be screenshot includes a first display content 1001 of an application a that is already displayed on the current display interface and an undisplayed content 1002 of an application B that is not yet displayed on the display interface, a first target screenshot 1003 is obtained by screenshot of the first display content 1001 in the current display interface, the application is switched to by sliding a distance to the right, at this time, a second display content 1004 in the display interface is different from the first display content 1001 in the first target screenshot 1003, and at this time, a second target screenshot 1005 is obtained by screenshot again. This can also be understood as a discontinuous screenshot operation.
It should be noted that fig. 7-10 omit the background addition for clarity and understanding.
It should be noted that there is certainly no overlapping of the backgrounds of at least two target screenshots obtained by the intermittent screenshot operation.
It should be noted that when three target screenshots for the content to be screenshot are obtained, three continuous screenshot operations may be used to obtain the three target screenshots, three intermittent screenshot operations may be used to obtain the three target screenshots, two continuous screenshot operations may be used to obtain two target screenshots, and then the third target screenshot is obtained by the intermittent screenshot operation. The acquisition mode of the multiple target screenshots can be acquired according to a mode preset by a user or a system.
In some embodiments, after the target screenshot is spliced according to the background of the target screenshot and before the long screenshot picture is obtained, the method further includes: the background is deleted. That is, after the target screenshots are spliced with the help of the background, the background can be deleted, and the finally obtained long screenshot picture has no superposition of the background, so that the reading experience of the user is further improved.
In some embodiments, the preset variation law of the background includes at least one of: color change rules, pattern change rules. The system or the user can sort and splice the obtained multiple target screenshots according to the preset change rule.
The color change rule may be a change in lightness of a color, for example, a change from dark red to light red, a change in hue, a change in saturation of a color, or the like. The present application is not particularly limited, and those skilled in the art can select the setting according to the requirement.
It should be noted that the pattern change rule may be a change rule of a line or a change rule of a shape. The variation rule of one line or the combination of a plurality of lines can be adopted.
It should be noted that, by adjusting the transparency of the background, the user does not influence the reading of the screenshot content due to the superposition of the background in the screenshot operation process.
It should be noted that, when the preset change rule of the background is the color change rule superimposed pattern change rule, the background may be a preset pair of pictures, and each target screenshot is spliced according to the position of the picture where the background of the obtained target screenshot is located, where the preset change rule is to superimpose the background picture according to the adjustment direction of the content to be screenshot. For example, as shown in fig. 11, a preset background 1101, a content 1102 to be captured, a first target screenshot 1103, and a second target screenshot 1104 are sorted according to the positions of the backgrounds of the first target screenshot 1103 and the second target screenshot 1104 in the preset background, and are spliced, and only one of the two target screenshots is displayed at a overlapped part without repeated display. A long screenshot picture 1105 results.
It should be noted that the splicing direction for splicing the target screenshot may be the same as the adjustment direction of the content to be screenshot, for example, the adjustment direction of the content to be screenshot is from left to right, and the splicing direction is also from left to right. The splicing direction may also be a splicing direction set by the user or preset by the system.
It should be noted that the specific screenshot operation may be that the user uses a preset sliding track to trigger a screenshot, or may trigger a screenshot by pressing some preset physical keys, or automatically scroll the screenshot, and the like, which is not limited in this embodiment of the present invention.
In some embodiments, the screenshot method of the embodiment of the present invention may also be implemented when the terminal starts a long screenshot function.
For convenience of understanding, a specific embodiment of the screenshot method provided in the foregoing embodiment is now provided, taking screenshot of a web page as an example, as shown in fig. 12, where the screenshot method includes:
s1201, presetting a trigger condition for starting a screenshot function;
s1202, detecting whether a trigger condition is reached;
s1203, if yes, generating a screenshot command;
s1204, determining the content to be subjected to screenshot according to the screenshot command;
s1205, performing background superposition on the content to be captured;
s1206, acquiring a first target screenshot and a second target screenshot by adopting continuous screenshot operation;
s1207, acquiring a third target screenshot by adopting interrupted screenshot operation;
s1208, respectively acquiring the generation time of the first target section and the second target section;
s1209, judging whether the backgrounds of the first target screenshot and the second target screenshot are overlapped;
s1210, if a superposition part exists, splicing the first target screenshot and the second target screenshot, and only reserving one superposition part of the first target screenshot and the second target screenshot, and then splicing a third target screenshot and the third target screenshot together;
and S1211, obtaining the long screenshot picture.
The invention provides a screenshot method, a terminal and a computer-readable storage medium, aiming at the technical problems of inaccurate splicing of multi-page screenshots and low user experience in the prior art, the content to be screenshot is determined according to a screenshot instruction, the content to be screenshot is subjected to background superposition, the background comprises a preset change rule of the change of the adjustment direction of the content to be screenshot, at least two target screenshots aiming at the content to be screenshot are obtained, the target screenshots are spliced according to the background of the target screenshots to obtain a long screenshot picture, and the technical problems of inaccurate splicing of the multi-page screenshots and low user experience in the prior art are solved. The judgment of adding the background and the generation time is realized, so that the splicing of the multi-page screenshot is more accurate, and the user experience is improved.
By increasing the gradually-changed color background and the background pattern with the special shape in the process of screenshot, in the process of picture splicing, the splicing area is judged by replacing the judgment content similarity with the superposition of the background patterns with different background colors, so that the judgment is more accurate; moreover, because the background color and the background pattern color are very light, the visual effect is not brought; according to the scheme, the problems that splicing is carried out through content similarity splicing, the content to be spliced is the same or the similarity is high, the splicing position is found wrongly, splicing is carried out in a plurality of splicing modes or is missed, and even the function is invalid are solved, and the user experience is effectively improved.
Second embodiment
Referring to fig. 13, the terminal provided in this embodiment includes a processor 131, a memory 132, and a communication bus 133, where the communication bus 133 is used to implement connection communication between the processor 131 and the memory 132; processor 131 is configured to execute one or more programs stored in memory 132 to implement the steps of any of the screenshot methods described in the embodiments above.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus 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 solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method of screenshot, comprising:
determining the content to be subjected to screenshot according to the screenshot command;
performing background superposition on the content to be captured, wherein the background comprises a preset change rule, and the preset change rule changes according to the adjustment direction of the content to be captured;
acquiring at least two target screenshots aiming at the content to be subjected to screenshot;
splicing the target screenshot according to the background of the target screenshot;
and obtaining the long screenshot picture.
2. The screenshot method of claim 1, in which the content to be screenshot comprises at least one of:
the current display content of the display screen;
the display screen currently does not display content, which includes content displayed on the display screen after the display screen currently displays content during the screenshot operation.
3. The screenshot method of claim 1, in which said stitching the target screenshot according to its background comprises:
acquiring the generation time of the target cutting chart;
and splicing the target screenshot according to the generation time of the target screenshot and the background of the target screenshot.
4. The screenshot method of claim 3, wherein said splicing the target screenshot according to the generation time of the target screenshot and the background of the target screenshot comprises:
if the backgrounds of the two target screenshots adjacent to the generation time are not overlapped, splicing the two target screenshots adjacent to the generation time according to the time sequence of the generation time;
and if the backgrounds of the two target screenshots adjacent to the generation time are overlapped, splicing the two target screenshots adjacent to the generation time according to the time sequence of the generation time, and then only displaying one overlapped part.
5. The screenshot method of claim 1, in which said stitching the target screenshot according to its background comprises:
sequencing the target screenshots according to a preset change rule of the background of the target screenshots to obtain a first splicing sequence;
if the backgrounds of two adjacent target screenshots of the first splicing sequence are not overlapped, splicing the target screenshots according to the sequence of the first splicing sequence;
and if the backgrounds of two adjacent target screenshots of the first splicing sequence are overlapped, only the overlapped part of the backgrounds of one target screenshot is displayed after the two target screenshots are spliced.
6. The screenshot method of claim 1, wherein said obtaining at least two target screenshots for said content to be screenshots comprises at least one of:
performing continuous screenshot operation at least twice on the content to be screenshot according to the screenshot instruction to obtain at least two target screenshots;
and carrying out intermittent screenshot operation in the screenshot operation on the content to be screenshot according to the screenshot instruction to obtain at least two target screenshots.
7. The screenshot method according to any one of claims 1-6, wherein after the target screenshot is spliced according to the background of the target screenshot and before the long-screenshot picture is obtained, further comprising: and deleting the background.
8. The screenshot method according to any of claims 1-6, wherein said preset variation law of the background comprises at least one of: a color change rule; pattern change rules.
9. A terminal, characterized in that the terminal comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing one or more programs stored in the memory to realize the steps of the screenshot method of any one of claims 1-8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs which are executable by one or more processors to implement the steps of the screenshot method as claimed in any one of claims 1 to 8.
CN201910798471.4A 2019-08-27 2019-08-27 Screenshot method, terminal and computer readable storage medium Active CN110764852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910798471.4A CN110764852B (en) 2019-08-27 2019-08-27 Screenshot method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910798471.4A CN110764852B (en) 2019-08-27 2019-08-27 Screenshot method, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110764852A true CN110764852A (en) 2020-02-07
CN110764852B CN110764852B (en) 2023-08-22

Family

ID=69330512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910798471.4A Active CN110764852B (en) 2019-08-27 2019-08-27 Screenshot method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110764852B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522742A (en) * 2020-04-16 2020-08-11 北京三快在线科技有限公司 Page view generating method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779008A (en) * 2012-06-26 2012-11-14 奇智软件(北京)有限公司 Screen screenshot method and system
US20150294433A1 (en) * 2014-04-11 2015-10-15 Alibaba Group Holding Limited Generating a screenshot
CN105760050A (en) * 2016-02-04 2016-07-13 上海卓易科技股份有限公司 Screen capturing method and device
CN106127676A (en) * 2016-06-17 2016-11-16 许之敏 A kind of quick intercepting and the method for the synthesis long sectional drawing of multi-screen
CN109934769A (en) * 2019-04-26 2019-06-25 努比亚技术有限公司 Method, terminal and the storage medium of the long screenshot of screen
CN109976858A (en) * 2019-03-28 2019-07-05 北京字节跳动网络技术有限公司 The display control method of Application Program Interface, device and its equipment in electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779008A (en) * 2012-06-26 2012-11-14 奇智软件(北京)有限公司 Screen screenshot method and system
US20150294433A1 (en) * 2014-04-11 2015-10-15 Alibaba Group Holding Limited Generating a screenshot
CN105760050A (en) * 2016-02-04 2016-07-13 上海卓易科技股份有限公司 Screen capturing method and device
CN106127676A (en) * 2016-06-17 2016-11-16 许之敏 A kind of quick intercepting and the method for the synthesis long sectional drawing of multi-screen
CN109976858A (en) * 2019-03-28 2019-07-05 北京字节跳动网络技术有限公司 The display control method of Application Program Interface, device and its equipment in electronic equipment
CN109934769A (en) * 2019-04-26 2019-06-25 努比亚技术有限公司 Method, terminal and the storage medium of the long screenshot of screen

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蒋峰岭;张海涛;杨静;孔斌;: "背景吸收的马尔可夫显著性目标检测", 中国图象图形学报, no. 06, pages 83 - 91 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522742A (en) * 2020-04-16 2020-08-11 北京三快在线科技有限公司 Page view generating method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110764852B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
CN108037893B (en) Display control method and device of flexible screen and computer readable storage medium
CN109701266B (en) Game vibration method, device, mobile terminal and computer readable storage medium
CN108280136B (en) Multimedia object preview method, equipment and computer readable storage medium
CN108196922B (en) Method for opening application, terminal and computer readable storage medium
CN109697008B (en) Content sharing method, terminal and computer readable storage medium
CN110134471B (en) Screen switching animation control method, terminal and computer readable storage medium
CN109471579B (en) Terminal screen information layout adjustment method and device, mobile terminal and storage medium
CN109040808B (en) Video interaction regulation and control method, device and computer readable storage medium
CN107979667B (en) Dual-screen display method, mobile terminal and computer-readable storage medium
CN108984063B (en) Desktop interaction regulation and control method and device and computer readable storage medium
CN112000410B (en) Screen projection control method, device and computer readable storage medium
CN112068744A (en) Interaction method, mobile terminal and storage medium
CN107656678B (en) Long screenshot realization method, terminal and computer readable storage medium
CN112511741A (en) Image processing method, mobile terminal and computer storage medium
CN107422956B (en) Mobile terminal operation response method, mobile terminal and readable storage medium
CN109739414B (en) Picture processing method, mobile terminal and computer readable storage medium
CN108037901B (en) Display content switching control method, terminal and computer readable storage medium
CN110083294B (en) Screen capturing method, terminal and computer readable storage medium
CN112394863B (en) Picture display method and device, mobile terminal and storage medium
CN112135045A (en) Video processing method, mobile terminal and computer storage medium
CN109710168B (en) Screen touch method and device and computer readable storage medium
CN109067976B (en) Desktop automatic switching method, mobile terminal and computer readable storage medium
CN108762709B (en) Terminal control method, terminal and computer readable storage medium
CN110764852B (en) Screenshot method, terminal and computer readable storage medium
CN112532838B (en) Image processing method, mobile terminal and computer 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
GR01 Patent grant
GR01 Patent grant