CN108052263B - Screen capturing method based on terminal equipment and terminal equipment - Google Patents

Screen capturing method based on terminal equipment and terminal equipment Download PDF

Info

Publication number
CN108052263B
CN108052263B CN201711463114.XA CN201711463114A CN108052263B CN 108052263 B CN108052263 B CN 108052263B CN 201711463114 A CN201711463114 A CN 201711463114A CN 108052263 B CN108052263 B CN 108052263B
Authority
CN
China
Prior art keywords
picture
screen
terminal equipment
editing
user
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
CN201711463114.XA
Other languages
Chinese (zh)
Other versions
CN108052263A (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.)
TCL China Star Optoelectronics Technology Co Ltd
Original Assignee
Shenzhen China Star Optoelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen China Star Optoelectronics Technology Co Ltd filed Critical Shenzhen China Star Optoelectronics Technology Co Ltd
Priority to CN201711463114.XA priority Critical patent/CN108052263B/en
Publication of CN108052263A publication Critical patent/CN108052263A/en
Application granted granted Critical
Publication of CN108052263B publication Critical patent/CN108052263B/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/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Abstract

A screen capture method based on terminal equipment and the terminal equipment comprise: when the terminal equipment is in a long-screen intercepting mode, the terminal equipment detects a screen intercepting instruction triggered by a user and acquires a first screen picture displayed by a screen of the terminal equipment according to the screen intercepting instruction, wherein the long-screen intercepting mode is used for intercepting the screen picture exceeding the screen size of the terminal equipment; the terminal equipment rolls a screen picture displayed on a screen of the terminal equipment according to a sliding instruction triggered by a user; the terminal equipment judges whether a screen capture confirmation instruction is detected or not, and if the screen capture confirmation instruction is detected, a second screen picture displayed on a screen of the terminal equipment at the moment when the screen capture confirmation instruction is detected is acquired; the terminal equipment generates a first target screenshot picture according to the first screen picture, the second screen picture and the screen picture between the first screen picture and the second screen picture. By implementing the embodiment of the invention, the screen picture exceeding the screen size of the terminal equipment can be simply and quickly captured, and the screen capturing efficiency is improved.

Description

