Movatterモバイル変換


[0]ホーム

URL:


CN107888833A - A kind of image capturing method and mobile terminal - Google Patents

A kind of image capturing method and mobile terminal
Download PDF

Info

Publication number
CN107888833A
CN107888833ACN201711214107.6ACN201711214107ACN107888833ACN 107888833 ACN107888833 ACN 107888833ACN 201711214107 ACN201711214107 ACN 201711214107ACN 107888833 ACN107888833 ACN 107888833A
Authority
CN
China
Prior art keywords
input
camera
pixel
preview interface
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711214107.6A
Other languages
Chinese (zh)
Inventor
陈勇
陈俊杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN201711214107.6ApriorityCriticalpatent/CN107888833A/en
Publication of CN107888833ApublicationCriticalpatent/CN107888833A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种图像拍摄方法及移动终端,应用于具有第一摄像头和第二摄像头的移动终端,接收用户在拍摄预览界面上的第一输入,第一输入用于确定目标物距范围;响应于第一输入,确定目标物距范围;接收用户在拍摄预览界面上的第二输入,第二输入用于触发拍摄操作;响应于所述第二输入,控制第一摄像头和第二摄像头拍摄目标物距范围对应的目标拍摄对象。本发明实施例的方法不需要先将拍摄预览界面中显示的对象全部拍摄到一张图里,再截取出目标拍摄对象的图像,简化拍摄目标拍摄对象的图像的操作,用户可在拍摄过程中,自由确定所需要的物距范围的目标拍摄对象,从而用户能够快速获得拍摄视场内任一个所需要的目标拍摄对象的图像。

The invention discloses an image shooting method and a mobile terminal, which is applied to a mobile terminal with a first camera and a second camera, and receives a first input from a user on a shooting preview interface, and the first input is used to determine the distance range of a target object; In response to the first input, determine the range of the target object distance; receive the second input from the user on the shooting preview interface, the second input is used to trigger the shooting operation; in response to the second input, control the first camera and the second camera to shoot The target subject corresponding to the target object distance range. The method of the embodiment of the present invention does not need to first capture all the objects displayed in the shooting preview interface into a picture, and then intercept the image of the target object, which simplifies the operation of shooting the image of the target object. , freely determine the target object within the required object distance range, so that the user can quickly obtain an image of any desired target object within the field of view.

Description

Translated fromChinese
一种图像拍摄方法及移动终端Image capturing method and mobile terminal

技术领域technical field

本发明实施例涉及通信技术领域,尤其涉及一种图像拍摄方法及移动终端。Embodiments of the present invention relate to the field of communication technologies, and in particular, to an image capturing method and a mobile terminal.

背景技术Background technique

随着移动通信技术的迅猛发展,移动终端已成为人们生活必不可少的电子产品,而移动终端中的拍照功能也是人们常用的功能之一。用户在使用移动终端进行拍照时常常会有只需要拍摄某个对象,而不需要拍摄视野中的其他对象的拍摄需求。With the rapid development of mobile communication technology, mobile terminals have become indispensable electronic products in people's lives, and the camera function in the mobile terminal is also one of the functions commonly used by people. When using a mobile terminal to take pictures, a user often has a need to only take pictures of a certain object without taking pictures of other objects in the field of view.

目前常用的方法是将拍摄视野中的对象全部拍摄到一张图里,再通过调用图像编辑软件对所拍摄的图像进行裁剪,得到用户需要的对象图像,操作繁琐、截取花费时间长。At present, the commonly used method is to capture all the objects in the shooting field of view into one image, and then use image editing software to crop the captured image to obtain the object image required by the user. The operation is cumbersome and the interception takes a long time.

发明内容Contents of the invention

本发明实施例提供一种图像拍摄方法,以解决现有获取拍摄视场中的目标拍摄对象图像的方法操作繁琐、耗时长的问题。An embodiment of the present invention provides an image capture method to solve the problems of cumbersome operations and long time consumption in the existing method for acquiring an image of a target object in a capture field of view.

为了解决上述技术问题,本发明是这样实现的:In order to solve the problems of the technologies described above, the present invention is achieved in that:

第一方面,提供了一种图像拍摄的方法,应用于具有第一摄像头和第二摄像头的移动终端,该方法包括:In a first aspect, a method for capturing an image is provided, which is applied to a mobile terminal having a first camera and a second camera, and the method includes:

接收用户在拍摄预览界面上的第一输入,所述第一输入用于确定目标物距范围;receiving a first input from the user on the shooting preview interface, where the first input is used to determine the target-object distance range;

响应于所述第一输入,确定目标物距范围;determining a target object distance range in response to the first input;

接收用户在所述拍摄预览界面上的第二输入,所述第二输入用于触发拍摄操作;receiving a second input from the user on the shooting preview interface, where the second input is used to trigger a shooting operation;

响应于所述第二输入,控制所述第一摄像头和所述第二摄像头拍摄所述目标物距范围对应的目标拍摄对象。In response to the second input, the first camera and the second camera are controlled to photograph a target object corresponding to the target object distance range.

第二方面,提供了一种移动终端,该移动终端具有第一摄像头和第二摄像头,该移动终端包括:In a second aspect, a mobile terminal is provided, the mobile terminal has a first camera and a second camera, and the mobile terminal includes:

接收模块,用于接收用户在拍摄预览界面上的第一输入,所述第一输入用于确定目标物距范围;A receiving module, configured to receive a first input from the user on the shooting preview interface, where the first input is used to determine the target-object distance range;

处理模块,用于响应于所述第一输入,取得目标物距范围;a processing module, configured to obtain a target object distance range in response to the first input;

