CN111610909B - Screenshot method and device and electronic equipment - Google Patents

Screenshot method and device and electronic equipment Download PDF

Info

Publication number
CN111610909B
CN111610909B CN202010301669.XA CN202010301669A CN111610909B CN 111610909 B CN111610909 B CN 111610909B CN 202010301669 A CN202010301669 A CN 202010301669A CN 111610909 B CN111610909 B CN 111610909B
Authority
CN
China
Prior art keywords
interface
input
screenshot
image
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
CN202010301669.XA
Other languages
Chinese (zh)
Other versions
CN111610909A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010301669.XA priority Critical patent/CN111610909B/en
Publication of CN111610909A publication Critical patent/CN111610909A/en
Application granted granted Critical
Publication of CN111610909B publication Critical patent/CN111610909B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Landscapes

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

Abstract

The embodiment of the invention provides a screenshot method, a screenshot device and electronic equipment, relates to the technical field of communication and aims to solve the problem that a user is not convenient enough to operate the electronic equipment. The method comprises the following steps: under the condition of displaying the first interface, screenshot the first interface to obtain a first image; the method comprises the steps that screen capture is conducted on a first interface to obtain a second image under the condition that first input of a user on the first interface is received or the first interface meets preset conditions; wherein the first input comprises: at least one of editing input, adjusting input of split screen ratio, and adjusting input of target content display range in the first interface; the first interface meets the preset condition that the currently displayed target content in the first interface is different from the target content in the first image, and the similarity between the currently displayed target content and the target content in the first image is greater than or equal to the target similarity.

Description