Screen capturing method based on terminal equipment and terminal equipment
Technical Field
The invention relates to the technical field of electronic equipment, in particular to a screen capturing method based on terminal equipment and the terminal equipment.
Background
With the development of science and technology, terminal devices such as mobile phones and computers have become one of the necessities of most people in life and work, people can intercept a required screen picture at any time through the screen capturing function of the mobile phones, and then the intelligent mobile phones can generate and store corresponding screen capturing pictures according to the intercepted screen picture. In practice, it is found that due to the limited screen size of terminal devices such as a mobile phone, when a user needs to capture a screen image exceeding the screen size of the mobile phone, the user is often required to trigger multiple screen capturing operations, so that multiple screen capturing pictures are obtained, and then the user is required to sequentially splice the obtained multiple screen capturing pictures, so that the complete screen image required by the user can be obtained. Therefore, the existing method for capturing the screen picture with the size exceeding the screen size is complex to operate and low in efficiency.
Disclosure of Invention
The embodiment of the invention discloses a screen capturing method based on terminal equipment and the terminal equipment, which can simply and quickly capture a screen picture exceeding the screen size of the terminal equipment and improve the screen capturing efficiency.
The first aspect of the embodiment of the invention discloses a screen capture method based on terminal equipment, which comprises the following steps:
when the terminal equipment is in a long-screen intercepting mode, the terminal equipment detects a screen intercepting instruction triggered by a user, and acquires a first screen picture displayed on a screen of the terminal equipment according to the screen intercepting instruction, wherein the long-screen intercepting mode is used for intercepting the screen picture exceeding the screen size of the terminal equipment;
the terminal equipment rolls a screen picture displayed by a screen of the terminal equipment according to a sliding instruction triggered by a user;
the terminal equipment judges whether a screen capture confirmation instruction is detected or not, and if the screen capture confirmation instruction is detected, a second screen picture displayed on a screen of the terminal equipment at the moment when the screen capture confirmation instruction is detected is acquired;
and the terminal equipment generates a first target screenshot picture according to the first screen picture, the second screen picture and the screen picture between the first screen picture and the second screen picture.
As an optional implementation manner, in the first aspect of this embodiment of the present invention, the method further includes:
the terminal equipment judges whether a picture sharing instruction triggered by a user is received or not;
if the picture sharing instruction triggered by the user is received, the terminal equipment outputs the first target screenshot picture for the user to preview, and starts an editing mode, wherein the editing mode is used for allowing the user to trigger an editing instruction for editing the first target screenshot picture;
the terminal equipment edits the first target screenshot picture according to the editing instruction triggered by a user in the editing mode to obtain an edited picture;
the terminal equipment sends a picture sharing request to a first server, wherein the picture sharing request comprises the edited picture, and the picture sharing request is used for requesting the first server to share the edited picture with other terminal equipment.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, in the editing mode, according to the editing instruction triggered by the user, the editing is performed on the first target screenshot picture by the terminal device to obtain an edited picture, where the editing includes:
the terminal equipment acquires picture content of an editing area according to the editing instruction triggered by the user in the editing mode, wherein the editing area is an area which is selected by the user when editing the first target screenshot picture and needs to be added with a mosaic;
the terminal equipment determines target picture content matched with the picture content of the editing area from all the picture contents of the first target screenshot picture;
and the terminal equipment acquires a mosaic editing scheme aiming at the editing area, and executes mosaic editing operation on the target picture content and the picture content of the editing area according to the mosaic editing scheme to obtain an edited picture.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the terminal device detects a screen capture instruction triggered by a user, the method further includes:
the terminal equipment judges whether the current displayed picture content of the terminal equipment is the webpage content;
if the picture content currently displayed by the terminal equipment is the webpage content, the terminal equipment sends a website information acquisition request to a second server, and acquires website information of all webpage contents currently displayed by the terminal equipment according to response information returned by the second server aiming at the website information acquisition request;
the terminal equipment matches the website information of all the webpage contents with preset website information in a preset advertisement website information base, and extracts advertisement website information to be filtered from the website information of all the webpage contents;
and the terminal equipment filters the advertisement content included in all the webpage contents currently displayed by the terminal equipment according to the advertisement website information, and executes the first screen picture displayed on the screen of the terminal equipment according to the screen capturing instruction.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the terminal device acquires the second screen displayed on the screen of the terminal device at the time of detecting the screen capture confirmation instruction, the method further includes:
the terminal equipment judges whether a dynamic picture exists in a target screen picture, wherein the target screen picture consists of the first screen picture, the second screen picture and a screen picture between the first screen picture and the second screen picture which are displayed by a screen of the terminal equipment;
if the dynamic picture exists in the target screen picture, the terminal equipment acquires a picture area of the dynamic picture in the target screen picture;
the terminal equipment acquires frame pictures of at least two frames of the dynamic pictures;
the terminal equipment judges whether a dynamic interception ending instruction triggered by a user is received or not;
if the dynamic interception ending instruction is received, the terminal equipment generates a dynamic picture according to the frame images of the at least two frames and the frame sequence of the frame images of the at least two frames, and executes the generation of a first target screenshot picture according to the first screen image, the second screen image and the screen image between the first screen image and the second screen image;
and, the method further comprises:
and the terminal equipment determines a picture area matched with the picture area in the first target screen capturing picture, and replaces the content displayed in the picture area with the dynamic picture to generate a second target screen capturing picture.
A second aspect of an embodiment of the present invention discloses a terminal device, including:
the detection unit is used for detecting a screen capture instruction triggered by a user when the terminal equipment is in a long screen capture mode, and the long screen capture mode is used for capturing a screen picture exceeding the screen size of the terminal equipment;
the first acquisition unit is used for acquiring a first screen picture displayed by a screen of the terminal equipment according to the screen capturing instruction detected by the detection unit;
the picture rolling unit is used for rolling the screen picture displayed on the screen of the terminal equipment according to a sliding instruction triggered by a user;
the first judgment unit is used for judging whether a screen capture confirmation instruction is detected or not;
a second acquiring unit, configured to acquire, when the determination result of the first determining unit is yes, a second screen image displayed on the screen of the terminal device at the time when the screen capture confirmation instruction is detected;
the first generating unit is configured to generate a first target screenshot picture according to the first screen picture acquired by the first acquiring unit, the second screen picture acquired by the second acquiring unit, and a screen picture between the first screen picture and the second screen picture.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the terminal device further includes:
the second judgment unit is used for judging whether a picture sharing instruction triggered by a user is received or not;
the starting unit is used for outputting the first target screenshot picture for a user to preview when the judgment result of the second judging unit is yes, and starting an editing mode, wherein the editing mode is used for allowing the user to trigger an editing instruction for editing the first target screenshot picture;
the editing unit is used for editing the first target screenshot picture according to the editing instruction triggered by a user in the editing mode started by the starting unit to obtain an edited picture;
the sending unit is used for sending a picture sharing request to a first server, wherein the picture sharing request comprises the edited picture obtained by the editing unit, and the picture sharing request is used for requesting the first server to share the edited picture to other terminal devices.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the editing unit includes:
the first subunit is used for acquiring the picture content of an editing area according to the editing instruction triggered by the user in the editing mode, wherein the editing area is an area which is selected by the user when editing the first target screenshot picture and needs to be added with a mosaic;
the first subunit is further configured to determine, from all picture contents of the first target screenshot picture, a target picture content that matches the picture content of the editing area;
and the second subunit is used for acquiring a mosaic editing scheme of the editing area acquired by the first subunit, and performing mosaic editing operation on the target picture content and the picture content of the editing area according to the mosaic editing scheme to obtain an edited picture.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the terminal device further includes:
the third judging unit is used for judging whether the currently displayed picture content of the terminal equipment is the webpage content or not after the detecting unit detects the screen capturing instruction triggered by the user;
a third obtaining unit, configured to send a website information obtaining request to a second server when a determination result of the third determining unit is yes, and obtain, according to response information returned by the second server for the website information obtaining request, website information of all webpage contents currently displayed by the terminal device;
an extracting unit, configured to match the website information of all the web page contents acquired by the third acquiring unit with preset website information in a preset advertisement website information base, and extract advertisement website information to be filtered from the website information of all the web page contents;
and the filtering unit is used for filtering the advertisement content included in all the webpage contents currently displayed by the terminal equipment according to the advertisement website information to be filtered extracted by the extracting unit and triggering and starting the first acquiring unit.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the terminal device further includes:
a fourth judging unit, configured to judge whether a dynamic picture exists in a target screen picture after the second acquiring unit acquires a second screen picture displayed on the screen of the terminal device at the time when the screen capture confirmation instruction is detected, where the target screen picture is composed of the first screen picture and the second screen picture displayed on the screen of the terminal device, and a screen picture between the first screen picture and the second screen picture;
a fourth obtaining unit, configured to obtain a picture area of the dynamic picture in the target screen picture when a determination result of the fourth determining unit is yes;
the fourth obtaining unit is further configured to obtain frame pictures of at least two frames of the dynamic picture;
the fourth judging unit is further configured to judge whether a dynamic interception ending instruction triggered by a user is received;
a second generating unit, configured to generate a dynamic picture according to the frame sequence of the frame images of the at least two frames and according to the frame images of the at least two frames when the determination result of the fourth determining unit is yes, and trigger to start the first generating unit;
the second generating unit is further configured to determine a picture region in the first target screenshot picture, where the picture region matches the picture region, and replace the content displayed in the picture region with the dynamic picture to generate a second target screenshot picture.
A third aspect of the embodiments of the present invention discloses a terminal device, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the screen capture method based on the terminal device disclosed by the first aspect of the embodiment of the invention.
A fourth aspect of the embodiments of the present invention discloses a computer-readable storage medium, which stores a computer program, where the computer program enables a computer to execute a screen capture method based on a terminal device disclosed in the first aspect of the embodiments of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the present invention, when the terminal device is in the long screen capture mode, a sliding instruction triggered by a user may be detected first, when the sliding instruction is detected, a first screen displayed on the screen of the terminal device at the time when the sliding instruction is detected is obtained, then, the terminal device may scroll the screen displayed on the terminal device according to the sliding instruction, the user may preview the selected screen to be captured through the scrolled screen, then, after all the screens to be captured are determined, a screen capture confirmation instruction may be triggered, further, the terminal device may obtain a second screen displayed on the screen of the terminal device at the time when the screen capture confirmation instruction triggered by the user is detected, and finally, the terminal device may obtain the first screen, the second screen, and the screen between the first screen and the second screen, and generating a first target screen capture picture. Therefore, by implementing the embodiment of the invention, the screen picture exceeding the screen size of the terminal equipment can be quickly captured, the operation is simple, and the screen capturing efficiency is high.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a screen capture method based on a terminal device according to an embodiment of the present invention;
FIG. 2 is a schematic flowchart of another screen capturing method based on a terminal device according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another screen capturing method based on a terminal device according to an embodiment of the disclosure;
fig. 4 is a schematic structural diagram of a terminal device disclosed in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of another terminal device disclosed in the embodiment of the present invention;
fig. 6 is a schematic structural diagram of another terminal device disclosed in the embodiment of the present invention;
fig. 7 is a schematic structural diagram of another terminal device disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is to be noted that the terms "comprises" and "comprising" and any variations thereof in the embodiments and drawings of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses a screen capturing method based on terminal equipment and the terminal equipment, which can rapidly capture a screen picture exceeding the size of a screen of the terminal equipment, and have the advantages of simple operation and high screen capturing efficiency. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a screen capturing method based on a terminal device according to an embodiment of the present invention. As shown in fig. 1, the screen capture method based on the terminal device may include the following steps:
101. when the terminal equipment is in a long-screen capturing mode, the terminal equipment detects a screen capturing instruction triggered by a user and acquires a first screen picture displayed on a screen of the terminal equipment according to the screen capturing instruction, and the long-screen capturing mode is used for capturing the screen picture exceeding the screen size of the terminal equipment.
In the embodiment of the present invention, the terminal device may be an intelligent terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PC, etc., and the embodiment of the present invention is not limited. The operating system of each type of terminal device may include, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a Black Berry operating system, a windows phone8 operating system, and the like, which is not limited in the embodiment of the present invention.
As an optional implementation manner, after the terminal device detects a screen capture instruction triggered by a user, and acquires a first screen displayed on a screen of the terminal device according to the screen capture instruction, the method may further include the following steps:
the terminal equipment judges whether a storage instruction triggered by a user is detected or not;
if the storage instruction triggered by the user is not detected, the terminal device detects a sliding instruction triggered by the user and executes the steps 102 to 103.
If a storage instruction triggered by a user is detected, the terminal equipment outputs a preview picture of a first screen picture for the user to preview, and generates a first target screenshot picture according to the first screen picture;
and the terminal equipment stores the first target screenshot picture.
102. And the terminal equipment scrolls the screen picture displayed on the screen of the terminal equipment according to the sliding instruction triggered by the user.
In the embodiment of the invention, a user can control the terminal equipment to roll the screen picture displayed on the screen of the terminal equipment by triggering the sliding instruction, the user can trigger the sliding instruction by touching the touch screen of the terminal equipment and can also trigger the sliding instruction by pressing the control key of the terminal equipment, then the terminal equipment can roll the screen picture displayed on the screen of the terminal equipment according to the sliding instruction triggered by the user, so that the user can preview the picture to be intercepted, the user can trigger the screenshot confirming instruction after determining all the pictures to be intercepted according to the previewed picture to be intercepted, and then the terminal equipment can generate the long screenshot picture according to all the pictures to be intercepted determined by the user after detecting the screenshot confirming instruction triggered by the user.
103. The terminal equipment judges whether a screen capture confirmation instruction is detected or not, and if the screen capture confirmation instruction is detected, the step 104 to the step 105 are executed; if the screen capture confirmation command is not detected, execution continues to step 102.
In the embodiment of the present invention, when the terminal device determines that the screen capture confirmation instruction is not detected, the terminal device continues to execute step 102, according to the sliding instruction triggered by the user, to continuously scroll the screen displayed on the terminal device until the terminal device determines that the screen capture confirmation instruction is detected, and when the terminal device determines that the screen capture confirmation instruction is detected, it indicates that the user has determined all the screens to be captured.
104. The terminal device acquires a second screen image displayed on the screen of the terminal device at the moment when the screen capture confirmation instruction is detected.
105. The terminal equipment generates a first target screenshot picture according to the first screen picture, the second screen picture and the screen picture between the first screen picture and the second screen picture.
As an optional implementation manner, after the terminal device generates the first target screenshot according to the first screen, the second screen, and the screen between the first screen and the second screen, the method may further include the following steps:
the terminal equipment outputs a first target screenshot picture for a user to preview and outputs a selection item, wherein the selection item comprises a storage option and a cancel option;
if the fact that the user selects a storage option is detected, the terminal equipment stores the first target screenshot picture;
and if the user is detected to select the cancel option, the terminal equipment exits the long screen capture mode.
As an optional implementation manner, after the terminal device detects that the user selects the cancel option, the method may further include the following steps:
the terminal equipment outputs prompt information which is used for prompting the user whether to re-capture the picture;
the terminal equipment judges whether a re-screenshot instruction triggered by the user aiming at the prompt message is received;
if the screenshot re-taking instruction is not received, the terminal equipment executes the screenshot exiting mode;
if receiving the screenshot re-taking instruction, the terminal device executes the steps 101 to 103, and executes the steps 103 to 105 after detecting the screenshot confirming instruction.
In the method described in fig. 1, when the terminal device is in the long screen capture mode, a sliding instruction triggered by a user may be detected, when the sliding instruction is detected, a first screen displayed on the screen of the terminal device at the time when the sliding instruction is detected is obtained, then, the terminal device may scroll the screen displayed on the terminal device according to the sliding instruction, the user may preview the selected screen to be captured through the scrolled screen, then, after all the screens to be captured are determined, a screen capture confirmation instruction may be triggered, at this time, the terminal device may obtain a second screen displayed on the screen of the terminal device at the time when the screen capture confirmation instruction triggered by the user is detected, further, the terminal device may obtain the first screen, the second screen and the screens between the first screen and the second screen according to the first screen, and generating a first target screen capture picture. Therefore, by implementing the method described in fig. 1, the screen picture exceeding the screen size of the terminal device can be quickly captured, the operation is simple, and the screen capturing efficiency is high.
Example two
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating another screen capturing method based on a terminal device according to an embodiment of the present invention. As shown in fig. 2, the screen capture method based on the terminal device may include the following steps:
201. when the terminal equipment is in a long-screen capturing mode, the terminal equipment detects a screen capturing instruction triggered by a user, and the long-screen capturing mode is used for capturing a screen picture exceeding the screen size of the terminal equipment.
As an optional implementation manner, when the terminal device is in the long-screen capture mode, before detecting a screen capture instruction triggered by a user, the method may further include the following steps:
the terminal equipment judges whether a screen capture starting instruction triggered by a user is received or not, and if the screen capture starting instruction triggered by the user is received, a default screen capture mode is started;
the terminal equipment judges whether the default screen capture mode is a long screen capture mode;
if the default screen capture mode is not the long screen capture mode, the terminal equipment outputs long screen capture prompt information, and the long screen capture prompt information is used for prompting a user to start the long screen capture mode;
the terminal equipment judges whether a long screen intercepting mode starting instruction triggered by a user aiming at the long screen intercepting prompt information is received;
if the long screen capture mode starting instruction is received, the terminal device starts the long screen capture mode, and step 201 is executed.
202. The terminal equipment judges whether the picture content currently displayed by the terminal equipment is web page content, if the picture content currently displayed by the terminal equipment is the web page content, the step 203-step 208 are executed; if the screen content currently displayed by the terminal device is not the web page content, step 206-step 208 are executed.
203. The terminal equipment sends a website information acquisition request to the second server, and acquires website information of all webpage contents currently displayed by the terminal equipment according to response information returned by the second server aiming at the website information acquisition request.
204. And the terminal equipment matches the website information of all the webpage contents with the preset website information in the preset advertisement website information base, and extracts the advertisement website information to be filtered from the website information of all the webpage contents.
205. And the terminal equipment filters the advertisement content included in all the webpage contents currently displayed by the terminal equipment according to the advertisement website information.
In the embodiment of the invention, after the screen capture instruction triggered by the user is detected, when the terminal device detects that the picture content required to be captured by the user is the webpage content, the terminal device can send the website information acquisition request to the second server, then, the website information of all the webpage contents currently displayed by the terminal device can be obtained according to the response information returned by the second server aiming at the website information obtaining request, further, the terminal device can match the obtained website information of all the webpage contents with the preset website information in a preset advertisement website information base, the advertisement website information to be filtered can be extracted from the website information of all the webpage contents, and then filtering the advertisement content included in all the currently displayed webpage contents of the terminal equipment according to the extracted advertisement website information to be filtered, wherein the interference of the advertisement content does not exist in the picture content of the first target screenshot picture intercepted by the terminal equipment through which the user passes. Therefore, when the user needs to capture the webpage content, the interference of the advertisement can be effectively shielded, the quality of the captured image is improved, and the user experience is optimized.
206. And the terminal equipment acquires a first screen picture displayed on the screen of the terminal equipment according to the screen capturing instruction.
207. And the terminal equipment scrolls the screen picture displayed on the screen of the terminal equipment according to the sliding instruction triggered by the user.
208. The terminal equipment judges whether a screen capture confirmation instruction is detected, and if the screen capture confirmation instruction is detected, step 209 to step 211 are executed; if the screen capture confirmation instruction is not detected, step 207 is executed to continue the operation of scrolling the screen displayed on the screen of the terminal device according to the sliding instruction triggered by the user.
209. The terminal device acquires a second screen image displayed on the screen of the terminal device at the moment when the screen capture confirmation instruction is detected.
210. The terminal equipment generates a first target screenshot picture according to the first screen picture, the second screen picture and the screen picture between the first screen picture and the second screen picture.
As an optional implementation manner, after the terminal device generates the first target screenshot according to the first screen, the second screen, and the screen between the first screen and the second screen, the method may further include the following steps:
the terminal equipment analyzes the image definition of the first target screenshot image to obtain the original definition of the first target screenshot image;
the terminal equipment judges whether the original definition is lower than a certain threshold value, if so, the terminal equipment performs definition optimization processing on a first target screenshot picture with the definition being the original definition so as to improve the definition of the first target screenshot picture and obtain the first target screenshot picture with the definition being the target definition, wherein the target definition is superior to the original definition;
the terminal equipment outputs the first target screenshot picture with the definition as the target definition for the user to preview, and outputs storage prompt information, wherein the storage prompt information is used for prompting the user that the first target screenshot picture with the definition as the target definition is stored.
211. The terminal equipment judges whether a picture sharing instruction triggered by a user is received, and if the picture sharing instruction triggered by the user is received, the steps 212 to 214 are executed; and if the picture sharing instruction triggered by the user is not received, ending the process.
As an optional implementation manner, if a sharing instruction triggered by a user is not received, the terminal device may output a saving prompt message, and output a first target screenshot picture for the user to preview, and store the first target screenshot picture at the same time, where the saving prompt message is used to prompt the user that the first target screenshot picture has been stored.
212. The terminal equipment outputs the first target screenshot picture for a user to preview, and starts an editing mode, wherein the editing mode is used for allowing the user to trigger an editing instruction for editing the first target screenshot picture.
213. And under the editing mode, the terminal equipment edits the first target screenshot picture according to an editing instruction triggered by a user so as to obtain an edited picture.
214. The terminal device sends a picture sharing request to a first server, the picture sharing request comprises an edited picture, and the picture sharing request is used for requesting the first server to share the edited picture to other terminal devices.
In this embodiment of the present invention, the picture sharing request may further include address information of a picture, an identity of the terminal device, an identity of a target terminal device to be shared, and the like, which is not limited in this embodiment of the present invention.
In the embodiment of the invention, the first server and the second server are both devices for providing computing services, can respond to the service request sent by the terminal device, can respond to the service request and execute corresponding operation, and have the capabilities of bearing services and guaranteeing services. The terminal device can send a picture sharing request including a picture to be shared to the first service device, and then the first server can share the picture to be shared with other terminal devices according to the picture sharing request; the terminal device may send a website information acquisition request to the second server, where the website information acquisition request is used to acquire website information of all webpage contents currently displayed by the terminal device, and then the second server may send response information for the website information acquisition request to the terminal device, so that the terminal device acquires the website information of all webpage contents currently displayed by the terminal device according to the response information. In a network environment, the first server or the second server may be a file server, a database server, an application server, a WEB server, or the like, and the embodiment of the present invention is not limited.
In the method described in fig. 2, after obtaining a first target screenshot picture, a terminal device may determine whether a sharing instruction triggered by a user is received, if the sharing instruction triggered by the user is received, an editing mode may be started, the user may edit the first target screenshot picture in the editing mode, the terminal device may obtain the edited picture after the user finishes editing, and then send a picture sharing request including the edited picture to a first server, and the first server may share the edited picture with other terminal devices after receiving the picture sharing request. Therefore, by implementing the method described in fig. 2, not only can the long screenshot picture with the advertisement filtered out be conveniently and quickly captured, but also the captured screenshot picture can be edited and shared, the operation is simple, and meanwhile, the user experience is improved.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating another screen capturing method based on a terminal device according to an embodiment of the present invention. As shown in fig. 3, the screen capture method based on the terminal device may include the following steps:
301. when the terminal equipment is in a long-screen capturing mode, the terminal equipment detects a screen capturing instruction triggered by a user, and the long-screen capturing mode is used for capturing a screen picture exceeding the screen size of the terminal equipment.
302. The terminal equipment judges whether the picture content currently displayed by the terminal equipment is web page content, if so, the step 303 to the step 308 are executed; if the current displayed picture content of the terminal device is not the web page content, step 306-step 308 are executed.
As an optional implementation manner, after the terminal device determines that the screen content currently displayed by the terminal device is web page content, the method may further include the following steps:
the terminal equipment analyzes a prestored advertisement rule filtering library to obtain an advertisement content rule filtering sub-library and an advertisement hiding rule filtering sub-library;
the terminal equipment sends a website information acquisition request to the second service equipment, and acquires website information of all webpage contents currently displayed by the terminal equipment according to response information returned by the second server aiming at the website information acquisition request;
the terminal equipment calls an advertisement content rule filtering sub-library to filter the acquired website information of all the webpage contents to obtain advertisement website information in the website information of all the webpage contents and advertisement-free website information without the advertisement website information;
the terminal device obtains the advertisement content corresponding to the advertisement website information, utilizes the advertisement hiding rule to filter the sub-library, hides the obtained advertisement content, combines the advertisement-free webpage content corresponding to the advertisement website information and the advertisement content subjected to hiding processing into a webpage according to the screen attribute of the client browser, displays the webpage, and triggers to execute step 306.
303. The terminal equipment sends a website information acquisition request to the second server, and acquires website information of all webpage contents currently displayed by the terminal equipment according to response information returned by the second server aiming at the website information acquisition request.
304. And the terminal equipment matches the website information of all the webpage contents with the preset website information in the preset advertisement website information base, and extracts the advertisement website information to be filtered from the website information of all the webpage contents.
305. And the terminal equipment filters the advertisement content included in all the webpage contents currently displayed by the terminal equipment according to the advertisement website information.
306. And the terminal equipment acquires a first screen picture displayed on the screen of the terminal equipment according to the screen capturing instruction.
307. And the terminal equipment scrolls the screen picture displayed on the screen of the terminal equipment according to the sliding instruction triggered by the user.
308. The terminal equipment judges whether a screen capture confirmation instruction is detected or not, and if the screen capture confirmation instruction is detected, the step 309-step 309 are executed; if the screen capture confirmation command is not detected, step 307 is executed.
309. The terminal device acquires a second screen image displayed on the screen of the terminal device at the moment when the screen capture confirmation instruction is detected.
310. The terminal equipment judges whether a dynamic picture exists in a target screen picture, wherein the target screen picture consists of a first screen picture, a second screen picture and a screen picture between the first screen picture and the second screen picture which are displayed by a screen of the terminal equipment, and if the dynamic picture exists, the steps 311 to 313 are executed; if no dynamic picture exists, step 315 to step 317 are performed.
311. The terminal equipment acquires the picture area of the dynamic picture in the target screen picture.
312. The terminal device acquires frame pictures of at least two frames of the dynamic picture.
313. The terminal equipment judges whether a dynamic interception ending instruction triggered by a user is received, and if the dynamic interception ending instruction is received, the steps 314 to 317 are executed.
In the embodiment of the invention, if the dynamic interception ending instruction is not received, the terminal equipment continues to acquire the frame pictures of the dynamic picture after acquiring the frame pictures of at least two frames of the dynamic picture.
314. The terminal device generates a dynamic picture according to the frame sequence of the frame pictures of at least two frames according to the frame pictures of at least two frames, and executes step 315.
315. The terminal equipment generates a first target screenshot picture according to the first screen picture, the second screen picture and the screen picture between the first screen picture and the second screen picture.
316. The terminal equipment determines a picture area matched with the picture area in the first target screen capturing picture, and replaces the content displayed in the picture area with the dynamic picture to generate a second target screen capturing picture.
In the embodiment of the present invention, when a dynamic picture exists in a target screen picture, a terminal device may determine, according to the dynamic picture in the target screen picture, a picture area of the dynamic picture in the target screen picture, and generate a dynamic picture according to the dynamic picture, further, the terminal device may determine a picture area in a first target screenshot picture, which is matched with the picture area, and replace a content displayed in the picture area with the dynamic picture, so as to generate a second target screenshot picture, where the second target screenshot picture is a screenshot picture including a portion of the dynamic picture.
317. The terminal equipment judges whether a picture sharing instruction triggered by a user is received, and if the picture sharing instruction triggered by the user is received, the steps 318 to 320 are executed; and if the picture sharing instruction triggered by the user is not received, ending the process.
318. The terminal equipment outputs the first target screenshot picture for a user to preview, and starts an editing mode, wherein the editing mode is used for allowing the user to trigger an editing instruction for editing the first target screenshot picture.
319. And under the editing mode, the terminal equipment edits the first target screenshot picture according to an editing instruction triggered by a user so as to obtain an edited picture.
In the embodiment of the invention, when the terminal device judges that a dynamic picture exists in a target screen picture, the terminal device generates a second target screenshot picture, and then, after a user triggers a sharing instruction, the terminal device can output the second target screenshot picture for previewing and simultaneously start an editing mode, wherein the editing mode is used for allowing the user to trigger an editing instruction for editing the second target screenshot picture; on the other hand, when the terminal device judges that no dynamic picture exists in the target screen picture, the terminal device generates a first target screenshot picture, and then after the user triggers the sharing instruction, the terminal device can output the first target screenshot picture for previewing and simultaneously start an editing mode, wherein the editing mode is used for allowing the user to trigger an editing instruction for editing the first target screenshot picture; or, the terminal device may also edit the second target screenshot picture according to an editing instruction triggered by the user, so as to obtain an edited picture.
In this embodiment of the present invention, in the editing mode, the step 319 edits the first target screenshot picture according to an editing instruction triggered by a user to obtain an edited picture, and further includes the following steps:
in the editing mode, the terminal equipment acquires the picture content of an editing area according to an editing instruction triggered by a user, wherein the editing area is an area which is selected by the user when editing the first target screenshot picture and needs to be added with a mosaic;
the terminal equipment determines target picture content matched with the picture content of the editing area from all the picture contents of the first target screenshot picture;
the terminal equipment acquires a mosaic editing scheme aiming at the editing area, and executes mosaic editing operation on the target picture content and the picture content of the editing area according to the mosaic editing scheme to obtain an edited picture.
In the embodiment of the invention, when the terminal equipment judges that the picture sharing instruction triggered by the user is received, the terminal equipment can output the first target screenshot picture for the user to preview, and starts an editing mode for allowing the user to trigger the editing instruction, and the terminal equipment can edit the first target screenshot picture according to the editing instruction triggered by the user in the editing mode. In practical application, when the captured first target screenshot picture is a chat record displayed on a chat application program interface, before a user shares the first target screenshot picture through terminal equipment, the user often needs to perform mosaic editing processing on the first target screenshot picture through the terminal equipment to protect personal privacy information of the user. At this time, in the editing mode, the terminal device may obtain, according to an editing instruction triggered by a user, a picture content of an editing region, where the editing region is a region to be added with a mosaic and selected by the user when the user edits the first target screenshot picture, where the picture content of the editing region selected by the user on the first target screenshot picture may be a target avatar picture of the user, and in fact, there may be more than one target pictures on the first target screenshot picture that are the same as the picture content of the target avatar picture, so that when the user performs a mosaic editing operation on the first avatar picture, the terminal device may match all to-be-edited picture sets on the first target screenshot picture that are matched with the target avatar picture according to the target avatar picture of the editing region, where the to-be-edited picture sets include more than one to-be-edited pictures that are matched with the target avatar picture, and further, the terminal device may acquire a mosaic editing scheme for editing the target avatar picture, and then the terminal device may perform a mosaic editing operation on the target avatar picture in the editing region and more than one picture to be edited in the picture set to be edited according to the mosaic editing scheme to obtain an edited picture. Therefore, when a user needs to perform mosaic editing on the same picture content at multiple positions on the first target screenshot picture through the terminal device, the terminal device can match all to-be-edited picture sets matched with the target avatar picture on the first target screenshot picture according to the target avatar picture selected by the user to be edited, and can execute mosaic processing operation on all to-be-edited pictures in all to-be-edited picture sets according to the mosaic editing scheme selected by the user.
320. The terminal device sends a picture sharing request to a first server, the picture sharing request comprises an edited picture, and the picture sharing request is used for requesting the first server to share the edited picture to other terminal devices.
It can be seen that, by implementing the method described in fig. 3, not only the second target screenshot picture including the dynamic picture portion can be captured, but also the mosaic processing operation can be quickly performed on the picture content of the editing area selected by the user and the target picture content matched with the picture content of the editing area when the first target screenshot picture is edited, thereby simplifying the operation steps, improving the efficiency, and also improving the user experience.
Example four
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 4, the terminal device may include:
the detecting unit 401 is configured to detect a screen capture instruction triggered by a user when the terminal device is in a long-screen capture mode, where the long-screen capture mode is used to capture a screen image exceeding a screen size of the terminal device.
A first obtaining unit 402, configured to obtain a first screen displayed by the screen of the terminal device according to the screen capture instruction detected by the detecting unit 401.
A screen scrolling unit 403, configured to scroll a screen displayed on the screen of the terminal device according to a sliding instruction triggered by the user.
In this embodiment of the present invention, after acquiring the first screen displayed on the screen of the terminal device according to the screen capture instruction detected by the detection unit 401, the first acquisition unit 402 may trigger the start screen scrolling unit 403 to detect a sliding instruction triggered by a user, and scroll the screen displayed on the screen of the terminal device according to the sliding instruction triggered by the user.
A first judging unit 404, configured to judge whether a screen capture confirmation instruction is detected, and if so, trigger to start a second obtaining unit 405; if not, the trigger screen scrolling unit 403 continues to perform an operation of scrolling the screen displayed on the screen of the terminal device according to the slide instruction triggered by the user.
In this embodiment of the present invention, the screen scrolling unit 403 may trigger the first determining unit 404 to determine whether the screen capture confirmation instruction is detected when scrolling the screen displayed on the screen of the terminal device according to the sliding instruction triggered by the user.
A second acquiring unit 405 configured to acquire a second screen displayed on the screen of the terminal device at the time when the screen capture confirmation instruction is detected, when the determination result of the first determining unit 404 is yes.
The first generating unit 406 is configured to generate a first target screenshot picture according to the first screen picture acquired by the first acquiring unit 404, the second screen picture acquired by the second acquiring unit 405, and a screen picture between the first screen picture and the second screen picture.
In this embodiment of the present invention, the first generating unit 406 may obtain a screen between the first screen and the second screen according to the first screen obtained by the first obtaining unit 404 and the second screen obtained by the second obtaining unit 405, and then generate the first target screenshot according to the first screen, the second screen, and the screen between the first screen and the second screen.
In the terminal device depicted in fig. 4, when the terminal device is in the long-screen capture mode, the detecting unit 401 may first detect a sliding instruction triggered by a user, and when detecting the sliding instruction, the detecting unit 401 may trigger the first acquiring unit 402 to acquire a first screen displayed on the screen of the terminal device at the time when the sliding instruction is detected, and then the screen scrolling unit 403 may scroll the screen displayed on the screen thereof according to the sliding instruction, and the user may preview the selected screen to be captured through the scrolled screen, and then after determining all the screens to be captured, the user may trigger a capture confirmation instruction, at which time the second acquiring unit 405 may acquire a second screen displayed on the screen of the terminal device at the time when the capture confirmation instruction triggered by the user is detected, and further, the first generating unit 406 may generate a second screen based on the first screen, and the second screen displayed on the screen of the terminal device at the time when the capture confirmation, And generating a first target screenshot picture by the second screen picture and the screen pictures between the first screen picture and the second screen picture. Therefore, the terminal device described in fig. 4 can be implemented to quickly capture the screen picture exceeding the screen size of the terminal device, and is simple to operate and high in screen capture efficiency.
EXAMPLE five
Referring to fig. 5, fig. 5 is a schematic structural diagram of another terminal device disclosed in the embodiment of the present invention. The terminal device shown in fig. 5 is optimized by the terminal device shown in fig. 4. Compared with the terminal device shown in fig. 4, the terminal device shown in fig. 5 may further include:
a third determining unit 407, configured to determine whether the currently displayed screen content of the terminal device is web page content after the detecting unit 401 detects the screen capture instruction triggered by the user, and trigger to start the third obtaining unit 408 if the currently displayed screen content of the terminal device is web page content; if the currently displayed picture content of the terminal device is not the web page content, the first obtaining unit 402 is triggered to start.
In this embodiment of the present invention, after the detecting unit 401 detects the screen capture instruction triggered by the user, it may also trigger the third determining unit 407 to determine whether the screen content currently displayed by the terminal device is web page content.
A third obtaining unit 408, configured to send a website information obtaining request to the second server when the determination result of the third determining unit 407 is yes, and obtain website information of all webpage contents currently displayed by the terminal device according to response information returned by the second server for the website information obtaining request.
An extracting unit 409, configured to match the website information of all the web page contents acquired by the third acquiring unit 408 with preset website information in a preset advertisement website information base, and extract advertisement website information to be filtered from the website information of all the web page contents.
The filtering unit 410 is configured to filter advertisement contents included in all web page contents currently displayed by the terminal device according to the advertisement website information to be filtered extracted by the extracting unit 409, and trigger to start the first obtaining unit 402.
In this embodiment of the present invention, when the determination result of the third determining unit 407 is yes, that is, when the currently displayed image content of the terminal device is a web content, the third obtaining unit 408 sends a web address information obtaining request to the second server, and can obtain web address information of all web contents currently displayed by the terminal device according to response information returned by the second server in response to the web address information obtaining request, then, the extracting unit 409 may match the web address information of all web contents with preset web address information in a preset advertisement web address information base, extract advertisement web address information to be filtered from the web address information of all web contents, and further, the filtering unit 410 may filter advertisement content included in all web contents currently displayed by the terminal device according to the extracted advertisement web address information to be filtered. Because the filtered webpage content currently displayed by the terminal equipment does not contain advertisement content, the interference of advertisements on the webpage screenshot picture intercepted by the user through the terminal equipment does not exist, and the user experience degree is improved.
Optionally, the terminal device shown in fig. 5 may further include:
the second determining unit 411 is configured to determine whether a picture sharing instruction triggered by a user is received, and if the picture sharing instruction triggered by the user is received, trigger the starting unit 412 to start.
In this embodiment of the present invention, when the second determining unit 411 determines that a picture sharing instruction triggered by a user is not received, the terminal device may further automatically store the first target screenshot picture.
And an initiating unit 412, configured to, when the determination result of the second determining unit 411 is yes, output the first target screenshot for the user to preview, and initiate an editing mode, where the editing mode is used to allow the user to trigger an editing instruction for editing the first target screenshot.
And an editing unit 413, configured to, in the editing mode started by the starting unit 412, edit the first target screenshot picture according to an editing instruction triggered by a user, so as to obtain an edited picture.
The sending unit 414 is configured to send a picture sharing request to the first server, where the picture sharing request includes the edited picture obtained by the editing unit 413, and the picture sharing request is used to request the first server to share the edited picture with other terminal devices.
In the embodiment of the present invention, after a user captures a first target screenshot picture through a terminal device, a second determining unit 411 may determine whether a sharing instruction triggered by the user is received, if the sharing instruction triggered by the user is received, an editing mode may be started by a starting unit 412, the user may edit the first target screenshot picture in the editing mode, a sending unit 414 may obtain the edited picture after the user finishes editing, and then send a picture sharing request including the edited picture to a first server, and the first server may share the edited picture with other terminal devices after receiving the picture sharing request.
In this embodiment of the present invention, when the determination result of the second determining unit 411 is yes, the starting unit 412 may further output a second target screenshot for the user to preview, and start an editing mode, where the editing mode is used to allow the user to trigger an editing instruction for editing the second target screenshot, then the editing unit 413 may edit the second target screenshot according to the editing instruction triggered by the user to obtain an edited picture, and further, the sending unit 414 may send a picture sharing request including the edited picture obtained by the editing unit 413 to the first server, where the picture sharing request is used to request the first server to share the edited picture with other terminal devices, where the edited picture may be an edited picture obtained by editing the first target screenshot picture, or may also be an edited picture obtained by editing the second target screenshot, the embodiments of the present invention are not limited.
Therefore, the terminal device described in fig. 5 can conveniently and quickly capture the long screenshot picture of the filtered advertisement, and can edit and share the captured screenshot picture, so that the operation is simple, and the user experience is improved.
EXAMPLE six
Referring to fig. 6, fig. 6 is a schematic structural diagram of another terminal device disclosed in the embodiment of the present invention. The terminal device shown in fig. 6 is optimized by the terminal device shown in fig. 5. Compared to the terminal device shown in fig. 5, the editing unit 413 shown in fig. 6 may include:
a first subunit 4131, configured to, in the edit mode, obtain, according to an edit instruction triggered by a user, picture content of an edit region, where a mosaic needs to be added, the edit region being selected by the user when editing the first target screenshot picture; and the image editing device is also used for determining target image content matched with the image content of the editing area from all the image contents of the first target screen capture image.
In this embodiment of the present invention, the first sub-unit 4131 may process not only the first target screenshot picture, but also the second target screenshot picture generated by the second generating unit 417. The first sub-unit 4131 may acquire, in the edit mode, the picture content of an edit area according to an edit instruction triggered by the user, where the edit area is an area to be added with a mosaic and selected by the user when editing the second target screenshot picture, and further, the first sub-unit 4131 may determine the target picture content matching the picture content of the edit area from all the picture contents of the second target screenshot picture.
A second subunit 4132, configured to acquire a mosaic editing scheme for the editing region acquired by the first subunit 4131, and perform a mosaic editing operation on the target picture content and the picture content of the editing region according to the mosaic editing scheme to obtain an edited picture.
In this embodiment of the present invention, the second sub-unit 4132 may process the first target screenshot picture, and may also process the second target screenshot picture generated by the second generating unit 417. The second subunit 4132 may acquire a mosaic editing scheme for the editing region acquired by the first subunit 4131, and perform a mosaic editing operation on the target picture content and the picture content of the editing region according to the mosaic editing scheme to obtain an edited picture, which is a picture of the second target screen capture picture after mosaic editing.
In this embodiment of the present invention, after the second determining unit 411 determines that the picture sharing instruction triggered by the user is received, the starting unit 412 may output the first target screenshot picture for the user to preview, and start an editing mode for allowing the user to trigger an editing instruction, where in the editing mode, the editing unit 413 may edit the first target screenshot picture according to the editing instruction triggered by the user. In practical application, when the captured first target screenshot picture is a chat record displayed on a chat application program interface, before a user shares the first target screenshot picture through terminal equipment, the user often needs to perform mosaic editing processing on the first target screenshot picture through the terminal equipment to protect personal privacy information of the user. At this time, in the editing mode, the first subunit 4131 may obtain, according to an editing instruction triggered by the user, the picture content of an editing region, where the editing region is a region that needs to be added with a mosaic and is selected when the user edits the first target screenshot picture, where the picture content of the editing region selected by the user on the first target screenshot picture may be a target avatar picture of the user, and in fact, there may be more than one target pictures on the first target screenshot picture that are the same as the picture content of the target avatar picture, so that when the user performs a mosaic editing operation on the first avatar picture, the first subunit 4131 may match, according to the target avatar picture of the editing region, all of the sets of pictures to be edited on the first target screenshot picture that match the target avatar picture, where the sets of pictures to be edited include more than one picture to be edited that matches the target avatar picture, further, the second sub-unit 4132 may acquire a mosaic editing scheme for the editing target avatar picture, and then the second sub-unit 4132 may perform a mosaic editing operation on the target avatar picture of the editing region and more than one to-be-edited picture in the to-be-edited picture set according to the mosaic editing scheme, so as to obtain an edited picture. Therefore, when a user needs to perform mosaic editing on the same picture content at multiple positions on the first target screenshot picture through the terminal device, the first subunit 4131 may match all to-be-edited picture sets on the first target screenshot picture, which are matched with the target avatar picture, according to the target avatar picture selected by the user to be edited, and further, the second subunit 4132 may perform mosaic processing on all to-be-edited pictures in all to-be-edited picture sets according to the mosaic editing scheme selected by the user, so that the operation steps are simple, the editing efficiency is high, and the user experience is improved.
Optionally, the terminal device shown in fig. 6 may further include:
a fourth judging unit 415, configured to judge whether a dynamic picture exists in a target screen picture after the second acquiring unit 405 acquires the second screen picture displayed on the screen of the terminal device at the time when the screen capture confirmation instruction is detected, where the target screen picture is composed of the first screen picture and the second screen picture displayed on the screen of the terminal device, and a screen picture between the first screen picture and the second screen picture, and if a dynamic picture exists, trigger to start the fourth acquiring unit 416; if no dynamic picture is present, the first generation unit 406 is triggered to start.
A fourth acquiring unit 416, configured to acquire a picture area of the dynamic picture in the target screen picture when the determination result of the fourth determining unit 415 is yes; and also for acquiring a frame picture of at least two frames of the dynamic picture.
The fourth determining unit 415 is further configured to determine whether a dynamic interception ending instruction triggered by a user is received, and if the dynamic interception ending instruction is received, trigger to start the second generating unit 417.
A second generating unit 417, configured to generate a moving picture according to a frame sequence of at least two frames of frame images according to the at least two frames of frame images, and trigger to start the first generating unit 406; and the image area matched with the picture area in the first target screenshot image is determined, and the content displayed in the image area is replaced by the dynamic image so as to generate a second target screenshot image.
In this embodiment of the present invention, when the fourth determining unit 415 determines that a dynamic picture exists in the target screen, the fourth obtaining unit 416 may first determine, according to the dynamic picture in the target screen, a picture area of the dynamic picture in the target screen, and meanwhile, the second generating unit 417 may generate the dynamic picture according to the dynamic picture, further, the second generating unit 417 may determine a picture area in the first target screenshot picture, which matches the picture area, and replace the content displayed in the picture area with the dynamic picture to generate a second target screenshot picture, which is a screenshot picture including the dynamic picture portion.
As an optional implementation manner, after the user triggers the sharing instruction, the starting unit 412 may output the second target screenshot for previewing, and simultaneously start an editing mode, where the editing mode is used to allow the user to trigger an editing instruction for editing the second target screenshot, and further, in the editing mode, the editing unit 413 may edit the second target screenshot according to the editing instruction triggered by the user to obtain the first edited picture; or after the user triggers the sharing instruction, the starting unit 412 may output the first target screenshot for previewing, and simultaneously start an editing mode, where the editing mode is used to allow the user to trigger an editing instruction for editing the first target screenshot, and further, in the editing mode, the editing unit 413 may edit the first target screenshot according to the editing instruction triggered by the user to obtain a second edited picture. Accordingly, the sending unit 414 may send a picture sharing request including the first edited picture to the first server, so that the first service device shares the first edited picture with other terminals according to the picture sharing request; or, a picture sharing request including the second edited picture may be sent to the first service device, so that the first service device shares the second edited picture with other terminals according to the picture sharing request.
It can be seen that, with the terminal device described in fig. 6, not only can the second target screenshot picture including the dynamic picture portion be captured, but also the mosaic processing operation can be quickly executed on the picture content of the editing area selected by the user and the target picture content matched with the picture content of the editing area when the first target screenshot picture is edited, so that the operation steps are simple, the efficiency is high, and the user experience is improved.
EXAMPLE seven
An embodiment of the present invention discloses another terminal device, and as shown in fig. 7, the terminal device may include:
a memory 501 in which executable program code is stored.
A processor 502 coupled to a memory 501.
The processor 502 calls the executable program code stored in the memory 501 to execute any one of the terminal device-based screen capture methods in fig. 1 to 3.
Example eight
The embodiment of the invention discloses a computer-readable storage medium which stores a computer program, wherein the computer program enables a computer to execute any one of the screen capturing methods based on terminal equipment in figures 1-3.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by instructions associated with a program, which may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), compact disc-Read-Only Memory (CD-ROM), or other Memory, magnetic disk, magnetic tape, or magnetic tape, Or any other medium which can be used to carry or store data and which can be read by a computer.
The screen capturing method based on the terminal device and the terminal device disclosed by the embodiment of the invention are described in detail, a specific example is applied in the description to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A screen capture method based on terminal equipment is characterized by comprising the following steps:
when the terminal equipment is in a long screen capture mode, the terminal equipment detects a screen capture instruction triggered by a user;
the terminal equipment judges whether the current displayed picture content of the terminal equipment is the webpage content;
if the picture content currently displayed by the terminal equipment is the webpage content, the terminal equipment sends a website information acquisition request to a second server, and acquires website information of all webpage contents currently displayed by the terminal equipment according to response information returned by the second server aiming at the website information acquisition request;
the terminal equipment matches the website information of all the webpage contents with preset website information in a preset advertisement website information base, and extracts advertisement website information to be filtered from the website information of all the webpage contents;
the terminal equipment filters advertisement contents included in all webpage contents currently displayed by the terminal equipment according to the advertisement website information, and acquires a first screen picture displayed by a screen of the terminal equipment according to the screen capturing instruction, wherein the long screen capturing mode is used for capturing the screen picture exceeding the screen size of the terminal equipment;
the terminal equipment rolls a screen picture displayed by a screen of the terminal equipment according to a sliding instruction triggered by a user;
the terminal equipment judges whether a screen capture confirmation instruction is detected or not, and if the screen capture confirmation instruction is detected, a second screen picture displayed on a screen of the terminal equipment at the moment when the screen capture confirmation instruction is detected is acquired;
and the terminal equipment generates a first target screenshot picture according to the first screen picture, the second screen picture and the screen picture between the first screen picture and the second screen picture.
2. The method of claim 1, further comprising:
the terminal equipment judges whether a picture sharing instruction triggered by a user is received or not;
if the picture sharing instruction triggered by the user is received, the terminal equipment outputs the first target screenshot picture for the user to preview, and starts an editing mode, wherein the editing mode is used for allowing the user to trigger an editing instruction for editing the first target screenshot picture;
the terminal equipment edits the first target screenshot picture according to the editing instruction triggered by a user in the editing mode to obtain an edited picture;
the terminal equipment sends a picture sharing request to a first server, wherein the picture sharing request comprises the edited picture, and the picture sharing request is used for requesting the first server to share the edited picture with other terminal equipment.
3. The method according to claim 2, wherein the editing, by the terminal device in the editing mode, the first target screenshot picture according to the editing instruction triggered by a user to obtain an edited picture comprises:
the terminal equipment acquires picture content of an editing area according to the editing instruction triggered by the user in the editing mode, wherein the editing area is an area which is selected by the user when editing the first target screenshot picture and needs to be added with a mosaic;
the terminal equipment determines target picture content matched with the picture content of the editing area from all the picture contents of the first target screenshot picture;
and the terminal equipment acquires a mosaic editing scheme aiming at the editing area, and executes mosaic editing operation on the target picture content and the picture content of the editing area according to the mosaic editing scheme to obtain an edited picture.
4. The method according to any one of claims 1 to 3, wherein after the terminal device acquires the second screen displayed on the screen of the terminal device at the time of detecting the screen capture confirmation instruction, the method further comprises:
the terminal equipment judges whether a dynamic picture exists in a target screen picture, wherein the target screen picture consists of the first screen picture, the second screen picture and a screen picture between the first screen picture and the second screen picture which are displayed by a screen of the terminal equipment;
if the dynamic picture exists in the target screen picture, the terminal equipment acquires a picture area of the dynamic picture in the target screen picture;
the terminal equipment acquires frame pictures of at least two frames of the dynamic pictures;
the terminal equipment judges whether a dynamic interception ending instruction triggered by a user is received or not;
if the dynamic interception ending instruction is received, the terminal equipment generates a dynamic picture according to the frame images of the at least two frames and the frame sequence of the frame images of the at least two frames, and executes the generation of a first target screenshot picture according to the first screen image, the second screen image and the screen image between the first screen image and the second screen image;
and, the method further comprises:
and the terminal equipment determines a picture area matched with the picture area in the first target screen capturing picture, and replaces the content displayed in the picture area with the dynamic picture to generate a second target screen capturing picture.
5. A terminal device, comprising:
the detection unit is used for detecting a screen capture instruction triggered by a user when the terminal equipment is in a long screen capture mode, and the long screen capture mode is used for capturing a screen picture exceeding the screen size of the terminal equipment;
the first acquisition unit is used for acquiring a first screen picture displayed by a screen of the terminal equipment according to the screen capturing instruction detected by the detection unit;
the picture rolling unit is used for rolling the screen picture displayed on the screen of the terminal equipment according to a sliding instruction triggered by a user;
the first judgment unit is used for judging whether a screen capture confirmation instruction is detected or not;
a second acquiring unit, configured to acquire, when the determination result of the first determining unit is yes, a second screen image displayed on the screen of the terminal device at the time when the screen capture confirmation instruction is detected;
the first generation unit is used for generating a first target screenshot picture according to the first screen picture acquired by the first acquisition unit, the second screen picture acquired by the second acquisition unit and a screen picture between the first screen picture and the second screen picture;
the third judging unit is used for judging whether the currently displayed picture content of the terminal equipment is the webpage content or not after the detecting unit detects the screen capturing instruction triggered by the user;
a third obtaining unit, configured to send a website information obtaining request to a second server when a determination result of the third determining unit is yes, and obtain, according to response information returned by the second server for the website information obtaining request, website information of all webpage contents currently displayed by the terminal device;
an extracting unit, configured to match the website information of all the web page contents acquired by the third acquiring unit with preset website information in a preset advertisement website information base, and extract advertisement website information to be filtered from the website information of all the web page contents;
and the filtering unit is used for filtering the advertisement content included in all the webpage contents currently displayed by the terminal equipment according to the advertisement website information to be filtered extracted by the extracting unit and triggering and starting the first acquiring unit.
6. The terminal device according to claim 5, wherein the terminal device further comprises:
the second judgment unit is used for judging whether a picture sharing instruction triggered by a user is received or not;
the starting unit is used for outputting the first target screenshot picture for a user to preview when the judgment result of the second judging unit is yes, and starting an editing mode, wherein the editing mode is used for allowing the user to trigger an editing instruction for editing the first target screenshot picture;
the editing unit is used for editing the first target screenshot picture according to the editing instruction triggered by a user in the editing mode started by the starting unit to obtain an edited picture;
the sending unit is used for sending a picture sharing request to a first server, wherein the picture sharing request comprises the edited picture obtained by the editing unit, and the picture sharing request is used for requesting the first server to share the edited picture to other terminal devices.
7. The terminal device according to claim 6, wherein the editing unit includes:
the first subunit is used for acquiring the picture content of an editing area according to the editing instruction triggered by the user in the editing mode, wherein the editing area is an area which is selected by the user when editing the first target screenshot picture and needs to be added with a mosaic;
the first subunit is further configured to determine, from all picture contents of the first target screenshot picture, a target picture content that matches the picture content of the editing area;
and the second subunit is used for acquiring a mosaic editing scheme of the editing area acquired by the first subunit, and performing mosaic editing operation on the target picture content and the picture content of the editing area according to the mosaic editing scheme to obtain an edited picture.
8. The terminal device according to any one of claims 5 to 7, wherein the terminal device further comprises:
a fourth judging unit, configured to judge whether a dynamic picture exists in a target screen picture after the second acquiring unit acquires a second screen picture displayed on the screen of the terminal device at the time when the screen capture confirmation instruction is detected, where the target screen picture is composed of the first screen picture and the second screen picture displayed on the screen of the terminal device, and a screen picture between the first screen picture and the second screen picture;
a fourth obtaining unit, configured to obtain a picture area of the dynamic picture in the target screen picture when a determination result of the fourth determining unit is yes;
the fourth obtaining unit is further configured to obtain frame pictures of at least two frames of the dynamic picture;
the fourth judging unit is further configured to judge whether a dynamic interception ending instruction triggered by a user is received;
a second generating unit, configured to generate a dynamic picture according to the frame sequence of the frame images of the at least two frames and according to the frame images of the at least two frames when the determination result of the fourth determining unit is yes, and trigger to start the first generating unit;
the second generating unit is further configured to determine a picture region in the first target screenshot picture, where the picture region matches the picture region, and replace the content displayed in the picture region with the dynamic picture to generate a second target screenshot picture.
9. A terminal device, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program codes stored in the memory to execute the screen capture method based on the terminal equipment according to any one of claims 1-4.
10. A computer-readable storage medium storing a computer program for causing a computer to execute the terminal-device-based screen capture method according to any one of claims 1 to 4.
CN201711463114.XA 2017-12-28 2017-12-28 Screen capturing method based on terminal equipment and terminal equipment Active CN108052263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711463114.XA CN108052263B (en) 2017-12-28 2017-12-28 Screen capturing method based on terminal equipment and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711463114.XA CN108052263B (en) 2017-12-28 2017-12-28 Screen capturing method based on terminal equipment and terminal equipment