所述接收模块,还用于接收用户在所述拍摄预览界面上的第二输入,所述第二输入用于触发拍摄操作;The receiving module is further configured to receive a second input from the user on the shooting preview interface, and the second input is used to trigger a shooting operation;

拍照模块,用于响应于所述第二输入,控制所述第一摄像头和所述第二摄像头拍摄所述目标物距范围对应的目标拍摄对象。A photographing module, configured to control the first camera and the second camera to photograph the target object corresponding to the target object distance range in response to the second input.

第三方面,提供了一种移动终端,该移动终端包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第一方面所述的图像拍摄方法的步骤。In a third aspect, a mobile terminal is provided, and the mobile terminal includes: a memory, a processor, and a computer program stored in the memory and operable on the processor, and the computer program is executed by the processor When implementing the steps of the image capture method as described in the first aspect.

第四方面,提供了一种计算机可读介质,所述计算机可读介质上存储计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的图像拍摄方法的步骤。In a fourth aspect, a computer-readable medium is provided, where a computer program is stored on the computer-readable medium, and when the computer program is executed by a processor, the steps of the image capturing method according to the first aspect are implemented.

在本发明实施例中,能够根据用户在拍摄预览界面上的第一输入确定目标物距范围,并响应用户在拍摄预览界面上的第二输入,控制第一摄像头和第二摄像头拍摄目标物距范围对应的目标拍摄对象。由此,不需要先将拍摄预览界面中显示的对象全部拍摄到一张图里,再截取出目标拍摄对象的图像,简化拍摄目标拍摄对象的图像的操作,用户可在拍摄过程中,自由确定所需要的物距范围的目标拍摄对象,从而用户能够快速获得拍摄视场内任一个所需要的目标拍摄对象的图像。In the embodiment of the present invention, the target object distance range can be determined according to the user's first input on the shooting preview interface, and in response to the user's second input on the shooting preview interface, the first camera and the second camera are controlled to capture the target object distance. The target subject corresponding to the range. Therefore, it is not necessary to capture all the objects displayed in the shooting preview interface into a picture, and then intercept the image of the target object, simplifying the operation of shooting the image of the target object, and the user can freely determine during the shooting process The target shooting object within the required object distance range, so that the user can quickly obtain an image of any desired target shooting object in the shooting field of view.

附图说明Description of drawings

图1是根据本发明的一个实施例的图像拍摄方法的示意性流程图。Fig. 1 is a schematic flowchart of an image capturing method according to an embodiment of the present invention.

图2是根据本发明的一个实施例的通过滑动控件输入目标拍摄对象的物距范围的方法的示意图。Fig. 2 is a schematic diagram of a method for inputting an object distance range of a target shooting object through a sliding control according to an embodiment of the present invention.

图3是根据本发明的一个实施例的通过双摄像头确定对象的物距的方法的原理图。Fig. 3 is a schematic diagram of a method for determining an object distance of an object through dual cameras according to an embodiment of the present invention.

图4是根据本发明一个实施例的移动终端的结构示意图。Fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.

图5是根据本发明另一个实施例的移动终端的结构示意图。Fig. 5 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

图1是根据本发明一个实施例的图像拍摄方法的示意性流程图。图1所示的方法可以由移动终端执行,如图1所示,方法包括:Fig. 1 is a schematic flowchart of an image capturing method according to an embodiment of the present invention. The method shown in Figure 1 can be executed by a mobile terminal, and as shown in Figure 1, the method includes:

步骤110,接收用户在拍摄预览界面上的第一输入,所述第一输入用于确定目标物距范围。Step 110, receiving a first input from the user on the shooting preview interface, where the first input is used to determine the target-object distance range.

可选地,在一些实施例中,在拍摄预览界面上显示输入提示框,在这种情况下,接收用户在拍摄预览界面上的第一输入具体为:接收用户在输入提示框内的第一输入。Optionally, in some embodiments, an input prompt box is displayed on the shooting preview interface. In this case, receiving the user's first input on the shooting preview interface specifically includes: receiving the user's first input in the input prompt box. enter.

可选地,在一些实施例中,在拍摄预览界面的预设区域,显示预设控件。在这种情况下,接收用户在拍摄预览界面上的第一输入具体为:接收用户在预设控件上的第一输入。其中,所述第一输入为用户确定目标物距范围的预设操作,其中,所述预设操作包括手指在预设控件上的滑动操作。Optionally, in some embodiments, preset controls are displayed in the preset area of the shooting preview interface. In this case, receiving the user's first input on the shooting preview interface specifically includes: receiving the user's first input on the preset control. Wherein, the first input is a preset operation for the user to determine the distance range of the target object, wherein the preset operation includes a sliding operation of a finger on a preset control.

可选地,在一些实施例中,在用户在拍摄预览界面上进行第一输入之前,用户可以通过点击移动终端的屏幕上的相机图标或拍照软件启动移动终端的拍照功能。Optionally, in some embodiments, before the user makes the first input on the shooting preview interface, the user can start the camera function of the mobile terminal by clicking the camera icon on the screen of the mobile terminal or the camera software.

步骤120,响应于所述第一输入,确定目标物距范围。Step 120, in response to the first input, determine the target-object distance range.

可以理解的是,通过响应第一输入确定目标物距范围,能够快速获取用户期望获取图像的目标拍摄对象对应的物距范围。It can be understood that by determining the target object distance range in response to the first input, the object distance range corresponding to the target object that the user expects to acquire an image can be quickly acquired.

