






技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种变焦方法及电子设备。Embodiments of the present invention relate to the field of communication technologies, and in particular, to a zoom method and an electronic device.
背景技术Background technique
随着电子技术和拍摄技术的发展,人们对图像的拍摄质量要求越来越高。对于位于较远处的拍摄物体,通常可以采用变焦技术,提升拍摄物体的成像区域大小。但是,在用户触发电子设备变焦之后,如果通过摄像头采集的预览图像中的物体不是用户想要的目标物体,那么用户需要寻找目标物体。With the development of electronic technology and shooting technology, people have higher and higher requirements for the shooting quality of images. For objects that are located farther away, zoom technology can usually be used to increase the size of the imaging area of the object. However, after the user triggers the electronic device to zoom, if the object in the preview image captured by the camera is not the target object that the user wants, the user needs to find the target object.
目前,在电子设备保持变焦的情况下,用户可以通过移动摄像头寻找目标物体,但是用户稍微移动摄像头就可能会导致预览图像中的物体移动较长距离,从而用户可能需要反复移动摄像头以寻找到目标物体,使得耗费时间较长。如此,当变焦后采集的预览图像中的物体不是目标物体时,如何快速寻找到目标物体成为亟待解决的技术问题。At present, when the electronic device maintains the zoom, the user can move the camera to find the target object. However, if the user moves the camera slightly, the object in the preview image may move a long distance, so the user may need to move the camera repeatedly to find the target. objects, making it time-consuming. In this way, when the object in the preview image collected after zooming is not the target object, how to quickly find the target object becomes a technical problem to be solved urgently.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种变焦方法及电子设备,以解决当变焦后采集的预览图像中的物体不是目标物体时,如何快速寻找到目标物体的问题。Embodiments of the present invention provide a zooming method and electronic device to solve the problem of how to quickly find the target object when the object in the preview image collected after zooming is not the target object.
为了解决上述技术问题,本发明实施例是这样实现的: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 zooming method. The method includes: receiving a first input of a target object in the first image when the first area displays the first image collected by the first camera, and the second area displays the second image collected by the second camera; In response to the first input, prompt information is displayed, the prompt information is used to prompt the user to move the electronic device to move the target object to the target position in the first area; after the target object moves to the target position in the first area, the prompt information is displayed in the second area A third image collected by the second camera, the third image includes the target object; wherein, the zoom factor of the second camera is greater than the zoom factor of the second camera.
第二方面,本发明实施例提供了一种电子设备。该电子设备包括接收模块和显示模块。接收模块,用于在第一区域显示通过第一摄像头采集的第一图像,且第二区域显示通过第二摄像头采集的第二图像的情况下,接收对第一图像中目标对象的第一输入。显示模块,用于响应于接收模块接收的第一输入,显示提示信息,提示信息用于提示用户移动电子设备以将目标对象移动至第一区域的目标位置。显示模块,还用于在目标对象移动至第一区域的目标位置之后,在第二区域显示通过第二摄像头采集的第三图像,该第三图像包括该目标对象。其中,第二摄像头的变焦倍数大于第一摄像头的变焦倍数。In a second aspect, an embodiment of the present invention provides an electronic device. The electronic device includes a receiving module and a display module. a receiving module, configured to receive a first input of the target object in the first image when the first area displays the first image collected by the first camera, and the second area displays the second image collected by the second camera . The display module is used for displaying prompt information in response to the first input received by the receiving module, where the prompt information is used to prompt the user to move the electronic device to move the target object to the target position in the first area. The display module is further configured to display a third image captured by the second camera in the second area after the target object moves to the target position in the first area, where the third image includes the target object. The zoom factor of the second camera is greater than the zoom factor of the first camera.
第三方面,本发明实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现第一方面提供的变焦方法的步骤。In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to implement the first Aspects provide steps of a zoom method.
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现第一方面提供的变焦方法的步骤。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, implements the steps of the zoom method provided in the first aspect.
在本发明实施例中,在第一区域显示通过第一摄像头采集的第一图像,且第二区域显示通过第二摄像头采集的第二图像的情况下,可以接收对第一图像中目标对象的第一输入;并响应于第一输入,显示提示信息,提示信息用于提示用户移动电子设备以将目标对象移动至第一区域的目标位置;以及在目标对象移动至第一区域的目标位置之后,在第二区域显示通过第二摄像头采集的第三图像,该第三图像包括该目标对象;其中,第二摄像头的变焦倍数大于第二摄像头的变焦倍数。通过该方案,由于电子设备可以在不同区域分别显示通过不同变焦倍数的摄像头采集的图像,因此当高倍变焦摄像头采集的图像中的物体不是用户想要的目标对象时,用户可以选择正常变焦摄像头采集的图像中的目标对象,并根据电子设备的提示将目标对象移动到目标位置,从而可以将高倍变焦摄像头采集的图像更新为目标对象的图像。如此,本发明实施例可以快速寻找到目标物体,并提高用户的操作体验感。In this embodiment of the present invention, when the first area displays the first image collected by the first camera, and the second area displays the second image collected by the second camera, it is possible to receive information about the target object in the first image. a first input; and in response to the first input, displaying prompt information for prompting the user to move the electronic device to move the target object to the target position in the first area; and after the target object moves to the target position in the first area , displaying a third image collected by the second camera in the second area, where the third image includes the target object; wherein, the zoom factor of the second camera is greater than the zoom factor of the second camera. With this solution, since the electronic device can display images captured by cameras with different zoom ratios in different areas, when the object in the image captured by the high-magnification zoom camera is not the target object that the user wants, the user can select the normal zoom camera to capture The target object in the image, and the target object is moved to the target position according to the prompt of the electronic device, so that the image collected by the high-magnification zoom camera can be updated to the image of the target object. In this way, the embodiment of the present invention can quickly find the target object, and improve the user's sense of operation experience.
附图说明Description of drawings
图1为本发明实施例提供的一种安卓操作系统的架构示意图;1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the present invention;
图2为本发明实施例提供的变焦方法的示意图之一;2 is one of schematic diagrams of a zooming method provided by an embodiment of the present invention;
图3为本发明实施例提供的用户对目标对象的操作示意图;3 is a schematic diagram of a user's operation on a target object according to an embodiment of the present invention;
图4为本发明实施例提供的在第一区域显示提示信息的示意图;4 is a schematic diagram of displaying prompt information in a first area according to an embodiment of the present invention;
图5为本发明实施例提供的在第二区域显示包括目标对象的图像的示意图;5 is a schematic diagram of displaying an image including a target object in a second area according to an embodiment of the present invention;
图6为本发明实施例提供的变焦方法的示意图之二;6 is a second schematic diagram of a zooming method provided by an embodiment of the present invention;
图7为本发明实施例提供的用户调整第二摄像头的变焦倍数的示意图;7 is a schematic diagram of a user adjusting a zoom factor of a second camera according to an embodiment of the present invention;
图8为本发明实施例提供的电子设备的结构示意图之一;8 is one of the schematic structural diagrams of an electronic device provided by an embodiment of the present invention;
图9为本发明实施例提供的电子设备的结构示意图之二;FIG. 9 is a second schematic structural diagram of an electronic device provided by an embodiment of the present invention;
图10为本发明实施例提供的电子设备的硬件示意图。FIG. 10 is a schematic diagram of hardware of an electronic device provided by 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,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。The term "and/or" in this paper is an association relationship that describes an associated object, indicating that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone these three situations. The symbol "/" in this document indicates the relationship in which the associated object is or, for example, A/B indicates A or B.
本发明的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一摄像头和第二摄像头等是用于区别不同的摄像头,而不是用于描述摄像头的特定顺序。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 camera, the second camera, etc. are used to distinguish different cameras, not to describe a specific order of the cameras.
在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as an example, illustration or illustration. Any embodiments or designs described as "exemplary" or "such as" in the embodiments of the present invention should not be construed as 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.
在本发明实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个元件是指两个或者两个以上的元件等。In the description of the embodiments of the present invention, unless otherwise stated, the meaning of "plurality" refers to two or more, for example, a plurality of elements refers to two or more elements and the like.
下面对本发明实施例中涉及的一些术语/名词进行解释说明。Some terms/nouns involved in the embodiments of the present invention are explained below.
正常变焦摄像头:为电子设备中设置的一种常规摄像头。通常,正常变焦摄像头可以为主摄像头。Normal zoom camera: It is a conventional camera set in electronic equipment. Usually, the normal zoom camera can be the main camera.
高倍变焦摄像头:为电子设备中设置的一种与主摄像头相比变焦能力更强、且拍摄视角较大的摄像头,例如可以用于拍摄较远处的风景。通常,高倍变焦摄像头可以为广角摄像头。其中,拍摄视角称为视场角。目前,市场应用较广的高倍变焦摄像头最高具有50倍变焦能力。High-magnification zoom camera: It is a camera set in an electronic device with a stronger zoom capability and a larger shooting angle than the main camera, for example, it can be used to shoot distant scenery. Typically, the high-magnification zoom camera can be a wide-angle camera. Among them, the shooting angle is called the field of view. At present, high-magnification zoom cameras that are widely used in the market have a maximum zoom capability of 50 times.
变焦:英文名称为zoom,通过变焦可以改变图像在屏幕上的尺寸,即可以放大距离摄像头较远的物体。目前,常见变焦方式包括光学变焦(optical zoom),数码变焦(digitalzoom)和双摄变焦(hybrid zoom)等。其中,只有光学变焦支持图像主体成像后,通过镜片移动来放大与缩小需要拍摄的景物,光学变焦倍数越大,能拍摄的景物就越远,且分辨率及画质不会改变;数码变焦只能将原先的图像尺寸裁小,让图像在屏幕上变得大,但并不会使画质更清晰。Zoom: The English name is zoom. By zooming, you can change the size of the image on the screen, that is, you can zoom in on objects farther away from the camera. At present, common zoom methods include optical zoom, digital zoom, and hybrid zoom. Among them, only the optical zoom supports the lens movement to zoom in and out of the scene to be photographed after the main body of the image is formed. The original image size can be reduced to make the image larger on the screen, but it will not make the image clearer.
本发明实施例提供一种变焦方法及电子设备,在第一区域显示通过第一摄像头采集的第一图像,且第二区域显示通过第二摄像头采集的第二图像的情况下,可以接收对第一图像中目标对象的第一输入;并响应于第一输入,显示提示信息,提示信息用于提示用户移动电子设备以将目标对象移动至第一区域的目标位置;以及在目标对象移动至第一区域的目标位置之后,在第二区域显示通过第二摄像头采集的第三图像,该第三图像包括该目标对象;其中,第二摄像头的变焦倍数大于第二摄像头的变焦倍数。通过该方案,由于电子设备可以在不同区域分别显示通过不同变焦倍数的摄像头采集的图像,因此当高倍变焦摄像头采集的图像中的物体不是用户想要的目标对象时,用户可以选择正常变焦摄像头采集的图像中的目标对象,并根据电子设备的提示将目标对象移动到目标位置,从而可以将高倍变焦摄像头采集的图像更新为目标对象的图像。如此,本发明实施例可以快速寻找到目标物体,并提高用户的操作体验感。Embodiments of the present invention provide a zooming method and an electronic device, in which a first image captured by a first camera is displayed in a first area, and a second image captured by a second camera is displayed in a second area, and a second image captured by a second camera can be received. A first input of the target object in an image; and in response to the first input, displaying prompt information, the prompt information is used to prompt the user to move the electronic device to move the target object to the target position in the first area; and when the target object moves to the first area After the target position in one area, a third image captured by the second camera is displayed in the second area, where the third image includes the target object; wherein the zoom factor of the second camera is greater than the zoom factor of the second camera. With this solution, since the electronic device can display images captured by cameras with different zoom ratios in different areas, when the object in the image captured by the high-magnification zoom camera is not the target object that the user wants, the user can select the normal zoom camera to capture The target object in the image, and the target object is moved to the target position according to the prompt of the electronic device, so that the image collected by the high-magnification zoom camera can be updated to the image of the target object. In this way, the embodiment of the present invention can quickly find the target object, and improve the user's sense of operation experience.
本发明实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(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.
下面以安卓操作系统为例,介绍一下本发明实施例提供的变焦方法所应用的软件环境。The following takes the Android operating system as an example to introduce a software environment to which the zoom method provided by the embodiment of the present invention is applied.
如图1所示,为本发明实施例提供的一种安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层,内核层具体可以为Linux内核层。As shown in FIG. 1 , it is a schematic structural diagram of an Android operating system according to an embodiment of the present invention. In FIG. 1, the architecture of the Android operating system includes four layers, namely: an application layer, an application framework layer, a system runtime layer, and a kernel layer, and the kernel layer may specifically be a Linux kernel layer.
其中,应用程序层包括安卓操作系统中的各个应用程序,包括系统应用程序和第三方应用程序。The application layer includes various applications in the Android 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 library layer includes the system library and the Android operating system operating environment. The library mainly provides various resources required by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the bottom layer of the Android operating system software layer. The kernel layer provides core system services and hardware-related drivers for the Android operating system based on the Linux kernel.
以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的变焦方法的软件程序,从而使得该变焦方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的变焦方法。Taking the Android operating system as an example, in this embodiment of the present invention, a developer can develop a software program for implementing the zooming method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. It can run based on the Android operating system as shown in Figure 1. That is, the processor or the electronic device can implement the zoom method provided by the embodiment of the present invention by running the software program in the Android operating system.
本发明实施例中的电子设备可以为终端设备。该终端设备可以为移动终端,例如手机、平板电脑、笔记本电脑、掌上电脑、车载移动终端、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digitalassistant,PDA)等,发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be a terminal device. The terminal device may be a mobile terminal, such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted mobile terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). , PDA), etc., the embodiments of the invention are not specifically limited.
本发明实施例提供的变焦方法的执行主体可以为上述的电子设备,也可以为该电子设备中能够实现该变焦方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。下面以电子设备为例,对本发明实施例提供的变焦方法进行示例性的说明。The executing subject of the zooming method provided by the embodiment of the present invention may be the above-mentioned electronic device, or may be a functional module and/or functional entity in the electronic device that can implement the zooming method. The embodiment is not limited. The following takes an electronic device as an example to illustrate the zooming method provided by the embodiment of the present invention.
本发明实施例中,电子设备可以在第一区域显示通过变焦倍数较低的第一摄像头采集的第一图像,且在第二区域显示通过变焦倍数较高的第二摄像头采集的第二图像。当第二摄像头采集的第二图像中的物体不是用户想要的物体时,本发明实施例提供了下述的变焦方法,以使得用户可以快速寻找到用户想要的物体。In this embodiment of the present invention, the electronic device may display a first image captured by a first camera with a lower zoom factor in a first area, and display a second image captured by a second camera with a higher zoom factor in a second area. When the object in the second image captured by the second camera is not the object desired by the user, the embodiment of the present invention provides the following zooming method, so that the user can quickly find the object desired by the user.
如图2所示,本发明实施例提供一种变焦方法。该方法可以应用于电子设备。该方法可以包括下述的S101至S103。As shown in FIG. 2 , an embodiment of the present invention provides a zooming method. The method can be applied to electronic devices. The method may include S101 to S103 described below.
S101、在第一区域显示通过第一摄像头采集的第一图像,且第二区域显示通过第二摄像头采集的第二图像的情况下,电子设备接收对该第一图像中目标对象的第一输入。S101. In the case where the first area displays the first image captured by the first camera, and the second area displays the second image captured by the second camera, the electronic device receives a first input of the target object in the first image .
本发明实施例中,电子设备至少可以包括第一摄像头和第二摄像头,且第二摄像头的变焦倍数可以大于第一摄像头的变焦倍数。In this embodiment of the present invention, the electronic device may include at least a first camera and a second camera, and the zoom factor of the second camera may be greater than the zoom factor of the first camera.
例如,第一摄像头可以为正常变焦摄像头,第二摄像头可以为高倍变焦摄像头。相应的,通过第一摄像头采集的第一图像的视场角小于通过第二摄像头采集的第一图像的视场角。For example, the first camera may be a normal zoom camera, and the second camera may be a high-magnification zoom camera. Correspondingly, the field of view of the first image captured by the first camera is smaller than the field of view of the first image captured by the second camera.
可选的,第一摄像头的光轴和第二摄像头的光轴可以平行。Optionally, the optical axis of the first camera and the optical axis of the second camera may be parallel.
可选的,第一摄像头所在的平面与第二摄像头所在的平面为同一平面,或者,第一摄像头所在的平面与第二摄像头所在的平面平行。Optionally, the plane where the first camera is located is the same plane as the plane where the second camera is located, or the plane where the first camera is located is parallel to the plane where the second camera is located.
可选的,第一区域和第二区域可以为电子设备的两个不同的显示区域。示例性的,第一区域和第二区域可以以下任意一种方式:Optionally, the first area and the second area may be two different display areas of the electronic device. Exemplarily, the first area and the second area can be in any of the following ways:
方式一,第一区域和第二区域为电子设备的一个屏幕中的不同显示区域。Manner 1, the first area and the second area are different display areas on one screen of the electronic device.
在这种情况下,第一摄像头和第二摄像头可以设置在同一平面上。例如,第一摄像头和第二摄像头可以设置在屏幕所在的平面上,或者设置在与屏幕相背的平面上。In this case, the first camera and the second camera may be arranged on the same plane. For example, the first camera and the second camera may be arranged on a plane where the screen is located, or on a plane opposite to the screen.
方式二,第一区域为第一屏中的显示区域,第二区域为第二屏中的显示区域。Mode 2, the first area is the display area in the first screen, and the second area is the display area in the second screen.
在这种情况下,第一摄像头和第二摄像头可以设置在不同平面上。例如,在电子设备为包括第一屏和第二屏的折叠屏时,第一摄像头可以设置在第一屏的屏幕所在的平面上,第二摄像头可以设置在第二屏的屏幕所在的平面上;或者,第一摄像头可以设置在与第一屏的背面上,第二摄像头可以设置在与第二屏的背面上。In this case, the first camera and the second camera may be arranged on different planes. For example, when the electronic device is a foldable screen including a first screen and a second screen, the first camera can be set on the plane where the screen of the first screen is located, and the second camera can be set on the plane where the screen of the second screen is located Alternatively, the first camera may be arranged on the back of the first screen, and the second camera may be arranged on the back of the second screen.
可选的,第一图像和第二图像可以为针对同一被拍摄对象所获取的图像,且在第一图像的目标位置的图像内容与在第二图像的图像内容相同。可以理解,由于第二摄像头的变焦倍数大于第一摄像头的变焦倍数,因此当用户使用电子设备对同一被拍摄对象进行拍摄时,第二图像所包含的图像内容是第一图像所包含的图像内容中的部分图像内容。Optionally, the first image and the second image may be images obtained for the same object, and the image content at the target position of the first image is the same as the image content in the second image. It can be understood that since the zoom factor of the second camera is greater than the zoom factor of the first camera, when the user uses the electronic device to shoot the same subject, the image content included in the second image is the image content included in the first image. part of the image content in .
可选的,上述目标位置可以为第一图像的中心位置,或第一图像的其他可能的位置等,本发明实施例不作限定。Optionally, the above-mentioned target position may be a center position of the first image, or other possible positions of the first image, etc., which is not limited in this embodiment of the present invention.
可选的,上述第一输入可以为对第一图像中目标对象的触控输入或手势输入等。其中,触控输入可以为对目标对象的点击输入、双击输入、长按输入或圈选输入等,具体可以根据实际使用需求确定。Optionally, the above-mentioned first input may be a touch input or a gesture input to the target object in the first image, or the like. The touch input may be a click input, a double-click input, a long-press input, or a circle selection input on the target object, etc., which may be determined according to actual usage requirements.
示例性的,如图3所示,电子设备包括第一屏和第二屏,且第一屏和第二屏之间的夹角可以为180度。在用户打开相机应用程序以进行拍照时,电子设备可以通过第一屏的第一摄像头采集第一图像,通过第二屏的第二摄像头采集第二图像。然后,电子设备可以在第一屏的第一区域01显示第一图像,该第一图像的目标位置为房子03,该第一图像的左上角位置为小学生05;电子设备可以在第二屏的第二区域02显示第二图像,该第二图像的图像内容为房子04,且房子04的尺寸大于房子03的尺寸。如果用户想要第二区域02显示的物体是小学生而不是房子04,那么用户可以在第一区域01点击小学生05所在的位置,从而电子设备可以接收到用户对第一图像中目标对象的第一输入。其中,小学生05为目标对象。Exemplarily, as shown in FIG. 3 , the electronic device includes a first screen and a second screen, and the included angle between the first screen and the second screen may be 180 degrees. When the user opens the camera application to take a photo, the electronic device may capture the first image through the first camera on the first screen, and capture the second image through the second camera on the second screen. Then, the electronic device can display the first image in the
需要说明的是,在电子设备接收到用户的第一输入时,第二图像中不包括目标对象,或仅包括目标对象的一部分。It should be noted that, when the electronic device receives the user's first input, the second image does not include the target object, or only includes a part of the target object.
S102、电子设备响应于该第一输入,显示提示信息。S102, the electronic device displays prompt information in response to the first input.
其中,上述提示信息可以用于提示用户移动电子设备,以将目标对象移动至第一区域的目标位置。The above prompt information may be used to prompt the user to move the electronic device, so as to move the target object to the target position in the first area.
本发明实施例中,第一区域的目标位置可以为第一图像的目标位置。可以理解,在用户移动电子设备的过程中,第一区域的目标位置保持不变。In this embodiment of the present invention, the target position of the first region may be the target position of the first image. It can be understood that during the process of moving the electronic device by the user, the target position of the first area remains unchanged.
可选的,提示信息可以包括第一边框、第二边框和目标内容。其中,目标内容可以用于提示用户沿目标方向移动电子设备。Optionally, the prompt information may include a first frame, a second frame and target content. The target content may be used to prompt the user to move the electronic device in the target direction.
可选的,上述显示提示信息,可以包括:在第一区域显示提示信息。Optionally, the above-mentioned displaying the prompt information may include: displaying the prompt information in the first area.
可选的,上述显示提示信息具体可以包括:在第一区域的目标位置显示第一边框,在第一区域的目标对象所在位置显示第二边框,并在第一区域显示目标内容。Optionally, the above-mentioned displaying prompt information may specifically include: displaying a first frame at the target position in the first area, displaying a second frame at the position of the target object in the first area, and displaying the target content in the first area.
可选的,第一边框和第二边框的大小可以相同,也可以不同。Optionally, the sizes of the first frame and the second frame may be the same or different.
可选的,第一边框和第二边框的形状可以相同,也可以不同。Optionally, the shapes of the first frame and the second frame may be the same or different.
可选的,目标内容可以为一个图形和文字的组合。例如,目标内容可以为提示方向的箭头图形和提示方向的文字的组合。Optionally, the target content can be a combination of graphics and text. For example, the target content may be a combination of arrow graphics indicating the direction and text indicating the direction.
可选的,目标方向可以为电子设备根据第一图像中目标对象所在的位置、第一区域的目标位置计算出的方向。Optionally, the target direction may be a direction calculated by the electronic device according to the position of the target object in the first image and the target position of the first area.
示例性的,在电子设备接收到如图3所示的第一输入之后,如图4所示,电子设备可以响应于该第一输入,在第一区域01的第一图像中的小学生所在的位置显示第二边框06,在第一区域01的第一图像中的房子所在的位置显示第一边框07,并在第一区域01的第一图像中显示用于指示移动方向的箭头08,即目标内容。与此同时,电子设备可以在第二区域02中保持显示第二图像。Exemplarily, after the electronic device receives the first input shown in FIG. 3 , as shown in FIG. 4 , the electronic device may respond to the first input, in the first image of the
可选的,在显示提示信息之后,用户可以根据提示信息,移动电子设备。例如,用户可以沿着目标方向,在空间中上下移动电子设备、左右移动电子设备或前后移动电子设备等,以使目标对象移动至第一区域的目标位置。Optionally, after the prompt information is displayed, the user can move the electronic device according to the prompt information. For example, the user may move the electronic device up and down in space, move the electronic device left and right, or move the electronic device back and forth along the target direction, so as to move the target object to the target position in the first area.
可选的,在第一图像中目标对象移动至第一区域的目标位置的过程中,第一边框在第一区域的显示位置保持不变,第二边框的在第一区域的显示位置随目标对象的移动而移动。可以理解的是,在用户移动电子设备的过程中,由于第二边框的显示位置保持不变,因此若用户是按照目标方向正确地移动电子设备,则目标对象会逐渐向第一区域的目标位置靠近,第一边框会随着目标对象逐渐向第一区域的目标位置靠近。当第一边框的显示位置位于第一区域的目标位置时,可以确定目标对象也位于第一区域的目标位置。Optionally, in the process of moving the target object in the first image to the target position in the first area, the display position of the first frame in the first area remains unchanged, and the display position of the second frame in the first area varies with the target. The movement of the object moves. It can be understood that during the process of the user moving the electronic device, since the display position of the second frame remains unchanged, if the user moves the electronic device correctly in the target direction, the target object will gradually move towards the target position of the first area. Approaching, the first frame will gradually approach the target position of the first area along with the target object. When the display position of the first frame is located at the target position of the first area, it may be determined that the target object is also located at the target position of the first area.
S103、在该目标对象移动至该第一区域的目标位置之后,电子设备在第二区域显示通过第二摄像头采集的第三图像,该第三图像包括该目标对象。S103. After the target object moves to the target position in the first area, the electronic device displays a third image captured by the second camera in the second area, where the third image includes the target object.
可选的,在目标对象移动至该第一区域的目标位置之后,本发明实施例提供的变焦方法还可以包括:电子设备在第一区域显示通过第一摄像头采集的第四图像,该第四图像包括该目标对象。Optionally, after the target object moves to the target position in the first area, the zooming method provided in this embodiment of the present invention may further include: the electronic device displays a fourth image collected by the first camera in the first area, and the fourth image is displayed in the first area. The image includes the target object.
需要说明的是,第三图像中目标对象的尺寸大于第四图像中目标对象的尺寸。It should be noted that the size of the target object in the third image is larger than the size of the target object in the fourth image.
示例性的,如果用户按照如图4所示的提示信息,将小学生移动至第一区域的目标位置,那么如图5所示,电子设备可以在第二区域02显示包括小学生09的第三图像,并在第一区域01显示包括小学生05的第四图像。其中,第三图像中的小学生09的尺寸大于第四图像中的小学生05的尺寸。Exemplarily, if the user moves the primary school student to the target position in the first area according to the prompt information shown in FIG. 4 , then as shown in FIG. 5 , the electronic device can display the third image including the
可选的,在上述S103之后,本发明实施例提供的变焦方法还可以包括:电子设备取消显示提示信息。Optionally, after the above S103, the zooming method provided by the embodiment of the present invention may further include: canceling the display of prompt information by the electronic device.
可选的,在上述S103之后,本发明实施例提供的变焦方法还可以包括以下至少一项:电子设备响应于接收到的用户的输入,控制第一摄像头拍摄照片;电子设备响应于接收到的用户的输入,控制第二摄像头拍摄照片;电子设备响应于接收到的用户的输入,控制第一摄像头和第二摄像头拍摄照片。Optionally, after the above S103, the zooming method provided in this embodiment of the present invention may further include at least one of the following: the electronic device controls the first camera to take a photo in response to the received user input; the electronic device responds to the received user input The user's input controls the second camera to take pictures; the electronic device controls the first camera and the second camera to take pictures in response to the received user's input.
本发明实施例提供一种变焦方法,由于电子设备可以在不同区域分别显示通过不同变焦倍数的摄像头采集的图像,因此当高倍变焦摄像头采集的图像中的物体不是用户想要的目标对象时,用户可以选择正常变焦摄像头采集的图像中的目标对象,并根据电子设备的提示将目标对象移动到目标位置,从而可以将高倍变焦摄像头采集的图像更新为目标对象的图像。如此,本发明实施例可以快速寻找到目标物体,并提高用户的操作体验感。An embodiment of the present invention provides a zoom method. Since the electronic device can display images captured by cameras with different zoom magnifications in different areas, when the object in the image captured by the high-magnification zoom camera is not the target object that the user wants, the user The target object in the image captured by the normal zoom camera can be selected, and the target object can be moved to the target position according to the prompt of the electronic device, so that the image captured by the high-magnification zoom camera can be updated to the image of the target object. In this way, the embodiment of the present invention can quickly find the target object, and improve the user's sense of operation experience.
可选的,结合图2,如图6所示,在上述S101之前,本发明实施例提供的变焦方法还可以包括下述的S104至S106。Optionally, with reference to FIG. 2 , as shown in FIG. 6 , before the foregoing S101 , the zooming method provided by the embodiment of the present invention may further include the following S104 to S106 .
S104、电子设备接收第二输入。S104, the electronic device receives the second input.
其中,上述第二输入可以用于调整第二摄像头的变焦倍数。Wherein, the above-mentioned second input can be used to adjust the zoom factor of the second camera.
可选的,上述第二输入可以为触控输入、语音输入、按键输入、重力输入或手势输入等。可以根据实际使用需求确定,本发明实施例不作限定。Optionally, the above-mentioned second input may be touch input, voice input, key input, gravity input, gesture input, or the like. It may be determined according to actual usage requirements, which is not limited in this embodiment of the present invention.
可选的,在电子设备接收第二输入之前,本发明实施例提供的变焦方法还可以包括:电子设备响应于用户的输入,运行相机应用程序,并控制第一摄像头采集图像,以及显示第一摄像头采集的图像。Optionally, before the electronic device receives the second input, the zooming method provided in this embodiment of the present invention may further include: the electronic device, in response to the user's input, runs a camera application, controls the first camera to capture images, and displays the first camera. image captured by the camera.
示例性的,如图7所示,在用户打开相机应用程序之后,电子设备可以通过第一屏的第一摄像头采集第一图像,并在第一屏的第一区域01显示第一图像,而此时并没有通过第二屏的第二摄像头采集图像,也未在第二屏的第二区域02显示图像。如果用户想要获取高倍变焦后的图像,用户可以点击变焦控件10。如此,电子设备可以接收用户的点击输入,即第二输入,并执行下述的S105和S106。Exemplarily, as shown in FIG. 7 , after the user opens the camera application, the electronic device can capture the first image through the first camera of the first screen, and display the first image in the
S105、电子设备响应于该第二输入,控制第一摄像头按照第一变焦倍数采集第一图像,并控制第二摄像头按照第二变焦倍数采集第二图像。S105. In response to the second input, the electronic device controls the first camera to collect the first image according to the first zoom factor, and controls the second camera to collect the second image according to the second zoom factor.
其中,上述第一变焦倍数可以小于第二变焦倍数。Wherein, the above-mentioned first zoom factor may be smaller than the second zoom factor.
示例性的,第一变焦倍数可以为2倍,第二变焦倍数可以为50倍。Exemplarily, the first zoom factor may be 2 times, and the second zoom factor may be 50 times.
可选的,第一变焦倍数和第二变焦倍数可以为电子设备预设的,也可以为用户选择的。Optionally, the first zoom factor and the second zoom factor may be preset by the electronic device, or may be selected by the user.
S106、电子设备在第一区域显示第一图像,并在第二区域显示第二图像。S106, the electronic device displays the first image in the first area, and displays the second image in the second area.
示例性的,在电子设备接收到如图7所示的第二输入之后,电子设备可以响应于该第二输入,控制第一摄像头按照变焦倍数2倍采集第一图像,并控制第二摄像头按照变焦倍数50倍采集第二图像。然后,如图3所示,电子设备可以在第一区域01显示第一图像,并在第二区域02显示第二图像。Exemplarily, after the electronic device receives the second input as shown in FIG. 7 , the electronic device may, in response to the second input, control the first camera to capture the first image according to the zoom factor of 2 times, and control the second camera to The second image is captured at a zoom factor of 50 times. Then, as shown in FIG. 3 , the electronic device may display the first image in the
可选的,本发明实施例提供的变焦方法还可以包括:若电子设备未接收到用户的第二输入,则电子设备控制第一摄像头拍照。Optionally, the zooming method provided by the embodiment of the present invention may further include: if the electronic device does not receive the second input from the user, the electronic device controls the first camera to take a picture.
本发明实施例提供的变焦方法,由于电子设备可以响应于用户的第二输入,控制两个不同变焦倍数的摄像头分别采集的图像,因此用户可以通过对正常变焦摄像头采集的图像中的目标对象的操作,获取电子设备的移动方向的提示操作,从而用户可以更好控制电子设备的移动方向和位置,进而提高了变焦操作的体验感。In the zoom method provided by this embodiment of the present invention, since the electronic device can control the images captured by two cameras with different zoom ratios in response to the second input of the user, the user can adjust the target object in the image captured by the normal zoom camera by operation to obtain a prompt operation of the moving direction of the electronic device, so that the user can better control the moving direction and position of the electronic device, thereby improving the experience of zoom operation.
如图8所示,本发明实施例提供一种电子设备800。该电子设备可以包括接收模块801和显示模块802。接收模块801,可以用于在第一区域显示通过第一摄像头采集的第一图像,且第二区域显示通过第二摄像头采集的第二图像的情况下,接收对该第一图像中目标对象的第一输入。显示模块802,可以用于响应于接收模块801接收的该第一输入,显示提示信息,该提示信息可以用于提示用户移动电子设备以将该目标对象移动至该第一区域的目标位置。显示模块802,还可以用于在该目标对象移动至该第一区域的目标位置之后,在该第二区域显示通过第二摄像头采集的第三图像,该第三图像包括该目标对象。As shown in FIG. 8 , an embodiment of the present invention provides an electronic device 800 . The electronic device may include a receiving module 801 and a display module 802 . The receiving module 801 can be configured to receive the information of the target object in the first image when the first area displays the first image collected by the first camera, and the second area displays the second image collected by the second camera. first input. The display module 802 can be configured to display prompt information in response to the first input received by the receiving module 801, and the prompt information can be used to prompt the user to move the electronic device to move the target object to the target position in the first area. The display module 802 may also be configured to display a third image captured by the second camera in the second area after the target object moves to the target position in the first area, where the third image includes the target object.
其中,第二摄像头的变焦倍数大于第一摄像头的变焦倍数。The zoom factor of the second camera is greater than the zoom factor of the first camera.
可选的,第一摄像头的光轴和第二摄像头的光轴平行。Optionally, the optical axis of the first camera and the optical axis of the second camera are parallel.
可选的,第一摄像头所在的平面与第二摄像头所在的平面为同一平面,或者,第一摄像头所在的平面与第二摄像头所在的平面平行。Optionally, the plane where the first camera is located is the same plane as the plane where the second camera is located, or the plane where the first camera is located is parallel to the plane where the second camera is located.
可选的,上述提示信息可以包括第一边框、第二边框和目标内容,该目标内容可以用于提示用户沿目标方向移动电子设备。显示模块802,具体可以用于响应于接收模块801接收的第一输入,在第一区域的目标位置显示第一边框,在第一区域的目标对象所在位置显示第二边框,并在第一区域显示目标内容。Optionally, the above-mentioned prompt information may include a first frame, a second frame, and target content, and the target content may be used to prompt the user to move the electronic device along the target direction. The display module 802 can be specifically configured to display the first frame at the target position of the first area in response to the first input received by the receiving module 801, display the second frame at the position of the target object in the first area, and display the second frame at the target position of the first area. Display the target content.
可选的,在目标对象移动至第一区域的目标位置的过程中,第一边框在该第一区域的显示位置保持不变,第二边框的在该第一区域的显示位置随该目标对象的移动而移动。Optionally, in the process of moving the target object to the target position in the first area, the display position of the first frame in the first area remains unchanged, and the display position of the second frame in the first area varies with the target object. move and move.
可选的,结合图8,如图9所示,本发明实施例提供的电子设备还可以包括控制模块803。接收模块801,还可以用于在接收对第一图像中目标对象的第一输入之前,接收第二输入,该第二输入可以用于调整第二摄像头的变焦倍数。控制模块803,可以用于响应于接收模块801接收的该第二输入,控制第一摄像头按照第一变焦倍数采集第一图像,并控制第二摄像头按照第二变焦倍数采集第二图像。显示模块802,还可以用于在第一区域显示第一图像,并在第二区域显示第二图像。其中,该第一变焦倍数小于该第二变焦倍数。Optionally, with reference to FIG. 8 , as shown in FIG. 9 , the electronic device provided in this embodiment of the present invention may further include a control module 803 . The receiving module 801 may also be configured to receive a second input before receiving the first input to the target object in the first image, where the second input may be used to adjust the zoom factor of the second camera. The control module 803 may be configured to, in response to the second input received by the receiving module 801, control the first camera to capture the first image according to the first zoom factor, and control the second camera to capture the second image according to the second zoom factor. The display module 802 may also be configured to display the first image in the first area and display the second image in the second area. Wherein, the first zoom factor is smaller than the second zoom factor.
可选的,第一区域和第二区域为电子设备的一个屏幕中的不同显示区域;或者,第一区域为第一屏幕中的显示区域,第二区域为第二屏幕中的显示区域。Optionally, the first area and the second area are different display areas on one screen of the electronic device; or, the first area is a display area on the first screen, and the second area is a display area on the second screen.
本发明实施例提供的电子设备能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device provided in the embodiments of the present invention can implement each process implemented by the electronic device in the foregoing method embodiments, and to avoid repetition, details are not repeated here.
本发明实施例提供一种电子设备,由于电子设备可以在不同区域分别显示通过不同变焦倍数的摄像头采集的图像,因此当高倍变焦摄像头采集的图像中的物体不是用户想要的目标对象时,用户可以选择正常变焦摄像头采集的图像中的目标对象,并根据电子设备的提示将目标对象移动到目标位置,从而可以使高倍变焦摄像头采集的图像更新为目标对象的图像。如此,本发明实施例提供的电子设备可以快速寻找到目标物体,并提高用户的操作体验感。An embodiment of the present invention provides an electronic device. Since the electronic device can display images captured by cameras with different zoom magnifications in different areas, when the object in the image captured by the high-magnification zoom camera is not the target object that the user wants, the user The target object in the image captured by the normal zoom camera can be selected, and the target object can be moved to the target position according to the prompt of the electronic device, so that the image captured by the high-magnification zoom camera can be updated to the image of the target object. In this way, the electronic device provided by the embodiment of the present invention can quickly find the target object, and improve the user's operating experience.
图10为实现本发明各个实施例的一种电子设备的硬件结构示意图。该电子设备可以移动终端,例如手机。如图10所示,该电子设备200包括但不限于:射频单元201、网络模块202、音频输出单元203、输入单元204、传感器205、显示单元206、用户输入单元207、接口单元208、存储器209、处理器210、以及电源211等部件。本领域技术人员可以理解,图10中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、以及计步器等。FIG. 10 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention. The electronic device may be a mobile terminal, such as a cell phone. As shown in FIG. 10 , the
其中,处理器210,用于在第一区域显示通过第一摄像头采集的第一图像,且第二区域显示通过第二摄像头采集的第二图像的情况下,控制用户输入单元207接收对该第一图像中目标对象的第一输入。The
处理器210,还可以用于响应于控制用户输入单元207接收的第一输入,控制显示单元206显示提示信息。该提示信息可以用于提示用户移动电子设备以将目标对象移动至该第一区域的目标位置。The
处理器210,还可以用于在目标对象移动至第一区域的目标位置之后,控制显示单元206在第二区域显示通过第二摄像头采集的第三图像,该第三图像包括该目标对象。The
本发明实施例提供一种电子设备,由于电子设备可以在不同区域分别显示通过不同变焦倍数的摄像头采集的图像,因此当高倍变焦摄像头采集的图像中的物体不是用户想要的目标对象时,用户可以选择正常变焦摄像头采集的图像中的目标对象,并根据电子设备的提示将目标对象移动到目标位置,从而可以使高倍变焦摄像头采集的图像更新为目标对象的图像。如此,本发明实施例提供的电子设备可以快速寻找到目标物体,并提高用户的操作体验感。An embodiment of the present invention provides an electronic device. Since the electronic device can display images captured by cameras with different zoom magnifications in different areas, when the object in the image captured by the high-magnification zoom camera is not the target object that the user wants, the user The target object in the image captured by the normal zoom camera can be selected, and the target object can be moved to the target position according to the prompt of the electronic device, so that the image captured by the high-magnification zoom camera can be updated to the image of the target object. In this way, the electronic device provided by the embodiment of the present invention can quickly find the target object, and improve the user's operating experience.
应理解的是,本发明实施例中,射频单元201可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器210处理;另外,将上行的数据发送给基站。通常,射频单元201包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元201还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the
电子设备200通过网络模块202为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The
音频输出单元203可以将射频单元201或网络模块202接收的或者在存储器209中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元203还可以提供与电子设备200执行的特定功能相关的音频输出,例如,呼叫信号接收声音、消息接收声音等等。音频输出单元203包括扬声器、蜂鸣器以及受话器等。The
输入单元204用于接收音频或视频信号。输入单元204可以包括图形处理器(graphics processing unit,GPU)2041和麦克风2042,图形处理器2041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元206上。经图形处理器2041处理后的图像帧可以存储在存储器209或其它存储介质中或者经由射频单元201或网络模块202进行发送。麦克风2042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元201发送到移动通信基站的格式输出。The
电子设备200还包括至少一种传感器205,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板2061的亮度,接近传感器可在电子设备200移动到耳边时,关闭显示面板2061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器205还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The
显示单元206用于显示由用户输入的信息或提供给用户的信息。显示单元206可包括显示面板2061,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示面板2061。The
用户输入单元207可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元207包括触控面板2071以及其他输入设备2072。触控面板2071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板2071上或在触控面板2071附近的操作)。触控面板2071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器210,接收处理器210发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板2071。除了触控面板2071,用户输入单元207还可以包括其他输入设备2072。具体地,其他输入设备2072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The
进一步的,触控面板2071可覆盖在显示面板2061上,当触控面板2071检测到在其上或附近的触摸操作后,传送给处理器210以确定触摸事件的类型,随后处理器210根据触摸事件的类型在显示面板2061上提供相应的视觉输出。虽然在图10中,触控面板2071与显示面板2061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板2071与显示面板2061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the
接口单元208为外部装置与电子设备200连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源或电池充电器端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元208可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备200内的一个或多个元件或者可以用于在电子设备200和外部装置之间传输数据。The
存储器209可用于存储软件程序以及各种数据。存储器209可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器209可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
处理器210是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器209内的软件程序和/或模块,以及调用存储在存储器209内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器210可包括一个或多个处理单元;可选的,处理器210可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器210中。The
电子设备200还可以包括给各个部件供电的电源211,比如电池。可选的,电源211可以通过电源管理系统与处理器210逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The
另外,电子设备200包括一些未示出的功能模块,在此不再赘述。In addition, the
可选的,本发明实施例还提供一种电子设备,包括如图10所示的处理器210,存储器209,存储在存储器209上并可在处理器210上运行的计算机程序,该计算机程序被处理器210执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present invention further provides an electronic device, including 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 method embodiment can be achieved, and the same technical effect can be achieved, In order to avoid repetition, details are not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a 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 for causing an electronic device to perform the methods described in 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.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911045050.0ACN110830713A (en) | 2019-10-30 | 2019-10-30 | A zoom method and electronic device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911045050.0ACN110830713A (en) | 2019-10-30 | 2019-10-30 | A zoom method and electronic device |
| Publication Number | Publication Date |
|---|---|
| CN110830713Atrue CN110830713A (en) | 2020-02-21 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911045050.0APendingCN110830713A (en) | 2019-10-30 | 2019-10-30 | A zoom method and electronic device |
| Country | Link |
|---|---|
| CN (1) | CN110830713A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111447598A (en)* | 2020-03-23 | 2020-07-24 | 维沃移动通信有限公司 | An interactive method and display device |
| CN111614891A (en)* | 2020-04-24 | 2020-09-01 | 深圳传音控股股份有限公司 | Camera application function switching method, terminal and computer readable storage medium |
| CN112702530A (en)* | 2020-12-29 | 2021-04-23 | 维沃移动通信(杭州)有限公司 | Algorithm control method and electronic equipment |
| CN113849104A (en)* | 2020-06-28 | 2021-12-28 | 华为技术有限公司 | Graphic control method, apparatus, terminal device and readable storage medium |
| CN114726976A (en)* | 2021-01-05 | 2022-07-08 | 北京小米移动软件有限公司 | Terminal device, image acquisition method and device |
| WO2022228274A1 (en)* | 2021-04-27 | 2022-11-03 | 华为技术有限公司 | Preview image display method in zoom photographing scenario, and electronic device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102348059A (en)* | 2010-07-27 | 2012-02-08 | 三洋电机株式会社 | Image pickup apparatus |
| US20120268641A1 (en)* | 2011-04-21 | 2012-10-25 | Yasuhiro Kazama | Image apparatus |
| CN107079087A (en)* | 2014-10-31 | 2017-08-18 | 富士胶片株式会社 | Camera device and object recognition methods |
| CN108289174A (en)* | 2018-01-25 | 2018-07-17 | 努比亚技术有限公司 | A kind of image pickup method, mobile terminal and computer readable storage medium |
| CN108429881A (en)* | 2018-05-08 | 2018-08-21 | 山东超景深信息科技有限公司 | Exempt from the focal length shooting tripod head camera system application process by zoom view repeatedly |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102348059A (en)* | 2010-07-27 | 2012-02-08 | 三洋电机株式会社 | Image pickup apparatus |
| US20120268641A1 (en)* | 2011-04-21 | 2012-10-25 | Yasuhiro Kazama | Image apparatus |
| CN107079087A (en)* | 2014-10-31 | 2017-08-18 | 富士胶片株式会社 | Camera device and object recognition methods |
| CN108289174A (en)* | 2018-01-25 | 2018-07-17 | 努比亚技术有限公司 | A kind of image pickup method, mobile terminal and computer readable storage medium |
| CN108429881A (en)* | 2018-05-08 | 2018-08-21 | 山东超景深信息科技有限公司 | Exempt from the focal length shooting tripod head camera system application process by zoom view repeatedly |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111447598A (en)* | 2020-03-23 | 2020-07-24 | 维沃移动通信有限公司 | An interactive method and display device |
| WO2021190353A1 (en)* | 2020-03-23 | 2021-09-30 | 维沃移动通信有限公司 | Interaction method and display device |
| CN111447598B (en)* | 2020-03-23 | 2023-06-20 | 维沃移动通信有限公司 | An interactive method and display device |
| CN111614891A (en)* | 2020-04-24 | 2020-09-01 | 深圳传音控股股份有限公司 | Camera application function switching method, terminal and computer readable storage medium |
| CN111614891B (en)* | 2020-04-24 | 2022-09-16 | 深圳传音控股股份有限公司 | Camera application function switching method, terminal and computer readable storage medium |
| CN113849104A (en)* | 2020-06-28 | 2021-12-28 | 华为技术有限公司 | Graphic control method, apparatus, terminal device and readable storage medium |
| CN113849104B (en)* | 2020-06-28 | 2024-11-15 | 华为技术有限公司 | Graphics control method, device, terminal equipment and readable storage medium |
| CN112702530A (en)* | 2020-12-29 | 2021-04-23 | 维沃移动通信(杭州)有限公司 | Algorithm control method and electronic equipment |
| CN114726976A (en)* | 2021-01-05 | 2022-07-08 | 北京小米移动软件有限公司 | Terminal device, image acquisition method and device |
| WO2022228274A1 (en)* | 2021-04-27 | 2022-11-03 | 华为技术有限公司 | Preview image display method in zoom photographing scenario, and electronic device |
| Publication | Publication Date | Title |
|---|---|---|
| CN108668083A (en) | A camera method and terminal | |
| WO2021104195A1 (en) | Image display method and electronic device | |
| CN110830713A (en) | A zoom method and electronic device | |
| CN109032445B (en) | A screen display control method and terminal device | |
| CN111562896A (en) | Screen projection method and electronic equipment | |
| CN108471498A (en) | A kind of shooting preview method and terminal | |
| WO2021098603A1 (en) | Preview picture display method and electronic device | |
| CN110602389B (en) | A display method and electronic device | |
| WO2020186945A1 (en) | Interface display method and terminal device | |
| CN110769174B (en) | Video viewing method and electronic equipment | |
| CN110505400A (en) | A preview image display adjustment method and terminal | |
| CN110944139B (en) | Display control method and electronic equipment | |
| CN109032486A (en) | A kind of display control method and terminal device | |
| WO2021129537A1 (en) | Method for controlling electronic device and electronic device | |
| WO2020155980A1 (en) | Control method and terminal device | |
| CN111432122A (en) | An image processing method and electronic device | |
| CN110769156A (en) | Image display method and electronic device | |
| CN108762613A (en) | A kind of Status icons display methods and mobile terminal | |
| WO2020173281A1 (en) | Interface display method and terminal device | |
| CN111385415A (en) | Shooting method and electronic equipment | |
| CN107682637A (en) | A shooting method, mobile terminal and computer-readable storage medium | |
| CN109933266A (en) | A display method and terminal device | |
| CN110851098B (en) | A video window display method and electronic device | |
| CN108833791A (en) | A shooting method and device | |
| CN109901760B (en) | Object control method and terminal device |
| 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 | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20200221 |