Publications (2)

Publication Number Publication Date
CN108052263A CN108052263A (en) 2018-05-18
CN108052263B true CN108052263B (en) 2020-07-03

Family

ID=62128502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711463114.XA Active CN108052263B (en) 2017-12-28 2017-12-28 Screen capturing method based on terminal equipment and terminal equipment

Country Status (1)

Country Link
CN (1) CN108052263B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108805810B (en) * 2018-05-30 2020-01-10 贝壳找房(北京)科技有限公司 House panoramic image privacy processing method and device
CN108984091B (en) * 2018-06-27 2020-06-23 Oppo广东移动通信有限公司 Screen capturing method and device, storage medium and electronic equipment
CN109086113B (en) * 2018-07-23 2021-06-15 Oppo(重庆)智能科技有限公司 Screen capturing method and device and mobile terminal
CN109358793A (en) * 2018-09-27 2019-02-19 维沃移动通信有限公司 A kind of screenshotss method and mobile terminal
CN109388304B (en) * 2018-09-28 2021-05-11 维沃移动通信有限公司 Screen capturing method and terminal equipment
CN111460537A (en) * 2020-03-30 2020-07-28 维沃移动通信有限公司 Method for hiding page content and electronic equipment
CN111625311B (en) * 2020-05-18 2023-05-26 Oppo(重庆)智能科技有限公司 Control method, control device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793932A (en) * 2014-02-18 2014-05-14 优视科技有限公司 Method and device for storing image and text in mobile terminal browser
CN104408686A (en) * 2014-10-31 2015-03-11 宇龙计算机通信科技(深圳)有限公司 Method, system and terminal for screen capturing
CN105808116A (en) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 Screen capture method, screen capture device and mobile terminal
CN105892868A (en) * 2016-04-22 2016-08-24 北京小米移动软件有限公司 Screen capture method and screen capture device
CN106406709A (en) * 2016-09-28 2017-02-15 北京金山安全软件有限公司 Picture processing method and device and terminal equipment
CN107085490A (en) * 2017-03-29 2017-08-22 深圳天珑无线科技有限公司 Multimedia messages player method and device based on sectional drawing

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8812585B2 (en) * 2010-03-29 2014-08-19 Google Inc. Trusted maps: updating map locations using trust-based social graphs
US10776823B2 (en) * 2016-02-09 2020-09-15 Comcast Cable Communications, Llc Collection analysis and use of viewer behavior

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793932A (en) * 2014-02-18 2014-05-14 优视科技有限公司 Method and device for storing image and text in mobile terminal browser
CN104408686A (en) * 2014-10-31 2015-03-11 宇龙计算机通信科技(深圳)有限公司 Method, system and terminal for screen capturing
CN105808116A (en) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 Screen capture method, screen capture device and mobile terminal
CN105892868A (en) * 2016-04-22 2016-08-24 北京小米移动软件有限公司 Screen capture method and screen capture device
CN106406709A (en) * 2016-09-28 2017-02-15 北京金山安全软件有限公司 Picture processing method and device and terminal equipment
CN107085490A (en) * 2017-03-29 2017-08-22 深圳天珑无线科技有限公司 Multimedia messages player method and device based on sectional drawing