可选地,在一些实施例中,对象是具有一定厚度的,用户可以在拍摄预览界面上通过第一输入直接输入对象离摄像头的透镜光心的最近距离和最远距离,移动终端根据用户输入的最近距离和最远距离即可以确定目标物距范围。或者用户可以在拍摄预览界面上通过第一输入直接输入对象离摄像头的透镜光心的最近距离和对象的厚度,移动终端根据用户输入的最近距离和厚度可以确定出目标物距范围。Optionally, in some embodiments, the object has a certain thickness, and the user can directly input the shortest distance and the farthest distance between the object and the lens optical center of the camera through the first input on the shooting preview interface, and the mobile terminal can The shortest distance and the farthest distance can determine the range of target object distance. Or the user can directly input the shortest distance from the object to the lens optical center of the camera and the thickness of the object through the first input on the shooting preview interface, and the mobile terminal can determine the target object distance range according to the shortest distance and thickness input by the user.

可选地,在一些实施例中,在拍摄预览界面的预设区域显示预设控件,该预设控件例如为滑动控件。例如,图2中所示出的(箭头方向代表由下往上),滑动控件1的滑块可以沿滑动条滑动,当滑块位于滑动条的最下部时对应最小物距,当滑块沿着滑动条由下往上滑动时,对应的物距逐渐增大,滑块的最大滑动范围或者说滑动条的长度可以根据拍摄预览界面中显示的对象的最小物距和最大物距以及滑动灵敏度确定。用户通过在滑动控件上的滑动操作即可以实现第一输入的输入,简化用户的输入操作,快速实现第一输入的输入,有利于移动终端快速确定目标物距范围。并且用户可以通过在滑动控件上的滑动操作,自由确定目标物距范围。Optionally, in some embodiments, a preset control is displayed in a preset area of the shooting preview interface, where the preset control is, for example, a sliding control. For example, as shown in Figure 2 (the direction of the arrow represents from bottom to top), the slider of sliding control 1 can slide along the slide bar. When the slider is at the bottom of the slide bar, it corresponds to the minimum object distance. When the slider slides from bottom to top, the corresponding object distance gradually increases. The maximum sliding range of the slider or the length of the slider can be adjusted according to the minimum object distance, maximum object distance and sliding sensitivity of the object displayed in the shooting preview interface. Sure. The user can realize the input of the first input through the sliding operation on the sliding control, which simplifies the user's input operation and quickly realizes the input of the first input, which is beneficial for the mobile terminal to quickly determine the range of the target object distance. And the user can freely determine the range of the target-object distance through the sliding operation on the sliding control.

可选地,作为一个例子,在用户在滑动控件上进行第一输入时,用户在滑动该滑动控件的滑块,滑块处于不同的位置移动终端在拍照预览界面上仅显示出与滑块的位置对应的物距处的对象的图像,即在响应于第一输入,确定目标物距范围之后,在拍摄预览界面中仅显示目标拍摄对象的图像。移动终端可以通过隐藏或虚化该目标拍摄对象外的对象,如图2中所示出的,移动终端根据用户在滑动控件1上的第一输入,确定出目标物距范围为杯子2对应的物距范围,则移动终端在拍照预览界面上显示杯子2的图像。由此,能够使得用户直观的判断出当前滑块所处的位置处的物距是否是目标物距范围对应的物距,即使得用户能直观的判断通过第一输入确定的目标物距范围是否是用户期望获取图像的目标拍摄对象对应的物距。Optionally, as an example, when the user performs the first input on the sliding control, the user is sliding the slider of the sliding control, and the slider is in a different position. The image of the object at the object distance corresponding to the position, that is, after the target object distance range is determined in response to the first input, only the image of the target object is displayed in the shooting preview interface. The mobile terminal can hide or blur objects outside the target shooting object. As shown in FIG. object distance range, the mobile terminal displays the image of the cup 2 on the photo preview interface. Thus, the user can intuitively judge whether the object distance at the current position of the slider is the object distance corresponding to the target object distance range, that is, the user can intuitively judge whether the target object distance range determined by the first input is is the object distance corresponding to the target object that the user expects to acquire an image.

具体地,在一些实施例中,当用户在滑动控件上进行第一输入时,移动终端可以根据第一输入对应的起始滑动位置和终止滑动位置确定目标物距范围。或者移动终端可以根据第一输入对应的第一次停止滑动的位置和第二次停止滑动的位置确定目标物距范围,这里第一次停止滑动的位置对应目标物距范围的起始物距,第二次停止滑动的位置对应目标物距范围的终止物距。Specifically, in some embodiments, when the user performs a first input on the sliding control, the mobile terminal may determine the target-object distance range according to the initial sliding position and the ending sliding position corresponding to the first input. Or the mobile terminal may determine the target object distance range according to the first stop sliding position and the second stop sliding position corresponding to the first input, where the first stop sliding position corresponds to the initial object distance of the target object distance range, The position where the sliding stops for the second time corresponds to the end object distance of the target object distance range.

可选地,在一些实施例中,在步骤110之前,图1所示的方法还包括确定拍摄预览界面中显示的对象的物距的步骤,具体包括:获取第一摄像头采集的第一图像的像素点;获取第二摄像头采集的第二图像的像素点;确定第一图像的像素点中颜色值突变的第一像素点和第二图像的像素点中颜色值突变的第二像素点集合,根据第一像素点集合和第二像素点集合,确定拍摄预览界面中显示的每个对象的物距。Optionally, in some embodiments, before step 110, the method shown in FIG. 1 further includes the step of determining the object distance of the object displayed in the shooting preview interface, which specifically includes: acquiring the first image captured by the first camera pixel; obtain the pixel of the second image collected by the second camera; determine the first pixel of the pixel of the first image with sudden change in color value and the second set of pixel of the pixel of the second image with sudden change of color value, According to the first set of pixel points and the second set of pixel points, the object distance of each object displayed in the shooting preview interface is determined.

