CN111610909B - Screenshot method and device and electronic equipment - Google Patents
Screenshot method and device and electronic equipment Download PDFInfo
- 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
- user
- image
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04847—Interaction 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
Description
技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种截图方法、装置及电子设备。Embodiments of the present invention relate to the field of communications technologies, and in particular, to a screenshot method, an apparatus, and an electronic device.
背景技术Background technique
随着通信技术的快速发展,电子设备上的功能越来越多,例如用户可以通过电子设备截图获取信息。With the rapid development of communication technology, there are more and more functions on electronic devices, for example, users can obtain information by taking screenshots of electronic devices.
通常,用户可以通过快捷键或者组合键(例如音量和电源键组合)对屏幕上显示的内容进行截图。若用户在截图获取到截图图像之后,用户对显示的内容进行了修改,在过了一段时间之后,若用户需要对修改后的原截图处进行再截图操作,用户则需要反复翻找文件,以先确定原截图处内容,再进行截图。此操作会导致用户操作电子设备不够便捷。Usually, the user can take a screenshot of the content displayed on the screen through a shortcut key or a key combination (such as the volume and power key combination). If the user modifies the displayed content after obtaining the screenshot image from the screenshot, and after a period of time, if the user needs to take another screenshot of the modified original screenshot, the user needs to search the file repeatedly to obtain a new screenshot. First determine the content of the original screenshot, and then take a screenshot. This operation may cause the user to operate the electronic device inconveniently.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种截图方法、装置及电子设备,以解决用户操作电子设备不够便捷的问题。Embodiments of the present invention provide a screenshot method, an apparatus, and an electronic device, so as to solve the problem that the user's operation of the electronic device is not convenient enough.
为了解决上述技术问题,本发明实施例是这样实现的:In order to solve the above technical problems, the embodiments of the present invention are implemented as follows:
第一方面,本发明实施例提供一种截图方法,该方法包括:在显示第一界面的情况下,对第一界面进行截图,得到第一图像;在接收到用户在第一界面的第一输入为预设输入,或者在第一界面满足预设条件的情况下,对第一界面进行截图,得到第二图像;其中,第一输入包括:编辑输入、调整分屏占比的输入以及调整第一界面中目标内容显示范围的输入中的至少一项;第一界面满足预设条件为在在第一界面中当前显示的目标内容不同于第一图像中的目标内容,且与第一图像中的目标内容的相似度大于或等于目标相似度。In a first aspect, an embodiment of the present invention provides a method for taking screenshots. The method includes: when a first interface is displayed, taking a screenshot of the first interface to obtain a first image; The input is a preset input, or when the first interface satisfies the preset condition, a screenshot of the first interface is taken to obtain a second image; wherein, the first input includes: editing input, input for adjusting the split screen ratio, and adjustment At least one item in the input of the target content display range in the first interface; the first interface satisfies the preset condition that the target content currently displayed in the first interface is different from the target content in the first image, and is different from the first image. The similarity of the target content in is greater than or equal to the target similarity.
第二方面,本发明实施例还提供了一种截图装置,该截图装置包括:截图模块;该截图模块,用于:在显示第一界面的情况下,对第一界面进行截图,得到第一图像;在接收到用户在第一界面的第一输入为预设输入,或者第一界面满足预设条件的情况下,对第一界面进行截图,得到第二图像;其中,第一输入包括:编辑输入、调整分屏占比的输入以及调整第一界面中目标内容显示范围的输入中的至少一项;第一界面满足预设条件为在在第一界面中当前显示的目标内容不同于第一图像中的目标内容,且与第一图像中的目标内容的相似度大于或等于目标相似度。In a second aspect, an embodiment of the present invention further provides a screenshot device, the screenshot device includes: a screenshot module; the screenshot module is configured to: in the case of displaying the first interface, screenshot the first interface to obtain the first interface. image; in the case that the first input of the user on the first interface is a preset input, or the first interface satisfies the preset condition, take a screenshot of the first interface to obtain a second image; wherein, the first input includes: At least one of editing input, input for adjusting the split screen ratio, and input for adjusting the display range of the target content in the first interface; the first interface satisfying the preset condition is that the target content currently displayed in the first interface is different from the first interface. The target content in an image, and the similarity with 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, including a processor, a memory, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor to achieve the The steps of the screenshot method described in one aspect.
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的截图方法的步骤。In a fourth aspect, an embodiment of the present invention 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 steps of the screenshot method described in the first aspect are implemented.
在本发明实施例中,电子设备在显示第一界面的情况下,对第一界面进行截图,得到第一图像,之后电子设备在接收到用户在第一界面上的第一输入为预设输入,或者第一界面满足预设条件的情况下,对第一界面进行重新截图,得到第二图像。其中,预设输入可以包括:编辑输入、调整分屏占比的输入以及调整第一界面中目标内容显示范围的输入中的至少一项;第一界面满足预设条件为在第一界面中当前显示的目标内容不同于第一图像中的目标内容,且与第一图像中的目标内容的相似度大于或等于目标相似度。由于第一输入为预设输入或第一界面满足预设条件均可以表示用户有较大的概率需要重新截图,因此电子设备在用户有较大概率需要重新截图的情况下对第一界面自动重新截图,可以简化用户的操作,例如用户在截图之后,发现截图的内容中包括不准确的内容或者存在一些隐私的内容的情况下,在用户返回第一界面中修改或者调整之后,电子设备自动重新截图可以避免用户忘记截图导致后续使用截图的不便,从而使得用户使用电子设备更加便捷。In this embodiment of the present invention, when the electronic device displays the first interface, the electronic device takes a screenshot of the first interface to obtain the first image, and then the electronic device receives the first input from the user on the first interface as the preset input , or if the first interface satisfies the preset condition, take a screenshot of the first interface again to obtain the second image. Wherein, the preset input may include: at least one of editing input, input for adjusting the split screen ratio, and input for adjusting the display range of the target content in the first interface; the first interface satisfying the preset condition is that in the first interface the current The displayed target content is different from the target content in the first image, and the similarity with the target content in the first image is greater than or equal to the target similarity. Since the first input is a preset input or the first interface satisfies the preset conditions, it may indicate that the user has a high probability to need to take a screenshot again. Therefore, the electronic device automatically re-screens the first interface when the user has a high probability that the screenshot needs to be taken again. Taking a screenshot can simplify the user's operation. For example, after the user takes a screenshot and finds that the content of the screenshot includes inaccurate content or some private content, after the user returns to the first interface to modify or adjust, the electronic device automatically resets the screen. The screenshot can avoid the inconvenience of subsequent use of the screenshot caused by the user forgetting to take the screenshot, thereby making it more convenient for the user to use the electronic device.
附图说明Description of drawings
图1为本发明实施例提供的一种可能的操作系统的架构示意图;FIG. 1 is a schematic diagram of the architecture of a possible operating system provided by an embodiment of the present invention;
图2为本发明实施例提供的一种截图方法的流程示意图;2 is a schematic flowchart of a screenshot method according to an embodiment of the present invention;
图3为本发明实施例提供的一种目标信息的示意图;3 is a schematic diagram of a kind of target information provided by an embodiment of the present invention;
图4为本发明实施例提供的一种截图装置的结构示意图之一;4 is one of the schematic structural diagrams of a screenshot device provided by an embodiment of the present invention;
图5为本发明实施例提供的一种截图装置的结构示意图之二;5 is a second schematic structural diagram of a screenshot device provided by an embodiment of the present invention;
图6为本发明实施例提供的一种电子设备的硬件示意图。FIG. 6 is a schematic diagram of hardware of an electronic device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
需要说明的是,本文中的“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。“多个”是指两个或多于两个。It should be noted that “/” in this document means or, for example, A/B can mean A or B; “and/or” in this document is only an association relationship that describes an associated object, indicating that there may be three A relationship, for example, A and/or B, can mean the existence of A alone, the existence of both A and B, and the existence of B alone. "Plural" means two or more.
本发明的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一图像和第二图像等是用于区别不同的图像,而不是用于描述图像的特定顺序。The terms "first" and "second" and the like in the description and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of the objects. For example, the first image and the second image, etc. are used to distinguish different images, not to describe a specific 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 represent examples, illustrations, or descriptions. Any embodiments or designs described as "exemplary" or "such as" in the embodiments of the present invention should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
本发明实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be an electronic device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present invention.
下面以图1所示的操作系统为例,介绍一下本发明实施例提供的截图方法所应用的软件环境。Taking the operating system shown in FIG. 1 as an example below, the software environment to which the screenshot method provided by the embodiment of the present invention is applied will be introduced.
如图1所示,为本发明实施例提供的一种可能的操作系统的架构示意图。在图1中,操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1 , it is a schematic diagram of the architecture of a possible operating system provided by an embodiment of the present invention. In FIG. 1 , the architecture of the operating system includes four layers, namely: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
其中,应用程序层包括操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。Among them, the application layer includes various application programs in the operating system (including system applications and third-party applications).
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application, and developers can develop some applications based on the application framework layer under the condition of complying with the development principles of the framework of the application.
系统运行库层包括库(也称为系统库)和操作系统运行环境。库主要为操作系统提供其所需的各类资源。操作系统运行环境用于为操作系统提供软件环境。The system runtime layer includes libraries (also called system libraries) and the operating system runtime environment. Libraries mainly provide the operating system with all kinds of resources it needs. The operating system operating environment is used to provide a software environment for the operating system.
内核层是操作系统的操作系统层,属于操作系统软件层次的最底层。内核层基于Linux内核为操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the operating system and belongs to the bottom layer of the operating system software layer. The kernel layer provides core system services and hardware-related drivers for the operating system based on the Linux kernel.
以图1所示的操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的操作系统的系统架构,开发实现本发明实施例提供的截图方法的软件程序,从而使得该截图方法可以基于如图1所示的操作系统运行。即处理器或者电子设备可以通过在操作系统中运行该软件程序实现本发明实施例提供的截图方法。Taking the operating system shown in FIG. 1 as an example, in this embodiment of the present invention, a developer can develop a software program for implementing the screenshot method provided by the embodiment of the present invention based on the system architecture of the operating system shown in FIG. The screenshot method can be executed based on the operating system shown in FIG. 1 . That is, the processor or the electronic device can implement the screenshot method provided by the embodiment of the present invention by running the software program in the operating system.
下面结合图2中对本发明实施例的截图方法进行说明。图2为本发明实施例提供的一种截图方法的流程示意图,如图2所示,该截图方法包括S201和S202:The screenshot method according to the embodiment of the present invention will be described below with reference to FIG. 2 . FIG. 2 is a schematic flowchart of a screenshot method provided by an embodiment of the present invention. As shown in FIG. 2 , the screenshot method includes S201 and S202:
S201、电子设备在显示第一界面的情况下,对第一界面进行截图,得到第一图像。S201. In the case of displaying the first interface, the electronic device takes a screenshot of the first interface to obtain a first image.
其中,第一界面可以为电子设备显示的任意一个界面,具体可以为应用程序的显示界面,也可以为桌面上显示有应用程序图标、挂件(比如天气、运营商、电量、时间等)的一个屏幕页面。Wherein, the first interface can be any interface displayed by the electronic device, specifically the display interface of the application program, or the one with application program icons and pendants (such as weather, operator, power, time, etc.) displayed on the desktop screen page.
可选地,第一界面可以为电子设备全屏显示的界面,也可以为电子设备分屏显示的界面,本发明实施例对此不作具体限定。Optionally, the first interface may be an interface displayed on a full screen by the electronic device, or may be an interface displayed on a split screen by the electronic device, which is not specifically limited in this embodiment of the present invention.
S202、电子设备在接收到用户在第一界面上的第一输入为预设输入,或者第一界面满足预设条件的情况下,对第一界面进行截图,得到第二图像。S202. When receiving that the first input from the user on the first interface is a preset input, or the first interface satisfies a preset condition, the electronic device takes a screenshot of the first interface to obtain a second image.
其中,预设输入包括:编辑输入、调整分屏占比的输入以及调整第一界面中目标显示内容显示范围的输入中的至少一项。The preset input includes at least one of: editing input, input for adjusting the ratio of the split screen, and input for adjusting the display range of the target display content in the first interface.
在本发明实施例中,第一输入可以为用户在电子设备保持显示第一界面的情况下在第一界面上的输入;也可以为电子设备对第一界面进行截图,得到第一图像之后,用户触发电子设备切换到第二界面,又触发电子设备从第二界面切换回第一界面之后,在第一界面上的输入,本发明实施例对此不作具体限定。In this embodiment of the present invention, the first input may be the user's input on the first interface when the electronic device keeps displaying the first interface; or the electronic device may take a screenshot of the first interface, and after obtaining the first image, After the user triggers the electronic device to switch to the second interface, and triggers the electronic device to switch back to the first interface from the second interface, the input on the first interface is not specifically limited in this embodiment of the present invention.
具体的,本发明实施例中,在电子设备接收到用户触发的截图输入(或截屏输入)获取第一图像之后,若电子设备接收到用户的第一输入,则电子设备可以先判断第一输入是否为预设输入。其中,预设输入可以表示用户有较大的概率需要重新截图。若第一输入不为预设输入,则电子设备执行第一输入原本对应的响应,若第一输入为预设输入,则电子设备可以在执行第一输入原本对应的响应之后,还可以对第一界面重新截图,即可以执行上述的S202。Specifically, in this embodiment of the present invention, after the electronic device receives the screenshot input (or screenshot input) triggered by the user to obtain the first image, if the electronic device receives the first input from the user, the electronic device can first determine the first input Whether it is a preset input. Wherein, the preset input may indicate that the user has a high probability that the screenshot needs to be re-screened. If the first input is not the default input, the electronic device executes the response originally corresponding to the first input; if the first input is the default input, the electronic device may, after executing the response originally corresponding to the first input, also Once the interface is re-screened, the above-mentioned S202 can be executed.
在本发明实施例中,第一界面满足预设条件为在第一界面中当前显示的目标内容不同于第一图像中的目标内容,且与第一图像中的目标内容的相似度大于或等于目标相似度。In the embodiment of the present invention, the first interface satisfies 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 with the target content in the first image is greater than or equal to target similarity.
可选地,目标相似度为电子设备中默认设置的,也可以为用户手动设置的。Optionally, the target similarity is set by default in the electronic device, or can be manually set by the user.
具体的,本发明实施例中,在电子设备接收到用户触发的截图输入(或截屏输入)获取第一图像之后,若电子设备确定第一界面满足预设条件,则表示第一界面中的内容发生了调整,例如用户触发调整,电子设备自动调整等,例如第一界面,用户有较大的概率需要重新对第一界面截图,则电子设备可以对第一界面重新截图。Specifically, in this embodiment of the present invention, after the electronic device receives the screenshot input (or screenshot input) triggered by the user to obtain the first image, if the electronic device determines that the first interface satisfies the preset condition, it indicates that the content in the first interface When adjustment occurs, such as user-triggered adjustment, electronic device automatic adjustment, etc., such as the first interface, if the user needs to re-screenshot the first interface with a high probability, the electronic device can re-screenshot 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 captured, if the user triggers the electronic device to switch to another interface, such as switching to another interface of the current application, or switching applications, or returning to the desktop, the electronic device can determine that the user No need to re-screenshot anymore. If after capturing the first image, the user switches from the first interface to the second interface within the first preset time period, switches to the first interface again to input the preset input, or keeps displaying the first interface, in the first interface If the preset input is input within a preset time period, the electronic device can determine that the user needs to take another screenshot.
具体的,第一预设时长可以为系统默认的、或者用户设置的、或者根据用户的操作习惯确定的,本发明实施例对此不作具体限定。Specifically, the first preset duration may be a system default, or set by a user, or determined according to a user's operating habits, which is not specifically limited in this embodiment of the present invention.
比如,用户在目标时间段内的平均操作事件间隔为T秒,则第一预设时长可以为K×T秒,例如K可以取5、10、15、20等。假设T=1.5秒,K=20时,第一预设时长可以为30秒。For example, if the average operation event interval of the user in the target time period is T seconds, the first preset duration may be K×T seconds, for example, K may be 5, 10, 15, 20, and so on. Assuming that T=1.5 seconds and K=20, the first preset duration may be 30 seconds.
例如,调整第一界面中目标内容显示范围的输入可以为:滑动距离小于或等于预设距离的滑动输入。若电子设备检测到第一输入为滑动距离小于或等于预设距离的滑动输入,则可以确定第一输入为预设输入。For example, the input for adjusting the display range of the target content in the first interface may be: a sliding input whose sliding distance is less than or equal to a preset distance. If the electronic device detects that the first input is a sliding input whose sliding distance is less than or equal to the preset distance, it may determine that the first input is the preset input.
示例性的,若第一界面为显示电子书的第一章节的界面,在用户通过截屏操作触发电子设备截屏得到图像1之后,若电子设备检测到用户在第一章节的界面中在屏幕上自上向下滑动了1厘米,使得原先没有在界面中显示的一段文字显示在界面中,若当前在界面中显示的内容和图像1中的内容相似度超过了80%(目标相似度),则电子设备可以确定该滑动输入为预设输入。Exemplarily, if the first interface is an interface for displaying the first chapter of the e-book, after the user triggers the electronic device to capture the image 1 through the screenshot operation, if the electronic device detects that the user is on the screen in the interface of the first chapter Swipe 1 cm from top to bottom, so that a piece of text that was not displayed in the interface is displayed in the interface. If the similarity between the content currently displayed in the interface and the content in image 1 exceeds 80% (target similarity) , the electronic device can determine that the sliding input is a preset input.
示例性的,在本发明实施例中,可以通过像素点的颜色判断第一图像和调整显示范围后的第一界面中的目标内容的相似度。Exemplarily, in this embodiment of the present invention, the similarity between the first image and the target content in the first interface after adjusting the display range may be judged by the color of the pixels.
在本发明实施例中,第一界面的类型不同,具体的编辑输入可以相同,也可以不同;第一界面的类型不同,上述的预设距离的具体大小可以不同,也可以相同,本发明实施例对此不作具体限定。In the embodiment of the present invention, the type of the first interface is different, and the specific editing input may be the same or different; the type of the first interface is different, the specific size of the above-mentioned preset distance may be different or the same, the present invention implements This example is not specifically limited.
本发明实施例提供的截图方法,电子设备在显示第一界面的情况下,对第一界面进行截图,得到第一图像,之后电子设备在接收到用户在第一界面上的第一输入为预设输入,或者第一界面满足预设条件的情况下,对第一界面进行重新截图,得到第二图像。其中,预设输入可以包括:编辑输入、调整分屏占比的输入以及调整第一界面中目标内容显示范围的输入中的至少一项;第一界面满足预设条件为在第一界面中当前显示的目标内容不同于第一图像中的目标内容,且与第一图像中的目标内容的相似度大于或等于目标相似度。由于第一输入为预设输入或第一界面满足预设条件均可以表示用户有较大的概率需要重新截图,因此电子设备在用户有较大概率需要重新截图的情况下对第一界面自动重新截图,可以简化用户的操作,例如用户在截图之后,发现截图的内容中包括不准确的内容或者存在一些隐私的内容的情况下,在用户返回第一界面中修改或者调整之后,电子设备自动重新截图可以避免用户忘记截图导致后续使用截图的不便,从而使得用户使用电子设备更加便捷。In the screenshot method provided by the embodiment of the present invention, when the electronic device displays the first interface, the electronic device takes a screenshot of the first interface to obtain the first image, and then the electronic device receives the first input from the user on the first interface as a preset Set the input, or if the first interface satisfies the preset condition, take a screenshot of the first interface again to obtain the second image. Wherein, the preset input may include: at least one of editing input, input for adjusting the split screen ratio, and input for adjusting the display range of the target content in the first interface; the first interface satisfying the preset condition is that in the first interface the current The displayed target content is different from the target content in the first image, and the similarity with the target content in the first image is greater than or equal to the target similarity. Since the first input is a preset input or the first interface satisfies the preset conditions, it may indicate that the user has a high probability to need to take a screenshot again. Therefore, the electronic device automatically re-screens the first interface when the user has a high probability that the screenshot needs to be taken again. Taking a screenshot can simplify the user's operation. For example, after the user takes a screenshot and finds that the content of the screenshot includes inaccurate content or some private content, after the user returns to the first interface to modify or adjust, the electronic device automatically resets the screen. The screenshot can avoid the inconvenience of subsequent use of the screenshot caused by the user forgetting to take the screenshot, thereby making it more convenient for the user to use the electronic device.
可选地,本发明实施例提供的截图方法中,在上述的S202之前,还可以包括下述的S203和S204:Optionally, in the screenshot method provided by the embodiment of the present invention, before the above-mentioned S202, the following S203 and S204 may be further included:
S203、在接收到用户在第一界面的第一输入为预设输入,或者第一界面满足预设条件的情况下,电子设备显示目标信息,目标信息用于提示用户是否截图。S203. When receiving that the user's first input on the first interface is a preset input, or the first interface satisfies a preset condition, the electronic device displays target information, and the target information is used to prompt the user whether to take a screenshot.
S204、电子设备接收用户的第二输入,第二输入为用户确定截图的输入。S204. The electronic device receives a second input from the user, where the second input is an input for the user to determine a screenshot.
进而,上述的S202可以通过下述的S202a执行:Further, the above-mentioned S202 can be performed by the following S202a:
S202a、电子设备响应于第二输入,截屏获取第二图像。S202a, in response to the second input, the electronic device takes a screenshot to acquire a second image.
具体的,电子设备在判断第一输入为预设输入之后,或者确定第一界面满足预设条件,则电子设备可以调用或生成询问指令,电子设备根据该询问指令在屏幕上显示目标信息,以提示用户是否需要重新截图。Specifically, after the electronic device determines that the first input is a preset input, or determines that the first interface satisfies a preset condition, the electronic device can 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 if they need to take a screenshot again.
可选地,电子设备可以在接收到第一输入的过程中,显示目标信息,也可以在接收到第一输入之后,显示目标信息,本发明实施例对此不作具体限定。Optionally, the electronic device may display the target information during the 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 maintaining the display of the first interface, and the electronic device may also cancel the display of the target information after displaying the target information for a second preset duration. There is no specific limitation.
可选地,电子设备可以在显示目标信息时,可以显示用户可以对目标信息操作的有效时长为第二预设时长。示例性的,电子设备可以在显示目标信息时,以倒计时的方式显示用户可以操作的有效时长。例如,第二预设时长为10秒,则电子设备可以随着时间更新有效操作时长为9秒、8秒、7秒,直到1秒,以提示用户在剩余时长内可以对目标提示信息操作。Optionally, when displaying the target information, the electronic device may display that the effective duration that the user can operate on the target information is the second preset duration. Exemplarily, when displaying the target information, the electronic device may display the effective time period that the user can operate in a countdown manner. For example, if the second preset duration is 10 seconds, the electronic device can update the effective operation duration to 9 seconds, 8 seconds, 7 seconds, and up to 1 second over time, so as to remind the user that the target prompt information can be operated within the remaining 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. In the case where the target information is a sub-interface (or dialog box), the sub-interface may include a control for determining a screenshot, and the control for determining a screenshot may be a shortcut screenshot control, and the user can operate the shortcut control to trigger the electronic device to quickly Screenshot.
示例性的,图3为本发明实施例提供的一种目标信息的示意图,如图3中的(a)所示,用户在电子设备的记事本界面中输入了一段文字之后,用户通过截屏输入获取到当前界面的截屏图像2,在获取到截屏图像2之后,若电子设备检测到用户返回到记事本界面(即第一界面)进行内容修改,比如将“300年”修改为“30年”(即第一输入),则如图3中的(b)所示,电子设备可以在记事本界面上显示悬浮显示“重新截屏”控件31;如图3中的(c)所示,电子设备也可以在记事本界面上显示子界面32,子界面32中显示“检测到当前截图界面有修改,是否重新截图?”以及选择按钮32a“是”和按钮32b“否”;当然,如图3中的(d)所示,电子设备还可以在通知栏的下拉菜单中显示控件33,该控件33可以用于用户截屏。Exemplarily, FIG. 3 is a schematic diagram of a kind of target information provided by an embodiment of the present invention. As shown in (a) of FIG. 3 , after the user enters a piece of text in the notepad interface of the electronic device, the user enters the text by taking a screenshot. The screenshot image 2 of the current interface is obtained. After the screenshot image 2 is obtained, if the electronic device detects that the user returns to the notepad interface (ie, the first interface) to modify the content, for example, change "300 years" to "30 years" (ie the first input), then as shown in (b) in FIG. 3 , the electronic device can display the “re-screenshot”
需要说明的是,在图3中的(d)中,控件33可以显示在通知栏的第一排控件的位置,即图3中所示的位置,也可以显示在第一排的最后一个位置。在超过第二预设时长之后,电子设备可以取消显示控件33。It should be noted that, in (d) of FIG. 3 , the
可选地,电子设备可以以预设透明度在第一界面上叠加显示目标信息。Optionally, the electronic device may superimpose and display the target information on the first interface with preset transparency.
可选地,可以为用户在目标信息上触发的截屏输入,第二输入也可以为常规的截屏输入,例如指关节双击屏幕,同时按压电源键和音量键,本发明实施例对此不作具体限定。Optionally, it may be a screen capture input triggered by the user on the target information, and the second input may also be a conventional screen capture input, such as double-clicking the screen with a knuckle and pressing the power button and the volume button at the same time, which is not specifically limited in this embodiment of the present invention. .
结合图3,用户可以点击图3中的(b)中所示的“重新截屏”控件31(即第二输入)触发电子设备截屏,用户也可以点击图3中的(c)中所示的按钮32a“是”(即第二输入)触发电子设备截屏,当然用户也可以点击按钮32b“否”不触发电子设备截屏,用户还可以点击图3中的(d)所示的控件33(即第二输入),触发电子设备截屏。In conjunction with Fig. 3, the user can click the "re-screenshot" control 31 (ie the second input) shown in Fig. 3 (b) to trigger the electronic device to take a screenshot, and the user can also click the "re-screenshot" shown in Fig. 3 (c)
基于该方案,电子设备在截图获取第一图像之后,若接收到用户的第一输入为预设输入,或者确定第一界面满足预设条件,则电子设备可以在显示界面上显示目标信息,提示用户是否需要重新截图,然后根据用户的输入确定是否重新截图,若接收到用户确定需要重新截图的第二输入,则电子设备在第一界面上重新截图,从而可以灵活地提示用户根据需要快速地重新截图,人机交互性能更佳。Based on this solution, after the electronic device captures the first image by taking a screenshot, if the first input from the user is received as a preset input, or if it is determined that the first interface satisfies the preset condition, the electronic device can display the target information on the display interface, prompting Whether the user needs to take a screenshot again, and then determine whether to take a screenshot again according to the user's input, if the second input that the user determines that the screenshot needs to be taken again is received, the electronic device will take a screenshot on the first interface again, so that the user can be flexibly prompted to quickly as needed. Take screenshots again for better human-computer interaction performance.
可选地,本发明实施例提供的截图方法中,上述的S202还可以通过下述的S202b1执行,上述的S202a还可以通过下述的S202b2执行:Optionally, in the screenshot method provided by the embodiment of the present invention, the above S202 may also be performed by the following S202b1, and the above S202a may also be performed by the following S202b2:
S202b1、电子设备在接收到用户在第一界面的第一输入为预设输入,或者第一界面满足预设条件的情况下,对第一界面进行截图,得到第二图像,并删除第一图像。S202b1. When receiving that the first input from the user on the first interface is a preset input, or the first interface satisfies a preset condition, the electronic device takes a screenshot of the first interface, obtains a second image, and deletes the first image .
S202b2、电子设备响应于第二输入,截屏获取第二图像,并删除第一图像。S202b2. In response to the second input, the electronic device takes a screenshot to acquire the second image, and deletes the first image.
可以理解,若用户需要重新截图,用户可以通过第二输入触发电子设备截图,电子设备接收到用户截图的指令,可以截屏获取新的截图图像,并将原先针对第一界面截屏得到的第一图像删除,不仅可以节约电子设备中的存储空间,还可以降低用户后续对截屏图片操作时的辨认失误率。It can be understood that if the user needs to take a screenshot again, the user can trigger the electronic device to take a screenshot through the second input, and the electronic device receives the user's screenshot instruction, and can take a screenshot to obtain a new screenshot image, and the first image obtained by taking a screenshot of the first interface. Deletion can not only save the storage space in the electronic device, but also reduce the recognition error rate when the user performs subsequent operations on the screenshot.
基于该方案,在电子设备根据上述的方案,对第一界面重新截图得到第二图像之后,电子设备删除在第一输入之前针对第一界面截图获取的第一图像。无需用户触发电子设备返回到截图相册中删除第一图像,不仅简化了用户操作的步骤,提高用户的操作效率,而且节约了电子设备的存储空间,还可以降低用户后续对使用截屏图像时辨认图像的失误率,使得用户体验更佳。Based on this solution, after the electronic device re-screens the first interface to obtain the second image according to the above solution, the electronic device deletes the first image captured for the first interface before the first input. There is no need for the user to trigger the electronic device to return to the screenshot album to delete the first image, which not only simplifies the user's operation steps, improves the user's operation efficiency, but also saves the storage space of the electronic device, and can also reduce the user's subsequent recognition of the image when using the screenshot image. error rate, making the user experience better.
可选地,获取第一图像时第一界面的类型不同,第一输入可以对应不同类型的预设输入。其中,第一界面为以下任意一项:编辑类界面、聊天记录界面、媒体播放类界面、阅读类界面、游戏类型界面。具体可以分为以下(1)至(7)的7个情况:Optionally, the types of the first interface are different when the first image is acquired, and the first input may correspond to different types of preset inputs. The first interface is any one of the following: an editing interface, a chat record interface, a media playing interface, a reading interface, and a game interface. Specifically, it can be divided into the following 7 cases (1) to (7):
(1)在第一界面为文本编辑类型界面的情况下,编辑输入可以包括:文本输入(比如唤醒输入法,并输入文本)、文本删除、文本替换、文本粘贴中的至少一项。(1) When the first interface is a text editing type interface, the editing input may include at least one of text input (eg, wake up the input method and input text), text deletion, text replacement, and text paste.
例如,文本编辑类型界面可以为:记事本(备忘录)的界面、联系人信息编辑界面、短信编辑界面、网页中填入信息的界面或即时通讯应用编辑待发送的信息的界面等。For example, the text editing type interface may be: a notepad (memo) interface, a contact information editing interface, a short message editing interface, an interface for filling in information in a webpage, or an interface for an instant messaging application to edit information to be sent.
可以理解,用户在显示第一界面的情况下,在截图后的第一时长内,在第一界面中进行的修改,可能是用户发现输错了内容或者少输入了内容。比如用户在记事本界面中编辑了一部分文本之后截图向其他用户分享,分享之前用户发现文本中存在输错的内容,或者包括了隐私内容,或者与聊天主题不相关的内容,或者需要再输入更多的内容。则电子设备在该记事本界面接收到上述的编辑输入之后,可以显示目标信息(比如快捷截图控件)。It can be understood that when the user displays the first interface, the modification made in the first interface within the first time period after the screenshot is taken may be caused by the user discovering that the user has entered wrong content or has input less content. For example, after a user edits a part of the text in the Notepad interface, a screenshot is shared with other users. Before sharing, the user finds that there is a wrong type of content in the text, or contains private content, or content that is not related to the chat topic, or needs to enter more information. a lot of content. Then, after receiving the above-mentioned editing input on the notepad interface, the electronic device can display target information (such as a shortcut screenshot control).
(2)在第一界面为图像编辑类界面的情况下,编辑输入可以为裁剪、添加内容、移除内容、切换显示效果中的至少一项。(2) When the first interface is an image editing interface, the editing input may be at least one of cropping, adding content, removing content, and switching display effects.
其中,添加或移除的内容可以包括:马赛克、涂鸦、水印、标注。切换显示效果可以包括:旋转、添加或更换滤镜、加入虚化、调整亮度、调整对比度、调整饱和度等。The added or removed content may include: mosaics, graffiti, watermarks, and annotations. Switching display effects can include: rotating, adding or replacing filters, adding blur, adjusting brightness, adjusting contrast, adjusting saturation, etc.
例如,图像编辑类界面可以为从相册中触发的图像编辑界面,也可以为从网页中触发的图像编辑界面,也可以为从其他应用(例如即时通讯应用、新闻类应用)中触发的图像编辑界面。For example, the image editing interface can be an image editing interface triggered from a photo album, an image editing interface triggered from a web page, or an image editing interface triggered from other applications (such as instant messaging applications, news applications) interface.
示例性的,用户在网页中浏览到一张图像,用户在该网页中触发显示图像编辑界面,用户在该编辑界面先对对象进行了一次编辑(可以包括多个输入),然后用户触发电子设备截图,在截图之后,用户觉得当前滤镜效果不佳,用户可以在该图像编辑界面中切换滤镜。则在电子设备接收到用户在该图像编辑界面中切换滤镜之后,可以显示目标信息。Exemplarily, the user browses to an image in the web page, the user triggers the display of an image editing interface in the web page, the user edits the object once (which may include multiple inputs) in the editing interface, and then the user triggers the electronic device. Take a screenshot. After taking a screenshot, the user feels that the current filter effect is not good, and the user can switch the filter in the image editing interface. Then, after the electronic device receives that the user switches the filter in the image editing interface, the target information can be displayed.
(3)在第一界面为具有即时通讯功能的聊天界面的情况下,预设输入可以为用户删除当前聊天界面中的部分聊天记录的输入,也可以为用户在聊天记录页面的滑动距离小于或等于预设距离的输入。(3) In the case where the first interface is a chat interface with an instant messaging function, the preset input may be the input for the user to delete part of the chat record in the current chat interface, or the user's sliding distance on the chat record page is less than or Input equal to preset distance.
示例性的,用户在和第一联系人聊天时,需要发送用户和第二联系人的聊天记录,用户可以在电子设备显示第二联系人的聊天界面的情况下截屏,在截屏之后,用户发现截屏图片中包含了不适合让第一联系人看到一条聊天记录(比如包括隐私内容或者跟聊天主题无关的内容),在电子设备接收到用户在第二联系人的聊天界面中删除了一条聊天记录或者滑动使得其中一条聊天记录不在显示范围之后,电子设备可以显示目标信息。Exemplarily, when the user chats with the first contact, the user needs to send the chat record of the user and the second contact. The user can take a screenshot when the electronic device displays the chat interface of the second contact. After the screenshot, the user finds that The screenshot contains a chat record that is not suitable for the first contact to see (for example, including private content or content unrelated to the chat topic), and the electronic device receives that the user deletes a chat in the chat interface of the second contact After recording or sliding so that one of the chat records is out of the display range, the electronic device can display the target information.
(4)在第一界面为音频播放类界面或视频播放类界面的情况下,预设输入可以为用户拖动进度条滑动预设距离的输入,该滑动输入用于调整播放进度。(4) When the first interface is an audio playing interface or a video playing interface, the preset input may be an input in which the user drags the progress bar to slide a preset distance, and the sliding input is used to adjust the playing progress.
比如,用户可能需要截屏获取到特定的歌词,或者截取到特定的画面,而第一图像中未能成功截取到用户需要的内容,则在电子设备接收到用户调整进度条的输入之后,电子设备可以显示目标信息。For example, the user may need to take screenshots to obtain specific lyrics, or to capture a specific picture, but the content required by the user cannot be successfully captured in the first image, after the electronic device receives the user's input to adjust the progress bar, the electronic device Target information can be displayed.
(5)在第一界面为网页类型的界面的情况下,预设输入可以为用户在屏幕上滑动(向上或者向下)预设距离的输入。(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 is watching news or novels and other types of content, he wants to take a screenshot of the content displayed in the interface, but the user is not satisfied with the content of the original screenshot. The user can slide on the interface to re-adjust the position. When the user slides the electronic device up and down Or after the sliding stops, the target information can be displayed at this time.
(6)在第一界面为游戏类型的界面的情况下,预设输入可以为调整游戏界面中角色的姿势或造型的输入。(6) When the first interface is a game-type interface, the preset input may be an input for adjusting the posture or shape of the character in the game interface.
例如,调整游戏中角色的服饰,调整游戏中角色的站姿。For example, adjust the clothing of the characters in the game, and adjust the standing posture of the characters in the game.
示例性的,用户在玩游戏1过程中,需要向朋友发送一张游戏1的图像,用户在截图获得一张截图图像之后发现不满意,用户在游戏1界面中调整一下角色的服饰或站姿中的至少一项,此时可以显示目标信息。Exemplarily, in the process of playing Game 1, the user needs to send an image of Game 1 to a friend. The user finds that he is dissatisfied after taking a screenshot and obtains a screenshot image, and the user adjusts the character's clothing or stance in the Game 1 interface. At least one of the target information can be displayed at this time.
需要说明的是,在第一界面为分屏显示的情况下,若第一界面中包括上述(1)至(6)中任意一个界面的情况下,预设输入可以为上述各个情况对应的具体输入,预设输入还可以为用户在电子设备分屏显示的情况下,调整分屏占比的输入。It should be noted that, in the case where the first interface is a split-screen display, if the first interface includes any one of the interfaces (1) to (6) above, the preset input may be the specific input corresponding to each of the above situations. Input, the preset input can also be an input for adjusting the split screen ratio by the user in the case of split screen display of the electronic device.
例如,第一界面为1/2分屏,上半屏为第一应用的显示界面,下半屏为第二应用的显示界面,在电子设备截屏获取图像之后,若用户调整了分屏占比,例如第一应用的显示界面占屏幕的2/3,第二应用的显示界面占屏幕的1/3,此时电子设备可以显示目标信息。For example, the first interface is a 1/2 split screen, the upper half of the screen is the display interface of the first application, and the bottom half of the screen is the display interface of the second application. 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. At this time, the electronic device can display the target information.
基于该方案,电子设备可以根据不同的场景,结合不同的预设输入,确定用户是否需要重新截图,确定维度多种多样,可以应用于各种不同的场景为用户显示提示信息,在用户编辑或调整第一界面中的内容的情况下,提示用户是否需要重新截图,提高了用户使用电子设备的用户体验。Based on this solution, the electronic device can determine whether the user needs to take another screenshot according to different scenarios and combined with different preset inputs. The determination dimension is varied, and it can be applied to various scenarios to display prompt information for the user. In the case of adjusting the content in the first interface, the user is prompted whether a screenshot needs to be taken again, which improves the user experience of the user using the electronic device.
图4为本发明实施例提供的一种截图装置可能的结构示意图,如图4所示,截图装置400包括:截图模块401;截图模块401,用于在显示第一界面的情况下,对第一界面进行截图,得到第一图像;在接收到用户在第一界面的第一输入为预设输入,或者第一界面满足预设条件的情况下,对第一界面进行截图,得到第二图像;其中,预设输入包括:编辑输入、调整分屏占比的输入以及调整第一界面中目标内容显示范围的输入中的至少一项;第一界面满足预设条件为在第一界面中当前显示的目标内容不同于第一图像中的目标内容,且与第一图像中的目标内容的相似度大于或等于目标相似度。FIG. 4 is a schematic diagram of a possible structure of a screenshot device according to an embodiment of the present invention. As shown in FIG. 4 , the
可选地,结合图4,如图5所示,截图装置400还包括:显示模块402和接收模块403;显示模块402,用于在截图模块401对第一界面进行截图,得到第二图像之前,在接收到用户在第一界面的第一输入为预设输入,或者第一界面满足预设条件的情况下,显示目标信息,该目标信息用于提示用户是否重新截图;接收模块403,用于接收用户的第二输入,第二输入为用户确定重新截图的输入;截图模块401,具体用于响应于接收模块403接收的第二输入,在第一界面上进行截图,得到第二图像。Optionally, with reference to FIG. 4 , as shown in FIG. 5 , the
可选地,预设输入为在电子设备得到第一图像之后的第一预设时长内,在第一界面上的输入。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.
可选地,显示模块402,还用于在显示目标信息第二预设时长之后,取消显示目标信息。Optionally, the
可选地,第一界面的类型不同,预设输入不同;其中,第一界面为以下任意一项:编辑类界面、聊天记录界面、媒体播放类界面、阅读类界面、游戏类型界面。Optionally, the types of the first interface are different, and the preset inputs are different; wherein, the first interface is any one of the following: an editing interface, a chat record interface, a media playing interface, a reading interface, and a game interface.
本发明实施例提供的截图装置400能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The
本发明实施例提供一种截图装置,截图装置在显示第一界面的情况下,对第一界面进行截图,得到第一图像,之后截图装置在接收到用户在第一界面上的第一输入为预设输入,或者第一界面满足预设条件的情况下,对第一界面进行重新截图,得到第二图像。其中,预设输入可以包括:编辑输入、调整分屏占比的输入以及调整第一界面中目标内容显示范围的输入中的至少一项;第一界面满足预设条件为在第一界面中当前显示的目标内容不同于第一图像中的目标内容,且与第一图像中的目标内容的相似度大于或等于目标相似度。由于第一输入为预设输入或第一界面满足预设条件均可以表示用户有较大的概率需要重新截图,因此截图装置在用户有较大概率需要重新截图的情况下对第一界面自动重新截图,可以简化用户的操作,例如用户在截图之后,发现截图的内容中包括不准确的内容或者存在一些隐私的内容的情况下,在用户返回第一界面中修改或者调整之后,截图装置自动重新截图可以避免用户忘记截图导致后续使用截图的不便,从而使得用户使用截图装置更加便捷。An embodiment of the present invention provides a screenshot device. When the first interface is displayed, the screenshot device takes a screenshot of the first interface to obtain a first image. After that, the screenshot device receives a first input from a user on the first interface as: The preset input, or when the first interface satisfies the preset condition, re-screenshot the first interface to obtain the second image. Wherein, the preset input may include: at least one of editing input, input for adjusting the split screen ratio, and input for adjusting the display range of the target content in the first interface; the first interface satisfying the preset condition is that in the first interface the current The displayed target content is different from the target content in the first image, and the similarity with the target content in the first image is greater than or equal to the target similarity. Since the first input is a preset input or the first interface satisfies the preset conditions, it may indicate that the user has a high probability to take a screenshot again. Therefore, the screenshot device automatically re-screens the first interface when the user has a high probability to take a screenshot again. Taking a screenshot can simplify the user's operation. For example, after the user takes a screenshot and finds that the content of the screenshot includes inaccurate content or some private content, after the user returns to the first interface to modify or adjust, the screenshot device automatically resets the screenshot. The screenshot can avoid the inconvenience of subsequent use of the screenshot caused by the user forgetting to take the screenshot, thereby making it more convenient for the user to use the screenshot device.
图6为本发明实施例提供的一种电子设备的硬件示意图,该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、以及计步器等。6 is a hardware schematic diagram of an electronic device provided by an embodiment of the present invention. The
其中,处理器110,用于在显示第一界面的情况下,对第一界面进行截图,得到第一图像;在接收到用户在第一界面的第一输入为预设输入,或者第一界面满足预设条件的情况下,对第一界面进行截图,得到第二图像;其中,预设输入包括:编辑输入、调整分屏占比的输入以及调整第一界面中目标内容显示范围的输入中的至少一项;第一界面满足预设条件为在第一界面中当前显示的目标内容不同于第一图像中的目标内容,且与第一图像中的目标内容的相似度大于或等于目标相似度。The
本发明实施例提供一种电子设备,电子设备在显示第一界面的情况下,对第一界面进行截图,得到第一图像,之后电子设备在接收到用户在第一界面上的第一输入为预设输入,或者第一界面满足预设条件的情况下,对第一界面进行重新截图,得到第二图像。其中,预设输入可以包括:编辑输入、调整分屏占比的输入以及调整第一界面中目标内容显示范围的输入中的至少一项;第一界面满足预设条件为在第一界面中当前显示的目标内容不同于第一图像中的目标内容,且与第一图像中的目标内容的相似度大于或等于目标相似度。由于第一输入为预设输入或第一界面满足预设条件均可以表示用户有较大的概率需要重新截图,因此电子设备在用户有较大概率需要重新截图的情况下对第一界面自动重新截图,可以简化用户的操作,例如用户在截图之后,发现截图的内容中包括不准确的内容或者存在一些隐私的内容的情况下,在用户返回第一界面中修改或者调整之后,电子设备自动重新截图可以避免用户忘记截图导致后续使用截图的不便,从而使得用户使用电子设备更加便捷。An embodiment of the present invention provides an electronic device. In the case of displaying a first interface, the electronic device takes a screenshot of the first interface to obtain a first image, and then the electronic device receives a first input from a user on the first interface as: The preset input, or when the first interface satisfies the preset condition, re-screenshot the first interface to obtain the second image. Wherein, the preset input may include: at least one of editing input, input for adjusting the split screen ratio, and input for adjusting the display range of the target content in the first interface; the first interface satisfying the preset condition is that in the first interface the current The displayed target content is different from the target content in the first image, and the similarity with the target content in the first image is greater than or equal to the target similarity. Since the first input is a preset input or the first interface satisfies the preset conditions, it may indicate that the user has a high probability to need to take a screenshot again. Therefore, the electronic device automatically re-screens the first interface when the user has a high probability that the screenshot needs to be taken again. Taking a screenshot can simplify the user's operation. For example, after the user takes a screenshot and finds that the content of the screenshot includes inaccurate content or some private content, after the user returns to the first interface to modify or adjust, the electronic device automatically resets the screen. The screenshot can avoid the inconvenience of subsequent use of the screenshot caused by the user forgetting to take the screenshot, thereby making it more convenient for the user to use the electronic device.
应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the
电子设备通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides the user with wireless broadband Internet access through the
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与电子设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The
电子设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在电子设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The
用户输入单元107可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图6中,触控面板1071与显示面板1061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the
接口单元108为外部装置与电子设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备100内的一个或多个元件或者可以用于在电子设备100和外部装置之间传输数据。The
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
处理器110是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器110可包括一个或多个处理单元;优选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The
电子设备100还可以包括给各个部件供电的电源111(比如电池),优选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The
另外,电子设备100包括一些未示出的功能模块,在此不再赘述。In addition, the
可选地,本发明实施例还提供一种电子设备,结合图6,包括处理器110,存储器109,存储在存储器109上并可在处理器110上运行的计算机程序,该计算机程序被处理器110执行时实现上述截图方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present invention further provides an electronic device, with reference to FIG. 6 , comprising a
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述截图方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Embodiments of the present invention further provide 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, each process of the foregoing screenshot method embodiment can be achieved, and the same technical effect can be achieved , in order to avoid repetition, it will not be repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disk.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.
Claims (10)
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)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115048009B (en) * | 2021-02-26 | 2024-12-06 | 京东方科技集团股份有限公司 | Dialogue interface interception 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)
| 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 | 维沃移动通信有限公司 | Screen capture 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)
| 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 | 维沃移动通信有限公司 | Image processing method and terminal device |
-
2020
- 2020-04-16 CN CN202010301669.XA patent/CN111610909B/en active Active
Patent Citations (5)
| 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 | 维沃移动通信有限公司 | Screen capture 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 |
|---|---|---|
| WO2021104365A1 (en) | Object sharing method and electronic device | |
| WO2019137429A1 (en) | Picture processing method and mobile terminal | |
| CN111124245B (en) | A control method and electronic device | |
| CN108595237A (en) | A kind of method and terminal of display content | |
| CN109871164B (en) | Message sending method and terminal equipment | |
| CN110888707A (en) | Message sending method and electronic equipment | |
| WO2021169954A1 (en) | Search method and electronic device | |
| CN109828731B (en) | A search method and terminal device | |
| CN110865745A (en) | Screen capturing method and terminal equipment | |
| WO2019149028A1 (en) | Application download method and terminal | |
| US12028476B2 (en) | Conversation creating method and terminal device | |
| CN109976640A (en) | A kind of content copying methods and terminal | |
| CN111383175A (en) | Picture acquisition method and electronic equipment | |
| WO2020192299A1 (en) | Information display method and terminal device | |
| CN110855921B (en) | Video recording control method and electronic equipment | |
| CN110647277A (en) | A control method and terminal device | |
| CN109976611A (en) | The control method and terminal device of terminal device | |
| CN111399715A (en) | Interface display method and electronic device | |
| CN108733772A (en) | A kind of file delet method and terminal device | |
| WO2021057301A1 (en) | File control method and electronic device | |
| WO2021017691A1 (en) | Content display method and terminal device | |
| CN109800095B (en) | Notification message processing method and mobile terminal | |
| CN111459603A (en) | Icon display method and electronic equipment | |
| CN111090529B (en) | Information sharing method and electronic equipment | |
| CN111610909B (en) | Screenshot method and device 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 |