Screenshot method and device and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a screenshot method, a screenshot device and electronic equipment.
Background
With the rapid development of communication technology, more and more functions are provided on electronic devices, for example, a user can obtain information through screenshot of the electronic device.
Typically, a user may screen-capture content displayed on a screen by a shortcut key or a combination of keys (e.g., volume and power key combination). If the user modifies the displayed content after the screenshot obtains the screenshot image, after a period of time, if the user needs to perform screenshot again on the modified original screenshot, the user needs to repeatedly find the file to determine the content of the original screenshot and perform screenshot again. This operation may result in the user not being convenient enough to operate the electronic device.
Disclosure of Invention
The embodiment of the invention provides a screenshot method, a screenshot device and electronic equipment, and aims to solve the problem that a user is not convenient enough to operate the electronic equipment.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a screenshot method, where the method includes: under the condition that a first interface is displayed, screenshot is conducted on the first interface to obtain a first image; when the received first input of the user on the first interface is a preset input or the first interface meets a preset condition, screenshot is conducted on the first interface to obtain a second image; wherein the first input comprises: at least one of editing input, adjusting input of split screen ratio, and adjusting input of target content display range in the first interface; the first interface meets the preset condition that the target content currently displayed in the first interface is different from the target content in the first image, and the similarity between the target content and the target content in the first image is greater than or equal to the target similarity.
In a second aspect, an embodiment of the present invention further provides a screenshot device, where the screenshot device includes: a screenshot module; the screenshot module is configured to: under the condition that a first interface is displayed, screenshot is conducted on the first interface to obtain a first image; when the received first input of the user on the first interface is preset input or the first interface meets a preset condition, screenshot is conducted on the first interface to obtain a second image; wherein the first input comprises: at least one of editing input, adjusting input of split screen ratio, and adjusting input of target content display range in the first interface; the first interface meets the preset condition that the target content currently displayed in the first interface is different from the target content in the first image, and the similarity between the target content and the target content in the first image is greater than or equal to the target similarity.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the screenshot method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the screenshot method according to the first aspect.
In the embodiment of the invention, the electronic device performs screenshot on the first interface to obtain the first image under the condition that the first interface is displayed, and then performs screenshot again on the first interface to obtain the second image under the condition that the first input of the user on the first interface is received by the electronic device as the preset input or the first interface meets the preset condition. Wherein the preset input may include: at least one of editing input, adjusting input of split screen ratio, and adjusting input of target content display range in the first interface; the first interface meets the preset condition that the target content currently displayed in the first interface is different from the target content in the first image, and the similarity between the target content and the target content in the first image is greater than or equal to the target similarity. Because the first input is the preset input or the first interface meets the preset condition, the fact that the user has a higher probability of requiring screenshot again can be represented, the electronic device automatically performs screenshot again on the first interface under the condition that the user has a higher probability of requiring screenshot again, the operation of the user can be simplified, for example, after the user performs screenshot, the user can avoid inconvenience of using the screenshot subsequently due to forgetting the screenshot after the user returns to the first interface to modify or adjust the screenshot under the condition that the screenshot content includes inaccurate content or some private content, and therefore the user can use the electronic device more conveniently.
Drawings
FIG. 1 is a block diagram of a possible operating system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a screenshot method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating target information according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a screenshot device according to an embodiment of the present invention;
fig. 5 is a second schematic structural diagram of a screenshot device according to an embodiment of the present invention;
fig. 6 is a hardware schematic diagram of an electronic device according to an 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 some, not all, embodiments of the present invention. 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 should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. "plurality" means two or more than two.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first image and the second image, etc. are for distinguishing different images, rather than for describing a particular order of the images.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The electronic device in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
Next, a software environment to which the screenshot method provided by the embodiment of the present invention is applied is described by taking the operating system shown in fig. 1 as an example.
Fig. 1 is a schematic diagram of a possible operating system according to an embodiment of the present invention. In fig. 1, the architecture of the operating system includes 4 layers, respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application layer comprises various application programs (including system application programs and third-party application programs) in an operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes a library (also referred to as a system library) and an operating system runtime environment. The library mainly provides various resources required by the operating system. The operating system runtime environment is used to provide a software environment for the operating system.
The kernel layer is the operating system layer of the operating system and belongs to the lowest layer of the operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the operating system based on the Linux kernel.
Taking the operating system shown in fig. 1 as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the screenshot method provided in the embodiment of the present invention based on the system architecture of the operating system shown in fig. 1, so that the screenshot method may run based on the operating system shown in fig. 1. That is, the processor or the electronic device may implement the screenshot method provided by the embodiment of the present invention by running the software program in the operating system.
The screenshot method of the embodiment of the present invention is described below with reference to fig. 2. Fig. 2 is a schematic flowchart of a screenshot method provided in an embodiment of the present invention, and as shown in fig. 2, the screenshot method includes S201 and S202:
s201, the electronic equipment conducts screenshot on the first interface under the condition that the first interface is displayed, and a first image is obtained.
The first interface may be any interface displayed by the electronic device, specifically may be a display interface of an application program, and may also be a screen page on which an application program icon and a pendant (such as weather, an operator, electric quantity, time, and the like) are displayed on a desktop.
Optionally, the first interface may be an interface displayed by the electronic device in a full screen manner, or may also be an interface displayed by the electronic device in a split screen manner, which is not specifically limited in this embodiment of the present invention.
S202, when the fact that the first input of the user on the first interface is received as preset input or the first interface meets preset conditions is received by the electronic equipment, screenshot is conducted on the first interface, and a second image is obtained.
Wherein the preset input comprises: at least one of an edit input, an input to adjust a split screen ratio, and an input to adjust a display range of the target display content in the first interface.
In an embodiment of the present invention, the first input may be an input on the first interface by the user while the electronic device keeps displaying the first interface; the electronic device may also capture a screenshot of the first interface, and after the first image is obtained, the user triggers the electronic device to switch to the second interface, and further triggers an input on the first interface after the electronic device switches back from the second interface to the first interface.
Specifically, in the embodiment of the present invention, after the electronic device receives a screenshot input (or a screenshot input) triggered by a user to obtain the first image, if the electronic device receives the first input of the user, the electronic device may first determine whether the first input is a preset input. The preset input may indicate that the user has a high probability of re-capturing the image. If the first input is not the preset input, the electronic device executes the response originally corresponding to the first input, and if the first input is the preset input, the electronic device may execute the response originally corresponding to the first input and then may perform screenshot again on the first interface, that is, may execute the above S202.
In the embodiment of the invention, the first interface meets the preset condition that the target content currently displayed in the first interface is different from the target content in the first image, and the similarity between the target content and the target content in the first image is greater than or equal to the target similarity.
Optionally, the target similarity is set by default in the electronic device, and may also be set manually by the user.
Specifically, in the embodiment of the present invention, after the electronic device receives a screenshot input (or a screenshot input) triggered by a user to obtain the first image, if the electronic device determines that the first interface meets a preset condition, it indicates that the content in the first interface is adjusted, for example, the user triggers adjustment, the electronic device automatically adjusts, and the like, for example, the user has a high probability of needing to screenshot the first interface again, and the electronic device may perform screenshot again on the first interface.
Optionally, the preset input may be an input on the first interface within a first preset time period after the electronic device obtains the first image.
It can be understood that after the first preset time period after the first image is obtained by screen capture, if the user triggers the electronic device to switch to another interface, for example, to another interface of the current application, or to switch the application, or to return to the desktop, the electronic device may determine that the user does not need to re-capture the image. If the user switches from the first interface to the second interface within a first preset time after the first image is obtained by screen capture, and switches to the first interface again to input the preset input, or inputs the preset input within the first preset time under the condition of keeping displaying the first interface, the electronic device may determine that the user needs to capture the screen again.
Specifically, the first preset time period may be default to the system, or set by the user, or determined according to the operation habit of the user, which is not specifically limited in the embodiment of the present invention.
For example, if the average operation event interval of the user in the target time period is T seconds, the first preset time period may be K × T seconds, for example, K may be 5, 10, 15, 20, and the like. Assuming that T is 1.5 seconds and K is 20, the first preset time period may be 30 seconds.
For example, the input for adjusting the display range of the target content in the first interface may be: and sliding input with the sliding distance smaller than or equal to the preset distance. If the electronic device detects that the first input is a sliding input with a sliding distance smaller than or equal to a preset distance, it may be determined that the first input is a preset input.
For example, if the first interface is an interface displaying a first chapter of an electronic book, after a user triggers the electronic device to capture a screen to obtain an image 1 through a screen capture operation, if the electronic device detects that the user slides down 1 cm from top to bottom on the screen in the interface of the first chapter, so that a segment of text that is not displayed in the interface is displayed in the interface originally, and if the similarity between the content currently displayed in the interface and the content in the image 1 exceeds 80% (target similarity), the electronic device may determine that the sliding input is a preset input.
Illustratively, in the embodiment of the present invention, the similarity between the first image and the target content in the first interface after the display range is adjusted may be determined by the color of the pixel point.
In the embodiment of the invention, the types of the first interfaces are different, and the specific editing input can be the same or different; the types of the first interfaces are different, and the specific sizes of the preset distances may be different or the same, which is not specifically limited in the embodiment of the present invention.
According to the screenshot method provided by the embodiment of the invention, the electronic equipment performs screenshot on the first interface under the condition that the first interface is displayed to obtain the first image, and then performs screenshot again on the first interface to obtain the second image when the electronic equipment receives that the first input of the user on the first interface is the preset input or the first interface meets the preset condition. Wherein the preset input may include: at least one of editing input, adjusting input of split screen ratio, and adjusting input of target content display range in the first interface; the first interface meets the preset condition that the target content currently displayed in the first interface is different from the target content in the first image, and the similarity between the target content and the target content in the first image is greater than or equal to the target similarity. Because the first input is the preset input or the first interface meets the preset condition, the fact that the user has a higher probability of requiring screenshot again can be represented, the electronic device automatically performs screenshot again on the first interface under the condition that the user has a higher probability of requiring screenshot again, the operation of the user can be simplified, for example, after the user performs screenshot, the user can avoid inconvenience of using the screenshot subsequently due to forgetting the screenshot after the user returns to the first interface to modify or adjust the screenshot under the condition that the screenshot content includes inaccurate content or some private content, and therefore the user can use the electronic device more conveniently.
Optionally, in the screenshot method provided in the embodiment of the present invention, before the above S202, the following S203 and S204 may also be included:
s203, when the first input of the user on the first interface is received as preset input or the first interface meets the preset condition, the electronic equipment displays target information, and the target information is used for prompting the user whether to capture a picture.
And S204, the electronic equipment receives a second input of the user, wherein the second input is the input of the screenshot determined by the user.
Further, S202 described above may be executed by S202a described below:
s202a, responding to a second input, the electronic device captures a second image.
Specifically, after the electronic device determines that the first input is the preset input, or determines that the first interface meets the preset condition, the electronic device may call or generate an inquiry instruction, and the electronic device displays the target information on the screen according to the inquiry instruction to prompt the user whether to re-capture the image.
Optionally, the electronic device may display the target information in a process of receiving the first input, or may display the target information after receiving the first input, which is not specifically limited in this embodiment of the present invention.
In this embodiment of the present invention, the electronic device may keep displaying the target information while keeping displaying the first interface, and the electronic device may also cancel displaying the target information after displaying the target information for a second preset time period.
Optionally, the electronic device may display that the effective duration in which the user may operate on the target information is a second preset duration when the target information is displayed. For example, the electronic device may display the valid duration that the user can operate in a countdown manner when the target information is displayed. For example, if the second preset time duration is 10 seconds, the electronic device may update the effective operation time durations of 9 seconds, 8 seconds, and 7 seconds with time until 1 second, so as to prompt the user that the target prompt message may be operated within the remaining time duration.
Optionally, the target information may be displayed on the first interface, or may be displayed in a pull-down menu of the electronic device, which is not specifically limited in this embodiment of the present invention.
Specifically, the target information may be an operation control or a sub-interface. When the target information is a sub-interface (or dialog box), the sub-interface may include a control for determining screen capture, the control for determining screen capture may be a shortcut screen capture control, and a user may operate the shortcut screen capture control to trigger the quick screen capture of the electronic device.
Exemplarily, fig. 3 is a schematic diagram of target information provided by an embodiment of the present invention, as shown in (a) in fig. 3, after a user inputs a piece of text in a notepad interface of an electronic device, the user acquires a screenshot image 2 of a current interface through screenshot input, and after acquiring the screenshot image 2, if the electronic device detects that the user returns to the notepad interface (i.e. a first interface) to perform content modification, for example, "300 years" is modified to "30 years" (i.e. a first input), as shown in (b) in fig. 3, the electronic device may display a floating display "re-screenshot" control 31 on the notepad interface; as shown in fig. 3 (c), the electronic device may also display a sub-interface 32 on the notepad interface, and the sub-interface 32 displays "is the current screenshot interface detected as modified, whether to re-screenshot? "and select button 32 a" yes "and button 32 b" no "; of course, as shown in fig. 3 (d), the electronic device may also display a control 33 in the drop-down menu of the notification bar, which control 33 may be used for user screen capture.
In fig. 3 (d), the control 33 may be displayed at the position of the first row of controls in the notification bar, i.e., the position shown in fig. 3, or may be displayed at the last position of the first row. After exceeding the second preset length of time, the electronic device can cancel displaying the control 33.
Optionally, the electronic device may display the target information on the first interface in an overlapping manner with a preset transparency.
Alternatively, the screen capture input triggered by the user on the target information may be used, and the second input may also be a conventional screen capture input, for example, a finger joint double-clicks the screen while pressing the power key and the volume key, which is not particularly limited in this embodiment of the present invention.
In conjunction with fig. 3, the user may click the "re-screen capture" control 31 (i.e., the second input) shown in (b) of fig. 3 to trigger the electronic device screen capture, may click the button 32a "yes" (i.e., the second input) shown in (c) of fig. 3 to trigger the electronic device screen capture, may click the button 32b "no" to not trigger the electronic device screen capture, and may click the control 33 (i.e., the second input) shown in (d) of fig. 3 to trigger the electronic device screen capture.
Based on the scheme, after the electronic equipment acquires the first image through screenshot, if the received first input of the user is the preset input or the first interface meets the preset condition, the electronic equipment can display target information on the display interface to prompt the user whether to perform screenshot again or not, then the electronic equipment determines whether to perform screenshot again according to the input of the user, and if the received second input which is determined by the user to perform screenshot again is received, the electronic equipment performs screenshot again on the first interface, so that the user can be prompted to perform screenshot again flexibly and quickly as required, and the human-computer interaction performance is better.
Optionally, in the screenshot method provided in the embodiment of the present invention, the above S202 may also be executed by the following S202b1, and the above S202a may also be executed by the following S202b 2:
s202b1, when the first input of the user on the first interface is received as the preset input or the first interface meets the preset condition, the electronic device captures the first interface to obtain a second image, and deletes the first image.
S202b2, the electronic device responds to the second input, the screen capture obtains the second image, and the first image is deleted.
It can be understood that if the user needs to capture the screen again, the user can trigger the electronic device to capture the screen through the second input, the electronic device receives the instruction of capturing the screen of the user, can capture the screen to obtain a new captured image, and delete the first image originally obtained by capturing the screen for the first interface, so that not only can the storage space in the electronic device be saved, but also the recognition error rate of the user in the subsequent operation of the user on the captured image can be reduced.
Based on the scheme, after the electronic device performs screenshot again on the first interface according to the scheme to obtain the second image, the electronic device deletes the first image obtained by screenshot on the first interface before the first input. The user is not required to trigger the electronic equipment to return to the screenshot album to delete the first image, so that the steps of user operation are simplified, the operation efficiency of the user is improved, the storage space of the electronic equipment is saved, the error rate of the user in recognizing the image in the follow-up process of using the screenshot image can be reduced, and the user experience is better.
Optionally, the types of the first interfaces are different when the first image is acquired, and the first input may correspond to different types of preset inputs. Wherein the first interface is any one of the following: editing interface, chatting recording interface, media playing interface, reading interface and game type interface. Specifically, the following 7 cases (1) to (7) can be classified:
(1) where the first interface is a text editing type interface, the editing input may include: text input (such as waking up an input method and inputting text), text deletion, text replacement, text pasting.
For example, a text editing type interface may be: a notepad (memorandum) interface, a contact information editing interface, a short message editing interface, an interface for filling information in a webpage or an interface for editing information to be sent by an instant messaging application, and the like.
It is understood that, in the case that the user displays the first interface, the modification made in the first interface within the first time period after the screenshot may be that the user finds that the content is wrongly input or that the content is rarely input. For example, after a user edits a part of text in a notepad interface, the screenshot is shared with other users, and before sharing, the user finds that there is a wrong content in the text, or the screenshot includes a private content, or a content unrelated to the chat topic, or needs to input more content. The electronic device may display the target information (e.g., the quick screenshot control) after the notepad interface receives the editing input described above.
(2) In the case where the first interface is an image editing type interface, the editing input may be at least one of cutting, adding content, removing content, and switching display effects.
Wherein, the added or removed content may include: mosaic, doodle, watermark and label. Switching the display effect may include: rotating, adding or replacing filters, adding blurring, adjusting brightness, adjusting contrast, adjusting saturation, etc.
For example, the image editing interface may be an image editing interface triggered from an album, an image editing interface triggered from a web page, or an image editing interface triggered from another application (e.g., an instant messaging application or a news application).
Illustratively, a user browses an image in a web page, the user triggers and displays an image editing interface in the web page, the user firstly edits an object (which may include multiple inputs) in the editing interface, then the user triggers a screenshot of the electronic device, after the screenshot, the user feels that the current filter effect is not good, and the user may switch the filter in the image editing interface. The target information may be displayed after the electronic device receives a user switch filter in the image editing interface.
(3) When the first interface is a chat interface with an instant messaging function, the preset input may be an input of deleting a part of chat records in the current chat interface by the user, or an input of a sliding distance of the user on a chat record page being less than or equal to a preset distance.
For example, when a user chats with a first contact, the user needs to send chat records of the user and a second contact, the user may capture a screen when the electronic device displays a chat interface of the second contact, after the screen capture, the user finds that a screenshot picture includes a chat record (such as content including privacy content or content unrelated to a chat subject) unsuitable for the first contact to see, and after the electronic device receives that the user deletes a chat record in the chat interface of the second contact or slides so that one of the chat records is not in a display range, the electronic device may display target information.
(4) In the case that the first interface is an audio playing interface or a video playing interface, the preset input may be an input that a user drags a progress bar to slide for a preset distance, and the slide input is used to adjust a playing progress.
For example, the user may need to capture a screen to obtain a specific lyric or capture a specific picture, and the first image fails to capture the content required by the user, and after the electronic device receives an input of a user adjustment progress bar, the electronic device may display the target information.
(5) In the case where the first interface is a web page type interface, the preset input may be an input of a user sliding (up or down) a preset distance on the screen.
For example, when a user watches news or novels and other types of content, the user wants to capture the content displayed in the interface, but the user is dissatisfied with the content of the original capture, the user can slide on the interface to adjust the position again, and the target information can be displayed during the process that the user slides the electronic equipment up and down or after the sliding stops.
(6) In the case where the first interface is a game type interface, the preset input may be an input for adjusting a posture or a pose of a character in the game interface.
For example, the clothing of the character in the game is adjusted, and the standing posture of the character in the game is adjusted.
Illustratively, during the playing of the game 1, the user needs to send an image of the game 1 to the friend, the user finds dissatisfaction after obtaining a screenshot image, and the user adjusts at least one of the clothing and the standing posture of the character in the game 1 interface, and at this time, the target information can be displayed.
It should be noted that, in the case that the first interface is displayed in a split screen manner, if the first interface includes any one of the interfaces (1) to (6), the preset input may be a specific input corresponding to each of the above situations, and the preset input may also be an input for adjusting a split screen ratio when the user displays in the split screen manner on the electronic device.
For example, the first interface is 1/2 split screen, the upper half screen is a display interface of the first application, and the lower half screen is a display interface of the second application, after the electronic device captures the screen to obtain the image, if the user adjusts the split screen ratio, for example, the display interface of the first application occupies 2/3 of the screen, and the display interface of the second application occupies 1/3 of the screen, then the electronic device may display the target information.
Based on the scheme, the electronic equipment can determine whether the user needs to perform screenshot again or not according to different scenes and by combining different preset inputs, determines that the dimensionality is various, can be applied to various scenes to display prompt information for the user, prompts the user whether the user needs to perform screenshot again or not under the condition that the user edits or adjusts the content in the first interface, and improves the user experience of the user in using the electronic equipment.
Fig. 4 is a schematic diagram of a possible structure of a screenshot device according to an embodiment of the present invention, and as shown in fig. 4, the screenshot device 400 includes: a screenshot module 401; a screenshot module 401, configured to capture a screenshot of a first interface to obtain a first image when the first interface is displayed; when the received first input of the user on the first interface is preset input or the first interface meets a preset condition, screenshot is conducted on the first interface to obtain a second image; wherein the preset input comprises: at least one of editing input, adjusting input of split screen ratio, and adjusting input of target content display range in the first interface; the first interface meets the preset condition that the target content currently displayed in the first interface is different from the target content in the first image, and the similarity between the target content and the target content in the first image is greater than or equal to the target similarity.
Optionally, with reference to fig. 4, as shown in fig. 5, the screenshot device 400 further includes: a display module 402 and a receiving module 403; a display module 402, configured to, before the screenshot module 401 captures the first interface to obtain the second image, display target information when a first input of the user on the first interface is received as a preset input, or the first interface meets a preset condition, where the target information is used to prompt the user whether to screenshot again; a receiving module 403, configured to receive a second input of the user, where the second input is an input for determining to re-capture the image by the user; the screenshot module 401 is specifically configured to perform screenshot on the first interface in response to the second input received by the receiving module 403, so as to obtain a second image.
Optionally, the preset input is an input on the first interface within a first preset time period after the electronic device obtains the first image.
Optionally, the display module 402 is further configured to cancel the display of the target information after displaying the target information for a second preset time period.
Optionally, the types of the first interfaces are different, and the preset inputs are different; wherein the first interface is any one of the following: editing interface, chatting recording interface, media playing interface, reading interface and game type interface.
The screenshot device 400 provided in the embodiment of the present invention can implement each process implemented by the electronic device in the foregoing method embodiment, and is not described here again to avoid repetition.
The embodiment of the invention provides a screenshot device, which is used for screenshot a first interface to obtain a first image under the condition that the first interface is displayed, and then screenshot again on the first interface to obtain a second image under the condition that the screenshot device receives that a first input of a user on the first interface is a preset input or the first interface meets a preset condition. Wherein the preset input may include: at least one of editing input, adjusting input of split screen ratio, and adjusting input of target content display range in the first interface; the first interface meets the preset condition that the target content currently displayed in the first interface is different from the target content in the first image, and the similarity between the target content and the target content in the first image is greater than or equal to the target similarity. The first input is the preset input or the first interface meets the preset condition, which can indicate that the user has a higher probability of re-screenshot, so that the screenshot device automatically re-screenshots the first interface under the condition that the user has a higher probability of re-screenshot, and the operation of the user can be simplified.
Fig. 6 is a hardware schematic diagram of an electronic device 100 according to an embodiment of the present invention, where the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like.
The processor 110 is configured to capture a screenshot of the first interface to obtain a first image when the first interface is displayed; when the received first input of the user on the first interface is preset input or the first interface meets a preset condition, screenshot is conducted on the first interface to obtain a second image; wherein the preset input comprises: at least one of editing input, adjusting input of split screen ratio, and adjusting input of target content display range in the first interface; the first interface meets the preset condition that the target content currently displayed in the first interface is different from the target content in the first image, and the similarity between the target content and the target content in the first image is greater than or equal to the target similarity.
The embodiment of the invention provides electronic equipment, wherein the electronic equipment performs screenshot on a first interface under the condition that the first interface is displayed to obtain a first image, and then performs screenshot again on the first interface to obtain a second image when the electronic equipment receives that a first input of a user on the first interface is a preset input or the first interface meets a preset condition. Wherein the preset input may include: at least one of editing input, adjusting input of split screen ratio, and adjusting input of target content display range in the first interface; the first interface meets the preset condition that the target content currently displayed in the first interface is different from the target content in the first image, and the similarity between the target content and the target content in the first image is greater than or equal to the target similarity. Because the first input is the preset input or the first interface meets the preset condition, the fact that the user has a higher probability of requiring screenshot again can be represented, the electronic device automatically performs screenshot again on the first interface under the condition that the user has a higher probability of requiring screenshot again, the operation of the user can be simplified, for example, after the user performs screenshot, the user can avoid inconvenience of using the screenshot subsequently due to forgetting the screenshot after the user returns to the first interface to modify or adjust the screenshot under the condition that the screenshot content includes inaccurate content or some private content, and therefore the user can use the electronic device more conveniently.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 6, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power source 111 (such as a battery) for supplying power to each component, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an electronic device is further provided in an embodiment of the present invention, and with reference to fig. 6, the electronic device includes a processor 110, a memory 109, and a computer program that is stored in the memory 109 and is executable on the processor 110, and when the computer program is executed by the processor 110, the processes in the screenshot method embodiment are implemented, and the same technical effect can be achieved, and details are not described here again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the screenshot method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A screenshot method is applied to electronic equipment and is characterized by comprising the following steps:
under the condition that a first interface is displayed, screenshot is conducted on the first interface to obtain a first image;
when receiving that a first input of a user on the first interface is a preset input or the first interface meets a preset condition, screenshot the first interface to obtain a second image;
executing a response originally corresponding to a first input when the condition that the first input of a user on the first interface is not preset input is received;
wherein the preset input comprises: at least one of an edit input, an input to adjust a split screen ratio, and an input to adjust a target content display range in the first interface;
the preset condition is that the target content currently displayed in the first interface is different from the target content in the first image, and the similarity between the target content and the target content in the first image is greater than or equal to the target similarity;
the screenshot of the first interface is performed to obtain a second image when the first input of the user on the first interface is received and is a preset input or the first interface meets a preset condition, and the screenshot comprises:
when receiving that a first input of a user on the first interface is a preset input or the first interface meets a preset condition, screenshot the first interface to obtain a second image, and deleting the first image;
before the screenshot is performed on the first interface to obtain the second image, the method further includes:
displaying target information under the condition that the received first input of the user on the first interface is a preset input or the first interface meets a preset condition, wherein the target information is used for prompting the user whether to screenshot again;
receiving a second input of the user, wherein the second input is input for determining the screenshot again by the user;
the capturing a first interface to obtain a second image when the received first input of the user on the first interface is a preset input or the first interface meets a preset condition includes:
and responding to the second input, performing screenshot on the first interface to obtain a second image, and deleting the first image.
2. The method of claim 1, wherein the preset input is an input on the first interface within a first preset time period after the electronic device obtains the first image.
3. The method of claim 1, further comprising:
and canceling the display of the target information after the target information is displayed for more than a second preset time.
4. The method of claim 1, wherein the first interface is of a different type and the preset input is different;
wherein the first interface is any one of: editing interface, chatting recording interface, media playing interface, reading interface and game type interface.
5. A screenshot device, comprising: the device comprises a screenshot module, an execution module, a display module and a receiving module;
the screenshot module is used for screenshot the first interface under the condition that the first interface is displayed to obtain a first image; when receiving that a first input of a user on the first interface is a preset input or the first interface meets a preset condition, screenshot is conducted on the first interface to obtain a second image;
the screenshot module is specifically configured to capture a screenshot of the first interface to obtain a second image and delete the first image when a first input of a user on the first interface is received and is a preset input or the first interface meets a preset condition;
the execution module is used for executing a response originally corresponding to a first input when the condition that the first input of a user on the first interface is not preset input is received;
wherein the preset input comprises: at least one of an edit input, an input to adjust a split screen ratio, and an input to adjust a target content display range in the first interface; the first interface meets a preset condition that the currently displayed target content in the first interface is different from the target content in the first image, and the similarity between the currently displayed target content and the target content in the first image is greater than or equal to the target similarity;
the display module is used for displaying target information before the screenshot module performs screenshot on the first interface to obtain a second image, wherein the target information is used for prompting a user whether to perform screenshot again or not when the first input of the user on the first interface is a preset input or the first interface meets a preset condition;
the receiving module is used for receiving a second input of the user, wherein the second input is an input for determining the screenshot again by the user;
the screenshot module is specifically configured to perform screenshot on the first interface in response to the second input received by the receiving module to obtain a second image, and delete the first image.
6. The screenshot device of claim 5, wherein the predetermined input is an input on the first interface within a first predetermined duration after the screenshot device obtains the first image.
7. The screenshot device of claim 5, wherein the display module is further configured to cancel displaying the target information after displaying the target information for a second preset duration.
8. The screenshot device of claim 5, wherein the first interface is of a different type and the preset input is different;
wherein the first interface is any one of: editing interface, chatting recording interface, media playing interface, reading interface and game type interface.
9. An electronic device, characterized in that the electronic device comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the screenshot method according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the screenshot method according to any one of claims 1 to 4.
CN202010301669.XA 2020-04-16 2020-04-16 Screenshot method and device and electronic equipment Active CN111610909B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010301669.XA CN111610909B (en) 2020-04-16 2020-04-16 Screenshot method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010301669.XA CN111610909B (en) 2020-04-16 2020-04-16 Screenshot method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111610909A CN111610909A (en) 2020-09-01
CN111610909B true CN111610909B (en) 2022-04-08