作为一个例子,在确定出拍摄预览界面中显示的每个对象的物距之后,可以在屏幕上显示每个对象的物距,方便用户确定目标物距范围。As an example, after the object distance of each object displayed in the shooting preview interface is determined, the object distance of each object may be displayed on the screen, so as to facilitate the user to determine the target object distance range.

作为另一个例子,同时对第一图像和第二图像进行逐行扫描,检测出第一图像和第二图像中的每个像素点,然后采用一阶算法对第一图像和第二图像进行处理,识别出第一图像和第二图像中的每个像素点中颜色值突变的像素点,之后计算颜色值突变的像素点与对应的摄像头的透镜光心的水平距离,根据颜色值突变的像素点与对应的摄像头的透镜光心的水平距离得出每个对象的物距。As another example, simultaneously scan the first image and the second image progressively, detect each pixel in the first image and the second image, and then use the first-order algorithm to process the first image and the second image , identify the pixel point with sudden change in color value in each pixel point in the first image and the second image, and then calculate the horizontal distance between the pixel point with sudden change in color value and the optical center of the lens of the corresponding camera, according to the pixel with sudden change in color value The horizontal distance of the point from the optical center of the lens of the corresponding camera yields the object distance of each object.

进一步地,在一些实施例中,在识别出第一图像和第二图像中的颜色值突变的像素点之后,通过判断第一图像中颜色突变的像素点构成的轮廓与第二图像中颜色突变的像素点构成的轮廓是否相似,判断这些颜色突变的像素点是否是对应同一个对象的像素点。Further, in some embodiments, after identifying the pixels with sudden changes in color values in the first image and the second image, the contour formed by the pixels with sudden changes in color in the first image is different from that in the second image. Whether the contours formed by the pixels are similar, and judge whether the pixels with sudden changes in color are pixels corresponding to the same object.

具体地,在一些实施例中,拍摄预览界面中显示的对象的个数为N个;根据第一像素点集合和第二像素点集合确定拍摄预览界面中显示的每个对象的物距具体包括:确定所述第一像素点集合和所述第二像素点集合中对应第i个对象的像素点;确定对应所述第i个对象的像素点中属于第一像素点集合的每个像素点与所述第一摄像头的透镜光心的第一水平距离;确定对应所述第i个对象的像素点中属于第二像素点集合的每个像素点与所述第二摄像头的透镜光心的第二水平距离;计算第一水平距离与第二水平距离的差值,根据所述差值,确定所述第i个对象的物距;其中,i=1,…N。Specifically, in some embodiments, the number of objects displayed in the shooting preview interface is N; determining the object distance of each object displayed in the shooting preview interface according to the first pixel point set and the second pixel point set specifically includes : Determine the pixel points corresponding to the i-th object in the first pixel point set and the second pixel point set; determine each pixel point belonging to the first pixel point set in the pixel points corresponding to the i-th object The first horizontal distance from the optical center of the lens of the first camera; determine the distance between each pixel point belonging to the second pixel point set among the pixels corresponding to the i-th object and the optical center of the lens of the second camera second horizontal distance; calculate the difference between the first horizontal distance and the second horizontal distance, and determine the object distance of the i-th object according to the difference; wherein, i=1,...N.

可选地,作为一个例子,如图3所示出的,假设对象与镜头光心的距离为L物距,第一摄像头的镜头为镜头1,第二摄像头的镜头为镜头2,镜头1光心与镜头2的光心之间的距离为L镜距,对象在镜头1中的成像位置与镜头1的光心之间的水平距离为△L1,对象在镜头2中的成像位置与镜头2的光心之间的水平距离为△L2,透镜1和透镜2的焦距为L焦距,则根据三角形相似原理可以得出等式(1):Optionally, as an example, as shown in FIG. 3 , assuming that the distance between the object and the optical center of the lens is Lobject distance , the lens of the first camera is lens 1, the lens of the second camera is lens 2, and lens 1 light The distance between the center and the optical center of lens 2 isthe lens distance L, the horizontal distance between the imaging position of the object in lens 1 and the optical center of lens 1 is △L1 , the imaging position of the object in lens 2 and the lens The horizontal distance between the optical centers of 2 is △L2 , and the focal length of lens 1 and lens 2 is Lfocal length , then equation (1) can be obtained according to the triangular similarity principle:

进而根据等式(1)可以得出L物距可以表示为公式(2):Furthermore, according to equation (1), it can be concluded that the L-object distance can be expressed as formula (2):

由此,在已知L镜距和L焦距的情况下,只需要知道|△L1-△L2|,即可以确定出一个对象的物距。进而上文中根据所述差值,确定第i个对象的物距,包括:将目标数值与目标差值的比值确定为第i个对象的物距,其中,目标数值为第一摄像头的透镜光心与第二摄像头的透镜光心之间的距离与第一摄像头和第二摄像头的焦距的乘积,目标差值为所述差值的绝对值。Therefore, in the case of knowingthe lens distance L andthe focal length L, it is only necessary to know |ΔL1 -ΔL2 |, that is, the object distance of an object can be determined. Furthermore, determining the object distance of the i-th object according to the difference above includes: determining the ratio of the target value to the target difference as the object distance of the i-th object, wherein the target value is the lens light of the first camera The product of the distance between the optical center of the lens of the second camera and the focal length of the first camera and the second camera, and the target difference is the absolute value of the difference.