Also Published As

Publication number Publication date
CN108052263A (en) 2018-05-18

Similar Documents

Publication Publication Date Title
CN108052263B (en) Screen capturing method based on terminal equipment and terminal equipment
CN107659416B (en) Conference record sharing method and device, conference terminal and storage medium
US10554805B2 (en) Information processing method, terminal, and computer-readable storage medium
CN105871690B (en) Method and device for realizing instant messaging
US20120274728A1 (en) Video Conference Apparatus, Method, and Storage Medium
CN105072178B (en) Cell-phone number binding information acquisition methods and device
CN110677682B (en) Live broadcast detection and data processing method, device, system and storage medium
CN110392063B (en) Electronic whiteboard data synchronization method, device, equipment and medium
EP3176719A1 (en) Methods and devices for acquiring certification document
WO2016008239A1 (en) Two-dimensional code information acquisition method, device and terminal
CN112748827A (en) Screenshot sharing method and device, terminal equipment and storage medium
CN108718423B (en) Working method of two-dimensional code information sharing system between television terminal and mobile terminal
CN112383812A (en) Television-side screen capture sharing method, television side, mobile terminal and system
CN106775249B (en) Method for setting communication shortcut and electronic equipment
CN111897474A (en) File processing method and electronic equipment
CN104571812B (en) Information processing method and electronic equipment
CN107358117B (en) Switching method, electronic equipment and computer storage medium
US9501500B2 (en) Systems and methods for image file processing
CN106055693B (en) Information processing method and terminal
CN113641286A (en) Screen capturing method, electronic equipment and computer storage medium
CN114465738A (en) Application program evidence obtaining method, system, device and storage medium
CN106936975B (en) Two-dimensional code identification method and device and mobile terminal
CN111418196A (en) Mobile communication terminal and communication method based on face recognition
CN111611470A (en) Data processing method and device and electronic equipment
CN109710794B (en) Information processing method and electronic equipment

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