
































技术领域technical field
本申请实施例涉及电子技术领域,尤其涉及一种拍摄方法及设备。The embodiments of the present application relate to the field of electronic technology, and in particular, to a photographing method and device.
背景技术Background technique
随着电子技术的发展,电子设备上集成的摄像头越来越多。该多个摄像头可以包括多个焦段的摄像头,例如可以包括短焦广角摄像头、中焦摄像头和长焦摄像头。不同焦段的摄像头可以对应不同的取景范围和变焦倍率,从而可以丰富电子设备的拍摄场景。With the development of electronic technology, more and more cameras are integrated on electronic equipment. The plurality of cameras may include cameras with multiple focal lengths, for example, may include a short-focus wide-angle camera, a medium-focus camera, and a telephoto camera. Cameras with different focal lengths can correspond to different viewing ranges and zoom ratios, thereby enriching shooting scenes of electronic devices.
在用户切换变焦倍率时,电子设备用于拍摄的摄像头也可能随之切换。例如,在切换到大变焦倍率时,电子设备可以由广角摄像头或中焦摄像头切换到长焦摄像头,从而显示长焦摄像头的预览画面,采用长焦摄像头进行拍摄。When the user switches the zoom ratio, the camera used by the electronic device for shooting may also switch accordingly. For example, when switching to a large zoom ratio, the electronic device can switch from a wide-angle camera or a medium-focus camera to a telephoto camera, thereby displaying a preview image of the telephoto camera, and using the telephoto camera for shooting.
在由广角摄像头或中焦摄像头切换到长焦摄像头后,取景范围变小,待拍摄的目标对象容易跑出长焦摄像头的预览画面。即,电子设备容易丢失待拍摄的目标对象。在采用长焦摄像头进行预览的情况下,用户通常花费较长时间也难以找到目标对象。After switching from a wide-angle camera or a medium-focus camera to a telephoto camera, the viewfinder range becomes smaller, and the target object to be photographed tends to run out of the preview screen of the telephoto camera. That is, the electronic device easily loses the target object to be photographed. In the case of previewing with a telephoto camera, it usually takes a long time for the user to find the target object.
发明内容Contents of the invention
本申请实施例提供一种拍摄方法及设备,能够根据目标对象引导用户移动电子设备,以便电子设备可以采用长焦摄像头快速锁定目标对象,节省用户寻找目标对象的时间,提高用户使用体验。Embodiments of the present application provide a shooting method and device, which can guide a user to move an electronic device according to a target object, so that the electronic device can quickly lock the target object with a telephoto camera, save the user time for searching for the target object, and improve user experience.
为达到上述目的,本申请实施例采用如下技术方案:In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
一方面,本申请实施例提供了一种拍摄方法,包括:电子设备启动相机。而后,电子设备采用第一摄像头和第二摄像头分别采集第一预览图像和第二预览图像。其中,第二摄像头为长焦摄像头,第一摄像头的取景范围大于第二摄像头的取景范围。电子设备显示第一预览界面。该第一预览界面包括第一取景框、第二取景框和第三取景框。第一取景框用于显示第一预览图像。第二取景框内的图像为第一预览图像上的一部分;且第二取景框中的内容为第二摄像头待拍摄的目标对象。第三取景框用于显示第二预览图像。电子设备显示第一提示信息,第一提示信息用于引导用户移动电子设备,以使得电子设备移动后第二摄像头可锁定目标对象。On the one hand, an embodiment of the present application provides a photographing method, including: starting a camera by an electronic device. Then, the electronic device collects the first preview image and the second preview image respectively by using the first camera and the second camera. Wherein, the second camera is a telephoto camera, and the viewing range of the first camera is larger than that of the second camera. The electronic device displays the first preview interface. The first preview interface includes a first viewing frame, a second viewing frame and a third viewing frame. The first viewing frame is used to display the first preview image. The image in the second viewing frame is a part of the first preview image; and the content in the second viewing frame is the target object to be photographed by the second camera. The third viewing frame is used to display the second preview image. The electronic device displays first prompt information, and the first prompt information is used to guide the user to move the electronic device, so that the second camera can lock the target object after the electronic device moves.
这样,在电子设备由广角摄像头或中焦摄像头等第一摄像头,切换到长焦摄像头即第二摄像头后,电子设备可以通过提示信息指引用户移动电子设备。以便,在电子设备移动后,长焦摄像头能够快速锁定目标对象。进而,电子设备可以采用长焦摄像头拍摄目标对象的图像。In this way, after the electronic device switches from a first camera such as a wide-angle camera or a medium-focus camera to a second camera that is a telephoto camera, the electronic device can guide the user to move the electronic device through prompt information. So that, after the electronic device moves, the telephoto camera can quickly lock the target object. Furthermore, the electronic device may use a telephoto camera to capture an image of the target object.
在一种可能的设计中,在电子设备显示第一预览界面之后,该方法还包括:电子设备检测到用户针对第二取景框的拖动操作。电子设备响应于拖动操作,在第一预览图像上移动第二取景框,目标对象随着第二取景框位置的变化而变化。In a possible design, after the electronic device displays the first preview interface, the method further includes: the electronic device detects a user's drag operation on the second viewfinder frame. The electronic device moves the second viewfinder frame on the first preview image in response to the drag operation, and the target object changes along with the change of the position of the second viewfinder frame.
也就是说,用户可以通过拖拽第二取景框的位置,来指定和更改目标对象。That is to say, the user can designate and change the target object by dragging the position of the second viewfinder frame.
在另一种可能的设计中,该方法还包括:当第二取景框靠近第三取景框时,电子设备将第三取景框移开,以避开第二取景框。In another possible design, the method further includes: when the second viewing frame approaches the third viewing frame, the electronic device moves the third viewing frame away to avoid the second viewing frame.
这样,第二取景框和第三取景框不会重叠,用户可以直观、清楚地看到两个取景框中的内容。In this way, the second viewing frame and the third viewing frame do not overlap, and the user can intuitively and clearly see the content in the two viewing frames.
在另一种可能的实现中,第一提示信息用于指示电子设备的移动方向和移动距离。In another possible implementation, the first prompt information is used to indicate the moving direction and moving distance of the electronic device.
也就是说,电子设备可以通过第一提示信息,提示用户移动电子设备的方向和移动幅度。That is to say, the electronic device may prompt the user to move the electronic device in a direction and a moving range through the first prompt information.
在另一种可能的实现中,第一提示信息为箭头,箭头的指向用于指示移动方向,箭头的长度用户指示移动距离。在电子设备朝箭头指示的方向移动后,箭头的长度变短。In another possible implementation, the first prompt information is an arrow, the pointing of the arrow is used to indicate the moving direction, and the length of the arrow indicates the moving distance to the user. After the electronic device moves in the direction indicated by the arrow, the length of the arrow becomes shorter.
也就是说,箭头可以作为第一提示信息,可以动态地指示用户是否移动电子设备,且移动距离的大小,以及移动方向是否正确等信息。That is to say, the arrow can be used as the first prompt information, which can dynamically indicate whether the user moves the electronic device, the size of the moving distance, and whether the moving direction is correct and other information.
在另一种可能的设计中,第一提示信息还可以指示电子设备的翻转方向,以及翻转角度。In another possible design, the first prompt information may also indicate the flipping direction and the flipping angle of the electronic device.
这样,第一提示信息不仅可以提示用户移动电子设备的方向和幅度,还可以提示用户翻转电子设备的方向和幅度。In this way, the first prompt information can not only remind the user of the direction and magnitude of moving the electronic device, but also prompt the user of the direction and magnitude of turning over the electronic device.
在另一种可能的设计中,第二取景框的尺寸越小,第三取景框内第二预览图像的变焦倍率越大;第二取景框的尺寸越大,第三取景框内第二预览图像的变焦倍率越小。在电子设备显示第一预览界面后,该方法还包括:电子设备检测到用户调整第二取景框的尺寸的操作;电子设备调整第二取景框的尺寸;电子设备根据调整后的第二取景框的尺寸确定变焦倍率;电子设备根据变焦倍率,显示第三取景框内的第二预览图像。In another possible design, the smaller the size of the second viewfinder, the larger the zoom ratio of the second preview image in the third viewfinder; the larger the size of the second viewfinder, the larger the zoom ratio of the second preview image in the third viewfinder The zoom magnification of the image is smaller. After the electronic device displays the first preview interface, the method further includes: the electronic device detects that the user adjusts the size of the second viewfinder frame; the electronic device adjusts the size of the second viewfinder frame; The size of the zoom ratio determines the zoom ratio; the electronic device displays the second preview image in the third viewfinder frame according to the zoom ratio.
也就是说,第三取景框内的图像的变焦倍率与第二取景框的大小负相关,用户可以通过调整第二取景框的大小,来调整第三取景框内图像的变焦倍率。That is to say, the zoom ratio of the image in the third viewing frame is negatively correlated with the size of the second viewing frame, and the user can adjust the zoom ratio of the image in the third viewing frame by adjusting the size of the second viewing frame.
在另一种可能的设计中,在电子设备显示第一提示信息之后,该方法还包括:若电子设备确定第二摄像头锁定目标对象,则电子设备显示第二预览界面,第二预览界面用于显示第二摄像头采集到的第二预览图像。In another possible design, after the electronic device displays the first prompt information, the method further includes: if the electronic device determines that the second camera locks the target object, the electronic device displays a second preview interface, and the second preview interface is used to Display the second preview image captured by the second camera.
也就是说,在电子设备显示第一预览界面时,若电子设备确定长焦摄像头锁定目标对象,则可以切换到全屏预览长焦摄像头采集到的图像。That is to say, when the electronic device displays the first preview interface, if the electronic device determines that the telephoto camera locks the target object, it may switch to a full-screen preview of the image captured by the telephoto camera.
在另一种可能的设计中,在电子设备显示第二预览界面之后,该方法还包括:电子设备自动拍摄图像。In another possible design, after the electronic device displays the second preview interface, the method further includes: the electronic device automatically captures an image.
其中,由于电子设备确定长焦摄像头锁定目标对象后,才切换到显示第二预览界面。因而,切换到显示第二预览界面后,电子设备可以自动拍摄图像,从而节省用户指示拍摄的操作。Wherein, because the electronic device determines that the telephoto camera locks the target object, it switches to displaying the second preview interface. Therefore, after switching to displaying the second preview interface, the electronic device can automatically capture an image, thereby saving the user's operation of instructing to capture.
在另一种可能的设计中,电子设备自动拍摄图像,包括:若电子设备确定第二摄像头锁定目标对象,则电子设备自动拍摄图像。该方法还包括:若电子设备确定第二摄像头未锁定目标对象,则电子设备显示第一提示信息。In another possible design, the electronic device automatically captures an image, including: if the electronic device determines that the second camera locks on the target object, the electronic device automatically captures an image. The method further includes: if the electronic device determines that the second camera has not locked the target object, the electronic device displays first prompt information.
也就是说,在电子设备切换到显示第二预览界面后,电子设备长焦摄像头是否锁定目标对象。若锁定目标对象,则自动拍摄图像;若未锁定目标对象,则继续提示用户移动电子设备,以便的长焦摄像头再次锁定目标对象。That is, after the electronic device switches to displaying the second preview interface, whether the telephoto camera of the electronic device locks on the target object. If the target object is locked, an image will be automatically taken; if the target object is not locked, the user will continue to be prompted to move the electronic device so that the telephoto camera can lock the target object again.
在另一种可能的设计中,在电子设备自动拍摄图像之后,该方法还包括:若电子设备确定第二摄像头未锁定目标对象,则电子设备显示第一提示信息。电子设备在检测到用户指示拍摄的操作后,拍摄图像。In another possible design, after the electronic device automatically captures the image, the method further includes: if the electronic device determines that the second camera has not locked the target object, the electronic device displays first prompt information. The electronic device captures an image after detecting an operation instructing the user to capture.
在该方案中,在电子设备自动拍摄图像之后,电子设备还可以通过提示信息指示用户移动手机,以便用户可以继续手动拍摄图像。In this solution, after the electronic device automatically captures the image, the electronic device may also instruct the user to move the mobile phone through a prompt message, so that the user can continue to manually capture the image.
在另一种可能的设计中,在电子设备显示第二预览界面之后,该方法还包括:电子设备在检测到用户指示拍摄的操作后,拍摄图像。In another possible design, after the electronic device displays the second preview interface, the method further includes: the electronic device captures an image after detecting an operation instructing the user to capture.
也就是说,在切换到显示第二预览界面后,电子设备可以不自动拍摄图像,而接收到用户的指示后再拍摄图像。That is to say, after switching to displaying the second preview interface, the electronic device may not automatically capture an image, but may capture an image after receiving an instruction from the user.
在另一种可能的设计中,在电子设备显示第二预览界面之后,该方法还包括:若电子设备确定第二摄像头未锁定目标对象,则电子设备显示第一提示信息。电子设备在检测到用户指示拍摄的操作后,拍摄图像。In another possible design, after the electronic device displays the second preview interface, the method further includes: if the electronic device determines that the second camera has not locked the target object, the electronic device displays first prompt information. The electronic device captures an image after detecting an operation instructing the user to capture.
也就是说,电子设备在长焦摄像头未锁定目标对象时,可以通过提示信息持续指示用户移动电子设备。That is to say, when the telephoto camera does not lock the target object, the electronic device can continuously instruct the user to move the electronic device through prompt information.
在另一种可能的设计中,该方法还包括:若电子设备确定第二摄像头锁定目标对象,则电子设备停止显示第一提示信息。In another possible design, the method further includes: if the electronic device determines that the second camera locks on the target object, the electronic device stops displaying the first prompt information.
这样,在长焦摄像头锁定目标对象后,电子设备可以停止提示用户移动电子设备。In this way, after the telephoto camera locks on the target object, the electronic device can stop prompting the user to move the electronic device.
在另一种可能的设计中,若电子设备确定第二摄像头锁定目标对象,则电子设备显示第二提示信息,第二提示信息用于提示用户第二摄像头已锁定目标对象。In another possible design, if the electronic device determines that the second camera has locked the target object, the electronic device displays second prompt information, where the second prompt information is used to prompt the user that the second camera has locked the target object.
这样,在长焦摄像头锁定目标对象后,电子设备可以通过其他提示信息,提醒用户长焦摄像头已锁定目标对象,可以进行拍摄。In this way, after the telephoto camera locks the target object, the electronic device can remind the user that the telephoto camera has locked the target object and can shoot through other prompt information.
在另一种可能的设计中,在电子设备显示第一提示信息之前,该方法还包括:电子设备计算第二摄像头锁定目标对象时,电子设备对应的目标运动姿态。电子设备显示第一提示信息,包括:电子设备根据当前运动姿态和目标运动姿态之间的差值,确定调整信息。电子设备根据调整信息,显示第一提示信息。电子设备确定第二摄像头锁定目标对象,包括:电子设备在当前运动姿态与目标运动姿态匹配时,确定第二摄像头锁定目标对象。In another possible design, before the electronic device displays the first prompt information, the method further includes: the electronic device calculates the target motion posture corresponding to the electronic device when the second camera locks on the target object. The electronic device displaying the first prompt information includes: the electronic device determines the adjustment information according to the difference between the current motion posture and the target motion posture. The electronic device displays the first prompt information according to the adjustment information. The electronic device determining that the second camera locks the target object includes: the electronic device determines that the second camera locks the target object when the current motion posture matches the target motion posture.
在该方案中,电子设备可以根据当前运动姿态和目标运动姿态,显示第一提示信息,并确定长焦摄像头是否锁定目标对象。In this solution, the electronic device may display the first prompt information according to the current motion posture and the target motion posture, and determine whether the telephoto camera locks on the target object.
在另一种可能的设计中,电子设备确定第二摄像头锁定目标对象,包括:电子设备在第二摄像头采集到的预览图像与第二取景框中的图像相匹配时,确定第二摄像头锁定目标对象。In another possible design, the electronic device determines that the second camera locks the target object, including: the electronic device determines that the second camera locks the target when the preview image captured by the second camera matches the image in the second viewfinder frame object.
在该方案中,电子设备可以根据长焦摄像头采集到的预览图像与目标对象的图像是否匹配,来确定长焦摄像头是否锁定目标对象。In this solution, the electronic device may determine whether the telephoto camera locks the target object according to whether the preview image collected by the telephoto camera matches the image of the target object.
在另一种可能的设计中,在电子设备显示第二预览界面之后,该方法还包括:若电子设备检测到用户指示返回的操作后,则还可以退回显示第一预览界面。In another possible design, after the electronic device displays the second preview interface, the method further includes: returning to display the first preview interface if the electronic device detects an operation indicating a return by the user.
在另一种可能的设计中,在电子设备显示第一预览界面之后,该方法还包括:若电子设备检测到目标对象处于运动状态,则电子设备根据目标对象的运动状态移动第二取景框,以使得目标对象在第二取景框内。In another possible design, after the electronic device displays the first preview interface, the method further includes: if the electronic device detects that the target object is in a motion state, the electronic device moves the second viewfinder frame according to the motion state of the target object, so that the target object is within the second viewfinder frame.
也就是说,第二取景框的位置可以随着目标对象的移动而移动,以便第二取景框可以实时将目标对象包含在内。That is to say, the position of the second viewing frame can move along with the movement of the target object, so that the second viewing frame can include the target object in real time.
尤其地,在用户指定目标对象,例如用户拖拽第二取景框以指定目标对象后,第二取景框的位置可以随着目标对象的运动而运动。Especially, after the user designates the target object, for example, after the user drags the second viewfinder frame to designate the target object, the position of the second viewfinder frame may move along with the movement of the target object.
在另一种可能的设计中,若电子设备检测到目标对象处于运动状态,则该方法还包括:电子设备显示运动标记,运动标记用于表示目标对象的运动方向和轮廓。In another possible design, if the electronic device detects that the target object is in a motion state, the method further includes: the electronic device displays a motion mark, where the motion mark is used to represent the motion direction and outline of the target object.
在该方案中,在目标对象运动的情况下,电子设备还可以显示运动标记,以方面用户获知目标对象的运动方向、轮廓大小等信息。In this solution, when the target object is moving, the electronic device can also display a motion mark, so that the user can learn information such as the moving direction and outline size of the target object.
在另一种可能的设计中,电子设备显示第一提示信息,包括:电子设备实时计算第二摄像头锁定目标对象时,电子设备对应的实时目标运动姿态。电子设备根据当前运动姿态和实时目标运动姿态之间的差值,确定调整信息;电子设备根据调整信息,显示第一提示信息。电子设备确定第二摄像头锁定目标对象,包括:电子设备在当前运动姿态与实时目标运动姿态匹配时,确定第二摄像头锁定目标对象。In another possible design, the electronic device displays the first prompt information, including: the electronic device calculates in real time the real-time motion posture of the target corresponding to the electronic device when the second camera locks on the target object. The electronic device determines the adjustment information according to the difference between the current motion posture and the real-time target motion posture; and the electronic device displays the first prompt information according to the adjustment information. The electronic device determining that the second camera locks the target object includes: the electronic device determines that the second camera locks the target object when the current motion posture matches the real-time target motion posture.
也就是说,在目标对象运动的情况下,电子设备可以根据当前实时运动姿态和实时目标运动姿态,显示第一提示信息,并确定长焦摄像头是否锁定目标对象。That is to say, when the target object is moving, the electronic device may display the first prompt information according to the current real-time motion posture and the real-time target motion posture, and determine whether the telephoto camera locks on the target object.
另一方面,本申请实施例提供一种电子设备,包括:一个或多个处理器;存储器,存储器中存储有代码;触摸屏,用于检测触摸操作,以及显示界面;当代码被一个或多个处理器执行时,使得电子设备执行以下步骤:启动相机;采用第一摄像头和第二摄像头分别采集第一预览图像和第二预览图像,第二摄像头为长焦摄像头,第一摄像头的取景范围大于第二摄像头的取景范围。显示第一预览界面,第一预览界面包括第一取景框、第二取景框和第三取景框;第一取景框用于显示第一预览图像;第二取景框内的图像为第一预览图像上的一部分;第二取景框中的内容为第二摄像头待拍摄的目标对象;第三取景框用于显示第二预览图像。显示第一提示信息,第一提示信息用于引导用户移动电子设备,以使得电子设备移动后第二摄像头可锁定目标对象。On the other hand, an embodiment of the present application provides an electronic device, including: one or more processors; a memory, in which codes are stored; a touch screen, used for detecting touch operations, and a display interface; when the code is used by one or more When the processor is executed, the electronic device performs the following steps: start the camera; use the first camera and the second camera to collect the first preview image and the second preview image respectively, the second camera is a telephoto camera, and the viewing range of the first camera is larger than Viewing range of the second camera. Display the first preview interface, the first preview interface includes the first viewfinder frame, the second viewfinder frame and the third viewfinder frame; the first viewfinder frame is used to display the first preview image; the image in the second viewfinder frame is the first preview image part above; the content in the second viewfinder frame is the target object to be photographed by the second camera; the third viewfinder frame is used to display the second preview image. Displaying first prompt information, the first prompt information is used to guide the user to move the electronic device, so that the second camera can lock the target object after the electronic device moves.
在一种可能的设计中,当代码被一个或多个处理器执行时,还使得电子设备执行以下步骤:在显示第一预览界面之后,检测到用户针对第二取景框的拖动操作;响应于拖动操作,在第一预览图像上移动第二取景框,目标对象随着第二取景框位置的变化而变化。In a possible design, when the code is executed by one or more processors, the electronic device is further caused to perform the following steps: after displaying the first preview interface, detecting the user's drag operation on the second viewfinder frame; responding Based on the drag operation, the second viewfinder is moved on the first preview image, and the target object changes with the change of the position of the second viewfinder.
在另一种可能的设计中,当代码被一个或多个处理器执行时,还使得电子设备执行以下步骤:当第二取景框靠近第三取景框时,将第三取景框移开,以避开第二取景框。In another possible design, when the code is executed by one or more processors, the electronic device is further caused to perform the following steps: when the second viewfinder is close to the third viewfinder, move the third viewfinder away to Avoid the secondary frame.
在另一种可能的设计中,第一提示信息用于指示电子设备的移动方向和移动距离。In another possible design, the first prompt information is used to indicate the moving direction and moving distance of the electronic device.
在另一种可能的设计中,第一提示信息为箭头,箭头的指向用于指示移动方向,箭头的长度用户指示移动距离;在朝箭头指示的方向移动后,箭头的长度变短。In another possible design, the first prompt information is an arrow, the direction of the arrow is used to indicate the moving direction, and the length of the arrow indicates the moving distance; after moving in the direction indicated by the arrow, the length of the arrow becomes shorter.
在另一种可能的设计中,第二取景框的尺寸越小,第三取景框内第二预览图像的变焦倍率越大;第二取景框的尺寸越大,第三取景框内第二预览图像的变焦倍率越小。当代码被一个或多个处理器执行时,还使得电子设备执行以下步骤:在显示第一预览界面后,检测到用户调整第二取景框的尺寸的操作;调整第二取景框的尺寸;根据调整后的第二取景框的尺寸确定变焦倍率;根据变焦倍率,显示第三取景框内的第二预览图像。In another possible design, the smaller the size of the second viewfinder, the larger the zoom ratio of the second preview image in the third viewfinder; the larger the size of the second viewfinder, the larger the zoom ratio of the second preview image in the third viewfinder The zoom magnification of the image is smaller. When the code is executed by one or more processors, it also causes the electronic device to perform the following steps: after the first preview interface is displayed, it is detected that the user adjusts the size of the second viewing frame; the size of the second viewing frame is adjusted; according to The adjusted size of the second viewfinder frame determines the zoom ratio; according to the zoom ratio, the second preview image in the third viewfinder frame is displayed.
在另一种可能的设计中,当代码被一个或多个处理器执行时,还使得电子设备执行以下步骤:在显示第一提示信息之后,若确定第二摄像头锁定目标对象,则显示第二预览界面,第二预览界面用于显示第二摄像头采集到的第二预览图像。In another possible design, when the code is executed by one or more processors, the electronic device is further caused to perform the following steps: after displaying the first prompt information, if it is determined that the second camera locks the target object, then display the second prompt information. The preview interface, the second preview interface is used to display the second preview image captured by the second camera.
在另一种可能的设计中,当代码被一个或多个处理器执行时,还使得电子设备执行以下步骤:在显示第二预览界面之后,自动拍摄图像。In another possible design, when the code is executed by one or more processors, the electronic device is further caused to perform the following step: automatically capture an image after displaying the second preview interface.
在另一种可能的设计中,自动拍摄图像,包括:若确定第二摄像头锁定目标对象,则自动拍摄图像。当代码被一个或多个处理器执行时,还使得电子设备执行以下步骤:若确定第二摄像头未锁定目标对象,则显示第一提示信息。In another possible design, automatically capturing an image includes: automatically capturing an image if it is determined that the second camera locks on the target object. When the code is executed by one or more processors, the electronic device is further caused to execute the following steps: if it is determined that the second camera has not locked the target object, then display the first prompt information.
在另一种可能的设计中,当代码被一个或多个处理器执行时,还使得电子设备执行以下步骤:在自动拍摄图像之后,若确定第二摄像头未锁定目标对象,则显示第一提示信息。在检测到用户指示拍摄的操作后,拍摄图像。In another possible design, when the code is executed by one or more processors, the electronic device is further caused to perform the following steps: after automatically capturing the image, if it is determined that the second camera has not locked the target object, then display the first prompt information. After detecting an operation instructing the user to capture, the image is captured.
在另一种可能的设计中,当代码被一个或多个处理器执行时,还使得电子设备执行以下步骤:在显示第二预览界面之后,在检测到用户指示拍摄的操作后,拍摄图像。In another possible design, when the code is executed by one or more processors, the electronic device is further caused to perform the following steps: after displaying the second preview interface, after detecting the user's instruction to shoot, take an image.
在另一种可能的设计中,当代码被一个或多个处理器执行时,还使得电子设备执行以下步骤:在显示第二预览界面之后,若确定第二摄像头未锁定目标对象,则显示第一提示信息。在检测到用户指示拍摄的操作后,拍摄图像。In another possible design, when the code is executed by one or more processors, the electronic device is further caused to perform the following steps: after displaying the second preview interface, if it is determined that the second camera does not lock the target object, then display the second preview interface. A reminder message. After detecting an operation instructing the user to capture, the image is captured.
在另一种可能的设计中,当代码被一个或多个处理器执行时,还使得电子设备执行以下步骤:若确定第二摄像头锁定目标对象,则停止显示第一提示信息。In another possible design, when the code is executed by one or more processors, the electronic device is further caused to perform the following step: if it is determined that the second camera locks on the target object, stop displaying the first prompt information.
在另一种可能的设计中,当代码被一个或多个处理器执行时,还使得电子设备执行以下步骤:若确定第二摄像头锁定目标对象,则显示第二提示信息,第二提示信息用于提示用户第二摄像头已锁定目标对象。In another possible design, when the code is executed by one or more processors, the electronic device is further caused to perform the following steps: if it is determined that the second camera locks the target object, then display a second prompt message, and the second prompt message uses It is used to prompt the user that the second camera has locked the target object.
在另一种可能的设计中,当代码被一个或多个处理器执行时,还使得电子设备执行以下步骤:在显示第一提示信息之前,计算第二摄像头锁定目标对象时,对应的目标运动姿态。显示第一提示信息,包括:根据当前运动姿态和目标运动姿态之间的差值,确定调整信息;根据调整信息,显示第一提示信息。确定第二摄像头锁定目标对象,包括:在当前运动姿态与目标运动姿态匹配时,确定第二摄像头锁定目标对象。In another possible design, when the code is executed by one or more processors, the electronic device is further caused to perform the following steps: before displaying the first prompt information, calculate the corresponding target motion when the second camera locks the target object attitude. Displaying the first prompt information includes: determining adjustment information according to the difference between the current motion posture and the target motion posture; and displaying the first prompt information according to the adjustment information. Determining that the second camera locks the target object includes: determining that the second camera locks the target object when the current motion posture matches the target motion posture.
在另一种可能的设计中,当代码被一个或多个处理器执行时,还使得电子设备执行以下步骤:在显示第一预览界面之后,若检测到目标对象处于运动状态,则根据目标对象的运动状态移动第二取景框,以使得目标对象在第二取景框内。In another possible design, when the code is executed by one or more processors, the electronic device is further caused to perform the following steps: after displaying the first preview interface, if it is detected that the target object is in a motion state, then according to the target object The motion state of moves the second viewfinder frame so that the target object is within the second viewfinder frame.
在另一种可能的设计中,当代码被一个或多个处理器执行时,还使得电子设备执行以下步骤:若检测到目标对象处于运动状态,则显示运动标记。该运动标记用于表示目标对象的运动方向和轮廓。In another possible design, when the code is executed by one or more processors, the electronic device is further caused to perform the following step: if it is detected that the target object is in a motion state, then display a motion mark. The motion marker is used to represent the motion direction and outline of the target object.
在另一种可能的设计中,显示第一提示信息,包括:实时计算第二摄像头锁定目标对象时,对应的实时目标运动姿态;根据当前运动姿态和实时目标运动姿态之间的差值,确定调整信息;根据调整信息,显示第一提示信息。确定第二摄像头锁定目标对象,包括:在当前运动姿态与实时目标运动姿态匹配时,确定第二摄像头锁定目标对象。In another possible design, displaying the first prompt information includes: calculating in real time the corresponding real-time target motion posture when the second camera locks the target object; according to the difference between the current motion posture and the real-time target motion posture, determine Adjustment information; display the first prompt information according to the adjustment information. Determining that the second camera locks the target object includes: determining that the second camera locks the target object when the current motion posture matches the real-time target motion posture.
另一方面,本申请实施例提供了一种拍摄装置,该装置包含在电子设备中,该装置具有实现上述方面及可能的设计中任一方法中电子设备行为的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括至少一个与上述功能相对应的模块或单元。例如,启动模块或单元,采集模块或单元,显示模块或单元,处理模块或单元,移动模块或单元,拍摄模块或单元等。On the other hand, an embodiment of the present application provides a photographing device, which is included in an electronic device, and has a function of realizing the behavior of the electronic device in any method in the above aspects and possible designs. This function may be implemented by hardware, or may be implemented by executing corresponding software on the hardware. Hardware or software includes at least one module or unit corresponding to the above functions. For example, a starting module or unit, an acquisition module or unit, a display module or unit, a processing module or unit, a moving module or unit, a photographing module or unit, etc.
另一方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述方面任一项可能的设计中的拍摄方法。On the other hand, an embodiment of the present application provides a computer storage medium, including computer instructions. When the computer instructions are run on the electronic device, the electronic device is made to execute the photographing method in any possible design of the above aspects.
又一方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述方面任一项可能的设计中的拍摄方法。In yet another aspect, an embodiment of the present application provides a computer program product, which, when the computer program product is run on a computer, causes the computer to execute the photographing method in any possible design of the above aspect.
附图说明Description of drawings
图1A为本申请实施例提供的一种电子设备的结构示意图;FIG. 1A is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图1B为本申请实施例提供的一种摄像头的分布示意图;FIG. 1B is a schematic distribution diagram of a camera provided in an embodiment of the present application;
图1C为本申请实施例提供的一组不同摄像头的取景范围的示意图;FIG. 1C is a schematic diagram of a group of viewfinder ranges of different cameras provided by an embodiment of the present application;
图1D为本申请实施例提供的另一组不同摄像头的取景范围的示意图;FIG. 1D is a schematic diagram of another set of viewfinder ranges of different cameras provided by the embodiment of the present application;
图2A为本申请实施例提供的一组启动相机的界面示意图;FIG. 2A is a schematic diagram of an interface of a group of starting cameras provided by the embodiment of the present application;
图2B为本申请实施例提供的一种预览界面示意图;FIG. 2B is a schematic diagram of a preview interface provided by the embodiment of the present application;
图3为本申请实施例提供的一组进入长焦辅助模式示意图;Fig. 3 is a set of schematic diagrams of entering the telephoto assist mode provided by the embodiment of the present application;
图4A-图4C为本申请实施例提供的另一组进入长焦辅助模式的示意图;FIG. 4A-FIG. 4C are schematic diagrams of another set of entering the telephoto assist mode provided by the embodiment of the present application;
图5A-图5G为本申请实施例提供的一组长焦辅助预览界面示意图;5A-5G are schematic diagrams of a group of telephoto auxiliary preview interfaces provided by the embodiment of the present application;
图6为本申请实施例提供的一种不同摄像头与不同区域的对应关系示意图;FIG. 6 is a schematic diagram of the corresponding relationship between different cameras and different regions provided by the embodiment of the present application;
图7A-7D为本申请实施例提供的一组提示标识的示意图;7A-7D are schematic diagrams of a set of reminder signs provided by the embodiment of the present application;
图8A-8C为本申请实施例提供的一组长焦预览界面的示意图;8A-8C are schematic diagrams of a group of telephoto preview interfaces provided by the embodiment of the present application;
图9A-9B为本申请实施例提供的另一组提示标识的示意图;9A-9B are schematic diagrams of another set of reminder signs provided by the embodiment of the present application;
图10A-10B为本申请实施例提供的一组运动标记的示意图;10A-10B are schematic diagrams of a group of motion markers provided by the embodiment of the present application;
图11A-图11C为本申请实施例提供的一组长焦辅助录像的界面示意图;11A-11C are schematic diagrams of interfaces of a group of telephoto auxiliary video recordings provided by the embodiment of the present application;
图12为本申请实施例提供的一种拍摄方法流程图。FIG. 12 is a flowchart of a shooting method provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Among them, in the description of the embodiments of this application, unless otherwise specified, "/" means or means, for example, A/B can mean A or B; "and/or" in this article is only a description of associated objects The association relationship of indicates that there may be three kinds of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. In addition, in the description of the embodiments of the present application, "plurality" refers to two or more than two.
长焦摄像头的取景范围小,长焦摄像头拍摄的图像上物体的尺寸较大,可以适用于拍摄远处的物体,特写场景,物体细节,或专门拍摄某个较小的物体。广角摄像头和中焦摄像头的取景范围较大,可以拍摄较大范围内的物体和画面。The viewfinder range of the telephoto camera is small, and the size of the object on the image taken by the telephoto camera is relatively large, which can be suitable for shooting distant objects, close-up scenes, object details, or specially shooting a certain smaller object. The wide-angle camera and the medium-focus camera have a larger viewfinder range, and can capture objects and pictures in a larger range.
在由广角摄像头或中焦摄像头等其他摄像头切换到长焦摄像头进行拍摄时,电子设备容易丢失待拍摄的目标对象。即,电子设备通过长焦摄像头难以锁定目标对象。用户无法在长焦摄像头的预览界面上看到目标对象。现有技术中,在丢失目标对象后,用户并不知道目标对象的具体位置,因而通常盲目地向四周试探性搜索,以期望寻找到目标对象。并且,由于长焦摄像头的取景范围(或称可拍摄的视角范围)小,且目标对象通常距离用户较远,因而用户在搜寻时也比较容易错过目标对象。因此,用户往往花费较多的时间和精力,也难以搜寻到目标对象。When switching from other cameras such as a wide-angle camera or a medium-focus camera to a telephoto camera for shooting, the electronic device is likely to lose the target object to be photographed. That is, it is difficult for an electronic device to lock a target object through a telephoto camera. Users cannot see the target object on the preview interface of the telephoto camera. In the prior art, after the target object is lost, the user does not know the specific location of the target object, and thus usually tentatively searches around blindly, hoping to find the target object. Moreover, since the telephoto camera has a small viewing range (or a field of view that can be photographed), and the target object is usually far away from the user, it is easier for the user to miss the target object when searching. Therefore, the user often spends more time and energy, and it is also difficult to search for the target object.
本申请实施例提供了一种拍摄方法,可以应用于电子设备。例如,该电子设备具体可以是手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobilepersonal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)或专门的照相机(例如单反相机、卡片式相机)等,本申请实施例对电子设备的具体类型不作任何限制。An embodiment of the present application provides a photographing method, which can be applied to an electronic device. For example, the electronic device may specifically be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a notebook computer, an ultra-mobile personal computer (ultra-mobilepersonal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA) or specialized camera (such as single-lens reflex camera, card camera), etc., the embodiment of the present application does not make any limitation on the specific type of electronic equipment.
在本申请的实施例中,在拍摄场景下,用户可以指定目标对象。在电子设备由广角摄像头或中焦摄像头等其他摄像头切换到长焦摄像头后,电子设备可以根据用户指定的目标对象,指引用户移动电子设备。用户可以根据该指引移动电子设备,从而使得移动电子设备后长焦摄像头能够快速锁定目标对象。进而,电子设备可以采用长焦摄像头拍摄目标对象的图像。In the embodiment of the present application, in the shooting scene, the user can specify the target object. After the electronic device switches from a wide-angle camera or a medium-focus camera and other cameras to a telephoto camera, the electronic device can guide the user to move the electronic device according to the target object specified by the user. The user can move the electronic device according to the guidance, so that the telephoto camera behind the mobile electronic device can quickly lock the target object. Furthermore, the electronic device may use a telephoto camera to capture an image of the target object.
示例性的,图1A示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。Exemplarily, FIG. 1A shows a schematic structural diagram of an electronic device 100 . The electronic device 100 may include a
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Wherein, the controller may be the nerve center and command center of the electronic device 100 . The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments,
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL). In some embodiments,
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments,
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。I2S接口和PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal. In some embodiments, the
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(displayserial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also provide power for electronic devices through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 170A,
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light emitting diode). AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
在拍摄场景下,显示屏194可以显示摄像头采集到的预览图像。在一些实施例中,显示屏194可以显示辅助取景框,目标取景框和实时取景框。辅助取景框用于显示辅助预览图像。该辅助预览图像为长焦摄像头以外的辅助摄像头采集到的预览图像。例如,该辅助摄像头为广角摄像头或中焦摄像头。目标取景框用于显示用户在辅助预览图像上指定的,长焦摄像头待拍摄的目标对象。实时取景框用于显示长焦摄像头实时采集到的预览图像。In a shooting scene, the display screen 194 can display a preview image captured by the camera. In some embodiments, the display screen 194 can display an auxiliary view frame, a target view frame and a live view frame. The secondary viewfinder is used to display secondary preview images. The auxiliary preview image is a preview image collected by an auxiliary camera other than the telephoto camera. For example, the auxiliary camera is a wide-angle camera or a medium-focus camera. The target viewfinder frame is used to display the target object to be photographed by the telephoto camera specified by the user on the auxiliary preview image. The live view frame is used to display the preview image captured by the telephoto camera in real time.
在另一些实施例中,显示屏194还可以显示提示信息,以指引用户移动电子设备100,以便移动后的电子设备100通过长焦摄像头可以快速锁定目标对象,从而进行图像拍摄。In some other embodiments, the display screen 194 may also display prompt information to guide the user to move the electronic device 100, so that the moved electronic device 100 can quickly lock on the target object through the telephoto camera for image capture.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used for processing the data fed back by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the optical signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the electronic device 100 may include N cameras 193 , where N is a positive integer greater than 1.
其中,该N个摄像头可以包括多个后置摄像头。该N个摄像头还可以包括一个或多个前置摄像头。或者,该摄像头也可以是可升降的摄像头。Wherein, the N cameras may include multiple rear cameras. The N cameras may also include one or more front cameras. Alternatively, the camera can also be a liftable camera.
该N个摄像头可以包括多种类型的摄像头。例如,该N个摄像头可以包括长焦摄像头,以及广角摄像头、中焦摄像头或飞行时间(time of flight,TOF)摄像头等中的一种或多种。其中,广角摄像头可以包括取景范围很大的超广角摄像头。The N cameras may include multiple types of cameras. For example, the N cameras may include a telephoto camera, and one or more of a wide-angle camera, a medium-focus camera, or a time of flight (time of flight, TOF) camera. Wherein, the wide-angle camera may include an ultra-wide-angle camera with a large viewing range.
该N个摄像头可以包括不同焦段的摄像头。该焦段可以包括但不限于:焦长小于预设值1(例如35mm)的第一焦段(也称短焦段),焦长大于或者等于预设值1,且小于或者等于预设值2(例如85mm)的第二焦段(也称中焦段),焦长大于预设值2的第三焦段(也称长焦段)。其中,第一焦段的摄像头可拍摄的取景范围较大,第一焦段的摄像头可以为广角摄像头。第三焦段的摄像头可拍摄的取景范围较小,第三焦段的摄像头可以为长焦摄像头。第二焦段的摄像头可拍摄的取景范围的大小居中,第二焦段的摄像头可以为中焦摄像头。The N cameras may include cameras with different focal lengths. The focal length may include, but is not limited to: a first focal length (also called a short focal length) whose focal length is less than a preset value 1 (for example, 35mm), and whose focal length is greater than or equal to a preset value 1, and less than or equal to a preset value 2 (for example, 85mm), the second focal length (also known as the middle focal length), and the third focal length (also known as the telephoto length) whose focal length is greater than the default value of 2. Wherein, the camera of the first focal length can capture a larger viewing range, and the camera of the first focal length may be a wide-angle camera. The camera with the third focal length has a narrow viewfinder range, and the camera with the third focal length may be a telephoto camera. The viewfinder range that the camera of the second focal length can shoot is in the middle, and the camera of the second focal length can be a medium-focus camera.
示例性的,当电子设备100包括广角摄像头、中焦摄像头和长焦摄像头时,这3个摄像头的分布示意图可以参见图1B。这三个摄像头可拍摄的取景范围可以参见图1C。Exemplarily, when the electronic device 100 includes a wide-angle camera, a medium-focus camera, and a telephoto camera, refer to FIG. 1B for a schematic distribution diagram of these three cameras. The viewfinder ranges that these three cameras can shoot can be referred to in FIG. 1C .
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The
内部存储器121可以用于存储计算机可执行程序代码,可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer-executable program codes including instructions. The
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used for connecting wired earphones. The earphone interface 170D may be the USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100当前实时的运动姿态(例如电子设备100的倾斜角度和所处位置等)。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyroscope sensor 180B can be used to determine the current real-time motion posture of the electronic device 100 (such as the tilt angle and position of the electronic device 100 , etc.). In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
电子设备100的运动姿态不同,电子设备100上的摄像头拍摄到的内容也不同。示例性的,对比图1C和图1D可知,当电子设备100的运动姿态发生变化时,广角摄像头和长焦摄像头可拍摄到的内容也发生了变化。The motion posture of the electronic device 100 is different, and the content captured by the camera on the electronic device 100 is also different. For example, comparing FIG. 1C and FIG. 1D , it can be seen that when the motion posture of the electronic device 100 changes, the content that can be captured by the wide-angle camera and the telephoto camera also changes.
若要使得长焦摄像头拍摄到目标对象,则可以通过移动电子设备100,改变电子设备100的运动姿态,从而改变长焦摄像头可拍摄到的内容,使得目标对象在长焦摄像头的取景范围之内。To make the telephoto camera capture the target object, the electronic device 100 can be moved to change the motion posture of the electronic device 100, thereby changing the content that the telephoto camera can capture, so that the target object is within the viewfinder range of the telephoto camera .
在一些实施例中,处理器110可以根据用户指定的目标取景框内的目标对象,确定采用长焦摄像头拍摄到目标对象时,电子设备100所对应的目标运动姿态。处理器110还可以根据电子设备100当前实时的运动姿态与目标运动姿态之间的差值,给用户以提示,以指引用户根据该提示移动电子设备100。以便,电子设备100在移动后可以通过长焦摄像头快速锁定目标对象,从而进行图像拍摄。In some embodiments, the
在另一些实施例中,当目标对象运动时,处理器110还可以采用图像识别技术追踪运动的目标对象,并确定采用长焦摄像头拍摄到运动的目标对象时,电子设备100对应的实时的目标运动姿态。处理器110还可以根据当前实时的运动姿态与实时的目标运动姿态之间的差值,给用户以提示,以指引用户根据提示移动电子设备100。以便,电子设备100在移动后可以通过长焦摄像头快速锁定目标对象,并进行图像拍摄。In other embodiments, when the target object is moving, the
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a clamshell machine, the electronic device 100 can detect opening and closing of the clamshell according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。The distance sensor 180F is used to measure the distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The electronic device 100 emits infrared light through the light emitting diode. Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 . The electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to make a call, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used for sensing ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket, so as to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from being shut down abnormally due to the low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone. The
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The
在本申请的实施例中,用户可以指定长焦摄像头待拍摄的目标对象。陀螺仪传感器180B等传感器可以实时确定电子设备100当前实时的运动姿态。处理器110可以根据用户在目标取景框内指定的目标对象,确定采用长焦摄像头拍摄到目标对象时,电子设备100对应的目标运动姿态。处理器110还可以根据当前实时的运动姿态与目标运动姿态之间的差值,给用户以提示,以指引用户根据提示移动电子设备100。以便,电子设备100在移动后可以通过长焦摄像头快速锁定目标对象,从而进行图像拍摄。In the embodiment of the present application, the user may designate a target object to be photographed by the telephoto camera. Sensors such as the gyro sensor 180B can determine the current real-time motion posture of the electronic device 100 in real time. The
以下将以具有图1A所示结构的电子设备为手机,手机包括触摸屏为例,对本申请实施例提供的拍摄方法进行阐述。如上,触摸屏可以包括显示面板和触摸面板。显示面板可以显示界面。触摸面板可以检测用户的触摸操作,并上报给手机处理器进行相应的处理。The photographing method provided by the embodiment of the present application will be described below by taking the electronic device having the structure shown in FIG. 1A as a mobile phone, and the mobile phone includes a touch screen as an example. As above, the touch screen may include a display panel and a touch panel. The display panel can display an interface. The touch panel can detect the user's touch operation and report it to the mobile phone processor for corresponding processing.
在一些实施例中,用户在使用手机拍摄图像时,可以通过触摸操作、按键操作、隔空手势操作或语音操作等方式,指示手机启动相机。示例性的,如图2A中的(a)所示,手机在检测到用户点击相机图标201的操作后,启动相机功能。In some embodiments, when using the mobile phone to take images, the user can instruct the mobile phone to start the camera by means of touch operation, key operation, air gesture operation or voice operation. Exemplarily, as shown in (a) in FIG. 2A , the mobile phone activates the camera function after detecting that the user clicks the
在一些实施例中,手机在启动相机后可以自动进入拍照模式、录像模式或长焦辅助模式等拍摄模式,并显示预览界面。In some embodiments, after starting the camera, the mobile phone can automatically enter a shooting mode such as a camera mode, a video recording mode, or a telephoto assist mode, and display a preview interface.
示例性的,手机在检测到用户点击如图2A中的(a)所示的相机图标201的操作后,可以自动进入拍照模式。在一个示例中,手机可以显示如图2A中的(b)所示的预览界面202。在另一示例中显示如图2B所示的预览界面。图2A或图2B所示的预览界面包括取景框。取景框内可以显示默认的摄像头采集到的预览图像。例如,该默认的摄像头可以为广角摄像头。Exemplarily, after the mobile phone detects that the user clicks the
手机在启动相机后,若未进入长焦辅助模式,则手机可以根据用户的指示进入长焦辅助模式;或者,手机可以根据变焦倍率自动进入长焦辅助模式。After starting the camera, if the mobile phone has not entered the telephoto assist mode, the mobile phone may enter the telephoto assist mode according to the user's instruction; or, the mobile phone may automatically enter the telephoto assist mode according to the zoom ratio.
示例性的,在图2A中的(b)所示的预览界面202上,若手机检测到用户点击控件203的操作,则可以进入长焦辅助模式。Exemplarily, on the
再示例性的,参见图2A中的(c),手机检测到用户在预览界面202上,指示增大变焦倍率的操作。例如,指示增大变焦倍率的操作可以是,用户拖动预览界面202上的变焦标尺204的操作,或者用户手指在预览界面202上进行与捏合相反的操作。若增大后的变焦倍率大于或者等于预设值3(例如为5倍),则手机可以自动进入长焦辅助模式。For another example, referring to (c) in FIG. 2A , the mobile phone detects that the user is on the
再示例性的,在图3中的(a)所示拍照模式下的预览界面上,若手机检测到用户点击控件301的操作,则可以显示如图3中的(c)所示的设置界面。或者,在图3中的(b)所示的预览界面上,若手机检测到用户点击控件302的操作,则可以显示如图3中的(c)所示的设置界面。而后,若手机检测到用户点击控件303的操作,则进入长焦辅助模式。As another example, on the preview interface in the camera mode shown in (a) in Figure 3, if the mobile phone detects that the user clicks on the control 301, the setting interface as shown in (c) in Figure 3 can be displayed . Alternatively, on the preview interface shown in (b) in FIG. 3 , if the mobile phone detects that the user clicks on the control 302 , the setting interface shown in (c) in FIG. 3 may be displayed. Then, if the mobile phone detects that the user clicks on the
再示例性的,在拍照模式下,手机显示的预览界面上可以包括摄像头标识。手机在检测到用户选择长焦摄像头标识的操作后,确定用户选择长焦摄像头拍摄图像,从而进入长焦辅助模式。例如,参见图4A,手机的预览界面包括后置广角摄像头标识401,后置中角摄像头标识402,后置长焦摄像头标识403等。当手机检测到用户点击标识403的操作后,进入长焦辅助模式。As another example, in the camera mode, the preview interface displayed on the mobile phone may include a camera logo. After the mobile phone detects the user's operation of selecting the telephoto camera logo, it determines that the user selects the telephoto camera to capture images, thereby entering the telephoto assist mode. For example, referring to FIG. 4A , the preview interface of the mobile phone includes a rear wide-
再示例性的,在拍照模式下,手机可以提示用户是否进入长焦辅助模式。或者,在拍照模式下,手机在确定用户选择长焦摄像头拍摄图像后,手机可以提示用户是否进入长焦辅助模式。例如,参见图4B,手机可以显示信息405以对用户进行提示;手机在检测到用户点击控件406的操作后,进入长焦辅助模式。As another example, in the camera mode, the mobile phone may prompt the user whether to enter the telephoto assist mode. Alternatively, in the camera mode, after the mobile phone determines that the user selects the telephoto camera to capture images, the mobile phone may prompt the user whether to enter the telephoto assist mode. For example, referring to FIG. 4B , the mobile phone may display
再示例性的,在拍照模式或录像模式下,手机在检测到用户在触摸屏上画了一个预设轨迹1(例如“F”轨迹)的操作后,进入长焦辅助模式。As another example, in the camera mode or video recording mode, the mobile phone enters the telephoto assist mode after detecting that the user draws a preset track 1 (for example, "F" track) on the touch screen.
在另一些实施例中,手机在显示桌面或显示其他应用的界面时,在用户想要使用手机的长焦辅助模式时,手机可以根据用户的触摸操作、隔空手势操作、语音操作或按键操作等指示,启动相机功能并直接进入长焦辅助模式。In some other embodiments, when the mobile phone is displaying the desktop or other application interfaces, when the user wants to use the telephoto assist mode of the mobile phone, the mobile phone can operate according to the user's touch operation, air gesture operation, voice operation or button operation Wait for the instruction to start the camera function and directly enter the telephoto assist mode.
示例性的,手机在显示桌面或显示其他应用的界面时,若接收到用户语音指示进入长焦辅助模式的指令,则启动相机并进入长焦辅助模式。再示例性的,在亮屏并显示桌面的情况下,或者在如图4C所示的黑屏情况下,若手机检测到用户在触摸屏上画了一个预设轨迹2(例如“CF”轨迹)的操作,则启动相机并进入长焦辅助模式。Exemplarily, when the mobile phone is displaying the desktop or displaying the interface of other applications, if it receives an instruction from the user's voice indicating to enter the telephoto assist mode, it will start the camera and enter the telephoto assist mode. As another example, when the screen is bright and the desktop is displayed, or in the case of a black screen as shown in Figure 4C, if the mobile phone detects that the user has drawn a preset track 2 (such as "CF" track) operation, start the camera and enter the telephoto assist mode.
以上描述的进入长焦辅助模式的方式仅为示例性说明,手机还可以通过其他方式进入长焦辅助模式,本申请实施例对该具体方式不予限定。The method for entering the telephoto assist mode described above is only for illustration, and the mobile phone may also enter the telephoto assist mode through other methods, which are not limited in the embodiment of the present application.
在进入长焦辅助模式后,手机开启辅助摄像头和长焦摄像头。手机可以显示长焦辅助预览界面。如图5A或图5B所示,长焦辅助预览界面501可以包括辅助取景框502和目标取景框503。在一些实施例中,如图5C或图5D所示,长焦辅助预览界面501还可以包括实时取景框504。After entering the telephoto assist mode, the mobile phone turns on the auxiliary camera and the telephoto camera. The mobile phone can display the telephoto auxiliary preview interface. As shown in FIG. 5A or FIG. 5B , the telephoto
其中,辅助取景框502可以用于显示辅助摄像头采集的预览图像,该预览图像也称辅助预览图像。该辅助摄像头可以是默认的摄像头,也可以是用户指定的摄像头。该辅助摄像头可以为取景范围大于长焦摄像头的广角摄像头或中焦摄像头等。在一些实施例中,辅助取景框502可以布满整个显示区域,即手机可以全屏显示辅助预览图像。Wherein, the
示例性的,辅助摄像头为广角摄像头。图5C所示的辅助取景框502中显示广角摄像头采集到的辅助预览图像。手机在检测到用户点击控件505的操作后,可以将辅助摄像头切换为中焦摄像头,辅助取景框502中显示中焦摄像头采集到的辅助预览图像。Exemplarily, the auxiliary camera is a wide-angle camera. The auxiliary preview image captured by the wide-angle camera is displayed in the
辅助取景框502中辅助预览图像的变焦倍率可以根据用户的指示而相应地变化。示例性的,参见图5E,手机检测到用户拖动变焦标尺506的操作后,可以调整辅助取景框502中辅助预览图像的变焦倍率。The zoom ratio of the auxiliary preview image in the
目标取景框503可以用于显示用户在辅助预览图像上指定的,长焦摄像头待拍摄的目标对象。即目标取景框503中的内容为用户指定的目标对象。在一些实施例中,目标取景框503附近可以显示有提示信息,或者手机可以播放语音信息,以提示用户该取景框用于框选目标对象。The
目标取景框503中的图像是辅助预览图像上选取的一部分。目标取景框503中显示的图像大小与辅助预览图像上的图像大小相匹配。在用户指定目标对象后,当辅助取景框502中的辅助预览图像发生变化时,目标取景框503随着辅助预览图像上目标对象位置的移动而移动。当辅助取景框502中图像的变焦倍率变化时,辅助取景框502中显示的图像大小也相应变化,目标取景框503中显示的图像大小也相应变化。The image in the
示例性的,与图5C相比,图5E对应的辅助预览图像的变焦倍率较大,目标取景框503中目标对象的图像尺寸也较大。Exemplarily, compared with FIG. 5C , the zoom magnification of the auxiliary preview image corresponding to FIG. 5E is larger, and the image size of the target object in the
在一些实施例中,在进入长焦辅助预览模式后,目标取景框503可以默认位于辅助预览图像的中心区域,或者默认位于用户上一次指定的位置,或者默认框选辅助预览图像上的人物、建筑或其他某个物体。用户可以拖动目标取景框503,以使得长焦摄像头待拍摄的目标对象位于目标取景框503内,从而选定长焦摄像头待拍摄的目标对象。并且,用户还可以通过拖动目标取景框503,改变目标取景框503的位置,更改目标取景框503中的内容,从而更改长焦摄像头待拍摄的目标对象。In some embodiments, after entering the telephoto auxiliary preview mode, the
在另一些实施例中,在进入长焦辅助预览模式后,目标取景框503处于默认位置。目标取景框503中的内容,可能并不是用户想要通过长焦摄像头拍摄的目标对象,用户尚未指定目标对象。手机检测到用户拖动目标取景框503的操作后,确定用户指定了目标对象,目标取景框503中的内容即为用户指定的目标对象。In some other embodiments, after entering the telephoto auxiliary preview mode, the
在目标取景框503移动的过程中,实时取景框504还可以自动进行移动,以避让目标取景框503,从而避免实时取景框504和目标取景框503发生重叠,方便用户直观、清楚地看到实时取景框504和目标取景框503中的内容。During the moving process of the
示例性的,在图5C所示的情况下,用户拖动目标取景框503后,手机显示的长焦辅助预览界面可以如图5F所示。Exemplarily, in the situation shown in FIG. 5C , after the user drags the
在一些实施例中,目标取景框503的大小是固定的。在另一些实施例中,目标取景框503的大小可以发生变化。实时取景框504内显示的图像的变焦倍率可以与目标取景框503的大小负相关。即,目标取景框503越大,则实时取景框504内图像的变焦倍率越小;目标取景框503越小,则实时取景框504内图像的变焦倍率越大。用户可以通过调整目标取景框503的大小,来实时取景框504内图像的变焦倍率。In some embodiments, the size of the
由于实时取景框504中显示的是长焦摄像头实时采集到的预览图像,因而在一些实施例中,长焦摄像头实时采集到的预览图像的变焦倍率也可以与目标取景框503的大小负相关。Since the
示例性的,参见图5G,目标取景框503上显示有数字标记507和缩放标记508。当用户按住缩放标记508拖动目标取景框503的边线时,目标取景框503的大小相应变化。数字标记507中的数字与变化后的目标取景框503的大小相对应。当用户未按住缩放标记508而直接拖动目标取景框503的边线时,目标取景框503的位置发生移动,目标取景框503的大小不变。Exemplarily, referring to FIG. 5G , a
再示例性的,目标取景框503上显示有缩放标记508,当用户点击目标取景框后第一次拖动目标取景框503的边线时,目标取景框503的大小相应变化。当用户点击目标取景框后第n(n为大于1的整数)次拖动目标取景框503的边线时,或者当用户未点击缩放标记508而直接拖动目标取景框503的边线时,目标取景框503的位置发生移动,目标取景框503的大小不变。As another example, a
当实时取景框504内图像的变焦倍率变化时,目标取景框503的大小也随之变化。例如,当用户更改图5G所示的数字标记507中的数字时,或者当用户在实时取景框504里进行捏合操作或与捏合相反的操作时,实时取景框504内图像的变焦倍率发生变化,目标取景框503的大小也随之变化。When the zoom ratio of the image in the
实时取景框504中可以显示长焦摄像头实时采集的预览图像。在一些实施例中,实时取景框504附近可以显示有提示信息,或者手机可以播放语音信息,以提示用户该取景框内显示的图像为长焦摄像头采集到的图像。A preview image captured by the telephoto camera in real time may be displayed in the
在一些实施例中,实时取景框504中显示的图像的尺寸可以与长焦摄像头默认的变焦倍率(例如为5)相对应。在另一些实施例中,实时取景框504内显示的图像的变焦倍率与目标取景框503的大小相对应。当目标取景框503的大小变化时,实时取景框504内显示的图像的变焦倍率也相应变化。示例性的,与图5C相比,图5E中实时取景框504内显示的图像的变焦倍率增大为4,实时取景框504中显示的预览图像的尺寸较大,与变焦倍率4相匹配。在另一些实施例中,实时取景框504中显示的图像的尺寸,可以与辅助预览图像当前的变焦倍率相对应。In some embodiments, the size of the image displayed in the
在一些实施例中,实时取景框504的大小固定。在另一些实施例中,用户也可以修改实时取景框504的大小。In some embodiments, the size of the
在一些实施例中,实时取景框504的尺寸比例(即实时取景框504相邻两边的比例)以及目标取景框503的尺寸比例(即目标取景框503相邻两边的比例),可以与长焦摄像头感光传感器的出图比例(即感光传感器在宽度方向和高度方向形成的图像的比例)相匹配,这样可以尽量使得实时取景框504和目标取景框503的取景范围最大。In some embodiments, the size ratio of the live view frame 504 (i.e. the ratio of the two adjacent sides of the live view frame 504) and the size ratio of the target view frame 503 (i.e. the ratio of the two adjacent sides of the target view frame 503) can be compared with the telephoto The image output ratio of the photosensitive sensor of the camera (that is, the ratio of the image formed by the photosensitive sensor in the width direction and the height direction) matches, so that the viewing range of the real-
在长焦辅助预览界面上,用户可以通过辅助取景框502、目标取景框503和实时取景框504,实时、直观地浏览和对比辅助摄像头采集到的预览图像,目标对象以及长焦摄像头采集到的预览图像。On the telephoto auxiliary preview interface, the user can browse and compare the preview image collected by the auxiliary camera, the target object and the image collected by the telephoto camera in real time and intuitively through the
在一些实施例中,手机可以通过陀螺仪、加速度传感器等传感器确定当前实时的运动姿态。该运动姿态可以包或手机倾斜角度和所处位置等信息。手机根据目标取景框503中指定的目标对象,计算长焦摄像头锁定(或称可拍摄到)目标对象时,即目标对象在长焦摄像头的取景范围内时,手机对应的目标运动姿态。而后,手机可以根据当前实时的运动姿态和目标运动姿态,计算手机从当前实时的运动姿态到目标运动姿态之间的偏移距离,偏移方向、偏转角度等调整信息。手机可以根据调整信息对用户进行提示,以引导用户将手机移动(包括平移、翻转等)到目标运动姿态,从而使得目标对象置于长焦摄像头的取景范围内,使得长焦摄像头可以锁定目标对象,从而进行图像拍摄。In some embodiments, the mobile phone can determine the current real-time motion posture through sensors such as a gyroscope and an acceleration sensor. The motion gesture may include information such as the tilt angle and location of the mobile phone. According to the target object specified in the
例如,当前实时的运动姿态为图1C所示的运动姿态,目标对象为待拍摄对象1。示例性的,待拍摄对象1可以为图5C中目标取景框503中的目标对象。For example, the current real-time motion posture is the motion posture shown in FIG. 1C , and the target object is the object 1 to be photographed. Exemplarily, the object 1 to be photographed may be the target object in the
如图1C所示,待拍摄对象1并不在长焦摄像头取景范围内。对应到图5C所示的长焦辅助预览界面上可知,实时取景框504内采集到的预览图像并不包括目标对象。As shown in FIG. 1C , the subject 1 to be photographed is not within the viewing range of the telephoto camera. Corresponding to the telephoto auxiliary preview interface shown in FIG. 5C , it can be known that the preview image captured in the real-
若要使得长焦摄像头拍摄到待拍摄对象1,则如图1D所示,待拍摄对象1需要置于长焦摄像头的取景范围内。这样,长焦摄像头采集到的预览图像才能包括待拍摄对象1。也就是说,手机需要处于如图1D所示的目标运动姿态,才能使得待拍摄对象1置于长焦摄像头的取景范围内,从而使得长焦摄像头能够锁定待拍摄对象1。To enable the telephoto camera to capture the object 1 to be photographed, as shown in FIG. 1D , the object 1 to be photographed needs to be placed within the viewing range of the telephoto camera. In this way, the preview image collected by the telephoto camera can include the subject 1 to be photographed. That is to say, the mobile phone needs to be in the target motion posture as shown in FIG. 1D so that the subject 1 to be photographed can be placed within the viewing range of the telephoto camera, so that the telephoto camera can lock the subject 1 to be photographed.
在一些技术方案中,手机可以根据长焦摄像头当前采集到的预览图像的内容,在辅助预览图像上的位置(该位置可以称为参考位置),与辅助预览图像上目标对象的位置之间的相对关系,以及手机当前实时的运动姿态,确定目标对象移动到参考位置时,即长焦摄像头可拍摄到目标对象时,手机对应的目标运动姿态。In some technical solutions, the mobile phone may be based on the content of the preview image currently collected by the telephoto camera, the position on the auxiliary preview image (this position may be called a reference position), and the position of the target object on the auxiliary preview image. The relative relationship, as well as the current real-time motion posture of the mobile phone, determine the target motion posture of the mobile phone when the target object moves to the reference position, that is, when the telephoto camera can capture the target object.
在另一些技术方案中,手机可以确定实时取景框中,长焦摄像头采集到的预览图像中的内容,在实际空间中的第一位置,与目标取景框中的目标对象在实际空间中的第二位置之间的相对关系。从而根据该相对关系以及手机当前的实时运动姿态,确定长焦摄像头锁定第二位置的目标对象时,手机对应的目标运动姿态。In some other technical solutions, the mobile phone can determine the first position in the actual space of the content in the preview image collected by the telephoto camera in the real-time viewfinder frame, and the first position in the actual space of the target object in the target viewfinder frame. The relative relationship between the two positions. Therefore, according to the relative relationship and the current real-time motion posture of the mobile phone, when the telephoto camera locks the target object at the second position, the corresponding target motion posture of the mobile phone is determined.
在另一些技术方案中,由于不同摄像头的取景范围不同,因而不同摄像头采集到的预览图像可以对应显示区域的不同区域范围。例如,如图6所示,辅助摄像头的取景范围可以与整个辅助取景框601对应。长焦摄像头的取景范围可以与区域602对应。这样,实时取景框504内显示的长焦摄像头采集到的预览图像的内容,在辅助预览图像上的位置位于区域602内。当目标取景框603中的目标对象不在长焦摄像头的取景范围内时,辅助预览图像上的目标对象在区域602之外。当目标取景框603中的目标对象在长焦摄像头的取景范围内时,辅助预览图像上的目标对象在区域602内。手机可以根据当前辅助预览图像上目标对象与区域602的相对位置以及当前实时的运动姿态,确定目标对象位于区域602中时手机对应的目标运动姿态。In some other technical solutions, since different cameras have different viewing ranges, the preview images collected by different cameras may correspond to different ranges of the display area. For example, as shown in FIG. 6 , the viewing range of the auxiliary camera may correspond to the entire
在一些实施例中,长焦摄像头的取景范围可以与辅助摄像头的取景范围的中心区域重叠。这样,区域602可以为显示区域的中心区域。也即,区域602可以为辅助取景框601的中心区域。In some embodiments, the viewing range of the telephoto camera may overlap with the central area of the viewing range of the auxiliary camera. As such,
从而,手机可以根据当前实时的运动姿态与目标运动姿态之间的差值确定调整信息,并根据调整信息提示用户移动手机。手机根据调整信息对用户进行提示的方法可以有多种。Therefore, the mobile phone can determine adjustment information according to the difference between the current real-time motion posture and the target motion posture, and prompt the user to move the mobile phone according to the adjustment information. There may be multiple methods for the mobile phone to prompt the user according to the adjustment information.
例如,在一些实施例中,手机可以显示提示标识,以指引用户移动手机。例如,该提示标识可以指引用户移动手机的方向。比如,指引用户向上、下、左、右、左上或右下等方向移动手机。示例性的,参见图7A,该提示标识为箭头701。该箭头701所指示的方向即为指引用户移动手机的方向。该箭头701指引用户向左移动手机。再示例性的,参见图7B,该提示标识为箭头702,该箭头702指引用户向左下方移动手机。再示例性的,参见图7C,该提示标识为文字信息703。该文字信息703提示用户“请向左下方移动手机”。For example, in some embodiments, the mobile phone may display prompt signs to guide the user to move the mobile phone. For example, the prompt logo can guide the user to move the mobile phone. For example, guide the user to move the mobile phone in directions such as up, down, left, right, upper left or lower right. For example, referring to FIG. 7A , the prompt is identified as an
需要说明的是,该提示信息可以给用户以大致方向上的指引,避免用户盲目地向四周搜索目标对象导致的长时间的搜寻过程,减少长焦摄像头锁定目标对象的时间,提高用户使用体验。It should be noted that the prompt information can guide the user in the general direction, avoid the long search process caused by the user blindly searching for the target object around, reduce the time for the telephoto camera to lock the target object, and improve the user experience.
需要注意的是,在实际拍摄过程中,用户在根据提示标识移动手机的过程中,通常会自然地翻转手机。用户根据实时取景框和目标取景框中的内容在辅助取景框中的相对位置,或者根据实际三维空间中目标对象的位置,进行主观判断,从而在移动手机的过程中主动翻转手机,以使得长焦摄像头能够更快地锁定目标对象。It should be noted that, in the actual shooting process, the user usually turns the mobile phone over naturally during the process of identifying and moving the mobile phone according to the prompt. The user makes subjective judgments based on the relative positions of the real-time viewfinder frame and the content in the target viewfinder frame in the auxiliary viewfinder frame, or according to the position of the target object in the actual three-dimensional space, and actively flips the mobile phone over during the process of moving the mobile phone, so that the long-term The focus camera can lock on to the target object faster.
在另一些实施例中,该提示标识还可以指引用户移动手机的幅度,使得用户获知移动距离的大小,从而给用户以更为精确地指引,使得用户和长焦摄像头能够更为快速地锁定目标对象,减少用户搜寻目标对象的时间。In other embodiments, the prompt mark can also guide the user to move the mobile phone, so that the user can know the size of the moving distance, so as to give the user more accurate guidance, so that the user and the telephoto camera can lock the target more quickly objects, reducing the time for users to search for target objects.
例如,该提示标识为箭头,该箭头的大小用户表示指引用户移动手机的距离。当用户朝正确方向移动手机时,该箭头变小(或变短);当用户向错误方向移动手机时,该箭头变大(或变长)。再例如,该提示标识为文字信息,该文字信息可以为:“请向左偏下30°方向,移动2cm”。For example, the prompt is identified as an arrow, and the size of the arrow indicates the distance to guide the user to move the mobile phone. When the user moves the phone in the correct direction, the arrow becomes smaller (or shorter); when the user moves the phone in the wrong direction, the arrow becomes larger (or longer). For another example, the prompt is identified as text information, and the text information may be: "Please move 2 cm to the left in a downward direction of 30°".
在另一些实施例中,该提示标识还可以指示用户翻转手机的角度是否正确,从而给用户以更为精确地指引,使得用户和长焦摄像头能够更为快速地锁定目标对象。若用户移动手机的方向正确,且翻转手机的方向也正确,则该箭头变小(或变短)。若用户移动手机的方向正确,但用户翻转手机的方向不正确,则该箭头不变小(或变短)。在用户调整手机的翻转方向后,该箭头才会变小(或变短)。In some other embodiments, the prompt mark can also indicate whether the angle at which the user flips the mobile phone is correct, so as to provide the user with more accurate guidance, so that the user and the telephoto camera can lock the target object more quickly. The arrow becomes smaller (or shorter) if the user is moving the phone in the correct direction and flipping the phone in the correct direction. If the direction in which the user moves the phone is correct, but the direction in which the user flips the phone is incorrect, the arrow does not become smaller (or becomes shorter). The arrow will only get smaller (or shorter) after the user adjusts the flip orientation of the phone.
在另一些实施例中,手机可以通过语音对用户进行持续引导。例如,手机可以语音指示用户“向右上方移动”、“向下移动”等。In other embodiments, the mobile phone can continuously guide the user through voice. For example, the mobile phone can voice instruct the user to "move up to the right", "move down" and so on.
在其他一些实施例中,该提示标识可以对用户调整手机的运动姿态在三维空间内进行提示,从而给用户以更为精确地指引,使得用户和长焦摄像头能够更为快速地锁定目标对象,减少用户搜寻目标对象的时间。例如,提示内容可以包括手机的移动方向和翻转方向。示例性的,参见图7D,该提示标识包括箭头704和箭头705。该箭头704用于提示用户向左移动手机。该箭头705用于提示用户向触摸屏的前方(即具有显示功能的一方)翻转手机。再示例性的,该提示标识为语音提示信息“请向左移动手机,并向触摸屏的前方翻转大约20°”。In some other embodiments, the prompt mark can prompt the user to adjust the motion posture of the mobile phone in the three-dimensional space, thereby giving the user more accurate guidance, so that the user and the telephoto camera can lock the target object more quickly, Reduce the time for users to search for target objects. For example, the prompt content may include the moving direction and the flipping direction of the mobile phone. Exemplarily, referring to FIG. 7D , the prompt mark includes an arrow 704 and an
若用户通过拖动目标取景框,修改了目标对象,则手机还可以根据修改后的目标对象确定调整信息,并根据调整信息对用户进行提示,以指引用户移动手机。If the user modifies the target object by dragging the target viewfinder frame, the mobile phone can also determine adjustment information according to the modified target object, and prompt the user according to the adjustment information to guide the user to move the mobile phone.
在用户根据提示信息的引导移动手机的过程中,目标对象越来越接近长焦摄像头的取景范围。实时取景框中显示的长焦摄像头实时采集到的预览图像,与目标取景框中的目标对象的图像越来越相似。During the process of the user moving the mobile phone according to the guidance of the prompt information, the target object is getting closer and closer to the field of view of the telephoto camera. The preview image captured in real time by the telephoto camera displayed in the real-time viewfinder is more and more similar to the image of the target object in the target viewfinder.
手机在移动后,可以确定目标对象是否在长焦摄像头的取景范围内,即长焦摄像头是否锁定目标对象。例如,手机在确定当前实时的运动姿态与目标运动姿态相匹配时,目标对象基本在长焦摄像他的取景范围内,即确定长焦摄像头基本锁定目标对象。示例性的,手机在确定当前实时的运动姿态与目标运动姿态的相似度大于预设值4(例如90%)时,可以确定当前实时的运动姿态与目标运动姿态相匹配。After the mobile phone moves, it can determine whether the target object is within the viewing range of the telephoto camera, that is, whether the telephoto camera locks on the target object. For example, when the mobile phone determines that the current real-time motion posture matches the target motion posture, the target object is basically within the viewing range of the telephoto camera, that is, it is determined that the telephoto camera basically locks on the target object. Exemplarily, when the mobile phone determines that the similarity between the current real-time motion posture and the target motion posture is greater than a preset value 4 (for example, 90%), it may determine that the current real-time motion posture matches the target motion posture.
手机确定长焦摄像头锁定目标对象后,可以切换到显示长焦预览界面。After the mobile phone determines that the telephoto camera has locked the target object, it can switch to display the telephoto preview interface.
需要注意的是,手机确定长焦摄像头锁定目标对象的方法还可以其他多种方式。例如,手机通过图像识别技术,确定实时取景框504中的图像与目标取景框503中的图像的内容相匹配时,确定长焦摄像头基本锁定目标对象,从而切换到显示长焦预览界面。例如,手机可以计算实时取景框504中的图像和目标取景框503中的图像的相似度。若该相似度大于或者等于预设值5(例如80%),则手机可以确定长焦摄像头基本锁定目标对象。It should be noted that the method for the mobile phone to determine the target object locked by the telephoto camera can also be in other ways. For example, when the mobile phone determines that the content of the image in the real-
例如,基于图像识别进行图像匹配的算法可以包括基于灰度的模板匹配算法,基于特征的匹配算法,光流法等。例如,基于灰度的模板匹配算法可以包括平均绝对差算法(sum of absolute differences,MAD)、绝对误差和算法(sum of squared differences,SAD)、平均误差平方和算法(mean square differences,MSD)、序贯相似性检测算法(sequential similiarity detection algorithm,SSDA)等。For example, the algorithm for image matching based on image recognition may include template matching algorithm based on gray scale, matching algorithm based on feature, optical flow method and so on. For example, grayscale-based template matching algorithms may include mean absolute difference algorithm (sum of absolute differences, MAD), absolute error sum algorithm (sum of squared differences, SAD), mean square difference algorithm (mean square differences, MSD), Sequential similarity detection algorithm (sequential similiarity detection algorithm, SSDA), etc.
一般地,通过图像识别技术确定图像之间的相似度,需要进行卷积等复杂计算,因而消耗的计算资源较多,计算速度较慢。与图像识别相比,通过陀螺仪等传感器采集的数据计算实时运动姿态与目标运动姿态之间的相似度较为简单,所需的计算量较少,计算速度较快。Generally, determining the similarity between images through image recognition technology requires complex calculations such as convolution, which consumes more computing resources and is slower in computing speed. Compared with image recognition, it is relatively simple to calculate the similarity between the real-time motion posture and the target motion posture through the data collected by sensors such as gyroscopes, and requires less calculation and faster calculation speed.
手机切换到显示长焦预览界面后,可以在长焦预览界面上全屏显示长焦摄像头采集到的预览图像。长焦预览界面上不再显示辅助预览图像和目标取景框。After the mobile phone switches to displaying the telephoto preview interface, the preview image collected by the telephoto camera can be displayed in full screen on the telephoto preview interface. The auxiliary preview image and target viewfinder frame are no longer displayed on the telephoto preview interface.
长焦预览界面上图像的尺寸比例与实时取景框中图像的尺寸比例,可以一致,也可以不一致。长焦预览界面上不再显示目标取景框和实时取景框。The size ratio of the image on the telephoto preview interface and the size ratio of the image in the real-time viewfinder frame may or may not be the same. The target viewfinder frame and live viewfinder frame are no longer displayed on the telephoto preview interface.
在一种情况下,切换到场景预览界面后,长焦预览界面上的预览图像的变焦倍率为默认的变焦倍率。用户可以在设置界面修改该默认的变焦倍率的大小。在另一种情况下,切换到长焦预览界面后,长焦预览界面上的预览图像的变焦倍率,与切换前目标取景框的大小对应的变焦倍率一致。In one case, after switching to the scene preview interface, the zoom magnification of the preview image on the telephoto preview interface is the default zoom magnification. The user can modify the size of the default zoom ratio in the setting interface. In another case, after switching to the telephoto preview interface, the zoom magnification of the preview image on the telephoto preview interface is consistent with the zoom magnification corresponding to the size of the target viewfinder frame before switching.
在一些实施例中,长焦预览界面包括拍摄控件。示例性的,参见图8A,手机检测到用户在长焦预览界面上点击拍摄控件801的操作后,拍摄图像。In some embodiments, the telephoto preview interface includes shooting controls. For example, referring to FIG. 8A , the mobile phone captures an image after detecting that the user clicks the
在另一些实施例中,长焦预览界面可以参见图8B或图8C,手机在切换到显示长焦预览界面后,自动拍摄一张或多张图像,从而可以节省用户指示拍摄的操作。In other embodiments, the telephoto preview interface can be referred to in FIG. 8B or 8C. After switching to displaying the telephoto preview interface, the mobile phone automatically captures one or more images, thereby saving the user from instructing the shooting operation.
其中,由于手的抖动或其他原因,在切换到显示长焦预览界面后,目标对象可能会偏离屏幕中心或无法出现在长焦预览界面上(即目标对象丢失),使得长焦摄像头不能锁定目标对象。示例性的,长焦预览界面可以如图9A或图9B所示。Among them, due to hand shaking or other reasons, after switching to displaying the telephoto preview interface, the target object may deviate from the center of the screen or cannot appear on the telephoto preview interface (that is, the target object is lost), so that the telephoto camera cannot lock the target object. Exemplarily, the telephoto preview interface may be as shown in FIG. 9A or FIG. 9B .
因而,在另一些实施例中,在切换到显示长焦预览界面后,手机可以继续确定当前实时的运动姿态。若当前实时的运动姿态与目标运动姿态不匹配;或者,若长焦摄像头实时采集到的预览图像与目标取景框中的图像不匹配,则采用上述实施例中描述的方式继续提示用户移动手机,以便长焦摄像头可以重新锁定目标对象。示例性的,用于提示用户移动手机的提示标识可以为图9A中的箭头901,或者图9B中的箭头902。Therefore, in some other embodiments, after switching to displaying the telephoto preview interface, the mobile phone can continue to determine the current real-time motion gesture. If the current real-time motion posture does not match the target motion posture; or, if the preview image collected by the telephoto camera in real time does not match the image in the target viewfinder frame, then continue to prompt the user to move the mobile phone in the manner described in the above-mentioned embodiment, So that the telephoto camera can re-lock on the target object. Exemplarily, the prompt sign used to prompt the user to move the mobile phone may be the arrow 901 in FIG. 9A or the
在切换到显示长焦预览界面后,若当前实时的运动姿态与目标运动姿态相匹配;或者,若长焦摄像头实时采集到的预览图像与目标取景框中的图像相匹配。或者,若用户根据手机的引导移动手机,使得当前实时的运动姿态与目标运动姿态相匹配;或者,使得长焦摄像头实时采集到的预览图像与目标取景框中的图像相匹配。则,在一种技术方案中,手机自动拍摄图像。在另一种技术方案中,手机可以停止对用户进行提示,并在检测到用户指示拍摄的操作后,再拍摄图像。在另一种技术方案中,手机可以通过显示信息、语音、振动等方式提示用户已锁定目标对象,在检测到用户指示拍摄的操作后,拍摄图像。After switching to displaying the telephoto preview interface, if the current real-time motion posture matches the target motion posture; or, if the preview image captured by the telephoto camera in real time matches the image in the target viewfinder frame. Or, if the user moves the mobile phone according to the guidance of the mobile phone, the current real-time motion posture matches the target motion posture; or, the preview image collected by the telephoto camera in real time matches the image in the target viewfinder frame. Then, in a technical solution, the mobile phone automatically captures images. In another technical solution, the mobile phone may stop prompting the user, and capture an image after detecting an operation instructed by the user to capture. In another technical solution, the mobile phone can prompt the user that the target object has been locked by means of display information, voice, vibration, etc., and capture an image after detecting the operation instructed by the user to shoot.
其中,由于自动拍摄是在当前实时的运动姿态与目标运动姿态匹配时,或者实时取景框504中的图像与目标取景框503中的图像匹配时自动进行的,因而拍摄到的对象是用户指定的目标对象,并且可以节省用户的操作,提高拍摄效率和用户使用体验。Wherein, since the automatic shooting is carried out automatically when the current real-time motion posture matches the target motion posture, or when the image in the real-
手机在拍摄图像后,若目标对象发生偏离(即目标对象不在拍摄的图像的中心)或丢失(即未拍摄到目标对象,拍摄的图像上未出现目标对象),使得长焦摄像头不再锁定目标对象,则手机还可以采用上述实施例中描述的方式继续引导用户,以使得长焦摄像头可以重新锁定目标对象。尤其地,在手机自动拍摄图像后,自动拍摄的图像效果可能不太理想,用户还可以继续根据手机的引导移动手机,从而在重新锁定目标对象后,手动拍摄一张或多张效果更好的图像。After the mobile phone captures an image, if the target object deviates (that is, the target object is not in the center of the captured image) or is lost (that is, the target object is not captured, and the target object does not appear on the captured image), the telephoto camera will no longer lock the target object, the mobile phone may continue to guide the user in the manner described in the above embodiments, so that the telephoto camera can re-lock the target object. In particular, after the mobile phone automatically takes an image, the effect of the automatically taken image may not be ideal, and the user can continue to move the phone according to the guidance of the mobile phone, so that after re-locking the target object, manually take one or more pictures with better results image.
在一些实施例中,在切换到显示长焦预览界面后,若用户想要更改目标对象,则手机可以先退出长焦辅助模式。示例性的,手机检测到用户点击图8B中的“×”的操作后,可以退出长焦辅助模式。在手机再次进入长焦辅助模式后,用户通过目标取景框重新指定新的目标对象。In some embodiments, after switching to displaying the telephoto preview interface, if the user wants to change the target object, the mobile phone may first exit the telephoto assist mode. Exemplarily, after the mobile phone detects that the user clicks the "×" in FIG. 8B , it can exit the telephoto assist mode. After the mobile phone enters the telephoto assist mode again, the user redesignates a new target object through the target viewfinder frame.
在另一些实施例中,在切换到显示长焦预览界面后,若用户想要更改目标对象,则手机可以退出长焦预览界面,返回显示上述包括目标取景框的长焦辅助预览界面,从而通过目标取景框重选指定新的目标对象。示例性的,手机在显示长焦预览界面的情况下,检测到用户点击返回(back)键的操作后,可以返回显示包括目标取景框的长焦辅助预览界面。In other embodiments, after switching to displaying the telephoto preview interface, if the user wants to change the target object, the mobile phone can exit the telephoto preview interface and return to display the above-mentioned telephoto auxiliary preview interface including the target viewfinder frame, thereby passing The target frame reselects to specify a new target object. Exemplarily, when the mobile phone is displaying the telephoto preview interface, after detecting that the user clicks the back (back) button, it may return to display the telephoto auxiliary preview interface including the target viewfinder frame.
在其他一些场景下,目标对象是运动的。例如,目标对象是持续运动的。再例如,在显示长焦辅助预览界面后,目标对象突然开始运动。再例如,在切换到显示长焦预览界面后,目标对象突然开始运动等情况。In other scenarios, the target object is moving. For example, the target object is in continuous motion. For another example, after the telephoto auxiliary preview interface is displayed, the target object suddenly starts to move. For another example, after switching to displaying the telephoto preview interface, the target object suddenly starts to move.
在目标对象处于运动状态的情况下,用户和长焦摄像头更容易丢失目标对象。在一些实施例中,手机可以实时追踪运动状态的目标对象。长焦辅助预览界面上的目标取景框可以随着目标对象的移动而实时移动。并且,手机可以计算运动状态的目标对象所对应的实时目标运动姿态。手机根据当前实时运动姿态与实时目标运动姿态之间的差值,计算实时的调整信息,从而根据实时的调整信息,实时调整对用户的提示信息,从而引导用户移动手机。The user and the telephoto camera are more likely to lose the target object when the target object is in motion. In some embodiments, the mobile phone can track the moving target object in real time. The target viewfinder frame on the telephoto auxiliary preview interface can move in real time as the target object moves. In addition, the mobile phone can calculate the real-time target motion posture corresponding to the target object in the motion state. The mobile phone calculates real-time adjustment information according to the difference between the current real-time motion posture and the real-time target motion posture, so as to adjust the prompt information to the user in real time according to the real-time adjustment information, thereby guiding the user to move the mobile phone.
与上述实施例描述的过程类似,在手机显示长焦预览界面的情况下,在当前实时运动姿态与实时目标运动姿态相匹配时,或者在实时取景框504中的图像与目标取景框503中的图像的内容相匹配时,手机确定长焦摄像头基本锁定目标对象,从而切换到显示长焦预览界面。Similar to the process described in the above embodiment, when the mobile phone displays the telephoto preview interface, when the current real-time motion posture matches the real-time target motion posture, or the image in the real-
与上述实施例描述的过程类似,在切换到显示长焦预览界面后,手机可以自动拍摄图像。Similar to the process described in the above embodiment, after switching to displaying the telephoto preview interface, the mobile phone can automatically capture an image.
或者,与上述实施例描述的过程类似,在切换到显示长焦预览界面后,手机可以在后台继续采集辅助预览图像,并实时追踪目标对象。若当前实时运动姿态与实时目标运动姿态相匹配,或者若长焦摄像头当前采集到的预览图像与实时追踪到的目标对象的图像相匹配时,可以触发手机自动拍摄图像。从而,可以辅助用户使用长焦镜头拍摄动态的目标对象。Or, similar to the process described in the above embodiment, after switching to displaying the telephoto preview interface, the mobile phone can continue to collect auxiliary preview images in the background and track the target object in real time. If the current real-time motion posture matches the real-time target motion posture, or if the preview image currently collected by the telephoto camera matches the image of the target object tracked in real time, the mobile phone can be triggered to automatically capture an image. Therefore, the user can be assisted to shoot a dynamic target object with a telephoto lens.
需要说明的是,在目标对象处于运动状态的情况下,手机自动拍摄图像,可以及时拍摄到目标对象,避免用户还未来得及点击拍摄控件,拍摄目标物体已经跑出长焦摄像头的取景范围。It should be noted that when the target object is in motion, the mobile phone automatically captures images, and the target object can be captured in time, preventing the user from clicking the shooting control in the future, and the target object has already run out of the viewfinder range of the telephoto camera.
并且,在目标对象处于运动状态的情况下,在长焦辅助预览界面上,手机还可以显示运动标记。例如,该运动标记可以用于表示目标对象的运动方向,目标对象的轮廓等。运动标记可以方便用户直观地获知目标对象的大小、位置及运动方向等信息。示例性的,图10A示出了一种运动标记1001的示意图。运动标记1001中的椭圆形虚线用于标记运动的目标对象的轮廓和大小。运动标记1001中的箭头用于标记目标对象的运动方向。再示例性的,图10B示出了一种运动标记1002的示意图。运动标记1002中的“[]”用于标记运动的目标对象的轮廓和大小。运动标记1002中的箭头用于标记目标对象的运动方向。Moreover, when the target object is in motion, the mobile phone can also display motion marks on the telephoto auxiliary preview interface. For example, the motion marker can be used to represent the motion direction of the target object, the outline of the target object, and the like. The motion marker can facilitate the user to intuitively know the size, position and motion direction of the target object and other information. Exemplarily, FIG. 10A shows a schematic diagram of a
以上主要是以手机指引用户采用长焦摄像头进行拍照为例进行说明的。在录像过程中,用户也可以指定目标对象。手机也可以采用以上实施例描述的方法给用户以提示,以指引用户在采用长焦摄像头录像时移动手机,从而帮助用户使用长焦摄像头尽量锁定目标对象,进而对目标对象进行追踪录像。The above description is mainly based on an example in which the mobile phone guides the user to take pictures with the telephoto camera. During the video recording, the user can also specify the target object. The mobile phone can also use the method described in the above embodiments to give the user a prompt to guide the user to move the mobile phone when using the telephoto camera to record video, thereby helping the user to use the telephoto camera to lock the target object as much as possible, and then track and record the target object.
示例性的,参见图11A,在进入长焦辅助模式后,长焦辅助预览界面上可以包括第一控件1101和第二控件1102。手机检测到用户点击第一控件1101的操作后,进入长焦辅助拍照子模式,手机可以指引用户进行移动,以使得长焦摄像头锁定目标对象并拍摄照片。For example, referring to FIG. 11A , after entering the telephoto assist mode, the telephoto assist preview interface may include a
手机检测到用户点击第二控件1102的操作后,如图11B所示,手机可以进入长焦辅助录像子模式。在长焦辅助录像子模式下,手机可以指引用户进行移动,以使得长焦摄像头尽量锁定目标对象。After the mobile phone detects that the user clicks on the
手机检测到用户点击录像控件1103的操作后,开始录像。在录像过程中,尤其在对运动状态下的目标对象进行录像的过程中,参见图11C,手机可以指引用户移动手机,以使得用户采用长焦摄像头能够尽量锁定目标对象,从而达到实时追踪目标对象,对目标对象进行录像的目的。After the mobile phone detects that the user clicks on the recording control 1103, it starts recording. During the recording process, especially during the recording process of the target object in motion, see Figure 11C, the mobile phone can guide the user to move the mobile phone, so that the user can use the telephoto camera to lock the target object as much as possible, so as to achieve real-time tracking of the target object , the purpose of recording the target object.
此外,本申请实施例提供的通过引导电子设备进行移动,辅助电子设备的长焦摄像头锁定目标对象从而拍摄图像的方法,还可以应用于其他多种场景。例如,在多摄像头监控装置中,用于监控的多个摄像头包括广角摄像头和长焦摄像头。广角摄像头的监控区域广,通过图像识别技术,监控装置可以捕捉可疑或需要重点监控的区域,即相当于上述目标对象。监控装置可以指引长焦摄像头进行移动,从而锁定并拍摄可疑或需要重点监控区域的画面。In addition, the method of guiding the electronic device to move and assisting the telephoto camera of the electronic device to lock the target object and capture an image provided by the embodiment of the present application can also be applied to other various scenarios. For example, in a multi-camera surveillance device, the multiple cameras used for surveillance include a wide-angle camera and a telephoto camera. The monitoring area of the wide-angle camera is wide. Through image recognition technology, the monitoring device can capture suspicious areas or areas that need to be monitored, which are equivalent to the above-mentioned target objects. The monitoring device can guide the telephoto camera to move, so as to lock and take pictures of suspicious or key monitoring areas.
本申请另一实施例提供了一种拍摄方法,参见图12,该方法可以包括:Another embodiment of the present application provides a shooting method, see FIG. 12, the method may include:
1201、电子设备启动相机。1201. The electronic device starts the camera.
1202、电子设备采用第一摄像头和第二摄像头分别采集第一预览图像和第二预览图像,第二摄像头为长焦摄像头,第一摄像头的取景范围大于第二摄像头的取景范围。1202. The electronic device uses a first camera and a second camera to capture a first preview image and a second preview image respectively, the second camera is a telephoto camera, and the viewing range of the first camera is larger than that of the second camera.
1203、电子设备显示第一预览界面,第一预览界面包括第一取景框、第二取景框和第三取景框;第一取景框用于显示第一预览图像;第二取景框内的图像为第一预览图像上的一部分;第二取景框中的内容为第二摄像头待拍摄的目标对象;第三取景框用于显示第二预览图像。1203. The electronic device displays a first preview interface. The first preview interface includes a first viewing frame, a second viewing frame, and a third viewing frame; the first viewing frame is used to display a first preview image; the image in the second viewing frame is A part of the first preview image; the content in the second viewfinder frame is the target object to be photographed by the second camera; the third viewfinder frame is used to display the second preview image.
1204、电子设备显示第一提示信息,第一提示信息用于引导用户移动电子设备,以使得电子设备移动后第二摄像头可锁定目标对象。1204. The electronic device displays first prompt information, where the first prompt information is used to guide the user to move the electronic device, so that the second camera can lock the target object after the electronic device moves.
这样,在电子设备由广角摄像头或中焦摄像头等第一摄像头切换到长焦摄像头即第二摄像头后,电子设备可以通过提示信息指引用户移动电子设备。以便,在电子设备移动后,长焦摄像头能够快速锁定目标对象。进而,电子设备可以采用长焦摄像头拍摄目标对象的图像。In this way, after the electronic device switches from a first camera such as a wide-angle camera or a medium-focus camera to a second camera that is a telephoto camera, the electronic device can guide the user to move the electronic device through prompt information. So that, after the electronic device moves, the telephoto camera can quickly lock the target object. Furthermore, the electronic device may use a telephoto camera to capture an image of the target object.
在一些实施例中,在电子设备显示第一预览界面之后,该方法还可以包括:电子设备检测到用户针对第二取景框的拖动操作。电子设备响应于拖动操作,在第一预览图像上移动第二取景框,目标对象随着第二取景框位置的变化而变化。即,在拍摄场景下,用户可以指定目标对象。In some embodiments, after the electronic device displays the first preview interface, the method may further include: the electronic device detects a user's drag operation on the second viewfinder frame. The electronic device moves the second viewfinder frame on the first preview image in response to the drag operation, and the target object changes along with the change of the position of the second viewfinder frame. That is, in a shooting scene, the user can designate a target object.
这样,在电子设备由广角摄像头或中焦摄像头等摄像头切换到长焦摄像头后,电子设备可以根据用户指定的目标对象,指引用户移动电子设备。以便,用户可以根据该指引移动电子设备,从而使得电子设备移动后长焦摄像头能够快速锁定目标对象。In this way, after the electronic device switches from a wide-angle camera or a medium-focus camera to a telephoto camera, the electronic device can guide the user to move the electronic device according to the target object specified by the user. So that the user can move the electronic device according to the guidance, so that the telephoto camera can quickly lock the target object after the electronic device moves.
并且,电子设备还可以执行以上实施例中手机执行的步骤和功能,从而实现以上实施例提供的拍摄方法。In addition, the electronic device can also execute the steps and functions performed by the mobile phone in the above embodiments, so as to implement the photographing method provided in the above embodiments.
本申请实施例还提供了一种电子设备,可以包括:启动单元,采集单元,显示单元,处理单元,移动单元,拍摄单元等。这些单元可以执行上述实施例中的各个步骤,以实现拍摄方法。The embodiment of the present application also provides an electronic device, which may include: a starting unit, a collection unit, a display unit, a processing unit, a moving unit, a photographing unit, and the like. These units can execute the various steps in the above-mentioned embodiments to realize the photographing method.
本申请实施例还提供了一种电子设备,包括一个或多个处理器;存储器;触摸屏,用于检测触摸操作,以及显示界面。其中,存储器中存储有代码,当代码被一个或多个处理器执行时,使得电子设备执行上述实施例中的各个步骤,以实现上述实施例中的拍摄方法。The embodiment of the present application also provides an electronic device, including one or more processors; a memory; a touch screen for detecting a touch operation, and a display interface. Wherein, codes are stored in the memory, and when the codes are executed by one or more processors, the electronic device executes various steps in the above-mentioned embodiments, so as to realize the photographing method in the above-mentioned embodiments.
示例性的,当该电子设备为图1A所示的设备时,该电子设备中的处理器可以为图1A所示的处理器110,该电子设备中的存储器可以为图1A所示的内部存储器121,该电子设备中的触摸屏可以为图1A所示的显示屏194和触摸传感器180K的组合。Exemplarily, when the electronic device is the device shown in FIG. 1A, the processor in the electronic device may be the
本申请实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的拍摄方法。The embodiment of the present application also provides a computer storage medium, the computer storage medium stores computer instructions, and when the computer instructions are run on the electronic device, the electronic device executes the above related method steps to implement the photographing method in the above embodiment.
本申请实施例还提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的拍摄方法。An embodiment of the present application further provides a computer program product, which, when running on a computer, causes the computer to execute the above-mentioned related steps, so as to realize the photographing method in the above-mentioned embodiment.
另外,本申请的实施例还提供一种装置,该装置具体可以是芯片,该芯片可以包括处理器和存储器,该存储器中存储有指令。当该指令被处理器执行时,使得该芯片执行上述相关步骤,以实现上述实施例中的拍摄方法。In addition, an embodiment of the present application further provides an apparatus, and the apparatus may specifically be a chip, and the chip may include a processor and a memory, and instructions are stored in the memory. When the instruction is executed by the processor, the chip is made to execute the above-mentioned related steps, so as to realize the photographing method in the above-mentioned embodiment.
另外,本申请的实施例还提供一种装置,该装置具体可以是组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的拍摄方法。In addition, the embodiments of the present application also provide a device, which may specifically be a component or a module, and the device may include a connected processor and a memory; wherein, the memory is used to store computer-executable instructions, and when the device is running, the processor The computer-executable instructions stored in the memory can be executed, so that the chip executes the photographing methods in the foregoing method embodiments.
其中,本申请实施例提供的电子设备、芯片,计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Among them, the electronic equipment, chip, computer storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding method provided above, therefore, the beneficial effects it can achieve can refer to the above provided The beneficial effects of the corresponding method will not be repeated here.
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be assigned by different Completion of functional modules means that the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation or may be integrated into another device, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places . Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application. The above-mentioned storage medium includes: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk, and other various media that can store program codes.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above content is only the specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application, and should covered within the scope of protection of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910551129.4ACN110445978B (en) | 2019-06-24 | 2019-06-24 | A shooting method and equipment |
| CN2019105511294 | 2019-06-24 | ||
| PCT/CN2020/086011WO2020259038A1 (en) | 2019-06-24 | 2020-04-22 | Method and device for capturing images |
| CN202080044286.7ACN114365476A (en) | 2019-06-24 | 2020-04-22 | Shooting method and equipment |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202080044286.7ADivisionCN114365476A (en) | 2019-06-24 | 2020-04-22 | Shooting method and equipment |
| Publication Number | Publication Date |
|---|---|
| CN114302063A CN114302063A (en) | 2022-04-08 |
| CN114302063Btrue CN114302063B (en) | 2022-11-11 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210012722.3AActiveCN114302063B (en) | 2019-06-24 | 2020-04-22 | A shooting method and device |
| Country | Link |
|---|---|
| CN (1) | CN114302063B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116051368B (en)* | 2022-06-29 | 2023-10-20 | 荣耀终端有限公司 | Image processing methods and related equipment |
| CN118474529B (en)* | 2023-09-27 | 2025-03-07 | 荣耀终端股份有限公司 | Focusing method of camera, electronic equipment and computer readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104994285A (en)* | 2015-06-30 | 2015-10-21 | 广东欧珀移动通信有限公司 | Control method of wide-angle camera and electronic terminal |
| CN106888349A (en)* | 2017-03-30 | 2017-06-23 | 努比亚技术有限公司 | A kind of image pickup method and device |
| CN108353118A (en)* | 2015-12-29 | 2018-07-31 | 核心光电有限公司 | Dual-aperture zoom digital video camera with automatically adjustable telephoto field of view |
| CN108429881A (en)* | 2018-05-08 | 2018-08-21 | 山东超景深信息科技有限公司 | Exempt from the focal length shooting tripod head camera system application process by zoom view repeatedly |
| JP2019507928A (en)* | 2016-06-12 | 2019-03-22 | アップル インコーポレイテッドApple Inc. | User interface for camera effects |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3286915B1 (en)* | 2015-04-23 | 2021-12-08 | Apple Inc. | Digital viewfinder user interface for multiple cameras |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104994285A (en)* | 2015-06-30 | 2015-10-21 | 广东欧珀移动通信有限公司 | Control method of wide-angle camera and electronic terminal |
| CN108353118A (en)* | 2015-12-29 | 2018-07-31 | 核心光电有限公司 | Dual-aperture zoom digital video camera with automatically adjustable telephoto field of view |
| JP2019507928A (en)* | 2016-06-12 | 2019-03-22 | アップル インコーポレイテッドApple Inc. | User interface for camera effects |
| CN106888349A (en)* | 2017-03-30 | 2017-06-23 | 努比亚技术有限公司 | A kind of image pickup method and device |
| 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 | Publication date |
|---|---|
| CN114302063A (en) | 2022-04-08 |
| Publication | Publication Date | Title |
|---|---|---|
| CN110445978B (en) | A shooting method and equipment | |
| CN110072070B (en) | A kind of multi-channel video recording method and equipment, medium | |
| WO2021093793A1 (en) | Capturing method and electronic device | |
| CN113727016A (en) | Shooting method and electronic equipment | |
| CN113810601B (en) | Terminal image processing method, device and terminal equipment | |
| CN110035141A (en) | A kind of image pickup method and equipment | |
| CN113556466B (en) | Focusing method and electronic equipment | |
| CN113572957B (en) | Shooting focusing method and related equipment | |
| WO2022267464A1 (en) | Focusing method and related device | |
| WO2022206589A1 (en) | Image processing method and related device | |
| CN114302063B (en) | A shooting method and device | |
| CN114257737B (en) | Shooting mode switching method and related equipment | |
| CN116582743B (en) | Shooting method, electronic equipment and medium | |
| CN112422814A (en) | A shooting method and electronic device | |
| WO2023071497A1 (en) | Photographing parameter adjusting method, electronic device, and storage medium | |
| CN113472996B (en) | Picture transmission method and device | |
| CN117714849B (en) | Image shooting method and related equipment | |
| RU2789447C1 (en) | Method and apparatus for multichannel video recording | |
| CN114520870B (en) | A display method and terminal | |
| RU2822535C2 (en) | Method and device for multichannel video recording | |
| CN119895883A (en) | Camera function control method, electronic device and storage medium | |
| CN114691066A (en) | Application display method and electronic device | |
| CN119255090A (en) | Image processing method, electronic device and computer readable storage medium |
| 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 |