步骤130,接收用户在拍摄预览界面上的第二输入,所述第二输入用于触发拍摄操作。Step 130, receiving a second input from the user on the shooting preview interface, where the second input is used to trigger a shooting operation.

具体地,在一些实施例中,第二输入为用户触发拍摄操作的预设操作,其中,所述预设操作包括用户点击拍摄按键的操作。Specifically, in some embodiments, the second input is a preset operation for the user to trigger a shooting operation, wherein the preset operation includes an operation for the user to click a shooting button.

步骤140,响应于第二输入,控制第一摄像头和第二摄像头拍摄目标物距范围对应的目标拍摄对象。Step 140, in response to the second input, control the first camera and the second camera to photograph the target object corresponding to the target object distance range.

具体地,在一些实施例中,当用户通过按下拍照键输入拍照指令时,移动终端从图像缓冲区中提取出目标物距范围对应的目标拍摄对象的图像,完成图像拍摄过程。这里的图像缓冲区域用于缓存需要显示的图像,也可以理解为图像缓冲区域用于缓存拍照预览界面中显示的所有对象的图像。Specifically, in some embodiments, when the user inputs a camera instruction by pressing the camera key, the mobile terminal extracts the image of the target subject corresponding to the target object distance range from the image buffer to complete the image capture process. The image buffer area here is used to cache images to be displayed, and it can also be understood that the image buffer area is used to cache images of all objects displayed in the photo preview interface.

图1所示出的图像拍摄的方法,能够根据用户在拍摄预览界面上的第一输入确定目标物距范围,并响应用户在拍摄预览界面上的第二输入,控制第一摄像头和第二摄像头拍摄目标物距范围对应的目标拍摄对象。由此,不需要先将拍摄预览界面中显示的对象全部拍摄到一张图里,再截取出目标拍摄对象的图像,简化拍摄目标拍摄对象的图像的操作,用户可在拍摄过程中,自由确定所需要的物距范围的目标拍摄对象,从而能够快速获得拍摄视场内任一个用户所需要的目标拍摄对象的图像。The image shooting method shown in Figure 1 can determine the target object distance range according to the user's first input on the shooting preview interface, and control the first camera and the second camera in response to the user's second input on the shooting preview interface Shoot the target subject corresponding to the target object distance range. Therefore, it is not necessary to capture all the objects displayed in the shooting preview interface into a picture, and then intercept the image of the target object, simplifying the operation of shooting the image of the target object, and the user can freely determine during the shooting process The target shooting object within the required object distance range can quickly obtain the image of the target shooting object required by any user in the field of view.

以上结合图1至图3详细描述了根据本发明实施例的图像拍摄方法,下面将结合图4详细描述根据本发明实施例的移动终端,移动终端具有第一摄像头的第二摄像头。如图4所示移动终端40包括:The image capture method according to the embodiment of the present invention has been described in detail above with reference to FIG. 1 to FIG. 3 . The mobile terminal according to the embodiment of the present invention will be described in detail below with reference to FIG. 4 . The mobile terminal has a first camera and a second camera. As shown in Figure 4, the mobile terminal 40 includes:

接收模块41,用于接收用户在拍摄预览界面上的第一输入,所述第一输入用于确定目标物距范围;The receiving module 41 is configured to receive the user's first input on the shooting preview interface, and the first input is used to determine the target-object distance range;

处理模块42,用于响应于所述第一输入,取得目标物距范围;A processing module 42, configured to obtain a target object distance range in response to the first input;

所述接收模块41,还用于接收用户在所述拍摄预览界面上的第二输入,所述第二输入用于触发拍摄操作;The receiving module 41 is further configured to receive a second input from the user on the shooting preview interface, where the second input is used to trigger a shooting operation;

拍照模块43,用于响应于所述第二输入,控制所述第一摄像头和所述第二摄像头拍摄所述目标物距范围对应的目标拍摄对象。The photographing module 43 is configured to, in response to the second input, control the first camera and the second camera to photograph the target object corresponding to the target object distance range.

可选地,作为一个实施例,如图4所示出的,所述移动终端还包括:Optionally, as an embodiment, as shown in FIG. 4, the mobile terminal further includes:

显示模块44,用于在所述接收模块接收用户在拍摄预览界面上的第一输入之前,在所述拍摄预览界面的预设区域显示预设控件;The display module 44 is configured to display preset controls in a preset area of the shooting preview interface before the receiving module receives the user's first input on the shooting preview interface;

接收模块41具体用于:The receiving module 41 is specifically used for:

接收用户在所述预设控件上的第一输入;receiving a user's first input on the preset control;

在所处处理模块42响应于所述第一输入,确定目标物距范围之后,所述显示模块44还用于:After the processing module 42 determines the target object distance range in response to the first input, the display module 44 is also used for:

在所述拍摄预览界面中仅显示所述目标拍摄对象的图像。Only the image of the target shooting object is displayed in the shooting preview interface.

可选地,作为一个实施例,在所述接收模块41接收用户在拍摄预览界面上的第一输入之前,所述处理模块42还用于:Optionally, as an embodiment, before the receiving module 41 receives the user's first input on the shooting preview interface, the processing module 42 is further configured to:

获取所述第一摄像头采集的第一图像的像素点;Acquiring pixels of the first image captured by the first camera;

获取所述第二摄像头采集第二图像的像素点;Obtain the pixels of the second image captured by the second camera;

