CN107870712B - Screenshot processing method and device - Google Patents

Screenshot processing method and device Download PDF

Info

Publication number
CN107870712B
CN107870712B CN201610849748.8A CN201610849748A CN107870712B CN 107870712 B CN107870712 B CN 107870712B CN 201610849748 A CN201610849748 A CN 201610849748A CN 107870712 B CN107870712 B CN 107870712B
Authority
CN
China
Prior art keywords
screenshot
application program
sliding
application
terminal
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.)
Active
Application number
CN201610849748.8A
Other languages
Chinese (zh)
Other versions
CN107870712A (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.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201610849748.8A priority Critical patent/CN107870712B/en
Publication of CN107870712A publication Critical patent/CN107870712A/en
Application granted granted Critical
Publication of CN107870712B publication Critical patent/CN107870712B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction 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 for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a screenshot processing method and a screenshot processing device, wherein the method comprises the following steps: in the process of displaying a first application program on a terminal, detecting a screenshot instruction initiated by a user, and determining an application program to be screenshot, wherein the application program to be screenshot comprises the first application program and/or one or more second application programs, the first application program is the currently running application program displayed on a front-end interface, and the second application program is the application program which runs on the background but is not displayed on the front-end interface; and screenshot is carried out on the content of the application program to be screenshot to obtain a corresponding target picture, and the display length of the content of the application program to be screenshot is longer than that of a display screen of the terminal. The embodiment of the invention can realize the full-interface screenshot, supports the cross-app screenshot and the multi-app simultaneous screenshot, expands the screenshot function, reduces the screenshot operation cost of the user and is convenient for the user to use.

Description

Screenshot processing method and device
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a screenshot processing method and a screenshot processing apparatus.
Background
With the development of communication technology, mobile terminals such as mobile phones and the like have increasingly powerful functions, and not only can make calls and send short messages through the mobile terminals, but also various application software can be installed on the mobile terminals to realize various applications. In the process of using the mobile terminal, the screenshot function provided by the mobile terminal can be adopted to screenshot the content in the application.
In the existing screenshot scheme, when a pre-intercepted target exceeds the screen range, the page is required to be manually rolled for multiple screenshots, so that the target is divided into multiple segments, and the target is inconvenient to store and use in the later period. Moreover, the existing screenshot scheme has too single function and cannot meet the higher screenshot requirement of the user.
Disclosure of Invention
In view of the above problems, in order to solve the problems of inconvenient storage and use and single screenshot function in the later period caused by multiple screenshots, embodiments of the present invention provide a screenshot processing method and a corresponding screenshot processing apparatus.
In order to solve the above problem, an embodiment of the present invention discloses a screenshot processing method, including:
in the process of displaying a first application program on a terminal, detecting a screenshot instruction initiated by a user, and determining an application program to be screenshot, wherein the application program to be screenshot comprises the first application program and/or one or more second application programs, the first application program is the currently running application program displayed on a front-end interface, and the second application program is the application program which runs on the background but is not displayed on the front-end interface;
and screenshot is carried out on the content of the application program to be screenshot to obtain a corresponding target picture, and the display length of the content of the application program to be screenshot is longer than that of a display screen of the terminal.
Optionally, the screenshot instruction comprises a first screenshot instruction;
the method comprises the following steps of detecting a screenshot instruction initiated by a user in the process of displaying a first application program on a terminal, and determining the application program to be screenshot, wherein the steps comprise:
detecting screenshot triggering operation executed by a user in the process of displaying a first application program by a terminal;
and when the screenshot instruction corresponding to the screenshot triggering operation is identified as the first screenshot instruction, determining the first application program as the application program to be screenshot.
Optionally, the screenshot instruction comprises a second screenshot instruction;
the method comprises the following steps of detecting a screenshot instruction initiated by a user in the process of displaying a first application program on a terminal, and determining the application program to be screenshot, wherein the steps comprise:
detecting screenshot triggering operation executed by a user in the process of displaying a first application program by a terminal;
and when the screenshot instruction corresponding to the screenshot triggering operation is identified as the second screenshot instruction, selecting one or more second application programs from all application programs running in the background of the terminal to serve as the application programs to be screenshot.
Optionally, the screenshot instruction comprises a third screenshot instruction;
the method comprises the following steps of detecting a screenshot instruction initiated by a user in the process of displaying a first application program on a terminal, and determining the application program to be screenshot, wherein the steps comprise:
detecting screenshot triggering operation executed by a user in the process of displaying a first application program by a terminal;
and when the screenshot instruction corresponding to the screenshot triggering operation is identified as the third screenshot instruction, selecting the first application program and one or more second application programs from all application programs running in the background of the terminal to serve as application programs to be screenshot.
Optionally, the step of capturing the content of the application program to be captured to obtain a corresponding target picture includes:
extracting sliding information in the application program to be captured from a preset log file, wherein the sliding information comprises sliding information corresponding to more than one sliding operation;
determining corresponding one or more sliding segments based on the sliding information;
performing screenshot processing on the more than one sliding fragments to obtain more than one corresponding intermediate pictures;
and splicing the more than one intermediate pictures into one target picture.
Optionally, the sliding information includes an operation time when the sliding operation is performed; the step of extracting the sliding information in the application program to be captured from the preset log file comprises the following steps:
extracting the log record of the application program to be captured from the log file;
searching sliding information of the sliding operation of which the operation time falls in a specified time range from the log record of the application program to be subjected to screenshot, wherein the specified time range comprises a starting time and an ending time, and the ending time comprises system time when a user executes screenshot triggering operation; the starting time comprises a designated starting time or the system time when the user enters the application program to be captured.
Optionally, the sliding information further includes a sliding distance corresponding to the sliding operation;
the step of determining the corresponding one or more sliding segments based on the sliding information comprises:
taking the page position corresponding to the end time as a first start position, sliding the sliding distance corresponding to the latest sliding operation in the direction opposite to the sliding operation direction to obtain a first end position, and taking the area between the first start position and the first end position as a first sliding segment;
and taking the first ending position as a second starting position, sliding the sliding distance corresponding to the last sliding operation of the latest sliding operation in the direction opposite to the sliding operation direction to obtain a second ending position, taking the area between the second starting position and the second ending position as a second sliding segment, and so on until the ending position reaches the page position corresponding to the starting time.
Optionally, before the step of performing screenshot processing on the more than one slide segment to obtain the corresponding more than one intermediate picture, the method further includes:
respectively calculating the stay time of the sliding segments based on the operation time of each sliding operation;
and filtering the sliding segments with the residence time smaller than a preset threshold value.
Optionally, before the step of stitching the more than one intermediate pictures into one target picture, the method further includes:
and carrying out duplicate removal processing on the intermediate picture.
Optionally, before the step of stitching the more than one intermediate pictures into one target picture, the method further includes:
respectively identifying attribute information of the intermediate pictures;
acquiring system attribute information of a terminal;
and adjusting the attribute information of the intermediate picture based on the system attribute information.
Optionally, if the application program to be subjected to screenshot includes more than one second application program, or the application program to be subjected to screenshot includes a first application program and one or more than one second application program, the number of the corresponding target pictures is more than one;
the method further comprises the following steps:
and splicing the more than one target pictures into an integrated picture.
The embodiment of the invention also discloses a screenshot processing device, which comprises:
the device comprises a to-be-screenshot application program determining module, a screenshot judging module and a screenshot judging module, wherein the to-be-screenshot application program determining module is used for detecting a screenshot instruction initiated by a user in the process of displaying a first application program on a terminal and determining the to-be-screenshot application program, the to-be-screenshot application program comprises the first application program and/or one or more second application programs, the first application program is an application program which is currently operated and is displayed on a front-end interface, and the second application program is an application program which is operated on a background and is not displayed on the front-end interface;
and the screenshot module is used for screenshot the content of the application program to be screenshot to obtain a corresponding target picture, and the display length of the content of the application program to be screenshot is longer than that of the display screen of the terminal.
Optionally, the screenshot instruction comprises a first screenshot instruction; the module for determining the application program to be captured comprises the following sub-modules:
the trigger operation detection submodule is used for detecting screenshot trigger operation executed by a user in the process of displaying the first application program on the terminal;
and the first instruction identification submodule is used for determining the first application program as the application program to be subjected to screenshot when the screenshot instruction corresponding to the screenshot triggering operation is identified as the first screenshot instruction.
Optionally, the screenshot instruction comprises a second screenshot instruction; the module for determining the application program to be captured comprises the following sub-modules:
the trigger operation detection submodule is used for detecting screenshot trigger operation executed by a user in the process of displaying the first application program on the terminal;
and the second instruction identification submodule is used for selecting one or more second application programs from all application programs running in the background of the terminal as the application programs to be subjected to screenshot when the screenshot instruction corresponding to the screenshot triggering operation is identified as the second screenshot instruction.
Optionally, the screenshot instruction comprises a third screenshot instruction; the module for determining the application program to be captured comprises the following sub-modules:
the trigger operation detection submodule is used for detecting screenshot trigger operation executed by a user in the process of displaying the first application program on the terminal;
and the third instruction identification submodule is used for selecting the first application program and one or more second application programs from all application programs running in the background of the terminal as the application programs to be subjected to screenshot when the screenshot instruction corresponding to the screenshot triggering operation is identified as the third screenshot instruction.
Optionally, the screenshot module further includes the following sub-modules:
the sliding information extraction submodule is used for extracting sliding information in the application program to be captured from a preset log file;
the sliding information comprises sliding information corresponding to more than one sliding operation.
A sliding segment determining submodule for determining more than one corresponding sliding segment based on the sliding information;
the screenshot processing submodule is used for carrying out screenshot processing on the more than one sliding fragment to obtain more than one corresponding intermediate picture;
and the image splicing sub-module is used for splicing the more than one intermediate pictures into one target picture.
Optionally, the sliding information includes an operation time when the sliding operation is performed; the sliding information extraction sub-module is further configured to:
extracting the log record of the application program to be captured from the log file;
searching sliding information of the sliding operation of which the operation time falls in a specified time range from the log record of the application program to be subjected to screenshot, wherein the specified time range comprises a starting time and an ending time, and the ending time comprises system time when a user executes screenshot triggering operation; the starting time comprises a designated starting time or the system time when the user enters the application program to be captured.
Optionally, the sliding information further includes a sliding distance corresponding to the sliding operation; the sliding segment determination submodule is further configured to:
taking the page position corresponding to the end time as a first start position, sliding the sliding distance corresponding to the latest sliding operation in the direction opposite to the sliding operation direction to obtain a first end position, and taking the area between the first start position and the first end position as a first sliding segment;
and taking the first ending position as a second starting position, sliding the sliding distance corresponding to the last sliding operation of the latest sliding operation in the direction opposite to the sliding operation direction to obtain a second ending position, taking the area between the second starting position and the second ending position as a second sliding segment, and so on until the ending position reaches the page position corresponding to the starting time.
Optionally, the apparatus further comprises:
the stay time calculation module is used for respectively calculating the stay time of the sliding segments based on the operation time of each sliding operation;
and the filtering module is used for filtering the sliding segments with the residence time smaller than a preset threshold value.
Optionally, the apparatus further comprises:
and the duplicate removal module is used for carrying out duplicate removal processing on the intermediate picture.
Optionally, the apparatus further comprises:
the attribute adjusting module is used for respectively identifying the attribute information of the intermediate pictures; acquiring system attribute information of a terminal; and adjusting the attribute information of the intermediate picture based on the system attribute information.
Optionally, if the application program to be subjected to screenshot includes more than one second application program, or the application program to be subjected to screenshot includes a first application program and one or more than one second application program, the number of the corresponding target pictures is more than one;
the device further comprises:
and the splicing module is used for splicing the more than one target pictures into one integrated picture.
The embodiment of the invention also discloses a screenshot processing device, which comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs comprise instructions for:
in the process of displaying a first application program on a terminal, detecting a screenshot instruction initiated by a user, and determining an application program to be screenshot, wherein the application program to be screenshot comprises the first application program and/or one or more second application programs, the first application program is the currently running application program displayed on a front-end interface, and the second application program is the application program which runs on the background but is not displayed on the front-end interface;
and screenshot is carried out on the content of the application program to be screenshot to obtain a corresponding target picture, and the display length of the content of the application program to be screenshot is longer than that of a display screen of the terminal.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the full-interface screenshot can be realized, the cross-app screenshot and the multi-app screenshot can be supported, the screenshot function is expanded, the screenshot operation cost of a user is reduced, and the user can use the screenshot conveniently.
Drawings
FIG. 1 is a flowchart of the steps of a first embodiment of a screenshot processing method of the present invention;
FIG. 2 is a flowchart of the steps of a second embodiment of a screenshot processing method of the present invention;
FIG. 3 is a flowchart of the third step of a screenshot processing method embodiment of the present invention;
FIG. 4 is a block diagram of a screenshot processing apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram illustrating a screenshot processing apparatus according to an exemplary embodiment.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a flowchart illustrating a first step of a screenshot processing method according to a first embodiment of the present invention may include the following steps:
step 101, in the process of displaying a first application program on a terminal, detecting a screenshot instruction initiated by a user and determining an application program to be screenshot;
the application programs to be captured comprise the first application program and/or one or more second application programs, wherein the first application program is a currently running application program displayed on a front-end interface, and the second application program is an application program which runs in a background and is not displayed on the front-end interface.
And 102, performing screenshot on the content of the application program to be screenshot to obtain a corresponding target picture.
And the display length of the content of the application program to be captured is greater than that of the display screen of the terminal.
In the embodiment of the invention, when the screenshot command initiated by the user is detected, the long interface screenshot can be carried out on the application program to be screenshot based on the screenshot command, and finally, a target picture is obtained, so that the storage and the later use are facilitated.
In addition, the application program to be subjected to screenshot not only comprises a first application program displayed by the current terminal, but also comprises one or more second application programs which are not displayed by the terminal and run on a background, so that the screenshot function is expanded.
Referring to fig. 2, a flowchart illustrating steps of a second embodiment of a screenshot processing method according to the present invention is shown, where the embodiment of the present invention performs a long-interface screenshot (the length of the screenshot content is greater than the screen display length) from the content of the currently running application program displayed on the front-end interface.
The embodiment of the present invention may be applied to a terminal device, where the terminal device may include a mobile phone, a PDA (Personal Digital Assistant), a laptop computer, a palmtop computer, a desktop computer, a signature terminal for providing an electronic signature for a user, and the like, and the embodiment of the present invention is not limited thereto.
The terminal device may support operating systems such as Windows, Android, IOS, Windows phone, and the like, which is not limited in the present invention.
The embodiment of the invention specifically comprises the following steps:
step 201, in the process of displaying a first application program on a terminal, detecting a screenshot instruction initiated by a user, and determining an application program to be screenshot, wherein the application program to be screenshot comprises the first application program;
in one embodiment, a user-initiated screenshot instruction may be detected by invoking a third-party application. The third-party application program may be an application program installed in the terminal device, which is different from the first application program and the second application program, and the third-party application program may have a screenshot function, and the screenshot function may replace a screenshot function of the system.
The third-party application program can be used as an important bridge between a computer terminal and an intelligent mobile terminal, and can help a user to directly manage (such as installing, deleting and backing up) application programs/software, media data and other resources which are stored in the mobile terminal on the computer when the user connects the mobile terminal to the computer, so that the third-party online resources can be accessed, and various application programs/software with high qualification rate can be recommended to the user, thereby providing rich application and media resources for the user. As an example, the third-party application may be a cell phone assistant application, hereinafter referred to as a cell phone assistant.
Of course, the embodiment of the present invention is not limited to detecting the screenshot instruction initiated by the user by using the third-party application, and those skilled in the art may detect the screenshot instruction by using other methods, for example, detecting the screenshot instruction by using a function built in the mobile terminal.
In a specific implementation, the first application may be an application that is currently run by the terminal and displayed on a display interface of the terminal, and the application may be any application installed by the terminal, which is not limited in this embodiment of the present invention.
In the display process of the first application program, the terminal can call a third-party application program to detect a screenshot instruction initiated by a user, and when the third-party application program detects the screenshot instruction, the application program to be screenshot, which is required by the user to perform screenshot, can be determined according to the screenshot instruction.
In an optional embodiment of the present invention, the screenshot instruction may include a first screenshot instruction, and step 201 may include the following sub-steps:
detecting screenshot triggering operation executed by a user in the process of displaying a first application program by a terminal;
the screenshot triggering operation may be a triggering operation that is customized by a user in advance, or may be a default triggering operation set by a developer, which is not limited in the embodiment of the present invention.
As an example, the screenshot triggering operation may be an operation of specifying a gesture track, an operation of specifying a pressing intensity range, or a combination of the two operations, or other operations, which is not limited in this embodiment of the present invention.
For example, if the terminal device has a stereoscopic Touch screen (3D-Touch) function, the user may initiate a screenshot trigger operation by means of the 3D-Touch, where the screenshot trigger operation may include a continuous heavy-pressing operation (the continuous heavy-pressing may be an operation in which the duration of the heavy-pressing Pop is greater than a certain threshold), a continuous light-pressing operation (the continuous heavy-pressing may be an operation in which the duration of the light-pressing Peek is greater than a certain threshold), a continuous light-touching operation (the continuous light-touching may be an operation in which the duration of the light-touching is greater than a certain threshold), and the like, where the pressing force degree of the heavy-pressing is greater than the pressing force degree of the light-pressing, and the pressing force degree of the light-pressing is greater than the pressing force degree of the light-touching.
For another example, if the continuous heavy pressing and the continuous light pressing in the above example are applied to the designated gesture track, the screenshot triggering operation may include an operation that the user draws the designated gesture track with the heavy pressing force or the light pressing force, for example, the user draws a circle, a tick track, and the like with the heavy pressing force or the light pressing force.
In one embodiment, the third-party application program may directly monitor the touch operation of the front end and intercept a screenshot trigger operation in the touch operation.
In another embodiment, an operating system of the terminal device may monitor a touch operation initiated by a user, and intercept a screenshot trigger operation, and a third-party application program determines the screenshot trigger operation by setting a callback in the operating system.
And after screenshot triggering operation executed by a user is detected, if a screenshot instruction corresponding to the screenshot triggering operation is identified as the first screenshot instruction, determining the first application program as an application program to be screenshot.
In a specific implementation, after it is detected that a user initiates a screenshot triggering operation, a specific operation type of the screenshot triggering operation may be further identified, so as to determine a corresponding screenshot instruction.
For example, if the terminal device has a 3D-Touch function, the API interface provided by the 3D-Touch may be directly called to detect a pressing type, where the pressing type may include Peek (tap), Pop (Touch), tap, and the like.
If the terminal device does not have the 3D-Touch function, the pressing type may be identified after the pressing pressure value is acquired, for example, corresponding pressing types may be configured for different operation modes, each pressing type corresponds to a pressure range, and if the detected pressing pressure value of the pressing operation is within the pressure range, the pressing operation belongs to the pressing type.
In practice, the pressing pressure value can be detected by a set of touch technologies integrating capacitive touch and infrared induction. If the terminal is a terminal with a touch screen, one or more infrared transmitters can be arranged below the touch screen, and infrared light can be transmitted to the touch screen glass cover at a specific angle. These angles are selected to provide 100% reflection of reflected light from the top and bottom surfaces of the cover, as well as from the ambient air and fingers. When the light in the glass cover is reflected, the emitted infrared rays will trigger a receiver which can calculate the total number of total internal reflections, and the receiver displays different output readings according to whether the reflected light comes from the surrounding air or the finger of the user, thereby realizing the detection of the pressing pressure.
Of course, in addition, a pressure sensor may be attached below the touch screen to detect the pressing pressure value, or the pressing pressure value may be detected in other manners, and the pressing type may be determined in other manners, which is not limited in this embodiment of the present invention.
For the recognition of the designated gesture track, a gesture recognition monitor of the system may be called to perform gesture recognition, for example, in an android system, an android.
If the identified sliding track of the screenshot triggering operation is a first designated track and/or the pressing force degree of the screenshot triggering operation on the terminal screen is greater than or equal to a first preset force threshold, the screenshot instruction corresponding to the screenshot triggering operation can be judged to be a first screenshot instruction.
For example, if the screenshot triggering operation executed by the user is a continuous re-pressing operation and the sliding track of the screenshot triggering operation is a circular track, it may be determined that the screenshot instruction corresponding to the screenshot triggering operation is the first screenshot instruction.
After the screenshot command is identified as the first screenshot command, the embodiment of the present invention may determine the currently opened first application program as the application program to be screenshot.
Step 202, extracting sliding information in the application program to be captured from a preset log file;
in the embodiment of the present invention, a log file may be generated by the terminal system or a third-party application program to record the sliding information of each sliding operation performed by the user on each application program of the terminal device.
As an example, the sliding information may include information such as an application name, an operation time when the sliding operation is performed, a sliding distance corresponding to the sliding operation, a sliding direction, and the like. The operation time when the sliding operation is executed is the system time when the user executes the sliding operation, and the sliding distance corresponding to the sliding operation can be represented by a pixel row.
For example, when the user performs a sliding operation once in the page of the social application at 10am on 1 st day in 2016, and the sliding distance is d, the sliding information corresponding to the sliding operation recorded in the log file is as follows: social application id, 10:00am 1 month 6 2016, up slide, d.
Of course, besides the above-mentioned recording manner, the log file may also have other forms for recording the sliding information, for example, recording in a table form, which is not limited in the embodiment of the present invention.
In an embodiment, the sliding information in the application program to be captured may be sliding information within a specified time range, where the specified time range may include a start time and an end time. As an example, the end time may include a system time when the user performed the screenshot triggering operation; the starting time comprises a designated starting time or the system time when the user enters the application program to be captured.
For example, the user specifies to capture a friend circle page within 5 minutes, and if the user triggers the capture, that is, the end time is 10:00am., the start time may be 9:55 am.. For another example, the user specifies that the full interface is to be captured, the time that the user enters the application program is 9:00am., and the starting time is 9:00 am..
Of course, the embodiment of the present invention is not limited to the above start time and end time, and the user may also specify other start times and end times, which is not limited in the embodiment of the present invention.
In an optional embodiment of the present invention, step 202 may further comprise: extracting the log record of the application program to be captured from the log file; and searching the sliding information of the sliding operation of which the operation time falls in a specified time range from the log record of the application program to be captured.
Specifically, since the log file records the sliding operation of the user on each application program in the terminal, the log file may be first matched with the identifier of the application program to be screenshot, so as to extract the log record of the application program to be screenshot from the log file, and then, it is determined whether the operation time of each sliding operation recorded in the log record of the application program to be screenshot is within a specified time range, that is, whether the operation time is within a start time range and an end time range, and if the operation time falls within the specified time range, the sliding information of the sliding operation corresponding to the operation time is recorded.
It should be noted that the sliding information may be sliding information of a page position range, for example, the page position range may be a coordinate position range of a page, which is not limited in the embodiment of the present invention.
Step 203, determining more than one corresponding sliding segment based on the sliding information;
after the sliding information in the application program to be captured is determined, the sliding segment corresponding to each sliding operation can be determined according to the sliding information.
In a specific implementation, the sliding information of the application program to be captured may include sliding information corresponding to more than one sliding operation, and the number of corresponding sliding segments is also more than one.
In an alternative embodiment of the present invention, the sliding segment may be determined by reversely simulating the sliding operation of the user, and step 203 may include the following sub-steps:
taking the page position corresponding to the end time as a first start position, sliding the sliding distance corresponding to the latest sliding operation in the direction opposite to the sliding operation direction to obtain a first end position, and taking the area between the first start position and the first end position as a first sliding segment;
and taking the first ending position as a second starting position, sliding the sliding distance corresponding to the last sliding operation of the latest sliding operation in the direction opposite to the sliding operation direction to obtain a second ending position, taking the area between the second starting position and the second ending position as a second sliding segment, and so on until the ending position reaches the page position corresponding to the starting time.
Specifically, the reverse simulation operation may be performed by setting a page position corresponding to the end time as a slide segment start position (i.e., a first start position), sliding the slide distance corresponding to the latest slide operation in a direction opposite to the direction of the slide operation to obtain a slide segment end position (i.e., a first end position) of the slide segment, and setting a region between the first start position and the first end position as a slide segment corresponding to the latest slide operation, i.e., a first slide segment.
Similarly, the end position (i.e. the first end position) of the first sliding segment is used as the start position (i.e. the second start position) of the last sliding segment, after the sliding distance corresponding to the last sliding operation of the last sliding operation is slid in the direction opposite to the direction of the sliding operation, the end position (i.e. the second end position) of the last sliding segment is obtained, the area between the second start position and the second end position is used as the sliding segment corresponding to the last sliding operation of the last sliding operation, i.e. the second sliding segment, and so on until the end position reaches the page position corresponding to the start time.
In practice, the direction opposite to the direction of the sliding operation may include the following scenarios: if the sliding operation direction is from bottom to top, the opposite direction is downward; if the direction of the sliding operation is from top to bottom, the opposite direction is upward.
For example, the specified time range includes two upward sliding operations, and the corresponding sliding information is: 10:00am, up slide, d 1; 10:05am, upward sliding, d2, if the time for the user to execute the screenshot triggering operation is 10:10am, backtracking the 10:10am as the end time, taking the position corresponding to 10:10am as the first start position, rolling downwards for a distance d2, and then reaching the position corresponding to 10:05am, namely the first end position, wherein the page position where 10:10am is located and the page position where 10:05am is located form the first sliding fragment, then taking the position corresponding to 10:05am as the second start position, rolling downwards for a distance d1, and then reaching the position corresponding to 10:00am, namely the second end position, wherein the page position where 10:05am is located and the page position where 10:00am is located form the second sliding fragment.
It should be noted that, in addition to the reverse simulation process, the embodiment of the present invention may also use a forward simulation process to determine the sliding segment, where the forward simulation process is opposite to the reverse simulation process, but the implementation process is similar, and the embodiment of the present invention does not limit this.
In an optional embodiment of the present invention, after determining the sliding segment in step 203, the embodiment of the present invention may further include the following steps:
respectively calculating the stay time of the sliding segments based on the operation time of each sliding operation;
and filtering the sliding segments with the residence time smaller than a preset threshold value.
In a specific implementation, a third-party application program may be used to calculate a time difference between the start time and the end time of the sliding segment, where the time difference is a staying time of the sliding segment, for example, if the start position of the sliding segment of a certain sliding segment is 10:00am, and the end position of the sliding segment is 10:05am, the staying time of the sliding segment is: the time difference of 10:05am minus 10:00am, i.e., 5 minutes.
In practice, if a user browses a page content too fast, the user can be proved to be uninterested in the page content, if the user is interested in the page content, the staying time of the user in the page content is longer, and based on the behavior characteristics of the user, in the embodiment of the invention, after the staying time of each sliding segment is determined, the sliding segments with the staying time being less than a preset threshold value t can be filtered out, so that the browsing content concerned by the user is reserved, the browsing content uninterested by the user is eliminated, the size of a finally formed picture is reduced, the storage space is saved, and the intelligence of screenshot is improved.
In a specific implementation, a filter switch (default to an on state) may be set in the terminal or the third-party application, when the filter switch is turned on, the sliding segment with the retention time smaller than the preset threshold t is automatically filtered, and if the filter switch is turned off, the sliding segment with the retention time smaller than the preset threshold t is not filtered.
In an optional implementation manner of the embodiment of the present invention, after determining the sliding segment, the embodiment of the present invention may further query, in a pop-up window, whether the user needs to input a keyword, so as to filter a required content from the sliding segment, and if the user inputs a keyword in the pop-up window, the keyword may be searched from the more than one sliding segments, so as to obtain the sliding segments related to the keyword, and perform subsequent screenshot processing.
Step 204, performing screenshot processing on the more than one sliding fragments to obtain more than one corresponding intermediate pictures;
after the sliding segments are filtered, keyword screening and the like, screenshot processing can be performed on the finally obtained sliding segments by adopting a screenshot function provided by a third-party application program, so that more than one corresponding intermediate picture is obtained, wherein one sliding segment corresponds to one intermediate picture.
In an optional embodiment of the present invention, after step 204, the following step may be further included:
and carrying out duplicate removal processing on the intermediate picture.
Specifically, after more than one intermediate picture is obtained, there may be an overlap between the intermediate pictures, so that the clipping result is disturbed, and therefore, the multiple pictures may be subjected to deduplication processing to remove the content of the duplicated portion.
In a specific implementation, the pixel rows of the two intermediate pictures can be compared, whether the pixel rows with the same pixels exist between the two intermediate pictures or not is judged, if yes, the two intermediate pictures can be judged to have repeated parts, and the repeated part of any one intermediate picture can be removed, so that the purpose of duplicate removal is achieved.
It should be noted that the embodiments of the present invention are not limited to the foregoing implementation manner of deduplication, and those skilled in the art may adopt other deduplication manners. In addition, the above-mentioned duplicate removal may be performed when an intermediate picture is obtained after screenshot, or may be performed on the slide segment after the slide segment is determined and before screenshot, which is not limited in the embodiment of the present invention.
In an optional embodiment of the present invention, after step 204, the following step may be further included:
respectively identifying attribute information of the intermediate pictures; acquiring system attribute information of a terminal; and adjusting the attribute information of the intermediate picture based on the system attribute information.
Specifically, the attribute information of the intermediate picture may include information of font size, picture brightness, contrast, and the like in the intermediate picture.
The information in the intermediate picture may be identified by a third party application and compared with the relevant information of the system, thereby adjusting the attribute information of the intermediate picture.
Taking the adjustment of font size as an example, the implementation process is as follows: respectively identifying the font sizes in the intermediate pictures; acquiring the system font size of a terminal; calculating the difference value between the font size in the intermediate picture and the system font size; and if the difference value is larger than a preset difference value threshold value, amplifying or reducing the corresponding intermediate picture.
Specifically, the font size in each intermediate picture can be recognized firstly, the system font size of the terminal is obtained, then the difference value between the two is calculated, if the difference value is larger than a preset difference value threshold value, the intermediate picture is enlarged or reduced by adopting algorithms such as a bicubic interpolation algorithm and an S-Spline algorithm, and the situation that the display is not clear due to too small fonts or the display is incomplete due to too large fonts is avoided.
Step 205, stitching the more than one intermediate pictures into a target picture.
After the intermediate pictures are subjected to the processing such as the duplicate removal and the attribute adjustment, more than one processed intermediate pictures can be spliced into one target picture (the splicing of the pictures can be performed according to the time sequence), the target picture is stored in the terminal device, and the target picture can be directly used subsequently, for example, the target picture is directly sent in the first application program or issued.
In order to enable those skilled in the art to better understand the embodiments of the present invention, the following description illustrates the embodiments of the present invention by way of a specific example, but it should be understood that the embodiments of the present invention are not limited thereto.
The method comprises the following steps that a user enters a certain social application, slides upwards to browse a certain position, and then carries out full-interface screenshot, and the specific steps are as follows:
(1) when a user enters a certain social application, a mobile phone assistant records sliding information of a sliding operation series List _ op of the user; then, the mobile phone assistant determines the sliding segments, calculates the stay Time of each sliding segment, and organizes the stay Time sequence List _ Time;
(2) the user triggers a full-interface screenshot function, the mobile phone assistant reversely simulates the sliding operation of the user in the background according to the sliding information of the List _ op, screenshot is conducted on each sliding fragment to obtain an intermediate picture, the intermediate picture is subjected to duplication removal, font size identification, automatic amplification/reduction adjustment and other operations of the intermediate picture, then image combination is conducted on the intermediate pictures, images with the stay time fragments smaller than a preset value T can be abandoned during combination, and the target picture is obtained and then stored.
(3) The user uses the corresponding target picture.
In the embodiment of the invention, the long interface screenshot can be realized by intelligently selecting the screenshot range based on the browsing behavior of the user, so that the screenshot is a target picture, the screenshot picture is conveniently stored, and the screenshot function is expanded.
Referring to fig. 3, a flowchart illustrating a third step of an embodiment of a screenshot processing method according to the present invention is shown, where the embodiment of the present invention explains a scenario of screenshot of content of an application that is not currently displayed in the foreground but runs in the background.
The embodiment of the invention can comprise the following steps:
step 301, in the process of displaying a first application program on a terminal, detecting a screenshot instruction initiated by a user, and determining an application program to be screenshot, wherein the application program to be screenshot comprises one or more second application programs and/or the first application program;
in the embodiment of the present invention, the first application is a currently running application displayed on the front-end interface, and the second application is an application running in the background but not displayed on the front-end interface.
In an optional embodiment of the present invention, the screenshot instruction may include a second screenshot instruction; step 301 may include the following sub-steps:
detecting screenshot triggering operation executed by a user in the process of displaying a first application program by a terminal;
and when the screenshot instruction corresponding to the screenshot triggering operation is identified as the second screenshot instruction, selecting one or more second application programs from all application programs running in the background of the terminal to serve as the application programs to be screenshot.
In an implementation manner, if the sliding track of the screenshot triggering operation is a second designated track and/or the degree of pressing the screenshot triggering operation on the terminal screen is less than or equal to a second preset force threshold, it is determined that the screenshot instruction corresponding to the screenshot triggering operation is a second screenshot instruction, where the second preset force threshold is less than the first preset force threshold in the embodiment of fig. 2.
In an embodiment, when the terminal calls a third-party application program to recognize that the screenshot instruction is a second screenshot instruction, and when the screenshot instruction corresponding to the screenshot triggering operation is recognized as the second screenshot instruction, one or more second application programs are selected from all application programs running in the background of the terminal, and the step of using the selected second application programs as the application programs to be screenshot may include: and when detecting that the user selects one or more second application programs from the second application program list, determining the selected one or more second application programs as the application programs to be captured.
Specifically, when the screenshot instruction is a second screenshot instruction, all second application programs running in the background of the terminal can be acquired according to the second screenshot instruction, all the second application programs are organized into a second application program list, and the second application program list is displayed to the user at the front end. And in the second application program list, each application program is provided with an option control, the user can select one or more second application programs, and after the selection operation of one or more second application programs sent by the user is detected, the one or more second application programs selected by the user are used as the application programs to be subjected to screenshot.
For example, the applications run in the terminal by the user include a social application, a first e-commerce application and a second e-commerce application, the social application is an application displayed in a front-end display interface, and the first e-commerce application and the second e-commerce application are applications which are not displayed in the front end and run in the background. And displaying the identifier of the first e-commerce application and the identifier of the second e-commerce application to the user, and if the user selects the identifier of the first e-commerce application, taking the first e-commerce application as an application program to be captured.
Of course, besides the above-mentioned manner of selecting one or more second applications, a person skilled in the art may also select other manners to determine one or more second applications, for example, a third party application is called to determine feature information of a first application, and a second application similar to the first application is selected from a second application list according to the feature information of the first application, which is not limited in this embodiment of the present invention.
In another optional embodiment of the present invention, the screenshot instruction may include a third screenshot instruction; step 301 may include the following sub-steps:
detecting screenshot triggering operation executed by a user in the process of displaying a first application program by a terminal;
and when the screenshot instruction corresponding to the screenshot triggering operation is identified as the third screenshot instruction, selecting the first application program and one or more second application programs from all application programs running in the background of the terminal to serve as application programs to be screenshot.
In an embodiment, if a sliding track of the screenshot triggering operation is a third designated track and/or a pressing force degree of the screenshot triggering operation on a terminal screen is less than or equal to a third preset force threshold, it is determined that a screenshot instruction corresponding to the screenshot triggering operation is a third screenshot instruction, where the third preset force threshold is less than a second preset force threshold.
In an embodiment, when the terminal invokes a third-party application program to recognize that a screen capture instruction is a third screen capture instruction, and the screen capture instruction corresponding to the screen capture trigger operation is recognized as the third screen capture instruction, the step of selecting the first application program and one or more second application programs from all application programs running in the background of the terminal as the application programs to be captured may include: and when detecting that a user selects a first application program and one or more second application programs from the application program list, determining the selected first application program and one or more second application programs as the applications to be subjected to screen capturing.
Specifically, when the screen capture instruction is a third screen capture instruction, all the applications (including the first application and the second application running in the background but not displayed in the foreground) running in the background of the terminal may be obtained according to the third screen capture instruction, and all the applications are organized into an application list, and the application list is displayed to the user at the front end. Each application program in the application program list is provided with an option control, a user can select one or more application programs, and after the selection operation of one or more application programs sent by the user is detected, the one or more application programs selected by the user are used as the application programs to be screenshot. The application programs selected by the user can comprise a first application program and one or more second application programs.
For example, the applications run in the terminal by the user include a social application, a first e-commerce application and a second e-commerce application, the social application is an application displayed in the front-end display interface, and the first e-commerce application and the second e-commerce application are applications which are not displayed in the front end and run in the background. And displaying the three application program identifications to a user, and if the user selects the identifications of the social application and the first e-commerce application, taking the social application and the first e-commerce application as the application programs to be subjected to screen capturing.
In another embodiment, when the terminal calls a third-party application program to recognize that the screenshot instruction is a third screenshot instruction, and the screenshot instruction corresponding to the screenshot triggering operation is recognized as the third screenshot instruction, the step of selecting the first application program and one or more second application programs from all application programs running in the background of the terminal as the application programs to be screenshot may include: and organizing all second application programs running in the background of the terminal into a second application program list, calling a third-party application program to obtain the characteristic information of the first application program, selecting the second application program with the similarity smaller than a preset similarity threshold value with the first application program from the second application program list according to the characteristic information as a similar application program, and taking the first application program and the similar application program as an application program to be subjected to screenshot.
Specifically, the third-party application program may actively determine one or more second application programs according to the information of the first application program, and use the first application program and the one or more second application programs as the application programs to be screenshot. The method comprises the steps of obtaining feature information of a first application program, wherein the feature information can comprise url features, content abstract features and the like, obtaining feature information of each second application program in an application program list, then calculating similarity between the feature information of the first application program and the feature information of each second application program, taking the second application program with the similarity smaller than a preset similarity threshold as a similar application program, and taking the similar application program and the first application program as an application program to be subjected to screenshot.
For example, the applications run in the terminal by the user include a social application, a first e-commerce application and a second e-commerce application, the first e-commerce application is an application displayed in the front-end display interface, and the social application and the second e-commerce application are applications which are not displayed in the front end and run in the background. At this time, the mobile phone assistant may be called to select an application program similar to the first e-commerce application from the social application and the second e-commerce application, and if the second e-commerce application is the second e-commerce application, the second e-commerce application and the first e-commerce application are used as application programs to be screenshot.
It should be noted that the above-mentioned manner of determining the first application program and the one or more second application programs is only an exemplary illustration of the embodiment of the present invention, and those skilled in the art may also determine the first application program and the one or more second application programs in other manners, for example, if there are two or more second application programs that the user wants to screenshot, but there is only one second application program in the application program list, at this time, according to the attribute information of the second application program that exists in the application program list, a third-party application program may be invoked to search, in the installation list of the application program installed in the terminal, for another application program whose similarity to the attribute information of the target application program is greater than the preset similarity threshold, and automatically start the other application program.
Further, the third-party application program can also read the parameter information of the content displayed by the second application program, and inject the parameter information into the found other application program, so as to display the content related to the display content of the target application program in the other application program.
Step 302, respectively carrying out screenshot on the content of the application program to be screenshot to obtain a corresponding target picture;
in an alternative embodiment of the present invention, step 302 may further include the following sub-steps:
extracting sliding information in the application program to be captured from a preset log file;
in the embodiment of the present invention, the sliding information may include sliding information corresponding to more than one sliding operation.
In an optional embodiment of the present invention, the sliding information may include an operation time when the sliding operation is performed; the step of extracting the sliding information in the application program to be captured from the preset log file may specifically include:
extracting the log record of the application program to be captured from the log file; and searching the sliding information of the sliding operation of which the operation time falls in a specified time range from the log record of the application program to be captured.
The appointed time range comprises a starting time and an ending time, and the ending time comprises system time when a user executes screenshot triggering operation; the starting time comprises a designated starting time or the system time when the user enters the application program to be captured.
After the sliding information in the application program to be captured is extracted from a preset log file, more than one corresponding sliding segment can be determined based on the sliding information;
in an optional embodiment of the present invention, the step of determining more than one corresponding sliding segments based on the sliding information further includes:
taking the page position corresponding to the end time as a first start position, sliding the sliding distance corresponding to the latest sliding operation in the direction opposite to the sliding operation direction to obtain a first end position, and taking the area between the first start position and the first end position as a first sliding segment;
and taking the first ending position as a second starting position, sliding the sliding distance corresponding to the last sliding operation of the latest sliding operation in the direction opposite to the sliding operation direction to obtain a second ending position, taking the area between the second starting position and the second ending position as a second sliding segment, and so on until the ending position reaches the page position corresponding to the starting time.
In an optional embodiment of the present invention, after the step of determining, based on the sliding information, more than one corresponding sliding segments, the embodiment of the present invention may further include the following steps:
respectively calculating the stay time of the sliding segments based on the operation time of each sliding operation;
and filtering the sliding segments with the residence time smaller than a preset threshold value.
After more than one sliding fragment is determined, performing screenshot processing on the more than one sliding fragment to obtain more than one corresponding intermediate picture;
in an optional embodiment of the present invention, after obtaining the intermediate pictures of each sliding segment, the embodiment of the present invention may further include the following steps:
and carrying out duplicate removal processing on the intermediate picture.
In an optional embodiment of the present invention, after obtaining the intermediate pictures of each sliding segment, the embodiment of the present invention may further include the following steps:
respectively identifying attribute information of the intermediate pictures;
acquiring system attribute information of a terminal;
and adjusting the attribute information of the intermediate picture based on the system attribute information.
After more than one intermediate picture is obtained, the more than one intermediate picture is spliced into a target picture.
When the method is applied to the embodiment of the invention, after the application program to be captured is determined, if the application program to be captured includes the first application program, the first application program can be captured according to the method of the embodiment of fig. 2, so that a corresponding target picture is obtained.
If the application program to be subjected to screenshot includes the second application program, the first application program may be switched to the second application program in the background through the third-party application program, step 302 is respectively executed for each second application program, and the second application program is subjected to screenshot according to the method in the embodiment of fig. 2, so as to obtain a corresponding target picture.
And if the number of the application programs to be subjected to screenshot is multiple, each application program to be subjected to screenshot corresponds to one target picture.
It should be noted that, in the embodiment of the present invention, the screenshot process of the second application program may be directly performed in the background, and the screenshot process is performed after the second application program is called to the foreground for display. Of course, in order to more accurately perform screenshot on the content required by the user, the embodiment of the present invention may also call the application program to be screenshot to the foreground for display after determining the application program to be screenshot, and perform screenshot processing by using the method in the embodiment of the present invention according to the sliding operation after the user performs the sliding operation on the application program to be screenshot, which is not limited in the embodiment of the present invention.
Step 303, stitching the more than one target pictures into an integrated picture.
If the number of the target pictures is more than one, the target pictures can be spliced into one integrated picture.
In a specific implementation, the integrated picture may be a comparison graph, where one application scenario is that, if the application program to be subjected to screenshot is two application programs with similar functions, and the content of screenshot performed on the application program may be the content of the same or related object, the comparison graph is a comparison graph of the two same or related objects. For example, the application programs to be subjected to screenshot are a first e-commerce application and a second e-commerce application, and the two applications simultaneously open a detail page for the same commodity, so that screenshot can be performed on the commodity detail page for the first e-commerce application and screenshot can be performed on the commodity detail page for the second e-commerce application, and the two screenshots are combined into a comparison diagram, which is convenient for a user to visually compare the same or related commodities.
It should be noted that the integrated picture may be a comparison graph, or may be a picture of another scene, for example, a content mosaic graph, where a user finds the detail information of a certain object in one app and finds the usage information of the object in another app, and then the detail information and the usage information of the object of the two apps may be spliced together to form a complete introduction graph of the object.
After the target picture corresponding to each application program to be captured is obtained, the target picture may be used separately, or the integrated picture may also be used, which is not limited in the embodiment of the present invention.
In order to enable those skilled in the art to better understand the embodiments of the present invention, the following description is provided for illustrating the embodiments of the present invention by three specific examples, but it should be understood that the embodiments of the present invention are not limited thereto.
Example one
Assuming that the user opens the same commodity in both the first e-commerce application and the second e-commerce application, the social application displayed at the front end wants to capture screenshots of the interfaces of the two e-commerce applications at the same time to send a friend for comparison, the method may include the following steps:
(1) the method comprises the steps that a user triggers an app-crossing screenshot function of a mobile phone assistant in the process of starting a social application;
(2) the mobile phone assistant pops up a background app list for the user to select, and the user selects the first e-commerce application and the second e-commerce application;
(3) the mobile phone assistant background is switched to a first e-commerce application and a second e-commerce application, screenshots are respectively taken and then combined to obtain an integrated picture, and the integrated picture is stored in the terminal;
(4) the user sends the integrated picture to the friend in the social application.
Example two
Assuming that the user browses a certain item on a first e-commerce application, the user wants to compare the price of this item on a second e-commerce application, and the second e-commerce application has been opened in the background, the following steps may be included:
(1) the method comprises the steps that a user triggers an app-crossing screenshot function of a mobile phone assistant in the process of starting a first e-commerce application;
(2) calling the mobile phone assistant to search apps with similar properties to the first e-commerce application in the apps running in the background, wherein the search result is a second e-commerce application;
(3) the mobile phone assistant captures commodity contents of a first E-commerce application, then switches the background to a second E-commerce application for capturing, combines the two to obtain an integrated picture, and stores the integrated picture at the terminal;
(4) and displaying the integrated picture to the user.
Example three
Assuming that the user browses a certain commodity on the first e-commerce application, the user wants to compare the price of the commodity on the second e-commerce application, and the cell phone assistant detects that there is no second e-commerce application in the apps opened in the background, the method may include the following steps:
(1) the method comprises the steps that a user triggers an app-crossing screenshot function of a mobile phone assistant in the process of starting a first e-commerce application, and the mobile phone assistant performs screenshot on commodity content on the first e-commerce application;
(2) calling a mobile phone assistant to search apps with similar properties to the first e-commerce application in the installation list of the terminal, wherein the search result is a second e-commerce application;
(3) the mobile phone assistant acquires the attribute parameters on the first e-commerce application, and injects the attribute parameters into the second e-commerce application so as to open the page of the same commodity on the second e-commerce application;
(4) screenshot is conducted on commodity content of the second E-commerce application, then the screenshot of the first E-commerce application and the screenshot of the second E-commerce application are combined to obtain an integrated picture, and the integrated picture is stored in a terminal;
(5) and displaying the integrated picture to the user.
In the embodiment of the invention, the full-interface screenshot can be realized by intelligently selecting the screenshot range based on the browsing behavior of the user, cross-app screenshot and multi-app screenshot are supported, the screenshot function is expanded, the screenshot operation cost of the user is reduced, and the user can use the screenshot conveniently.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are exemplary embodiments and that no single embodiment is necessarily required by the inventive embodiments.
Referring to fig. 4, a block diagram of a structure of an embodiment of a screenshot processing apparatus of the present invention is shown, which may specifically include the following modules:
the to-be-screenshot application determining module 401 is configured to detect a screenshot instruction initiated by a user in a process of displaying a first application on a terminal, and determine the to-be-screenshot application;
the application programs to be captured comprise the first application program and/or one or more second application programs, wherein the first application program is a currently running application program displayed on a front-end interface, and the second application program is an application program which runs in a background and is not displayed on the front-end interface.
And the screenshot module 402 is configured to perform screenshot on the content of the application program to be screenshot to obtain a corresponding target picture, where a display length of the content of the application program to be screenshot is greater than a display length of a display screen of the terminal.
In an optional embodiment of the present invention, the screenshot instruction includes a first screenshot instruction;
the module 401 for determining the application to be captured includes the following sub-modules:
the trigger operation detection submodule is used for detecting screenshot trigger operation executed by a user in the process of displaying the first application program on the terminal;
and the first instruction identification submodule is used for determining the first application program as the application program to be subjected to screenshot when the screenshot instruction corresponding to the screenshot triggering operation is identified as the first screenshot instruction.
In another optional embodiment of the present invention, the screenshot instruction includes a second screenshot instruction;
the module 401 for determining the application to be captured includes the following sub-modules:
the trigger operation detection submodule is used for detecting screenshot trigger operation executed by a user in the process of displaying the first application program on the terminal;
and the second instruction identification submodule is used for selecting one or more second application programs from all application programs running in the background of the terminal as the application programs to be subjected to screenshot when the screenshot instruction corresponding to the screenshot triggering operation is identified as the second screenshot instruction.
In another optional embodiment of the embodiments of the present invention, the screenshot instruction includes a third screenshot instruction;
the module 401 for determining the application to be captured includes the following sub-modules:
the trigger operation detection submodule is used for detecting screenshot trigger operation executed by a user in the process of displaying the first application program on the terminal;
and the third instruction identification submodule is used for selecting the first application program and one or more second application programs from all application programs running in the background of the terminal as the application programs to be subjected to screenshot when the screenshot instruction corresponding to the screenshot triggering operation is identified as the third screenshot instruction.
In an optional embodiment of the present invention, the screenshot module 402 further includes the following sub-modules:
the sliding information extraction submodule is used for extracting sliding information in the application program to be captured from a preset log file;
the sliding information comprises sliding information corresponding to more than one sliding operation.
A sliding segment determining submodule for determining more than one corresponding sliding segment based on the sliding information;
the screenshot processing submodule is used for carrying out screenshot processing on the more than one sliding fragment to obtain more than one corresponding intermediate picture;
and the image splicing sub-module is used for splicing the more than one intermediate pictures into one target picture.
In an optional embodiment of the present invention, the sliding information includes an operation time when the sliding operation is performed; the sliding information extraction sub-module is further configured to:
extracting the log record of the application program to be captured from the log file;
searching sliding information of the sliding operation of which the operation time falls in a specified time range from the log record of the application program to be subjected to screenshot, wherein the specified time range comprises a starting time and an ending time, and the ending time comprises system time when a user executes screenshot triggering operation; the starting time comprises a designated starting time or the system time when the user enters the application program to be captured.
In an optional embodiment of the present invention, the sliding information further includes a sliding distance corresponding to the sliding operation; the sliding segment determination submodule is further configured to:
taking the page position corresponding to the end time as a first start position, sliding the sliding distance corresponding to the latest sliding operation in the direction opposite to the sliding operation direction to obtain a first end position, and taking the area between the first start position and the first end position as a first sliding segment;
and taking the first ending position as a second starting position, sliding the sliding distance corresponding to the last sliding operation of the latest sliding operation in the direction opposite to the sliding operation direction to obtain a second ending position, taking the area between the second starting position and the second ending position as a second sliding segment, and so on until the ending position reaches the page position corresponding to the starting time.
In an optional embodiment of the embodiments of the present invention, the apparatus further comprises:
the stay time calculation module is used for respectively calculating the stay time of the sliding segments based on the operation time of each sliding operation;
and the filtering module is used for filtering the sliding segments with the residence time smaller than a preset threshold value.
In an optional embodiment of the embodiments of the present invention, the apparatus further comprises:
and the duplicate removal module is used for carrying out duplicate removal processing on the intermediate picture.
In an optional embodiment of the embodiments of the present invention, the apparatus further comprises:
the attribute adjusting module is used for respectively identifying the attribute information of the intermediate pictures; acquiring system attribute information of a terminal; and adjusting the attribute information of the intermediate picture based on the system attribute information.
In an optional embodiment of the present invention, if the application program to be subjected to screenshot includes more than one second application program, or the application program to be subjected to screenshot includes the first application program and one or more than one second application program, the number of the corresponding target pictures is more than one;
the device further comprises:
and the splicing module is used for splicing the more than one target pictures into one integrated picture.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating a screenshot processing apparatus 500 according to an exemplary embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 505, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 505 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 505 includes a screen providing an output interface between the device 500 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 505 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the device 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in the position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in the temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a screenshot processing method, the method comprising:
in the process of displaying a first application program on a terminal, detecting a screenshot instruction initiated by a user, and determining an application program to be screenshot, wherein the application program to be screenshot comprises the first application program and/or one or more second application programs, the first application program is the currently running application program displayed on a front-end interface, and the second application program is the application program which runs on the background but is not displayed on the front-end interface; and screenshot is carried out on the content of the application program to be screenshot to obtain a corresponding target picture, and the display length of the content of the application program to be screenshot is longer than that of a display screen of the terminal.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (30)

1. A screenshot processing method, the method comprising:
in the process of displaying a first application program on a terminal, detecting a screenshot instruction initiated by a user, and determining an application program to be screenshot, wherein the application program to be screenshot comprises the first application program and/or one or more second application programs, the first application program is the currently running application program displayed on a front-end interface, and the second application program is the application program which runs on the background but is not displayed on the front-end interface;
screenshot is carried out on the content of the application program to be screenshot, and a corresponding target picture is obtained, wherein the display length of the content of the application program to be screenshot is larger than that of a display screen of the terminal;
the step of capturing the content of the application program to be captured to obtain a corresponding target picture comprises the following steps:
extracting sliding information in the application program to be captured from a preset log file, wherein the sliding information comprises sliding information corresponding to more than one sliding operation;
determining corresponding one or more sliding segments based on the sliding information;
performing screenshot processing on the more than one sliding fragments to obtain more than one corresponding intermediate pictures;
and splicing the more than one intermediate pictures into one target picture.
2. The method of claim 1, wherein the screenshot instruction comprises a first screenshot instruction;
the method comprises the following steps of detecting a screenshot instruction initiated by a user in the process of displaying a first application program on a terminal, and determining the application program to be screenshot, wherein the steps comprise:
detecting screenshot triggering operation executed by a user in the process of displaying a first application program by a terminal;
and when the screenshot instruction corresponding to the screenshot triggering operation is identified as the first screenshot instruction, determining the first application program as the application program to be screenshot.
3. The method of claim 1, wherein the screenshot instruction comprises a second screenshot instruction;
the method comprises the following steps of detecting a screenshot instruction initiated by a user in the process of displaying a first application program on a terminal, and determining the application program to be screenshot, wherein the steps comprise:
detecting screenshot triggering operation executed by a user in the process of displaying a first application program by a terminal;
and when the screenshot instruction corresponding to the screenshot triggering operation is identified as the second screenshot instruction, selecting one or more second application programs from all application programs running in the background of the terminal to serve as the application programs to be screenshot.
4. The method of claim 1, wherein the screenshot instruction comprises a third screenshot instruction;
the method comprises the following steps of detecting a screenshot instruction initiated by a user in the process of displaying a first application program on a terminal, and determining the application program to be screenshot, wherein the steps comprise:
detecting screenshot triggering operation executed by a user in the process of displaying a first application program by a terminal;
and when the screenshot instruction corresponding to the screenshot triggering operation is identified as the third screenshot instruction, selecting the first application program and one or more second application programs from all application programs running in the background of the terminal to serve as application programs to be screenshot.
5. The method according to claim 1, wherein the slide information includes an operation time when the slide operation is performed; the step of extracting the sliding information in the application program to be captured from the preset log file comprises the following steps:
extracting the log record of the application program to be captured from the log file;
searching sliding information of the sliding operation of which the operation time falls in a specified time range from the log record of the application program to be subjected to screenshot, wherein the specified time range comprises a starting time and an ending time, and the ending time comprises system time when a user executes screenshot triggering operation; the starting time comprises a designated starting time or the system time when the user enters the application program to be captured.
6. The method of claim 5, wherein the sliding information further comprises a sliding distance corresponding to the sliding operation;
the step of determining the corresponding one or more sliding segments based on the sliding information comprises:
taking the page position corresponding to the end time as a first start position, sliding the sliding distance corresponding to the latest sliding operation in the direction opposite to the sliding operation direction to obtain a first end position, and taking the area between the first start position and the first end position as a first sliding segment;
and taking the first ending position as a second starting position, sliding the sliding distance corresponding to the last sliding operation of the latest sliding operation in the direction opposite to the sliding operation direction to obtain a second ending position, taking the area between the second starting position and the second ending position as a second sliding segment, and so on until the ending position reaches the page position corresponding to the starting time.
7. The method of claim 6, wherein before the step of performing the screenshot process on the one or more slide segments to obtain the corresponding one or more intermediate pictures, the method further comprises:
respectively calculating the stay time of the sliding segments based on the operation time of each sliding operation;
and filtering the sliding segments with the residence time smaller than a preset threshold value.
8. The method according to claim 1, wherein before the step of stitching the one or more intermediate pictures into a target picture, the method further comprises:
and carrying out duplicate removal processing on the intermediate picture.
9. The method according to claim 7 or 8, wherein before the step of stitching the one or more intermediate pictures into a target picture, the method further comprises:
respectively identifying attribute information of the intermediate pictures;
acquiring system attribute information of a terminal;
and adjusting the attribute information of the intermediate picture based on the system attribute information.
10. The method according to claim 1, wherein if the application program to be subjected to screenshot comprises more than one second application program, or the application program to be subjected to screenshot comprises a first application program and one or more than one second application program, the number of the corresponding target pictures is more than one;
the method further comprises the following steps:
and splicing the more than one target pictures into an integrated picture.
11. A screenshot processing apparatus, said apparatus comprising:
the device comprises a to-be-screenshot application program determining module, a screenshot judging module and a screenshot judging module, wherein the to-be-screenshot application program determining module is used for detecting a screenshot instruction initiated by a user in the process of displaying a first application program on a terminal and determining the to-be-screenshot application program, the to-be-screenshot application program comprises the first application program and/or one or more second application programs, the first application program is an application program which is currently operated and is displayed on a front-end interface, and the second application program is an application program which is operated on a background and is not displayed on the front-end interface;
the screenshot module is used for screenshot the content of the application program to be screenshot to obtain a corresponding target picture, and the display length of the content of the application program to be screenshot is longer than that of a display screen of the terminal;
wherein, the screenshot module further comprises the following sub-modules:
the sliding information extraction submodule is used for extracting sliding information in the application program to be captured from a preset log file;
the sliding information comprises sliding information corresponding to more than one sliding operation;
a sliding segment determining submodule for determining more than one corresponding sliding segment based on the sliding information;
the screenshot processing submodule is used for carrying out screenshot processing on the more than one sliding fragment to obtain more than one corresponding intermediate picture;
and the image splicing sub-module is used for splicing the more than one intermediate pictures into one target picture.
12. The apparatus of claim 11, wherein the screenshot instructions comprise a first screenshot instruction;
the module for determining the application program to be captured comprises the following sub-modules:
the trigger operation detection submodule is used for detecting screenshot trigger operation executed by a user in the process of displaying the first application program on the terminal;
and the first instruction identification submodule is used for determining the first application program as the application program to be subjected to screenshot when the screenshot instruction corresponding to the screenshot triggering operation is identified as the first screenshot instruction.
13. The apparatus of claim 11, wherein the screenshot instruction comprises a second screenshot instruction;
the module for determining the application program to be captured comprises the following sub-modules:
the trigger operation detection submodule is used for detecting screenshot trigger operation executed by a user in the process of displaying the first application program on the terminal;
and the second instruction identification submodule is used for selecting one or more second application programs from all application programs running in the background of the terminal as the application programs to be subjected to screenshot when the screenshot instruction corresponding to the screenshot triggering operation is identified as the second screenshot instruction.
14. The apparatus of claim 11, wherein the screenshot instructions comprise a third screenshot instruction;
the module for determining the application program to be captured comprises the following sub-modules:
the trigger operation detection submodule is used for detecting screenshot trigger operation executed by a user in the process of displaying the first application program on the terminal;
and the third instruction identification submodule is used for selecting the first application program and one or more second application programs from all application programs running in the background of the terminal as the application programs to be subjected to screenshot when the screenshot instruction corresponding to the screenshot triggering operation is identified as the third screenshot instruction.
15. The apparatus according to claim 11, wherein the slide information includes an operation time when the slide operation is performed; the sliding information extraction sub-module is further configured to:
extracting the log record of the application program to be captured from the log file;
searching sliding information of the sliding operation of which the operation time falls in a specified time range from the log record of the application program to be subjected to screenshot, wherein the specified time range comprises a starting time and an ending time, and the ending time comprises system time when a user executes screenshot triggering operation; the starting time comprises a designated starting time or the system time when the user enters the application program to be captured.
16. The apparatus of claim 15, wherein the sliding information further comprises a sliding distance corresponding to the sliding operation; the sliding segment determination submodule is further configured to:
taking the page position corresponding to the end time as a first start position, sliding the sliding distance corresponding to the latest sliding operation in the direction opposite to the sliding operation direction to obtain a first end position, and taking the area between the first start position and the first end position as a first sliding segment;
and taking the first ending position as a second starting position, sliding the sliding distance corresponding to the last sliding operation of the latest sliding operation in the direction opposite to the sliding operation direction to obtain a second ending position, taking the area between the second starting position and the second ending position as a second sliding segment, and so on until the ending position reaches the page position corresponding to the starting time.
17. The apparatus of claim 16, further comprising:
the stay time calculation module is used for respectively calculating the stay time of the sliding segments based on the operation time of each sliding operation;
and the filtering module is used for filtering the sliding segments with the residence time smaller than a preset threshold value.
18. The apparatus of claim 11, further comprising:
and the duplicate removal module is used for carrying out duplicate removal processing on the intermediate picture.
19. The apparatus of claim 17 or 18, further comprising:
the attribute adjusting module is used for respectively identifying the attribute information of the intermediate pictures; acquiring system attribute information of a terminal; and adjusting the attribute information of the intermediate picture based on the system attribute information.
20. The apparatus according to claim 11, wherein if the application to be subjected to screenshot includes more than one second application, or if the application to be subjected to screenshot includes a first application and one or more than one second application, the number of the corresponding target pictures is more than one;
the device further comprises:
and the splicing module is used for splicing the more than one target pictures into one integrated picture.
21. A screenshot processing apparatus comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured for execution by one or more processors, the one or more programs comprising instructions for:
in the process of displaying a first application program on a terminal, detecting a screenshot instruction initiated by a user, and determining an application program to be screenshot, wherein the application program to be screenshot comprises the first application program and/or one or more second application programs, the first application program is the currently running application program displayed on a front-end interface, and the second application program is the application program which runs on the background but is not displayed on the front-end interface;
capturing the content of the application program to be captured to obtain a corresponding target picture, wherein the display length of the content of the application program to be captured is larger than that of a display screen of the terminal
The step of capturing the content of the application program to be captured to obtain a corresponding target picture comprises the following steps:
extracting sliding information in the application program to be captured from a preset log file, wherein the sliding information comprises sliding information corresponding to more than one sliding operation;
determining corresponding one or more sliding segments based on the sliding information;
performing screenshot processing on the more than one sliding fragments to obtain more than one corresponding intermediate pictures;
and splicing the more than one intermediate pictures into one target picture.
22. The apparatus of claim 21, wherein the screenshot instructions comprise a first screenshot instruction;
the method comprises the following steps of detecting a screenshot instruction initiated by a user in the process of displaying a first application program on a terminal, and determining the application program to be screenshot, wherein the steps comprise:
detecting screenshot triggering operation executed by a user in the process of displaying a first application program by a terminal;
and when the screenshot instruction corresponding to the screenshot triggering operation is identified as the first screenshot instruction, determining the first application program as the application program to be screenshot.
23. The apparatus of claim 21, wherein the screenshot instruction comprises a second screenshot instruction;
the method comprises the following steps of detecting a screenshot instruction initiated by a user in the process of displaying a first application program on a terminal, and determining the application program to be screenshot, wherein the steps comprise:
detecting screenshot triggering operation executed by a user in the process of displaying a first application program by a terminal;
and when the screenshot instruction corresponding to the screenshot triggering operation is identified as the second screenshot instruction, selecting one or more second application programs from all application programs running in the background of the terminal to serve as the application programs to be screenshot.
24. The apparatus of claim 21, wherein the screenshot instructions comprise a third screenshot instruction;
the method comprises the following steps of detecting a screenshot instruction initiated by a user in the process of displaying a first application program on a terminal, and determining the application program to be screenshot, wherein the steps comprise:
detecting screenshot triggering operation executed by a user in the process of displaying a first application program by a terminal;
and when the screenshot instruction corresponding to the screenshot triggering operation is identified as the third screenshot instruction, selecting the first application program and one or more second application programs from all application programs running in the background of the terminal to serve as application programs to be screenshot.
25. The apparatus according to claim 21, wherein the slide information includes an operation time when the slide operation is performed; the step of extracting the sliding information in the application program to be captured from the preset log file comprises the following steps:
extracting the log record of the application program to be captured from the log file;
searching sliding information of the sliding operation of which the operation time falls in a specified time range from the log record of the application program to be subjected to screenshot, wherein the specified time range comprises a starting time and an ending time, and the ending time comprises system time when a user executes screenshot triggering operation; the starting time comprises a designated starting time or the system time when the user enters the application program to be captured.
26. The apparatus of claim 25, wherein the sliding information further comprises a sliding distance corresponding to the sliding operation;
the step of determining the corresponding one or more sliding segments based on the sliding information comprises:
taking the page position corresponding to the end time as a first start position, sliding the sliding distance corresponding to the latest sliding operation in the direction opposite to the sliding operation direction to obtain a first end position, and taking the area between the first start position and the first end position as a first sliding segment;
and taking the first ending position as a second starting position, sliding the sliding distance corresponding to the last sliding operation of the latest sliding operation in the direction opposite to the sliding operation direction to obtain a second ending position, taking the area between the second starting position and the second ending position as a second sliding segment, and so on until the ending position reaches the page position corresponding to the starting time.
27. The apparatus of claim 26, wherein prior to the step of performing the screenshot process on the one or more slide segments to obtain the corresponding one or more intermediate pictures, the method further comprises instructions for:
respectively calculating the stay time of the sliding segments based on the operation time of each sliding operation;
and filtering the sliding segments with the residence time smaller than a preset threshold value.
28. The apparatus of claim 21, further comprising instructions for:
and carrying out duplicate removal processing on the intermediate picture.
29. The apparatus of claim 27 or 28, further comprising instructions for:
respectively identifying attribute information of the intermediate pictures;
acquiring system attribute information of a terminal;
and adjusting the attribute information of the intermediate picture based on the system attribute information.
30. The apparatus according to claim 21, wherein if the application to be subjected to screenshot includes more than one second application, or if the application to be subjected to screenshot includes a first application and one or more than one second application, the number of the corresponding target pictures is more than one;
the method also includes instructions for:
and splicing the more than one target pictures into an integrated picture.
CN201610849748.8A 2016-09-23 2016-09-23 Screenshot processing method and device Active CN107870712B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610849748.8A CN107870712B (en) 2016-09-23 2016-09-23 Screenshot processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610849748.8A CN107870712B (en) 2016-09-23 2016-09-23 Screenshot processing method and device

Publications (2)

Publication Number Publication Date
CN107870712A CN107870712A (en) 2018-04-03
CN107870712B true CN107870712B (en) 2021-11-09

Family

ID=61751485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610849748.8A Active CN107870712B (en) 2016-09-23 2016-09-23 Screenshot processing method and device

Country Status (1)

Country Link
CN (1) CN107870712B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647284B (en) * 2018-05-03 2021-07-23 网易宝有限公司 Method and device for recording user behavior, medium and computing equipment
CN110147511A (en) * 2019-05-08 2019-08-20 腾讯科技(深圳)有限公司 A kind of page processing method, device, electronic equipment and medium
CN111061530A (en) * 2019-12-05 2020-04-24 维沃移动通信有限公司 Image processing method, electronic device and storage medium
CN112650433A (en) * 2020-12-29 2021-04-13 展讯通信(天津)有限公司 Interface screenshot method and device and electronic equipment
CN112764648A (en) * 2021-01-28 2021-05-07 维沃移动通信有限公司 Screen capturing method and device, electronic equipment and storage medium
CN113434243B (en) * 2021-08-27 2021-12-10 深圳市活力天汇科技股份有限公司 Weex page-based screenshot method, device, equipment and storage medium
CN113726953B (en) * 2021-08-31 2023-03-14 维沃移动通信有限公司 Display content acquisition method and device
CN115033318B (en) * 2021-11-22 2023-04-14 荣耀终端有限公司 Character recognition method for image, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808916A (en) * 2015-04-13 2015-07-29 深圳市金立通信设备有限公司 Screen-shooting method
CN105094628A (en) * 2015-07-31 2015-11-25 联想(北京)有限公司 Screen capture method and electronic device
CN105718161A (en) * 2016-01-15 2016-06-29 努比亚技术有限公司 Method and device for terminal screen capturing
CN105760057A (en) * 2016-02-26 2016-07-13 努比亚技术有限公司 Screenshot device and method
CN105786359A (en) * 2014-12-17 2016-07-20 中兴通讯股份有限公司 Method and device for screen capture of mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681829B (en) * 2011-03-16 2016-03-30 阿里巴巴集团控股有限公司 A kind of screenshot method, device and telecommunication customer end
CN103514581B (en) * 2013-10-23 2017-02-15 小米科技有限责任公司 Screen picture capturing method, device and terminal equipment
US20160180762A1 (en) * 2014-12-22 2016-06-23 Elwha Llc Systems, methods, and devices for controlling screen refresh rates
CN105487766A (en) * 2015-11-24 2016-04-13 努比亚技术有限公司 Picture capture method and apparatus
CN105549845B (en) * 2015-12-09 2019-03-26 惠州Tcl移动通信有限公司 A kind of continuous screenshot method of page based on mobile terminal, system and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786359A (en) * 2014-12-17 2016-07-20 中兴通讯股份有限公司 Method and device for screen capture of mobile terminal
CN104808916A (en) * 2015-04-13 2015-07-29 深圳市金立通信设备有限公司 Screen-shooting method
CN105094628A (en) * 2015-07-31 2015-11-25 联想(北京)有限公司 Screen capture method and electronic device
CN105718161A (en) * 2016-01-15 2016-06-29 努比亚技术有限公司 Method and device for terminal screen capturing
CN105760057A (en) * 2016-02-26 2016-07-13 努比亚技术有限公司 Screenshot device and method

Also Published As

Publication number Publication date
CN107870712A (en) 2018-04-03

Similar Documents

Publication Publication Date Title
CN107870712B (en) Screenshot processing method and device
US10649648B2 (en) Method and apparatus for screen capture processing
EP3327590B1 (en) Method and device for adjusting video playback position
CN107818180B (en) Video association method, video display device and storage medium
RU2669063C2 (en) Method and device for image acquisition
CN107025419B (en) Fingerprint template inputting method and device
CN108037863B (en) Method and device for displaying image
CN105845124B (en) Audio processing method and device
CN107229527B (en) Information resource collection method and device and computer readable storage medium
CN107133352B (en) Photo display method and device
EP3128411B1 (en) Interface display method, terminal, computer program and recording medium
US11281363B2 (en) Method and device for setting identity image
CN105786507B (en) Display interface switching method and device
CN106896991B (en) Method and device for updating information
CN106354504B (en) Message display method and device
CN106409317B (en) Method and device for extracting dream speech
WO2017080084A1 (en) Font addition method and apparatus
JP2017532618A (en) Information processing method and apparatus
CN108733397B (en) Update state determination method, apparatus, and storage medium
CN104991910A (en) Album creation method and apparatus
CN112308864A (en) Image processing method and device, electronic equipment and storage medium
CN106331328B (en) Information prompting method and device
CN110673917A (en) Information management method and device
CN108984098B (en) Information display control method and device based on social software
CN105260088B (en) Information classification display processing method and device

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