Family

ID=72195814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010301669.XA Active CN111610909B (en) 2020-04-16 2020-04-16 Screenshot method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111610909B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115048009A (en) * 2021-02-26 2022-09-13 京东方科技集团股份有限公司 Dialog interface intercepting method and device, computer equipment and storage medium
CN115756275A (en) * 2022-11-16 2023-03-07 维沃移动通信有限公司 Screen capture method, screen capture device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808916A (en) * 2015-04-13 2015-07-29 深圳市金立通信设备有限公司 Screen-shooting method
CN104915202A (en) * 2015-06-05 2015-09-16 广东欧珀移动通信有限公司 Screenshot method and device
CN106959816A (en) * 2017-03-31 2017-07-18 努比亚技术有限公司 Video intercepting method and mobile terminal
CN109710127A (en) * 2018-12-19 2019-05-03 维沃移动通信有限公司 A kind of screenshotss method and mobile terminal
CN110083294A (en) * 2019-04-28 2019-08-02 努比亚技术有限公司 Screen interception method, terminal and computer readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10503453B2 (en) * 2014-10-30 2019-12-10 Dropbox, Inc. Interacting with digital content using multiple applications
CN104615787B (en) * 2015-03-06 2018-05-18 中国建设银行股份有限公司 A kind of update interface display method and device
CN106802758B (en) * 2017-01-05 2020-11-24 青岛海信移动通信技术股份有限公司 Processing method and device for screen capture
US10783320B2 (en) * 2017-05-16 2020-09-22 Apple Inc. Device, method, and graphical user interface for editing screenshot images
CN109525874B (en) * 2018-09-27 2021-05-18 维沃移动通信有限公司 Screen capturing method and terminal equipment
CN109816679A (en) * 2018-12-19 2019-05-28 维沃移动通信有限公司 A kind of image processing method and terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808916A (en) * 2015-04-13 2015-07-29 深圳市金立通信设备有限公司 Screen-shooting method
CN104915202A (en) * 2015-06-05 2015-09-16 广东欧珀移动通信有限公司 Screenshot method and device
CN106959816A (en) * 2017-03-31 2017-07-18 努比亚技术有限公司 Video intercepting method and mobile terminal
CN109710127A (en) * 2018-12-19 2019-05-03 维沃移动通信有限公司 A kind of screenshotss method and mobile terminal
CN110083294A (en) * 2019-04-28 2019-08-02 努比亚技术有限公司 Screen interception method, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN111610909A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
CN111061574B (en) Object sharing method and electronic device
CN110798397B (en) File sending method and device and electronic equipment
CN107943390B (en) Character copying method and mobile terminal
CN109491738B (en) Terminal device control method and terminal device
CN110618969B (en) Icon display method and electronic equipment
CN111142723B (en) Icon moving method and electronic equipment
CN111104029B (en) Shortcut identifier generation method, electronic device and medium
CN110830363B (en) Information sharing method and electronic equipment
CN108920226B (en) Screen recording method and device
CN110752981B (en) Information control method and electronic equipment
CN110703972B (en) File control method and electronic equipment
CN111026464A (en) Identification method and electronic equipment
CN108763540B (en) File browsing method and terminal
CN110865745A (en) Screen capturing method and terminal equipment
CN111163224B (en) Voice message playing method and electronic equipment
US12028476B2 (en) Conversation creating method and terminal device
CN109271262B (en) Display method and terminal
CN111104380A (en) Application file management method and device, mobile terminal and storage medium
CN110647277A (en) Control method and terminal equipment
CN111124231B (en) Picture generation method and electronic equipment
CN111610909B (en) Screenshot method and device and electronic equipment
CN111399715B (en) Interface display method and electronic equipment
CN111049977B (en) Alarm clock reminding method and electronic equipment
CN110647506B (en) Picture deleting method and terminal equipment
CN111258476B (en) Message 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