确定所述第一图像的像素点中颜色值突变的第一像素点集合和所述第二图像的像素点中颜色值突变的第二像素点集合;determining a first set of pixels with sudden changes in color value among the pixels of the first image and a second set of pixels with sudden changes in color value among the pixels of the second image;

根据所述第一像素点集合和所述第二像素点集合,确定所述拍摄预览界面中显示的每个对象的物距。The object distance of each object displayed in the shooting preview interface is determined according to the first set of pixel points and the second set of pixel points.

可选地,作为一个实施例,所述拍摄预览界面中显示的对象的个数为N个;Optionally, as an embodiment, the number of objects displayed in the shooting preview interface is N;

所述处理模块42具体用于:The processing module 42 is specifically used for:

计算所述第一像素点集合和所述第二像素点集合中对应第i个对象的像素点;calculating the pixel points corresponding to the i-th object in the first set of pixel points and the second set of pixel points;

计算对应所述第i个对象的像素点中属于第一像素点集合的每个像素点与所述第一摄像头的透镜光心的第一水平距离;calculating a first horizontal distance between each pixel point belonging to the first pixel point set among the pixels corresponding to the i-th object and the optical center of the lens of the first camera;

计算对应所述第i个对象的像素点中属于第二像素点集合的每个像素点与所述第二摄像头的透镜光心的第二水平距离;calculating a second horizontal distance between each pixel point belonging to the second pixel point set among the pixels corresponding to the i-th object and the optical center of the lens of the second camera;

计算所述第一水平距离与所述第二水平距离的差值;calculating a difference between the first horizontal distance and the second horizontal distance;

根据所述差值,确定所述第i个对象的物距;determining the object distance of the i-th object according to the difference;

其中,i=1,…N。Among them, i=1,...N.

可选地,作为一个实施例,所述处理模块42具体用于:Optionally, as an embodiment, the processing module 42 is specifically configured to:

将目标数值与目标差值的比值确定为所述第i个对象的物距;determining the ratio of the target value to the target difference as the object distance of the i-th object;

其中,所述目标数值为所述第一摄像头的透镜光心与所述第二摄像头的透镜光心之间的距离与所述第一摄像头和所述第二摄像头的焦距的乘积,所述目标差值为所述差值的绝对值。Wherein, the target value is the product of the distance between the optical center of the lens of the first camera and the optical center of the lens of the second camera and the focal length of the first camera and the second camera, and the target The difference is the absolute value of said difference.

本发明实施例的移动终端能够根据用户在拍摄预览界面上的第一输入确定目标物距范围,并响应用户在拍摄预览界面上的第二输入,控制第一摄像头和第二摄像头拍摄目标物距范围对应的目标拍摄对象。由此,不需要先将拍摄预览界面中显示的对象全部拍摄到一张图里,再截取出目标拍摄对象的图像,简化拍摄目标拍摄对象的图像的操作,用户可在拍摄过程中,自由确定所需要的物距范围的目标拍摄对象,从而用户能够快速获得拍摄视场内任一个所需要的目标拍摄对象的图像。The mobile terminal according to the embodiment of the present invention can determine the target object distance range according to the user's first input on the shooting preview interface, and control the first camera and the second camera to shoot the target object distance in response to the user's second input on the shooting preview interface. The target subject corresponding to the range. Therefore, it is not necessary to capture all the objects displayed in the shooting preview interface into a picture, and then intercept the image of the target object, simplifying the operation of shooting the image of the target object, and the user can freely determine during the shooting process The target shooting object within the required object distance range, so that the user can quickly obtain an image of any desired target shooting object in the shooting field of view.

应理解,根据本发明实施例的移动终端40中的各个单元的上述和其它操作和/或功能分别为了实现图1中的方法的相应流程,为了简洁,在此不再赘述。It should be understood that the above-mentioned and other operations and/or functions of each unit in the mobile terminal 40 according to the embodiment of the present invention are respectively for realizing the corresponding flow of the method in FIG. 1 , and are not repeated here for brevity.

图5为实现本发明实施例的移动终端的硬件结构示意图。如图5所示,该移动终端500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、处理器510、电源511以及摄像头512等部件,摄像头512为双摄像头,包括第一摄像头和第二摄像头。本领域技术人员可以理解,图5中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。FIG. 5 is a schematic diagram of a hardware structure of a mobile terminal implementing an embodiment of the present invention. As shown in Figure 5, the mobile terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, and a memory 509 , a processor 510, a power supply 511, and a camera 512. The camera 512 is a dual camera, including a first camera and a second camera. Those skilled in the art can understand that the structure of the mobile terminal shown in Figure 5 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.

其中,处理器510,接收用户在拍摄预览界面上的第一输入,所述第一输入用于确定目标物距范围;响应于所述第一输入,确定目标物距范围;接收用户在所述拍摄预览界面上的第二输入,所述第二输入用于触发拍摄操作;响应于所述第二输入,控制所述第一摄像头和所述第二摄像头拍摄所述目标物距范围对应的目标拍摄对象。Wherein, the processor 510 receives the user's first input on the shooting preview interface, and the first input is used to determine the range of the target object distance; in response to the first input, determines the target object distance range; A second input on the shooting preview interface, the second input is used to trigger a shooting operation; in response to the second input, control the first camera and the second camera to shoot the target corresponding to the target object distance range subject.

本发明实施例的移动终端能够根据用户在拍摄预览界面上的第一输入确定目标物距范围,并响应用户在拍摄预览界面上的第二输入,控制第一摄像头和第二摄像头拍摄目标物距范围对应的目标拍摄对象。由此,不需要先将拍摄预览界面中显示的对象全部拍摄到一张图里,再截取出目标拍摄对象的图像,简化拍摄目标拍摄对象的图像的操作,用户可在拍摄过程中,自由确定所需要的物距范围的目标拍摄对象,从而用户能够快速获得拍摄视场内任一个所需要的目标拍摄对象的图像。The mobile terminal according to the embodiment of the present invention can determine the target object distance range according to the user's first input on the shooting preview interface, and control the first camera and the second camera to shoot the target object distance in response to the user's second input on the shooting preview interface. The target subject corresponding to the range. Therefore, it is not necessary to capture all the objects displayed in the shooting preview interface into a picture, and then intercept the image of the target object, simplifying the operation of shooting the image of the target object, and the user can freely determine during the shooting process The target shooting object within the required object distance range, so that the user can quickly obtain an image of any desired target shooting object in the shooting field of view.

应理解的是,本发明实施例中,射频单元501可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器510处理;另外,将上行的数据发送给基站。通常,射频单元501包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元501还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, the processor 510 processes it; Uplink data is sent to the base station. Generally, the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.

移动终端通过网络模块502为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 502, such as helping users send and receive emails, browse web pages, and access streaming media.

音频输出单元503可以将射频单元501或网络模块502接收的或者在存储器509中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元503还可以提供与移动终端500执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元503包括扬声器、蜂鸣器以及受话器等。The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 can also provide audio output related to a specific function performed by the mobile terminal 500 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver and the like.

输入单元504用于接收音频或视频信号。输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元506上。经图形处理器5041处理后的图像帧可以存储在存储器509(或其它存储介质)中或者经由射频单元501或网络模块502进行发送。麦克风5042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元501发送到移动通信基站的格式输出。The input unit 504 is used for receiving audio or video signals. The input unit 504 may include a graphics processing unit (Graphics Processing Unit, GPU) 5041 and a microphone 5042, and the graphics processor 5041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 506 . The image frames processed by the graphics processor 5041 may be stored in the memory 509 (or other storage media) or sent via the radio frequency unit 501 or the network module 502 . The microphone 5042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 501 for output in the case of a phone call mode.

移动终端500还包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板5061的亮度,接近传感器可在移动终端500移动到耳边时,关闭显示面板5061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器505还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,其中红外线传感器能够通过发射和接收红外光测量物体与移动终端之间的距离,在此不再赘述。The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 5061 and the display panel 5061 when the mobile terminal 500 moves to the ear / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, etc.) , magnetometer attitude calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 505 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, An infrared sensor, etc., wherein the infrared sensor can measure the distance between the object and the mobile terminal by emitting and receiving infrared light, which will not be repeated here.

显示单元506用于显示由用户输入的信息或提供给用户的信息。显示单元506可包括显示面板5061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板5061。The display unit 506 is used to display information input by the user or information provided to the user. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.

用户输入单元507可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板5071上或在触控面板5071附近的操作)。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器510,接收处理器510发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板5071。除了触控面板5071,用户输入单元507还可以包括其他输入设备5072。具体地,其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 507 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072 . The touch panel 5071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 5071 or near the touch panel 5071). operate). The touch panel 5071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 510, receive the command sent by the processor 510 and execute it. In addition, the touch panel 5071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 5071 , the user input unit 507 may also include other input devices 5072 . Specifically, other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板5071可覆盖在显示面板5061上,当触控面板5071检测到在其上或附近的触摸操作后,传送给处理器510以确定触摸事件的类型,随后处理器510根据触摸事件的类型在显示面板5061上提供相应的视觉输出。虽然在图5中,触控面板5071与显示面板5061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板5071与显示面板5061集成而实现移动终端的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 5071 can be covered on the display panel 5061, and when the touch panel 5071 detects a touch operation on or near it, it will be sent to the processor 510 to determine the type of the touch event, and then the processor 510 can The type of event provides a corresponding visual output on the display panel 5061 . Although in FIG. 5, the touch panel 5071 and the display panel 5061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.

接口单元508为外部装置与移动终端500连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元508可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端500内的一个或多个元件或者可以用于在移动终端500和外部装置之间传输数据。The interface unit 508 is an interface for connecting an external device to the mobile terminal 500 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 508 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.

存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器509可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 509 can be used to store software programs as well as various data. The memory 509 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 509 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

处理器510是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器509内的软件程序和/或模块,以及调用存储在存储器509内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器510可包括一个或多个处理单元;优选的,处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。The processor 510 is the control center of the mobile terminal, and uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 509, and calling data stored in the memory 509 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 510 .

移动终端500还可以包括给各个部件供电的电源511(比如电池),优选的,电源511可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 500 can also include a power supply 511 (such as a battery) for supplying power to various components. Preferably, the power supply 511 can be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.

另外,移动终端500包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 500 includes some functional modules not shown, which will not be repeated here.

优选地,本发明实施例还提供一种移动终端,包括处理器510,存储器509,存储在存储器509上并可在所述处理器510上运行的计算机程序,该计算机程序被处理器510执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a mobile terminal, including a processor 510, a memory 509, a computer program stored in the memory 509 and operable on the processor 510, when the computer program is executed by the processor 510 The various processes of the foregoing method embodiments can be implemented and the same technical effect can be achieved, so in order to avoid repetition, details will not be described here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述图1所示的方法的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned method shown in FIG. 1 is implemented, and the same Technical effects, in order to avoid repetition, will not be repeated here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read only memory (ROM) or flash RAM. Memory is an example of computer readable media.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本领域技术人员应明白,本发明的实施例可提供为方法、系统或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

以上所述仅为本发明的实施例而已,并不用于限制本发明。对于本领域技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本发明的权利要求范围之内。The above descriptions are only examples of the present invention, and are not intended to limit the present invention. Various modifications and variations of the present invention will occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the scope of the claims of the present invention.

Claims (12)

CN201711214107.6A2017-11-282017-11-28A kind of image capturing method and mobile terminalPendingCN107888833A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201711214107.6ACN107888833A (en)2017-11-282017-11-28A kind of image capturing method and mobile terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201711214107.6ACN107888833A (en)2017-11-282017-11-28A kind of image capturing method and mobile terminal

Publications (1)

Publication NumberPublication Date
CN107888833Atrue CN107888833A (en)2018-04-06

Family

ID=61775643

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201711214107.6APendingCN107888833A (en)2017-11-282017-11-28A kind of image capturing method and mobile terminal

Country Status (1)

CountryLink
CN (1)CN107888833A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109639970A (en)*2018-12-172019-04-16维沃移动通信有限公司A kind of image pickup method and terminal device
CN109922256A (en)*2019-01-282019-06-21维沃移动通信有限公司Image pickup method and terminal device
CN110519512A (en)*2019-08-162019-11-29维沃移动通信有限公司A kind of object processing method and terminal
CN112532881A (en)*2020-11-262021-03-19维沃移动通信有限公司Image processing method and device and electronic equipment
CN112887606A (en)*2021-01-262021-06-01维沃移动通信有限公司Shooting method and device and electronic equipment
CN114374815A (en)*2020-10-152022-04-19北京字节跳动网络技术有限公司Image acquisition method, device, terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104079812A (en)*2013-03-252014-10-01联想(北京)有限公司Method and device of acquiring image information
CN104363378A (en)*2014-11-282015-02-18广东欧珀移动通信有限公司Camera focusing method, camera focusing device and terminal
CN104506768A (en)*2014-11-282015-04-08广东欧珀移动通信有限公司 Image selection method, device and terminal
CN105141834A (en)*2015-07-272015-12-09努比亚技术有限公司Device and method for controlling picture shooting
CN105827952A (en)*2016-02-012016-08-03维沃移动通信有限公司Photographing method for removing specified object and mobile terminal
CN106648361A (en)*2016-12-132017-05-10深圳市金立通信设备有限公司Photographing method and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104079812A (en)*2013-03-252014-10-01联想(北京)有限公司Method and device of acquiring image information
CN104363378A (en)*2014-11-282015-02-18广东欧珀移动通信有限公司Camera focusing method, camera focusing device and terminal
CN104506768A (en)*2014-11-282015-04-08广东欧珀移动通信有限公司 Image selection method, device and terminal
CN105141834A (en)*2015-07-272015-12-09努比亚技术有限公司Device and method for controlling picture shooting
CN105827952A (en)*2016-02-012016-08-03维沃移动通信有限公司Photographing method for removing specified object and mobile terminal
CN106648361A (en)*2016-12-132017-05-10深圳市金立通信设备有限公司Photographing method and terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109639970A (en)*2018-12-172019-04-16维沃移动通信有限公司A kind of image pickup method and terminal device
CN109922256A (en)*2019-01-282019-06-21维沃移动通信有限公司Image pickup method and terminal device
CN110519512A (en)*2019-08-162019-11-29维沃移动通信有限公司A kind of object processing method and terminal
CN110519512B (en)*2019-08-162021-10-22维沃移动通信有限公司 Object processing method and terminal
CN114374815A (en)*2020-10-152022-04-19北京字节跳动网络技术有限公司Image acquisition method, device, terminal and storage medium
CN114374815B (en)*2020-10-152023-04-11北京字节跳动网络技术有限公司Image acquisition method, device, terminal and storage medium
CN112532881A (en)*2020-11-262021-03-19维沃移动通信有限公司Image processing method and device and electronic equipment
CN112887606A (en)*2021-01-262021-06-01维沃移动通信有限公司Shooting method and device and electronic equipment

Similar Documents

PublicationPublication DateTitle
CN107592468B (en)A kind of shooting parameter adjustment method and mobile terminal
CN108108114B (en)A kind of thumbnail display control method and mobile terminal
CN108668083A (en) A camera method and terminal
CN108540724A (en)A kind of image pickup method and mobile terminal
CN109743498B (en)Shooting parameter adjusting method and terminal equipment
CN107820011A (en)Photographic method and camera arrangement
WO2019174628A1 (en)Photographing method and mobile terminal
CN107846583B (en) A kind of image shadow compensation method and mobile terminal
CN107888833A (en)A kind of image capturing method and mobile terminal
CN109241832B (en) A method and terminal device for face liveness detection
CN107864336B (en) Image processing method and mobile terminal
CN107682639B (en) Image processing method, device and mobile terminal
JP7413546B2 (en) Photography method and electronic equipment
CN108307106A (en)A kind of image processing method, device and mobile terminal
CN110166691A (en) A shooting method and terminal equipment
CN108495028B (en)Camera focusing method and device and mobile terminal
CN108683850A (en) A shooting prompt method and mobile terminal
CN107948516A (en)A kind of image processing method, device and mobile terminal
CN108564613A (en)A kind of depth data acquisition methods and mobile terminal
CN108513067A (en)A kind of filming control method and mobile terminal
WO2021190390A1 (en)Focusing method, electronic device, storage medium and program product
CN107682637A (en) A shooting method, mobile terminal and computer-readable storage medium
CN108174081B (en) A shooting method and mobile terminal
WO2019137535A1 (en)Object distance measurement method and terminal device
CN108833791A (en) A shooting method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20180406

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp